diff --git a/Makefile b/Makefile index 4f37377548..2b2b924f2a 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ endif ifdef race $(eval testintegargs += "-race") endif - $(eval testintegargs += "-cover" "-coverpkg=github.com/elastic/go-elasticsearch/v8,github.com/elastic/go-elasticsearch/v8/esutil,github.com/elastic/go-elasticsearch/v8/typedapi" "-coverprofile=$(PWD)/tmp/integration-client.cov" "-tags='$(testintegtags)'" "-timeout=1h") + $(eval testintegargs += "-cover" "-coverpkg=github.com/elastic/go-elasticsearch/v9,github.com/elastic/go-elasticsearch/v9/esutil,github.com/elastic/go-elasticsearch/v9/typedapi" "-coverprofile=$(PWD)/tmp/integration-client.cov" "-tags='$(testintegtags)'" "-timeout=1h") @if which gotestsum > /dev/null 2>&1 ; then \ cd internal/testing/e2e; \ echo "gotestsum --format=short-verbose --junitfile=$(PWD)/tmp/integration-report.xml --" $(testintegargs); \ @@ -49,7 +49,7 @@ test-api: ## Run generated API integration tests ifdef race $(eval testapiargs += "-race") endif - $(eval testapiargs += "-cover" "-coverpkg=github.com/elastic/go-elasticsearch/v8/esapi" "-coverprofile=$(PWD)/tmp/integration-api.cov" "-tags='integration'" "-timeout=1h") + $(eval testapiargs += "-cover" "-coverpkg=github.com/elastic/go-elasticsearch/v9/esapi" "-coverprofile=$(PWD)/tmp/integration-api.cov" "-tags='integration'" "-timeout=1h") ifdef flavor else $(eval flavor='free') @@ -101,7 +101,6 @@ test-examples: ## Execute the _examples @printf "\033[2m→ Testing the examples...\033[0m\n" @{ \ set -e ; \ - trap "test -d .git && git checkout --quiet _examples/**/go.mod" INT TERM EXIT; \ for d in _examples/*/; do \ printf "\033[2m────────────────────────────────────────────────────────────────────────────────\n"; \ printf "\033[1mUpdating dependencies for $$d\033[0m\n"; \ @@ -266,9 +265,9 @@ endif godoc: ## Display documentation for the package @printf "\033[2m→ Generating documentation...\033[0m\n" - @echo "* http://localhost:6060/pkg/github.com/elastic/go-elasticsearch/v8" - @echo "* http://localhost:6060/pkg/github.com/elastic/go-elasticsearch/v8/esapi" - @echo "* http://localhost:6060/pkg/github.com/elastic/go-elasticsearch/v8/esutil" + @echo "* http://localhost:6060/pkg/github.com/elastic/go-elasticsearch/v9" + @echo "* http://localhost:6060/pkg/github.com/elastic/go-elasticsearch/v9/esapi" + @echo "* http://localhost:6060/pkg/github.com/elastic/go-elasticsearch/v9/esutil" @printf "\n" godoc --http=localhost:6060 --play diff --git a/README.md b/README.md index 25b97af73a..4dabc257a3 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ or **[sign-up](https://cloud.elastic.co/registration?elektra=en-ess-sign-up-page)** **for a free trial of Elastic Cloud**. -[![Go Reference](https://pkg.go.dev/github.com/elastic/go-elasticsearch?status.svg)](https://pkg.go.dev/github.com/elastic/go-elasticsearch/v8) +[![Go Reference](https://pkg.go.dev/github.com/elastic/go-elasticsearch?status.svg)](https://pkg.go.dev/github.com/elastic/go-elasticsearch/v9) [![Go Report Card](https://goreportcard.com/badge/github.com/elastic/go-elasticsearch)](https://goreportcard.com/report/github.com/elastic/go-elasticsearch) [![codecov.io](https://codecov.io/github/elastic/go-elasticsearch/coverage.svg?branch=main)](https://codecov.io/gh/elastic/go-elasticsearch?branch=main) [![Build](https://github.com/elastic/go-elasticsearch/workflows/Build/badge.svg)](https://github.com/elastic/go-elasticsearch/actions?query=branch%3Amain) @@ -28,23 +28,23 @@ Elasticsearch language clients are only backwards compatible with default distri When using Go modules, include the version in the import path, and specify either an explicit version or a branch: - require github.com/elastic/go-elasticsearch/v8 v8.0.0 - require github.com/elastic/go-elasticsearch/v7 7.17 + require github.com/elastic/go-elasticsearch/v9 v9.x.x + require github.com/elastic/go-elasticsearch/v8 v8.x.x It's possible to use multiple versions of the client in a single project: // go.mod - github.com/elastic/go-elasticsearch/v7 v7.17.0 - github.com/elastic/go-elasticsearch/v8 v8.0.0 + github.com/elastic/go-elasticsearch/v8 v8.18.0 + github.com/elastic/go-elasticsearch/v9 v9.0.0 // main.go import ( - elasticsearch7 "github.com/elastic/go-elasticsearch/v7" - elasticsearch8 "github.com/elastic/go-elasticsearch/v8" + elasticsearch7 "github.com/elastic/go-elasticsearch/v8" + elasticsearch8 "github.com/elastic/go-elasticsearch/v9" ) // ... - es7, _ := elasticsearch7.NewDefaultClient() - es8, _ := elasticsearch8.NewDefaultClient() + es8, _ := elasticsearch7.NewDefaultClient() + es9, _ := elasticsearch8.NewDefaultClient() The `main` branch of the client is compatible with the current `master` branch of Elasticsearch. diff --git a/_benchmarks/benchmarks/actions/001_ping.go b/_benchmarks/benchmarks/actions/001_ping.go index 1c15778372..ac2d33c9bb 100644 --- a/_benchmarks/benchmarks/actions/001_ping.go +++ b/_benchmarks/benchmarks/actions/001_ping.go @@ -21,10 +21,10 @@ import ( "io" "io/ioutil" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9/esapi" - "github.com/elastic/go-elasticsearch/v8/benchmarks" - "github.com/elastic/go-elasticsearch/v8/benchmarks/runner" + "github.com/elastic/go-elasticsearch/v9/benchmarks" + "github.com/elastic/go-elasticsearch/v9/benchmarks/runner" ) func init() { diff --git a/_benchmarks/benchmarks/actions/002_info.go b/_benchmarks/benchmarks/actions/002_info.go index 439ebc2135..ab367ac76d 100644 --- a/_benchmarks/benchmarks/actions/002_info.go +++ b/_benchmarks/benchmarks/actions/002_info.go @@ -21,10 +21,10 @@ import ( "io" "io/ioutil" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9/esapi" - "github.com/elastic/go-elasticsearch/v8/benchmarks" - "github.com/elastic/go-elasticsearch/v8/benchmarks/runner" + "github.com/elastic/go-elasticsearch/v9/benchmarks" + "github.com/elastic/go-elasticsearch/v9/benchmarks/runner" ) func init() { diff --git a/_benchmarks/benchmarks/actions/003_get.go b/_benchmarks/benchmarks/actions/003_get.go index 44976a0b7e..5d6b51d03f 100644 --- a/_benchmarks/benchmarks/actions/003_get.go +++ b/_benchmarks/benchmarks/actions/003_get.go @@ -24,11 +24,11 @@ import ( "io/ioutil" "strings" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9/esapi" "github.com/tidwall/gjson" - "github.com/elastic/go-elasticsearch/v8/benchmarks" - "github.com/elastic/go-elasticsearch/v8/benchmarks/runner" + "github.com/elastic/go-elasticsearch/v9/benchmarks" + "github.com/elastic/go-elasticsearch/v9/benchmarks/runner" ) func init() { diff --git a/_benchmarks/benchmarks/actions/004_index.go b/_benchmarks/benchmarks/actions/004_index.go index 8da3615f36..377e61ce98 100644 --- a/_benchmarks/benchmarks/actions/004_index.go +++ b/_benchmarks/benchmarks/actions/004_index.go @@ -24,11 +24,11 @@ import ( "io/ioutil" "math/rand" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9/esapi" "github.com/tidwall/gjson" - "github.com/elastic/go-elasticsearch/v8/benchmarks" - "github.com/elastic/go-elasticsearch/v8/benchmarks/runner" + "github.com/elastic/go-elasticsearch/v9/benchmarks" + "github.com/elastic/go-elasticsearch/v9/benchmarks/runner" ) func init() { diff --git a/_benchmarks/benchmarks/actions/005_bulk.go b/_benchmarks/benchmarks/actions/005_bulk.go index 4c16565f80..b0a5abdfba 100644 --- a/_benchmarks/benchmarks/actions/005_bulk.go +++ b/_benchmarks/benchmarks/actions/005_bulk.go @@ -25,10 +25,10 @@ import ( "github.com/tidwall/gjson" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9/esapi" - "github.com/elastic/go-elasticsearch/v8/benchmarks" - "github.com/elastic/go-elasticsearch/v8/benchmarks/runner" + "github.com/elastic/go-elasticsearch/v9/benchmarks" + "github.com/elastic/go-elasticsearch/v9/benchmarks/runner" ) func init() { diff --git a/_benchmarks/benchmarks/actions/006_bulk_helper.go b/_benchmarks/benchmarks/actions/006_bulk_helper.go index f07c7f8ca5..67f02947b9 100644 --- a/_benchmarks/benchmarks/actions/006_bulk_helper.go +++ b/_benchmarks/benchmarks/actions/006_bulk_helper.go @@ -25,12 +25,12 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" + "github.com/elastic/go-elasticsearch/v9/esutil" - "github.com/elastic/go-elasticsearch/v8/benchmarks" - "github.com/elastic/go-elasticsearch/v8/benchmarks/runner" + "github.com/elastic/go-elasticsearch/v9/benchmarks" + "github.com/elastic/go-elasticsearch/v9/benchmarks/runner" ) func init() { @@ -123,7 +123,7 @@ func init() { biStats := bi.Stats() if biStats.NumFailed > 0 { - return nil, fmt.Errorf("Unexpected failures: %s", biStats) + return nil, fmt.Errorf("Unexpected failures: %v", biStats) } if int(biStats.NumAdded) != c.NumOperations { return nil, fmt.Errorf("Unexpected failures: added=%d, expected=%d", biStats.NumAdded, c.NumOperations) diff --git a/_benchmarks/benchmarks/benchmarks.go b/_benchmarks/benchmarks/benchmarks.go index 4e1d0d35ab..9e75f1cf1f 100644 --- a/_benchmarks/benchmarks/benchmarks.go +++ b/_benchmarks/benchmarks/benchmarks.go @@ -20,7 +20,7 @@ package benchmarks import ( "bytes" - "github.com/elastic/go-elasticsearch/v8/benchmarks/runner" + "github.com/elastic/go-elasticsearch/v9/benchmarks/runner" ) var ( @@ -32,7 +32,6 @@ var ( ) // Action represents a benchmarked action. -// type Action struct { Name string Category string @@ -45,7 +44,6 @@ type Action struct { } // Register appends op to the list of operations. -// func Register(a Action) error { Actions = append(Actions, a) return nil diff --git a/_benchmarks/benchmarks/cmd/main.go b/_benchmarks/benchmarks/cmd/main.go index cf4c5cbe92..88f34ea598 100644 --- a/_benchmarks/benchmarks/cmd/main.go +++ b/_benchmarks/benchmarks/cmd/main.go @@ -32,12 +32,12 @@ import ( "github.com/montanaflynn/stats" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" - "github.com/elastic/go-elasticsearch/v8/benchmarks" - "github.com/elastic/go-elasticsearch/v8/benchmarks/runner" + "github.com/elastic/go-elasticsearch/v9/benchmarks" + "github.com/elastic/go-elasticsearch/v9/benchmarks/runner" - _ "github.com/elastic/go-elasticsearch/v8/benchmarks/actions" + _ "github.com/elastic/go-elasticsearch/v9/benchmarks/actions" ) var ( diff --git a/_benchmarks/benchmarks/go.mod b/_benchmarks/benchmarks/go.mod index 352f2487d9..945dc58107 100644 --- a/_benchmarks/benchmarks/go.mod +++ b/_benchmarks/benchmarks/go.mod @@ -1,17 +1,29 @@ -module github.com/elastic/go-elasticsearch/v8/benchmarks +module github.com/elastic/go-elasticsearch/v9/benchmarks -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../../ +replace github.com/elastic/go-elasticsearch/v9 => ../../ require ( github.com/elastic/elastic-transport-go/v8 v8.6.1 - github.com/elastic/go-elasticsearch/v8 v8.0.0-20200408073057-6f36a473b19f + github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 github.com/fatih/color v1.7.0 github.com/montanaflynn/stats v0.6.3 github.com/tidwall/gjson v1.9.3 ) -require github.com/mattn/go-colorable v0.1.6 // indirect +require ( + github.com/go-logr/logr v1.4.2 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/mattn/go-colorable v0.1.6 // indirect + github.com/mattn/go-isatty v0.0.12 // indirect + github.com/tidwall/match v1.1.1 // indirect + github.com/tidwall/pretty v1.2.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect + golang.org/x/sys v0.19.0 // indirect +) diff --git a/_benchmarks/benchmarks/runner/runner.go b/_benchmarks/benchmarks/runner/runner.go index 3a6dce19a8..3c7b74e21a 100644 --- a/_benchmarks/benchmarks/runner/runner.go +++ b/_benchmarks/benchmarks/runner/runner.go @@ -18,16 +18,18 @@ package runner import ( + "bytes" "context" + "encoding/json" "fmt" "regexp" "runtime" "strings" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" + "github.com/elastic/go-elasticsearch/v9/esutil" ) var ( @@ -51,7 +53,6 @@ func init() { } // NewRunner returns new benchmarking runner. -// func NewRunner(cfg Config) (*Runner, error) { if err := validateConfig(cfg); err != nil { return nil, err @@ -78,7 +79,6 @@ func NewRunner(cfg Config) (*Runner, error) { } // Runner represents the benchmarking runner. -// type Runner struct { config Config stats []Stats @@ -86,7 +86,6 @@ type Runner struct { } // Config represents configuration for Runner. -// type Config struct { BuildID string @@ -115,13 +114,11 @@ type Config struct { } // ConfigOS describes OS. -// type ConfigOS struct { Family string } // ConfigService describes service. -// type ConfigService struct { Type string Name string @@ -130,18 +127,15 @@ type ConfigService struct { } // ConfigGit describes Git. -// type ConfigGit struct { Branch string Commit string } // RunnerFunc represents the runner operation. -// type RunnerFunc func(int, Config) (*esapi.Response, error) // Stats represents statistics about a single run. -// type Stats struct { Start time.Time Duration time.Duration @@ -150,18 +144,15 @@ type Stats struct { } // Error describes an error occurring in during run. -// type Error struct { err string errs []error } // Error returns string message for error. -// func (e *Error) Error() string { return e.err } // Errs returns the underlying errors. -// func (e *Error) Errs() string { var errStrings []string for _, e := range e.errs { @@ -171,7 +162,6 @@ func (e *Error) Errs() string { } // Run executes the benchmark runs. -// func (r *Runner) Run() error { if err := validateConfig(r.config); err != nil { return err @@ -223,19 +213,16 @@ func (r *Runner) Run() error { } // Stats returns statistics about the run. -// func (r *Runner) Stats() []Stats { return r.stats } // Errs returns the runner errors. -// func (r *Runner) Errs() []error { return errs } // SaveStats stores runner statistics in Elasticsearch. -// func (r *Runner) SaveStats() error { var errs []error @@ -285,11 +272,16 @@ func (r *Runner) SaveStats() error { }, }, } + data, err := json.Marshal(record) + if err != nil { + return fmt.Errorf("failed to marshal record: %w", err) + } + if err := r.indexer.Add( context.Background(), esutil.BulkIndexerItem{ Action: "index", - Body: esutil.NewJSONReader(record), + Body: bytes.NewReader(data), OnFailure: func( ctx context.Context, item esutil.BulkIndexerItem, diff --git a/_examples/bulk/benchmarks/benchmarks.go b/_examples/bulk/benchmarks/benchmarks.go index 9c984d38d1..702ee70d09 100644 --- a/_examples/bulk/benchmarks/benchmarks.go +++ b/_examples/bulk/benchmarks/benchmarks.go @@ -43,11 +43,11 @@ import ( "github.com/valyala/fasthttp" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esutil" - "github.com/elastic/go-elasticsearch/v8/_examples/bulk/benchmarks/model" - "github.com/elastic/go-elasticsearch/v8/_examples/bulk/benchmarks/runner" + "github.com/elastic/go-elasticsearch/v9/_examples/bulk/benchmarks/model" + "github.com/elastic/go-elasticsearch/v9/_examples/bulk/benchmarks/runner" ) type humanBytes uint64 diff --git a/_examples/bulk/benchmarks/go.mod b/_examples/bulk/benchmarks/go.mod index 27a6a28808..f8360c7287 100644 --- a/_examples/bulk/benchmarks/go.mod +++ b/_examples/bulk/benchmarks/go.mod @@ -1,14 +1,14 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/bulk/benchmarks +module github.com/elastic/go-elasticsearch/v9/_examples/bulk/benchmarks -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../../.. +replace github.com/elastic/go-elasticsearch/v9 => ../../.. require ( github.com/dustin/go-humanize v1.0.0 - github.com/elastic/go-elasticsearch/v8 v8.0.0-20210817150010-57d659deaca7 + github.com/elastic/go-elasticsearch/v9 v9.0.0-20210817150010-57d659deaca7 github.com/mailru/easyjson v0.7.1 github.com/montanaflynn/stats v0.6.3 ) @@ -17,7 +17,8 @@ require ( github.com/elastic/elastic-transport-go/v8 v8.6.1 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect ) diff --git a/_examples/bulk/benchmarks/go.sum b/_examples/bulk/benchmarks/go.sum index 8b01b6831d..a8c51683a9 100644 --- a/_examples/bulk/benchmarks/go.sum +++ b/_examples/bulk/benchmarks/go.sum @@ -9,25 +9,27 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/mailru/easyjson v0.7.1 h1:mdxE1MF9o53iCb2Ghj1VfWvh7ZOwHpnVG/xwXrV90U8= github.com/mailru/easyjson v0.7.1/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= github.com/montanaflynn/stats v0.6.3 h1:F8446DrvIF5V5smZfZ8K9nrmmix0AFgevPdLruGOmzk= github.com/montanaflynn/stats v0.6.3/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= +golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/_examples/bulk/benchmarks/model/model.go b/_examples/bulk/benchmarks/model/model.go index 1f7315a4ca..7def8b4174 100644 --- a/_examples/bulk/benchmarks/model/model.go +++ b/_examples/bulk/benchmarks/model/model.go @@ -20,7 +20,7 @@ package model import ( - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9/esutil" ) // BulkIndexerResponse wraps the esutil.BulkIndexerResponse, diff --git a/_examples/bulk/benchmarks/runner/runner.go b/_examples/bulk/benchmarks/runner/runner.go index 335c1f2361..efa320cc06 100644 --- a/_examples/bulk/benchmarks/runner/runner.go +++ b/_examples/bulk/benchmarks/runner/runner.go @@ -32,18 +32,16 @@ import ( "github.com/dustin/go-humanize" "github.com/montanaflynn/stats" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esutil" ) // NewRunner returns new BulkIndexer benchmarking runner. -// func NewRunner(cfg Config) (*Runner, error) { return &Runner{config: cfg}, nil } // Runner represents the BulkIndexer benchmarking runner. -// type Runner struct { config Config @@ -55,7 +53,6 @@ type Runner struct { } // Config represents configuration for Runner. -// type Config struct { IndexName string DatasetName string @@ -74,7 +71,6 @@ type Config struct { } // Report prints statistics from the benchmark runs. -// func (r *Runner) Report() error { r.throughput = map[string]float64{ "min": func() float64 { v, _ := stats.Min(r.samples); return v }(), @@ -120,7 +116,6 @@ func (r *Runner) Report() error { } // Run executes the benchmark runs. -// func (r *Runner) Run() error { for n := 1; n <= r.config.NumWarmupRuns; n++ { if err := r.run(n, false); err != nil { @@ -138,7 +133,6 @@ func (r *Runner) Run() error { } // setup re-creates the index for a benchmark run. -// func (r *Runner) setup() error { fm, err := os.Open(filepath.Join("data", r.config.DatasetName, "mapping.json")) if err != nil { @@ -189,7 +183,6 @@ func (r *Runner) setup() error { } // run executes a single benchmark run n, recording stats when measure is true. -// func (r *Runner) run(n int, measure bool) error { if err := r.setup(); err != nil { return fmt.Errorf("run: %s", err) @@ -259,7 +252,6 @@ func (r *Runner) run(n int, measure bool) error { } // formatInt returns a number like 123456 as a string like 123.45K -// func formatInt(i int) string { return strings.ReplaceAll(strings.ToUpper(humanize.SIWithDigits(float64(i), 2, "")), " ", "") } diff --git a/_examples/bulk/default.go b/_examples/bulk/default.go index 5a285a8111..429a95336e 100644 --- a/_examples/bulk/default.go +++ b/_examples/bulk/default.go @@ -44,8 +44,8 @@ import ( "github.com/dustin/go-humanize" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" ) type Article struct { diff --git a/_examples/bulk/go.mod b/_examples/bulk/go.mod index 0957a1bd4c..7ab8053756 100644 --- a/_examples/bulk/go.mod +++ b/_examples/bulk/go.mod @@ -1,22 +1,23 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/bulk +module github.com/elastic/go-elasticsearch/v9/_examples/bulk -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/elastic/go-elasticsearch/v9 => ../.. require ( github.com/cenkalti/backoff/v4 v4.3.0 github.com/dustin/go-humanize v1.0.1 - github.com/elastic/go-elasticsearch/v8 v8.0.0-20211123103400-5f8a17a2322f + github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 ) require ( github.com/elastic/elastic-transport-go/v8 v8.6.1 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect ) diff --git a/_examples/bulk/go.sum b/_examples/bulk/go.sum index 79edc2508e..9cf88ffd7c 100644 --- a/_examples/bulk/go.sum +++ b/_examples/bulk/go.sum @@ -11,21 +11,31 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= +golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/_examples/bulk/indexer.go b/_examples/bulk/indexer.go index 7c47268423..f0151788da 100644 --- a/_examples/bulk/indexer.go +++ b/_examples/bulk/indexer.go @@ -41,9 +41,9 @@ import ( "github.com/cenkalti/backoff/v4" "github.com/dustin/go-humanize" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" + "github.com/elastic/go-elasticsearch/v9/esutil" ) type Article struct { diff --git a/_examples/bulk/kafka/consumer/consumer.go b/_examples/bulk/kafka/consumer/consumer.go index 08cd2eb25f..6555aa35db 100644 --- a/_examples/bulk/kafka/consumer/consumer.go +++ b/_examples/bulk/kafka/consumer/consumer.go @@ -26,7 +26,7 @@ import ( "github.com/segmentio/kafka-go" "go.elastic.co/apm" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9/esutil" ) type Consumer struct { diff --git a/_examples/bulk/kafka/go.mod b/_examples/bulk/kafka/go.mod index d4e9494411..c1451812aa 100644 --- a/_examples/bulk/kafka/go.mod +++ b/_examples/bulk/kafka/go.mod @@ -1,13 +1,13 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/bulk/kafka +module github.com/elastic/go-elasticsearch/v9/_examples/bulk/kafka -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../../.. +replace github.com/elastic/go-elasticsearch/v9 => ../../.. require ( - github.com/elastic/go-elasticsearch/v8 v8.0.0-20210817150010-57d659deaca7 + github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 github.com/segmentio/kafka-go v0.4.25 go.elastic.co/apm v1.14.0 ) @@ -29,9 +29,9 @@ require ( github.com/prometheus/procfs v0.0.3 // indirect github.com/santhosh-tekuri/jsonschema v1.2.4 // indirect go.elastic.co/fastjson v1.1.0 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 // indirect golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect golang.org/x/sys v0.19.0 // indirect diff --git a/_examples/bulk/kafka/go.sum b/_examples/bulk/kafka/go.sum index 0b5f141175..fb4d87ec79 100644 --- a/_examples/bulk/kafka/go.sum +++ b/_examples/bulk/kafka/go.sum @@ -71,12 +71,15 @@ go.elastic.co/fastjson v1.1.0 h1:3MrGBWWVIxe/xvsbpghtkFoPciPhOCmjsR/HfwEeQR4= go.elastic.co/fastjson v1.1.0/go.mod h1:boNGISWMjQsUPy/t6yqt2/1Wx4YNPSe+mZjlyw9vKKI= go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190506204251-e1dfcc566284/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= diff --git a/_examples/bulk/kafka/kafka.go b/_examples/bulk/kafka/kafka.go index e5a77de315..8bf56ce86d 100644 --- a/_examples/bulk/kafka/kafka.go +++ b/_examples/bulk/kafka/kafka.go @@ -37,14 +37,14 @@ import ( "github.com/dustin/go-humanize" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esutil" "go.elastic.co/apm" "go.elastic.co/apm/module/apmelasticsearch" - "github.com/elastic/go-elasticsearch/v8/_examples/bulk/kafka/consumer" - "github.com/elastic/go-elasticsearch/v8/_examples/bulk/kafka/producer" + "github.com/elastic/go-elasticsearch/v9/_examples/bulk/kafka/consumer" + "github.com/elastic/go-elasticsearch/v9/_examples/bulk/kafka/producer" ) var ( diff --git a/_examples/cloudfunction/function.go b/_examples/cloudfunction/function.go index c592c307d9..3a3e98a89c 100644 --- a/_examples/cloudfunction/function.go +++ b/_examples/cloudfunction/function.go @@ -19,18 +19,17 @@ // // Deploy the function with the gcloud command: // -// $ go mod vendor -// $ gcloud functions deploy clusterstatus \ -// --entry-point Health \ -// --runtime go111 \ -// --trigger-http \ -// --memory 128MB \ -// --set-env-vars ELASTICSEARCH_URL=https://...cloud.es.io:9243 +// $ go mod vendor +// $ gcloud functions deploy clusterstatus \ +// --entry-point Health \ +// --runtime go111 \ +// --trigger-http \ +// --memory 128MB \ +// --set-env-vars ELASTICSEARCH_URL=https://...cloud.es.io:9243 // // Invoke your function over HTTP: // -// $ curl https://...cloudfunctions.net/clusterstatus -// +// $ curl https://...cloudfunctions.net/clusterstatus package clusterstatus import ( @@ -39,13 +38,12 @@ import ( "log" "net/http" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" ) // ES holds a reference to the Elasticsearch client // // See: https://cloud.google.com/functions/docs/concepts/go-runtime#one-time_initialization -// var ES *elasticsearch.Client func init() { @@ -59,7 +57,6 @@ func init() { } // Health returns the status of the cluster (red, yellow, green). -// func Health(w http.ResponseWriter, r *http.Request) { var j map[string]interface{} diff --git a/_examples/cloudfunction/function_test.go b/_examples/cloudfunction/function_test.go index 3ce7dd63e3..f1c1f7cbdb 100644 --- a/_examples/cloudfunction/function_test.go +++ b/_examples/cloudfunction/function_test.go @@ -25,9 +25,9 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" - "github.com/elastic/go-elasticsearch/v8/_examples/clusterstatus" + "github.com/elastic/go-elasticsearch/v9/_examples/clusterstatus" ) // Mock transport replaces the HTTP transport for tests diff --git a/_examples/cloudfunction/go.mod b/_examples/cloudfunction/go.mod index 279db98966..6240f70f62 100644 --- a/_examples/cloudfunction/go.mod +++ b/_examples/cloudfunction/go.mod @@ -1,18 +1,19 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/clusterstatus +module github.com/elastic/go-elasticsearch/v9/_examples/clusterstatus -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/elastic/go-elasticsearch/v9 => ../.. -require github.com/elastic/go-elasticsearch/v8 v8.0.0-20210817150010-57d659deaca7 +require github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 require ( github.com/elastic/elastic-transport-go/v8 v8.6.1 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect ) diff --git a/_examples/cloudfunction/go.sum b/_examples/cloudfunction/go.sum index fddb85edcb..f3561b3611 100644 --- a/_examples/cloudfunction/go.sum +++ b/_examples/cloudfunction/go.sum @@ -7,21 +7,31 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= +golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/_examples/configuration.go b/_examples/configuration.go index 4a616ed615..b78abc3c7e 100644 --- a/_examples/configuration.go +++ b/_examples/configuration.go @@ -27,7 +27,7 @@ import ( "net/http" "time" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" ) func main() { diff --git a/_examples/customization.go b/_examples/customization.go index 513f1ff16d..1aa631806c 100644 --- a/_examples/customization.go +++ b/_examples/customization.go @@ -29,7 +29,7 @@ import ( "sync" "sync/atomic" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" ) // This example demonstrates how to provide a custom transport implementation to the client @@ -41,13 +41,11 @@ import ( // // Since it implements the `http.RoundTripper` interface, it can be passed // to the client as a custom HTTP transport implementation. -// type CountingTransport struct { count uint64 } // RoundTrip executes a request and returns a response. -// func (t *CountingTransport) RoundTrip(req *http.Request) (*http.Response, error) { var b bytes.Buffer diff --git a/_examples/encoding/benchmark_test.go b/_examples/encoding/benchmark_test.go index 7c18e6a82b..0e1fc2a643 100644 --- a/_examples/encoding/benchmark_test.go +++ b/_examples/encoding/benchmark_test.go @@ -29,8 +29,8 @@ import ( "github.com/mailru/easyjson" "github.com/tidwall/gjson" - "github.com/elastic/go-elasticsearch/v8/_examples/encoding/model" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9/_examples/encoding/model" + "github.com/elastic/go-elasticsearch/v9/esutil" ) func BenchmarkEncode(b *testing.B) { diff --git a/_examples/encoding/easyjson.go b/_examples/encoding/easyjson.go index a98904b99c..fd7c3f966a 100644 --- a/_examples/encoding/easyjson.go +++ b/_examples/encoding/easyjson.go @@ -26,12 +26,12 @@ import ( "strings" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" "github.com/fatih/color" "github.com/mailru/easyjson" - "github.com/elastic/go-elasticsearch/v8/_examples/encoding/model" + "github.com/elastic/go-elasticsearch/v9/_examples/encoding/model" ) var ( @@ -160,7 +160,6 @@ func main() { // printErrorResponse decodes the response from Elasticsearch // and prints it formatted to STDOUT. -// func printErrorResponse(res *esapi.Response) { bold.Printf("[%s] ", res.Status()) diff --git a/_examples/encoding/gjson.go b/_examples/encoding/gjson.go index 6e3d648a3e..6aa9e66826 100644 --- a/_examples/encoding/gjson.go +++ b/_examples/encoding/gjson.go @@ -24,7 +24,7 @@ import ( "log" "strings" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" "github.com/fatih/color" "github.com/tidwall/gjson" ) diff --git a/_examples/encoding/go.mod b/_examples/encoding/go.mod index e819475cda..796989ea79 100644 --- a/_examples/encoding/go.mod +++ b/_examples/encoding/go.mod @@ -1,13 +1,13 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/encoding +module github.com/elastic/go-elasticsearch/v9/_examples/encoding -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/elastic/go-elasticsearch/v9 => ../.. require ( - github.com/elastic/go-elasticsearch/v8 v8.0.0-20210817150010-57d659deaca7 + github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 github.com/fatih/color v1.13.0 github.com/mailru/easyjson v0.7.7 github.com/tidwall/gjson v1.9.3 @@ -22,8 +22,9 @@ require ( github.com/mattn/go-isatty v0.0.14 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.0 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect golang.org/x/sys v0.19.0 // indirect ) diff --git a/_examples/encoding/go.sum b/_examples/encoding/go.sum index c8e73eee04..74f1dd5981 100644 --- a/_examples/encoding/go.sum +++ b/_examples/encoding/go.sum @@ -9,10 +9,14 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mattn/go-colorable v0.1.9 h1:sqDoxXbdeALODt0DAeJCVp38ps9ZogZEAXjus69YV3U= @@ -22,26 +26,32 @@ github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9 github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/tidwall/gjson v1.9.3 h1:hqzS9wAHMO+KVBBkLxYdkEeeFHuqr95GfClRLKlgK0E= github.com/tidwall/gjson v1.9.3/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs= github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/_examples/encoding/jsonreader.go b/_examples/encoding/jsonreader.go index dc24c6c682..47b071d192 100644 --- a/_examples/encoding/jsonreader.go +++ b/_examples/encoding/jsonreader.go @@ -20,9 +20,9 @@ package main import ( "log" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" + "github.com/elastic/go-elasticsearch/v9/esutil" ) func init() { diff --git a/_examples/extension/go.mod b/_examples/extension/go.mod index 120abf10af..78a8532d44 100644 --- a/_examples/extension/go.mod +++ b/_examples/extension/go.mod @@ -1,20 +1,21 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/extension +module github.com/elastic/go-elasticsearch/v9/_examples/extension -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/elastic/go-elasticsearch/v9 => ../.. require ( github.com/elastic/elastic-transport-go/v8 v8.6.1 - github.com/elastic/go-elasticsearch/v8 v8.13.1 + github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 ) require ( github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect ) diff --git a/_examples/extension/go.sum b/_examples/extension/go.sum index fddb85edcb..f3561b3611 100644 --- a/_examples/extension/go.sum +++ b/_examples/extension/go.sum @@ -7,21 +7,31 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= +golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/_examples/extension/main.go b/_examples/extension/main.go index a49c804050..80d00af8f4 100644 --- a/_examples/extension/main.go +++ b/_examples/extension/main.go @@ -32,27 +32,24 @@ import ( "os" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" ) const port = "9209" // ExtendedClient allows to call regular and custom APIs. -// type ExtendedClient struct { *elasticsearch.Client Custom *ExtendedAPI } // ExtendedAPI contains custom APIs. -// type ExtendedAPI struct { *elasticsearch.Client } // Example calls a custom REST API, "/_cat/example". -// func (c *ExtendedAPI) Example() (*esapi.Response, error) { req, _ := http.NewRequest("GET", "/_cat/example", nil) // errcheck exclude diff --git a/_examples/fasthttp/cmd/main.go b/_examples/fasthttp/cmd/main.go index d359b9a57a..3ed7ba1440 100644 --- a/_examples/fasthttp/cmd/main.go +++ b/_examples/fasthttp/cmd/main.go @@ -26,8 +26,8 @@ import ( "strings" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/_examples/fasthttp" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/_examples/fasthttp" ) var ( diff --git a/_examples/fasthttp/fasthttp_benchmark_test.go b/_examples/fasthttp/fasthttp_benchmark_test.go index d7d7695a1a..71d711f85d 100644 --- a/_examples/fasthttp/fasthttp_benchmark_test.go +++ b/_examples/fasthttp/fasthttp_benchmark_test.go @@ -20,8 +20,8 @@ package fasthttp_test import ( "testing" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/_examples/fasthttp" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/_examples/fasthttp" ) func BenchmarkHTTPClient(b *testing.B) { diff --git a/_examples/fasthttp/go.mod b/_examples/fasthttp/go.mod index d4b0424e9c..98f19c3c4f 100644 --- a/_examples/fasthttp/go.mod +++ b/_examples/fasthttp/go.mod @@ -1,13 +1,13 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/fasthttp +module github.com/elastic/go-elasticsearch/v9/_examples/fasthttp -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/elastic/go-elasticsearch/v9 => ../.. require ( - github.com/elastic/go-elasticsearch/v8 v8.0.0-20210817150010-57d659deaca7 + github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 github.com/valyala/fasthttp v1.34.0 ) @@ -18,7 +18,8 @@ require ( github.com/go-logr/stdr v1.2.2 // indirect github.com/klauspost/compress v1.15.0 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect ) diff --git a/_examples/fasthttp/go.sum b/_examples/fasthttp/go.sum index fe1fab2c05..1b42655c77 100644 --- a/_examples/fasthttp/go.sum +++ b/_examples/fasthttp/go.sum @@ -9,28 +9,36 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/klauspost/compress v1.15.0 h1:xqfchp4whNFxn5A4XFyyYtitiWI8Hy5EW59jEwcyL6U= github.com/klauspost/compress v1.15.0/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= github.com/valyala/fasthttp v1.34.0 h1:d3AAQJ2DRcxJYHm7OXNXtXt2as1vMDfxeIcFvhmGGm4= github.com/valyala/fasthttp v1.34.0/go.mod h1:epZA5N+7pY6ZaEKRmstzOuYJx9HI8DI1oaCGZpdH4h0= github.com/valyala/tcplisten v1.0.0 h1:rBHj/Xf+E1tRGZyWIWwJDiRY0zc1Js+CV5DqwacVSA8= github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= golang.org/x/crypto v0.0.0-20220214200702-86341886e292 h1:f+lwQ+GtmgoY+A2YaQxlSOnDjXcQ7ZRLWOHbC6HtRqE= golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= @@ -41,8 +49,8 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -51,5 +59,7 @@ golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e h1:FDhOuMEY4JVRztM/gsbk+IKUQ8kj74bxZrgw87eMMVc= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/_examples/go.mod b/_examples/go.mod index ad4b90e3ec..739d7ff9c5 100644 --- a/_examples/go.mod +++ b/_examples/go.mod @@ -1,18 +1,19 @@ module _examples -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../ +replace github.com/elastic/go-elasticsearch/v9 => ../ -require github.com/elastic/go-elasticsearch/v8 v8.0.0-00010101000000-000000000000 +require github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 require ( github.com/elastic/elastic-transport-go/v8 v8.6.1 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect ) diff --git a/_examples/go.sum b/_examples/go.sum index fddb85edcb..3a46dfb1b4 100644 --- a/_examples/go.sum +++ b/_examples/go.sum @@ -7,21 +7,23 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= +golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/_examples/instrumentation/apmelasticsearch.go b/_examples/instrumentation/apmelasticsearch.go index 56d2867fef..3de82f979e 100644 --- a/_examples/instrumentation/apmelasticsearch.go +++ b/_examples/instrumentation/apmelasticsearch.go @@ -35,7 +35,7 @@ import ( "github.com/fatih/color" "golang.org/x/crypto/ssh/terminal" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" "go.elastic.co/apm" "go.elastic.co/apm/module/apmelasticsearch" diff --git a/_examples/instrumentation/expvar.go b/_examples/instrumentation/expvar.go index 06f815be8c..9a1e588212 100644 --- a/_examples/instrumentation/expvar.go +++ b/_examples/instrumentation/expvar.go @@ -37,7 +37,7 @@ import ( "golang.org/x/crypto/ssh/terminal" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" ) var ( diff --git a/_examples/instrumentation/go.mod b/_examples/instrumentation/go.mod index cc4695fced..7f9f41dd99 100644 --- a/_examples/instrumentation/go.mod +++ b/_examples/instrumentation/go.mod @@ -1,14 +1,14 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/instrumentation/opencensus +module github.com/elastic/go-elasticsearch/v9/_examples/instrumentation/opencensus -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/elastic/go-elasticsearch/v9 => ../.. require ( github.com/elastic/elastic-transport-go/v8 v8.6.1 - github.com/elastic/go-elasticsearch/v8 v8.0.0-20191002063538-b491ce54d752 + github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 github.com/fatih/color v1.7.0 go.elastic.co/apm v1.11.0 go.elastic.co/apm/module/apmelasticsearch v1.5.0 @@ -30,9 +30,10 @@ require ( github.com/santhosh-tekuri/jsonschema v1.2.4 // indirect go.elastic.co/apm/module/apmhttp v1.5.0 // indirect go.elastic.co/fastjson v1.1.0 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect golang.org/x/sys v0.28.0 // indirect golang.org/x/term v0.27.0 // indirect howett.net/plist v0.0.0-20181124034731-591f970eefbb // indirect diff --git a/_examples/instrumentation/go.sum b/_examples/instrumentation/go.sum index a0efcde2f6..d1fd51eb03 100644 --- a/_examples/instrumentation/go.sum +++ b/_examples/instrumentation/go.sum @@ -42,8 +42,8 @@ github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5y github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/grpc-ecosystem/grpc-gateway v1.6.2 h1:8KyC64BiO8ndiGHY5DlFWWdangUPC9QHPakFRre/Ud0= github.com/grpc-ecosystem/grpc-gateway v1.6.2/go.mod h1:RSKVYQBd5MCa4OVpNdGskqpgL2+G+NZTnrVHpWWfpdw= github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA= @@ -52,12 +52,14 @@ github.com/joeshaw/multierror v0.0.0-20140124173710-69b34d4ec901 h1:rp+c0RAYOWj8 github.com/joeshaw/multierror v0.0.0-20140124173710-69b34d4ec901/go.mod h1:Z86h9688Y0wesXCyonoVr47MasHilkuLMqGhRZ4Hpak= github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1 h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mattn/go-colorable v0.1.0 h1:v2XXALHHh6zHfYTJ+cSkwtyffnaOyR1MXaA91mTrb8o= github.com/mattn/go-colorable v0.1.0/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs= @@ -82,14 +84,16 @@ github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R github.com/prometheus/procfs v0.0.0-20190425082905-87a4384529e0/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= github.com/prometheus/procfs v0.0.3 h1:CTwfnzjQ+8dS6MhHHu4YswVAD99sL2wjPqP+VkURmKE= github.com/prometheus/procfs v0.0.3/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/santhosh-tekuri/jsonschema v1.2.4 h1:hNhW8e7t+H1vgY+1QeEQpveR6D4+OwKPXCfD2aieJis= github.com/santhosh-tekuri/jsonschema v1.2.4/go.mod h1:TEAUOeZSmIxTTuHatJzrvARHiuO9LYd+cIxzgEHCQI4= github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/yuin/goldmark v1.1.27 h1:nqDD4MMMQA0lmWq03Z2/myGPYLQoXtmi0rGVs95ntbo= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= go.elastic.co/apm v1.5.0/go.mod h1:OdB9sPtM6Vt7oz3VXt7+KR96i9li74qrxBGHTQygFvk= @@ -104,14 +108,16 @@ go.elastic.co/fastjson v1.1.0 h1:3MrGBWWVIxe/xvsbpghtkFoPciPhOCmjsR/HfwEeQR4= go.elastic.co/fastjson v1.1.0/go.mod h1:boNGISWMjQsUPy/t6yqt2/1Wx4YNPSe+mZjlyw9vKKI= go.opencensus.io v0.19.0 h1:+jrnNy8MR4GZXvwF9PEuSyHxA4NaTf6601oNRwCSXq0= go.opencensus.io v0.19.0/go.mod h1:AYeH0+ZxYyghG8diqaaIq/9P3VgCCt5GF2ldCY4dkFg= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U= @@ -180,8 +186,9 @@ google.golang.org/grpc v1.16.0/go.mod h1:0JHn/cJsOMiMfNA9+DeHDlAU7KAAB5GDlYFpa9M google.golang.org/grpc v1.17.0 h1:TRJYBgMclJvGYn2rIMjj+h9KtMt5r1Ij7ODVRIZkwhk= google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/_examples/instrumentation/opencensus.go b/_examples/instrumentation/opencensus.go index bddad490cc..1f68e0142b 100644 --- a/_examples/instrumentation/opencensus.go +++ b/_examples/instrumentation/opencensus.go @@ -31,7 +31,7 @@ import ( "github.com/fatih/color" "golang.org/x/crypto/ssh/terminal" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" "go.opencensus.io/plugin/ochttp" "go.opencensus.io/stats/view" @@ -58,11 +58,9 @@ func init() { } // ConsoleExporter prints stats and traces to STDOUT. -// type ConsoleExporter struct{} // ExportView prints the stats. -// func (e *ConsoleExporter) ExportView(vd *view.Data) { fmt.Println(strings.Repeat("─", tWidth)) for _, row := range vd.Rows { @@ -89,7 +87,6 @@ func (e *ConsoleExporter) ExportView(vd *view.Data) { } // ExportSpan prints the traces. -// func (e *ConsoleExporter) ExportSpan(sd *trace.SpanData) { var c *color.Color if sd.Status.Code > 0 { diff --git a/_examples/logging/custom.go b/_examples/logging/custom.go index 898ae4d750..6a047c2219 100644 --- a/_examples/logging/custom.go +++ b/_examples/logging/custom.go @@ -33,7 +33,7 @@ import ( "github.com/rs/zerolog" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" ) // CustomLogger implements the elastictransport.Logger interface. diff --git a/_examples/logging/default.go b/_examples/logging/default.go index b0e11fc52d..7acca8762e 100644 --- a/_examples/logging/default.go +++ b/_examples/logging/default.go @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" ) func main() { diff --git a/_examples/logging/go.mod b/_examples/logging/go.mod index 699aea2671..cfbfbd535f 100644 --- a/_examples/logging/go.mod +++ b/_examples/logging/go.mod @@ -1,14 +1,14 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/logging +module github.com/elastic/go-elasticsearch/v9/_examples/logging -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/elastic/go-elasticsearch/v9 => ../.. require ( github.com/elastic/elastic-transport-go/v8 v8.6.1 - github.com/elastic/go-elasticsearch/v8 v8.0.0-00010101000000-000000000000 + github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 github.com/rs/zerolog v1.32.0 ) @@ -17,8 +17,8 @@ require ( github.com/go-logr/stdr v1.2.2 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.19 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect golang.org/x/sys v0.19.0 // indirect ) diff --git a/_examples/logging/go.sum b/_examples/logging/go.sum index c1c14e8d4e..9b85d9ba7a 100644 --- a/_examples/logging/go.sum +++ b/_examples/logging/go.sum @@ -13,6 +13,10 @@ github.com/godbus/dbus/v5 v5.0.4 h1:9349emZab16e7zQvpmsbtjc18ykshndd8y2PG3sgJbA= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= @@ -28,14 +32,24 @@ github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0= github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= diff --git a/_examples/main.go b/_examples/main.go index 5503202de2..6186d80779 100644 --- a/_examples/main.go +++ b/_examples/main.go @@ -15,9 +15,6 @@ // specific language governing permissions and limitations // under the License. -//go:build ignore -// +build ignore - // This example demonstrates a basic usage of the Elasticsearch Go client. // // It fetches the version information from the cluster, indexes a couple @@ -34,8 +31,8 @@ import ( "strings" "sync" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" ) func main() { diff --git a/_examples/security/go.mod b/_examples/security/go.mod index 5a15d4de37..9f7e817f4d 100644 --- a/_examples/security/go.mod +++ b/_examples/security/go.mod @@ -1,18 +1,18 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/security +module github.com/elastic/go-elasticsearch/v9/_examples/security -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/elastic/go-elasticsearch/v9 => ../.. -require github.com/elastic/go-elasticsearch/v8 v8.0.0-00010101000000-000000000000 +require github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 require ( github.com/elastic/elastic-transport-go/v8 v8.6.1 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect ) diff --git a/_examples/security/go.sum b/_examples/security/go.sum index fddb85edcb..4bf70831c4 100644 --- a/_examples/security/go.sum +++ b/_examples/security/go.sum @@ -9,18 +9,34 @@ github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= +golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/_examples/security/tls_configure_ca.go b/_examples/security/tls_configure_ca.go index 78d7722b93..c90cc91987 100644 --- a/_examples/security/tls_configure_ca.go +++ b/_examples/security/tls_configure_ca.go @@ -27,7 +27,7 @@ import ( "log" "net/http" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" ) func main() { diff --git a/_examples/security/tls_with_ca.go b/_examples/security/tls_with_ca.go index 2abca15c2e..52f94afb71 100644 --- a/_examples/security/tls_with_ca.go +++ b/_examples/security/tls_with_ca.go @@ -25,7 +25,7 @@ import ( "io/ioutil" "log" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" ) func main() { diff --git a/_examples/xkcdsearch/cmd/xkcd/commands/index.go b/_examples/xkcdsearch/cmd/xkcd/commands/index.go index 6c67b4ed95..1406af5397 100644 --- a/_examples/xkcdsearch/cmd/xkcd/commands/index.go +++ b/_examples/xkcdsearch/cmd/xkcd/commands/index.go @@ -31,9 +31,9 @@ import ( "github.com/rs/zerolog" "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" - "github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch" + "github.com/elastic/go-elasticsearch/v9/_examples/xkcdsearch" ) var ( @@ -103,7 +103,6 @@ var indexCmd = &cobra.Command{ } // Crawler allows to crawl and index comics from xkcd.com. -// type Crawler struct { store *xkcdsearch.Store log zerolog.Logger @@ -117,7 +116,6 @@ type Crawler struct { } // Run launches the crawler. -// func (c *Crawler) Run() { var ( wg sync.WaitGroup @@ -162,7 +160,6 @@ func (c *Crawler) Run() { } // ProcessURL parses the JSON data and stores document. -// func (c *Crawler) ProcessURL(url string) (doc xkcdsearch.Document) { c.log.Debug().Str("URL", url).Msg("Processing URL") @@ -212,7 +209,6 @@ func (c *Crawler) ProcessURL(url string) (doc xkcdsearch.Document) { } // NextURL returns the next URL or an empty string. -// func (c *Crawler) NextURL(url string) string { return c.nextURL(c, url) } diff --git a/_examples/xkcdsearch/cmd/xkcd/commands/search.go b/_examples/xkcdsearch/cmd/xkcd/commands/search.go index b35effc408..9aeb067332 100644 --- a/_examples/xkcdsearch/cmd/xkcd/commands/search.go +++ b/_examples/xkcdsearch/cmd/xkcd/commands/search.go @@ -26,9 +26,9 @@ import ( "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" - "github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch" + "github.com/elastic/go-elasticsearch/v9/_examples/xkcdsearch" ) func init() { @@ -76,7 +76,6 @@ var searchCmd = &cobra.Command{ } // Search allows to get and display results matching query. -// type Search struct { store *xkcdsearch.Store reHighlight *regexp.Regexp diff --git a/_examples/xkcdsearch/cmd/xkcd/commands/server.go b/_examples/xkcdsearch/cmd/xkcd/commands/server.go index 90a4bb1aca..efd1359dc9 100644 --- a/_examples/xkcdsearch/cmd/xkcd/commands/server.go +++ b/_examples/xkcdsearch/cmd/xkcd/commands/server.go @@ -24,9 +24,9 @@ import ( "github.com/rs/zerolog" "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" - "github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch" + "github.com/elastic/go-elasticsearch/v9/_examples/xkcdsearch" ) var ( diff --git a/_examples/xkcdsearch/cmd/xkcd/main.go b/_examples/xkcdsearch/cmd/xkcd/main.go index e7b994370f..634ff17f16 100644 --- a/_examples/xkcdsearch/cmd/xkcd/main.go +++ b/_examples/xkcdsearch/cmd/xkcd/main.go @@ -17,7 +17,7 @@ package main -import "github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch/cmd/xkcd/commands" +import "github.com/elastic/go-elasticsearch/v9/_examples/xkcdsearch/cmd/xkcd/commands" func main() { commands.Execute() diff --git a/_examples/xkcdsearch/go.mod b/_examples/xkcdsearch/go.mod index 973a39fa62..2694031251 100644 --- a/_examples/xkcdsearch/go.mod +++ b/_examples/xkcdsearch/go.mod @@ -1,13 +1,13 @@ -module github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch +module github.com/elastic/go-elasticsearch/v9/_examples/xkcdsearch -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../.. +replace github.com/elastic/go-elasticsearch/v9 => ../.. require ( - github.com/elastic/go-elasticsearch/v8 v8.0.0-20210817150010-57d659deaca7 + github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 github.com/rs/zerolog v1.11.0 github.com/spf13/cobra v0.0.3 golang.org/x/crypto v0.17.0 @@ -19,9 +19,10 @@ require ( github.com/go-logr/stdr v1.2.2 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect github.com/spf13/pflag v1.0.3 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect golang.org/x/sys v0.19.0 // indirect golang.org/x/term v0.15.0 // indirect ) diff --git a/_examples/xkcdsearch/go.sum b/_examples/xkcdsearch/go.sum index da6a5d0690..381d0592cc 100644 --- a/_examples/xkcdsearch/go.sum +++ b/_examples/xkcdsearch/go.sum @@ -7,28 +7,36 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/rs/zerolog v1.11.0 h1:DRuq/S+4k52uJzBQciUcofXx45GrMC6yrEbb/CoK6+M= github.com/rs/zerolog v1.11.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= github.com/spf13/cobra v0.0.3 h1:ZlrZ4XsMRm04Fr5pSFxBgfND2EBVa1nLpiy1stUsX/8= github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg= github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M= @@ -39,5 +47,7 @@ golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4= golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/_examples/xkcdsearch/store.go b/_examples/xkcdsearch/store.go index 9c466e37d7..c72ff0337f 100644 --- a/_examples/xkcdsearch/store.go +++ b/_examples/xkcdsearch/store.go @@ -25,19 +25,17 @@ import ( "io" "strings" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" ) // SearchResults wraps the Elasticsearch search response. -// type SearchResults struct { Total int `json:"total"` Hits []*Hit `json:"hits"` } // Hit wraps the document returned in search response. -// type Hit struct { Document URL string `json:"url"` @@ -50,21 +48,18 @@ type Hit struct { } // StoreConfig configures the store. -// type StoreConfig struct { Client *elasticsearch.Client IndexName string } // Store allows to index and search documents. -// type Store struct { es *elasticsearch.Client indexName string } // NewStore returns a new instance of the store. -// func NewStore(c StoreConfig) (*Store, error) { indexName := c.IndexName if indexName == "" { @@ -76,7 +71,6 @@ func NewStore(c StoreConfig) (*Store, error) { } // CreateIndex creates a new index with mapping. -// func (s *Store) CreateIndex(mapping string) error { res, err := s.es.Indices.Create(s.indexName, s.es.Indices.Create.WithBody(strings.NewReader(mapping))) if err != nil { @@ -89,7 +83,6 @@ func (s *Store) CreateIndex(mapping string) error { } // Create indexes a new document into store. -// func (s *Store) Create(item *Document) error { payload, err := json.Marshal(item) if err != nil { @@ -119,7 +112,6 @@ func (s *Store) Create(item *Document) error { } // Exists returns true when a document with id already exists in the store. -// func (s *Store) Exists(id string) (bool, error) { res, err := s.es.Exists(s.indexName, id) if err != nil { @@ -136,7 +128,6 @@ func (s *Store) Exists(id string) (bool, error) { } // Search returns results matching a query, paginated by after. -// func (s *Store) Search(query string, after ...string) (*SearchResults, error) { var results SearchResults diff --git a/_examples/xkcdsearch/store_test.go b/_examples/xkcdsearch/store_test.go index fdda0d3912..5f515f7319 100644 --- a/_examples/xkcdsearch/store_test.go +++ b/_examples/xkcdsearch/store_test.go @@ -28,9 +28,9 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" - "github.com/elastic/go-elasticsearch/v8/_examples/xkcdsearch" + "github.com/elastic/go-elasticsearch/v9/_examples/xkcdsearch" ) var ( diff --git a/elasticsearch.go b/elasticsearch.go index 8434bd3f52..5654680598 100644 --- a/elasticsearch.go +++ b/elasticsearch.go @@ -32,10 +32,10 @@ import ( "sync" "time" - "github.com/elastic/go-elasticsearch/v8/typedapi" + "github.com/elastic/go-elasticsearch/v9/typedapi" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/internal/version" + "github.com/elastic/go-elasticsearch/v9/esapi" + "github.com/elastic/go-elasticsearch/v9/internal/version" "github.com/elastic/elastic-transport-go/v8/elastictransport" tpversion "github.com/elastic/elastic-transport-go/v8/elastictransport/version" @@ -52,7 +52,7 @@ const ( // each request to Elasticsearch. HeaderClientMeta = "x-elastic-client-meta" - compatibilityHeader = "application/vnd.elasticsearch+json;compatible-with=8" + compatibilityHeader = "application/vnd.elasticsearch+json;compatible-with=9" ) var ( diff --git a/elasticsearch_benchmark_test.go b/elasticsearch_benchmark_test.go index 2317002cd9..24239fd79b 100644 --- a/elasticsearch_benchmark_test.go +++ b/elasticsearch_benchmark_test.go @@ -22,14 +22,16 @@ package elasticsearch_test import ( "context" + "github.com/elastic/go-elasticsearch/v9/typedapi/esdsl" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" "io/ioutil" "net/http" "strconv" "strings" "testing" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" ) var defaultResponse = http.Response{ @@ -239,3 +241,59 @@ func BenchmarkClientAPI(b *testing.B) { } }) } + +type mockTransp struct { + RoundTripFunc func(request *http.Request) (*http.Response, error) +} + +func (m mockTransp) RoundTrip(request *http.Request) (*http.Response, error) { + return m.RoundTripFunc(request) +} + +func BenchmarkAllocsSearch(t *testing.B) { + t.Run("struct search", func(b *testing.B) { + c, _ := elasticsearch.NewTypedClient(elasticsearch.Config{ + Transport: &mockTransp{ + RoundTripFunc: func(request *http.Request) (*http.Response, error) { + return &http.Response{ + Header: http.Header{"X-Elastic-Product": []string{"Elasticsearch"}}, + StatusCode: http.StatusOK, + Status: "OK", + Body: ioutil.NopCloser(strings.NewReader("{}")), + }, nil + }, + }, + }) + + for i := 0; i < b.N; i++ { + s := c.Search() + s.Index("foo") + s.Query(&types.Query{ + MatchAll: types.NewMatchAllQuery(), + }) + s.Do(context.Background()) + } + }) + + t.Run("esdsl search", func(b *testing.B) { + c, _ := elasticsearch.NewTypedClient(elasticsearch.Config{ + Transport: &mockTransp{ + RoundTripFunc: func(request *http.Request) (*http.Response, error) { + return &http.Response{ + Header: http.Header{"X-Elastic-Product": []string{"Elasticsearch"}}, + StatusCode: http.StatusOK, + Status: "OK", + Body: ioutil.NopCloser(strings.NewReader("{}")), + }, nil + }, + }, + }) + + for i := 0; i < b.N; i++ { + s := c.Search() + s.Index("foo") + s.Query(esdsl.NewMatchAllQuery()) + s.Do(context.Background()) + } + }) +} diff --git a/elasticsearch_example_test.go b/elasticsearch_example_test.go index 68ea52748b..05af5fa725 100644 --- a/elasticsearch_example_test.go +++ b/elasticsearch_example_test.go @@ -29,7 +29,7 @@ import ( "time" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" ) func init() { @@ -73,7 +73,7 @@ func ExampleNewClient() { } func ExampleNewClient_logger() { - // import "github.com/elastic/go-elasticsearch/v8/elastictransport" + // import "github.com/elastic/go-elasticsearch/v9/elastictransport" // Use one of the bundled loggers: // diff --git a/elasticsearch_internal_test.go b/elasticsearch_internal_test.go index 952f1a0930..3b23b353d3 100644 --- a/elasticsearch_internal_test.go +++ b/elasticsearch_internal_test.go @@ -27,8 +27,8 @@ import ( "crypto/x509" "encoding/base64" "errors" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/esapi" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" "io" "io/ioutil" "net/http" @@ -646,7 +646,7 @@ func TestCompatibilityHeader(t *testing.T) { bodyPresent: false, envVar: true, configVar: false, - expectsHeader: []string{"application/vnd.elasticsearch+json;compatible-with=8"}, + expectsHeader: []string{"application/vnd.elasticsearch+json;compatible-with=9"}, }, { name: "Compatibility header enabled with body with env var", @@ -654,7 +654,7 @@ func TestCompatibilityHeader(t *testing.T) { bodyPresent: true, envVar: true, configVar: false, - expectsHeader: []string{"application/vnd.elasticsearch+json;compatible-with=8"}, + expectsHeader: []string{"application/vnd.elasticsearch+json;compatible-with=9"}, }, { name: "Compatibility header enabled in conf", @@ -662,7 +662,7 @@ func TestCompatibilityHeader(t *testing.T) { bodyPresent: false, envVar: false, configVar: true, - expectsHeader: []string{"application/vnd.elasticsearch+json;compatible-with=8"}, + expectsHeader: []string{"application/vnd.elasticsearch+json;compatible-with=9"}, }, { name: "Compatibility header enabled with body in conf", @@ -670,7 +670,7 @@ func TestCompatibilityHeader(t *testing.T) { bodyPresent: true, envVar: false, configVar: true, - expectsHeader: []string{"application/vnd.elasticsearch+json;compatible-with=8"}, + expectsHeader: []string{"application/vnd.elasticsearch+json;compatible-with=9"}, }, } diff --git a/esapi/doc.go b/esapi/doc.go index d573b88b46..404a1650db 100644 --- a/esapi/doc.go +++ b/esapi/doc.go @@ -76,10 +76,10 @@ See the documentation for each API function or struct at https://pkg.go.dev/github.com/elastic/go-elasticsearch, or locally by: - go doc github.com/elastic/go-elasticsearch/v8/esapi Index - go doc github.com/elastic/go-elasticsearch/v8/esapi IndexRequest + go doc github.com/elastic/go-elasticsearch/v9/esapi Index + go doc github.com/elastic/go-elasticsearch/v9/esapi IndexRequest -Response +# Response The esapi.Response type is a lightweight wrapper around http.Response. @@ -93,7 +93,7 @@ The Response type implements a couple of convenience methods for accessing the status, checking an error status code or printing the response body for debugging purposes. -Additional Information +# Additional Information See the Elasticsearch documentation at https://www.elastic.co/guide/en/elasticsearch/reference/master/api-conventions.html for detailed information @@ -107,6 +107,5 @@ https://github.com/elastic/go-elasticsearch/tree/master/internal/cmd/generate/co The API is tested by integration tests common to all Elasticsearch official clients, generated from the source at https://github.com/elastic/elasticsearch/tree/master/rest-api-spec/src/main/resources/rest-api-spec/test. The generator is provided by the internal package available at internal/cmd/generate/commands/gentests. - */ package esapi diff --git a/esapi/esapi.go b/esapi/esapi.go index 12e39bb36b..3c5d189a67 100644 --- a/esapi/esapi.go +++ b/esapi/esapi.go @@ -23,7 +23,7 @@ import ( "time" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/internal/version" + "github.com/elastic/go-elasticsearch/v9/internal/version" ) // Version returns the package version as a string. diff --git a/esapi/esapi.response_example_test.go b/esapi/esapi.response_example_test.go index 6b5452d0dd..03f36639ab 100644 --- a/esapi/esapi.response_example_test.go +++ b/esapi/esapi.response_example_test.go @@ -20,7 +20,7 @@ package esapi_test import ( "log" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" ) func ExampleResponse_IsError() { diff --git a/esapi/esapi_benchmark_test.go b/esapi/esapi_benchmark_test.go index 3024b0c877..fd487629c9 100644 --- a/esapi/esapi_benchmark_test.go +++ b/esapi/esapi_benchmark_test.go @@ -25,8 +25,8 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" ) // TODO(karmi): Refactor into a shared mock/testing package diff --git a/esapi/test/go.mod b/esapi/test/go.mod index 8b569f2176..91ef4b0dac 100644 --- a/esapi/test/go.mod +++ b/esapi/test/go.mod @@ -1,13 +1,7 @@ -module github.com/elastic/go-elasticsearch/v8/esapi/test +module github.com/elastic/go-elasticsearch/v9/esapi/test -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.24.2 -replace github.com/elastic/go-elasticsearch/v8 => ../../ - -require ( - github.com/elastic/elastic-transport-go/v8 v8.6.1 - github.com/elastic/go-elasticsearch/v8 v8.0.0-20210817150010-57d659deaca7 - gopkg.in/yaml.v2 v2.4.0 -) +replace github.com/elastic/go-elasticsearch/v9 => ../../ diff --git a/esutil/bulk_indexer.go b/esutil/bulk_indexer.go index 0da910e6af..8faaa6459d 100644 --- a/esutil/bulk_indexer.go +++ b/esutil/bulk_indexer.go @@ -30,8 +30,8 @@ import ( "sync/atomic" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" ) // BulkIndexer represents a parallel, asynchronous, efficient indexer for Elasticsearch. diff --git a/esutil/bulk_indexer_benchmark_test.go b/esutil/bulk_indexer_benchmark_test.go index 8ec356cedf..d020423cf6 100644 --- a/esutil/bulk_indexer_benchmark_test.go +++ b/esutil/bulk_indexer_benchmark_test.go @@ -29,8 +29,8 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esutil" ) var mockResponseBody = `{ diff --git a/esutil/bulk_indexer_example_test.go b/esutil/bulk_indexer_example_test.go index 31e6209240..5e11036488 100644 --- a/esutil/bulk_indexer_example_test.go +++ b/esutil/bulk_indexer_example_test.go @@ -27,8 +27,8 @@ import ( "strings" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esutil" ) func ExampleNewBulkIndexer() { diff --git a/esutil/bulk_indexer_internal_test.go b/esutil/bulk_indexer_internal_test.go index e78621e39d..f89e9ba02c 100644 --- a/esutil/bulk_indexer_internal_test.go +++ b/esutil/bulk_indexer_internal_test.go @@ -41,8 +41,8 @@ import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" ) var defaultRoundTripFunc = func(*http.Request) (*http.Response, error) { diff --git a/esutil/json_reader_benchmark_test.go b/esutil/json_reader_benchmark_test.go index f9caa9e927..86611e6268 100644 --- a/esutil/json_reader_benchmark_test.go +++ b/esutil/json_reader_benchmark_test.go @@ -29,7 +29,7 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9/esutil" ) var _ = fmt.Print diff --git a/go.mod b/go.mod index 365c952e69..2a9f03e156 100644 --- a/go.mod +++ b/go.mod @@ -1,18 +1,18 @@ -module github.com/elastic/go-elasticsearch/v8 +module github.com/elastic/go-elasticsearch/v9 -go 1.22 +go 1.23 -toolchain go1.22.0 +toolchain go1.23.0 require ( github.com/elastic/elastic-transport-go/v8 v8.6.1 - go.opentelemetry.io/otel/trace v1.28.0 + go.opentelemetry.io/otel/trace v1.35.0 ) require ( github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - golang.org/x/sys v0.19.0 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect ) diff --git a/go.sum b/go.sum index fddb85edcb..3a46dfb1b4 100644 --- a/go.sum +++ b/go.sum @@ -7,21 +7,23 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= +golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q= +golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/internal/build/cmd/commands.go b/internal/build/cmd/commands.go index bc1551b322..3eb6c665ad 100644 --- a/internal/build/cmd/commands.go +++ b/internal/build/cmd/commands.go @@ -22,7 +22,7 @@ import ( "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" ) var rootCmd = &cobra.Command{ @@ -31,7 +31,6 @@ var rootCmd = &cobra.Command{ } // Execute launches the CLI application. -// func Execute() { if err := rootCmd.Execute(); err != nil { utils.PrintErr(err) @@ -40,7 +39,6 @@ func Execute() { } // RegisterCmd adds a command to rootCmd. -// func RegisterCmd(cmd *cobra.Command) { rootCmd.AddCommand(cmd) } diff --git a/internal/build/cmd/generate/commands/genexamples/command.go b/internal/build/cmd/generate/commands/genexamples/command.go index b4e72c9465..1a3501b132 100644 --- a/internal/build/cmd/generate/commands/genexamples/command.go +++ b/internal/build/cmd/generate/commands/genexamples/command.go @@ -22,7 +22,7 @@ import ( "bytes" "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/internal/build/cmd" + "github.com/elastic/go-elasticsearch/v9/internal/build/cmd" "io" "io/ioutil" "os" @@ -34,7 +34,7 @@ import ( "github.com/spf13/cobra" "golang.org/x/tools/imports" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" ) var ( @@ -110,7 +110,6 @@ var genexamplesDocCmd = &cobra.Command{ } // SrcCommand represents the command for generating Go source code. -// type SrcCommand struct { Input string Output string @@ -120,7 +119,6 @@ type SrcCommand struct { } // DocCommand represents the command for generating ASCIIDoc examples. -// type DocCommand struct { Input string Output string @@ -128,7 +126,6 @@ type DocCommand struct { } // Execute runs the command. -// func (cmd *SrcCommand) Execute() error { var ( processed int @@ -316,7 +313,6 @@ func (cmd *SrcCommand) processExample(e Example) error { } // Execute runs the command. -// func (cmd *DocCommand) Execute() error { var ( processed int diff --git a/internal/build/cmd/generate/commands/genexamples/generator.go b/internal/build/cmd/generate/commands/genexamples/generator.go index 746516f063..419eb10acb 100644 --- a/internal/build/cmd/generate/commands/genexamples/generator.go +++ b/internal/build/cmd/generate/commands/genexamples/generator.go @@ -25,14 +25,12 @@ import ( ) // SrcGenerator represents the generator for Go source files. -// type SrcGenerator struct { b bytes.Buffer Example Example } // DocGenerator represents the generator for Go source files. -// type DocGenerator struct { b bytes.Buffer Source io.Reader @@ -75,7 +73,7 @@ import ( "os" "testing" - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" ) var ( diff --git a/internal/build/cmd/generate/commands/genexamples/translator.go b/internal/build/cmd/generate/commands/genexamples/translator.go index d77e264a1e..3ff2fdd220 100644 --- a/internal/build/cmd/generate/commands/genexamples/translator.go +++ b/internal/build/cmd/generate/commands/genexamples/translator.go @@ -30,7 +30,7 @@ import ( "strings" "time" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" ) const testCheck = "\t" + `if err != nil { // SKIP @@ -42,7 +42,6 @@ const testCheck = "\t" + `if err != nil { // SKIP var _ = log.Print // ConsoleToGo contains translation rules. -// var ConsoleToGo = []TranslateRule{ { // ----- Info() ----------------------------------------------------------- @@ -1496,20 +1495,17 @@ var ConsoleToGo = []TranslateRule{ } // Translator represents converter from Console source code to Go source code. -// type Translator struct { Example Example } // TranslateRule represents a rule for translating code from Console to Go. -// type TranslateRule struct { Pattern string Func func(string) (string, error) } // IsTranslated returns true when a rule for translating the Console example to Go source code exists. -// func (t Translator) IsTranslated() bool { var translated bool @@ -1530,7 +1526,6 @@ func (t Translator) IsTranslated() bool { } // Translate returns the Console code translated to Go. -// func (t Translator) Translate() (string, error) { var out strings.Builder @@ -1579,14 +1574,12 @@ func (t Translator) Translate() (string, error) { } // Match returns true when the input matches the rule pattern. -// func (r TranslateRule) Match(input string) bool { matched, _ := regexp.MatchString(r.Pattern, input) return matched } // queryToParams extracts the URL params. -// func queryToParams(input string) (url.Values, error) { input = strings.TrimPrefix(input, "/") input = strings.TrimPrefix(input, "?") @@ -1594,7 +1587,6 @@ func queryToParams(input string) (url.Values, error) { } // paramsToArguments converts params to API arguments. -// func paramsToArguments(api string, params url.Values) (string, error) { var b strings.Builder @@ -1662,7 +1654,6 @@ func paramsToArguments(api string, params url.Values) (string, error) { } // bodyStringToReader reformats input JSON string and returns it wrapped in strings.NewReader. -// func bodyStringToReader(input string) (string, error) { var body bytes.Buffer err := json.Indent(&body, []byte(input), "\t\t", " ") diff --git a/internal/build/cmd/generate/commands/gensource/command.go b/internal/build/cmd/generate/commands/gensource/command.go index 53ddb47b50..fcbd36f2f9 100644 --- a/internal/build/cmd/generate/commands/gensource/command.go +++ b/internal/build/cmd/generate/commands/gensource/command.go @@ -20,7 +20,7 @@ package gensource import ( "bytes" "fmt" - "github.com/elastic/go-elasticsearch/v8/internal/build/cmd" + "github.com/elastic/go-elasticsearch/v9/internal/build/cmd" "io" "os" "path/filepath" @@ -29,7 +29,7 @@ import ( "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" ) var ( @@ -83,7 +83,6 @@ var gensourceCmd = &cobra.Command{ } // Command represents the "gensource" command. -// type Command struct { Input string Output string @@ -94,7 +93,6 @@ type Command struct { } // Execute runs the command. -// func (cmd *Command) Execute() (err error) { var inputFiles []string diff --git a/internal/build/cmd/generate/commands/gensource/debug.go b/internal/build/cmd/generate/commands/gensource/debug.go index 1b1a87b663..24f6f03f73 100644 --- a/internal/build/cmd/generate/commands/gensource/debug.go +++ b/internal/build/cmd/generate/commands/gensource/debug.go @@ -23,11 +23,10 @@ import ( "strings" "text/tabwriter" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" ) // DebugInfo returns information about the endpoint as a string. -// func (e *Endpoint) DebugInfo() string { var out strings.Builder w := tabwriter.NewWriter(&out, 0, 0, 1, ' ', 0) diff --git a/internal/build/cmd/generate/commands/gensource/generator.go b/internal/build/cmd/generate/commands/gensource/generator.go index 19a366e6b3..ffccc0e02c 100644 --- a/internal/build/cmd/generate/commands/gensource/generator.go +++ b/internal/build/cmd/generate/commands/gensource/generator.go @@ -26,7 +26,7 @@ import ( "golang.org/x/tools/imports" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" ) // Generator represents the "gensource" generator. diff --git a/internal/build/cmd/generate/commands/gensource/generator_test.go b/internal/build/cmd/generate/commands/gensource/generator_test.go index 13975af498..dac3772409 100644 --- a/internal/build/cmd/generate/commands/gensource/generator_test.go +++ b/internal/build/cmd/generate/commands/gensource/generator_test.go @@ -23,7 +23,7 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8/internal/build/cmd/generate/commands/gensource" + "github.com/elastic/go-elasticsearch/v9/internal/build/cmd/generate/commands/gensource" ) func TestGenerator(t *testing.T) { diff --git a/internal/build/cmd/generate/commands/gensource/model.go b/internal/build/cmd/generate/commands/gensource/model.go index e827f12e12..6a1e864899 100644 --- a/internal/build/cmd/generate/commands/gensource/model.go +++ b/internal/build/cmd/generate/commands/gensource/model.go @@ -28,7 +28,7 @@ import ( "gopkg.in/yaml.v2" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" ) var ( diff --git a/internal/build/cmd/generate/commands/genstruct/command.go b/internal/build/cmd/generate/commands/genstruct/command.go index 15aeba43c1..3e81619304 100644 --- a/internal/build/cmd/generate/commands/genstruct/command.go +++ b/internal/build/cmd/generate/commands/genstruct/command.go @@ -20,7 +20,7 @@ package genstruct import ( "bytes" "fmt" - "github.com/elastic/go-elasticsearch/v8/internal/build/cmd" + "github.com/elastic/go-elasticsearch/v9/internal/build/cmd" "go/types" "io" "os" @@ -32,7 +32,7 @@ import ( "github.com/spf13/cobra" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" ) var ( @@ -56,7 +56,7 @@ func init() { pkgNames = strings.Split(pkgNamesEnv, ",") } else { pkgNames = []string{ - "github.com/elastic/go-elasticsearch/v8/esapi", + "github.com/elastic/go-elasticsearch/v9/esapi", } } @@ -89,7 +89,6 @@ var genapiCmd = &cobra.Command{ } // Command represents the "genapi" command. -// type Command struct { Output string Gofmt bool @@ -98,7 +97,6 @@ type Command struct { } // Execute runs the command. -// func (cmd *Command) Execute() (err error) { EsVersion, err = utils.EsVersion("") if err != nil { diff --git a/internal/build/cmd/generate/commands/gentests/command.go b/internal/build/cmd/generate/commands/gentests/command.go index 80988a7616..c017eecaea 100644 --- a/internal/build/cmd/generate/commands/gentests/command.go +++ b/internal/build/cmd/generate/commands/gentests/command.go @@ -33,8 +33,8 @@ import ( "github.com/spf13/cobra" yaml "gopkg.in/yaml.v2" - "github.com/elastic/go-elasticsearch/v8/internal/build/cmd" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/build/cmd" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" ) var ( diff --git a/internal/build/cmd/generate/commands/gentests/debug.go b/internal/build/cmd/generate/commands/gentests/debug.go index 69adb4a0b7..4037387da1 100644 --- a/internal/build/cmd/generate/commands/gentests/debug.go +++ b/internal/build/cmd/generate/commands/gentests/debug.go @@ -21,11 +21,10 @@ import ( "fmt" "strings" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" ) // DebugInfo returns information about the endpoint as a string. -// func (tg TestSuite) DebugInfo() string { var out strings.Builder diff --git a/internal/build/cmd/generate/commands/gentests/gen_api_registry.go b/internal/build/cmd/generate/commands/gentests/gen_api_registry.go index e71d457fc6..93b0642b18 100644 --- a/internal/build/cmd/generate/commands/gentests/gen_api_registry.go +++ b/internal/build/cmd/generate/commands/gentests/gen_api_registry.go @@ -43,7 +43,7 @@ func init() { pkgNames = strings.Split(pkgNamesEnv, ",") } else { pkgNames = []string{ - "github.com/elastic/go-elasticsearch/v8/esapi", + "github.com/elastic/go-elasticsearch/v9/esapi", } } diff --git a/internal/build/cmd/generate/commands/gentests/generator.go b/internal/build/cmd/generate/commands/gentests/generator.go index 3e95b5538e..766ffafac0 100644 --- a/internal/build/cmd/generate/commands/gentests/generator.go +++ b/internal/build/cmd/generate/commands/gentests/generator.go @@ -217,8 +217,8 @@ import ( "testing" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" "github.com/elastic/elastic-transport-go/v8/elastictransport" ) diff --git a/internal/build/cmd/generate/commands/gentests/model.go b/internal/build/cmd/generate/commands/gentests/model.go index 243486a63f..e1f7eded8b 100644 --- a/internal/build/cmd/generate/commands/gentests/model.go +++ b/internal/build/cmd/generate/commands/gentests/model.go @@ -26,7 +26,7 @@ import ( "strconv" "strings" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" ) var reFilename = regexp.MustCompile(`\d*_?(.+)\.ya?ml`) @@ -143,7 +143,7 @@ func NewTestSuite(fpath string, payloads []TestPayload) TestSuite { switch utils.MapKeys(vv)[0] { case "skip": var ( - ok bool + ok bool skipV string skipR string ) diff --git a/internal/build/cmd/tools/commands/spec/command.go b/internal/build/cmd/tools/commands/spec/command.go index 38934a81d0..8da8f0cfea 100644 --- a/internal/build/cmd/tools/commands/spec/command.go +++ b/internal/build/cmd/tools/commands/spec/command.go @@ -22,9 +22,9 @@ import ( "bytes" "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/internal/build/cmd" - "github.com/elastic/go-elasticsearch/v8/internal/build/utils" - "github.com/elastic/go-elasticsearch/v8/internal/version" + "github.com/elastic/go-elasticsearch/v9/internal/build/cmd" + "github.com/elastic/go-elasticsearch/v9/internal/build/utils" + "github.com/elastic/go-elasticsearch/v9/internal/version" "github.com/spf13/cobra" "io/ioutil" "log" diff --git a/internal/build/go.mod b/internal/build/go.mod index 97a6e5d104..9308e93e3d 100644 --- a/internal/build/go.mod +++ b/internal/build/go.mod @@ -1,15 +1,17 @@ -module github.com/elastic/go-elasticsearch/v8/internal/build +module github.com/elastic/go-elasticsearch/v9/internal/build -go 1.22.0 +go 1.23.0 -replace github.com/elastic/go-elasticsearch/v8 => ../../ +toolchain go1.24.2 + +replace github.com/elastic/go-elasticsearch/v9 => ../../ require ( github.com/alecthomas/chroma v0.10.0 - github.com/elastic/go-elasticsearch/v8 v8.0.0-20210817150010-57d659deaca7 + github.com/elastic/go-elasticsearch/v9 v9.0.0-00010101000000-000000000000 github.com/spf13/cobra v1.8.0 golang.org/x/crypto v0.19.0 - golang.org/x/tools v0.29.0 + golang.org/x/tools v0.32.0 gopkg.in/yaml.v2 v2.4.0 ) @@ -17,8 +19,8 @@ require ( github.com/dlclark/regexp2 v1.4.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - golang.org/x/mod v0.22.0 // indirect - golang.org/x/sync v0.10.0 // indirect - golang.org/x/sys v0.29.0 // indirect + golang.org/x/mod v0.24.0 // indirect + golang.org/x/sync v0.13.0 // indirect + golang.org/x/sys v0.32.0 // indirect golang.org/x/term v0.17.0 // indirect ) diff --git a/internal/build/go.sum b/internal/build/go.sum index ab37d788ad..d368fba6b9 100644 --- a/internal/build/go.sum +++ b/internal/build/go.sum @@ -22,16 +22,16 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/mod v0.22.0 h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4= -golang.org/x/mod v0.22.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY= -golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= -golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= -golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU= +golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww= +golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610= +golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA= +golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20= +golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= golang.org/x/term v0.17.0 h1:mkTF7LCd6WGJNL3K1Ad7kwxNfYAW6a8a8QqtMblp/4U= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE= -golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588= +golang.org/x/tools v0.32.0 h1:Q7N1vhpkQv7ybVzLFtTjvQya2ewbwNDZzUgfXGqtMWU= +golang.org/x/tools v0.32.0/go.mod h1:ZxrU41P/wAbZD8EDa6dDCa6XfpkhJ7HFMjHJXfBDu8s= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= diff --git a/internal/build/main.go b/internal/build/main.go index a99f0c5709..89d0c0a1dd 100644 --- a/internal/build/main.go +++ b/internal/build/main.go @@ -18,13 +18,13 @@ package main import ( - "github.com/elastic/go-elasticsearch/v8/internal/build/cmd" + "github.com/elastic/go-elasticsearch/v9/internal/build/cmd" - _ "github.com/elastic/go-elasticsearch/v8/internal/build/cmd/generate/commands/genexamples" - _ "github.com/elastic/go-elasticsearch/v8/internal/build/cmd/generate/commands/gensource" - _ "github.com/elastic/go-elasticsearch/v8/internal/build/cmd/generate/commands/genstruct" - _ "github.com/elastic/go-elasticsearch/v8/internal/build/cmd/generate/commands/gentests" - _ "github.com/elastic/go-elasticsearch/v8/internal/build/cmd/tools/commands/spec" + _ "github.com/elastic/go-elasticsearch/v9/internal/build/cmd/generate/commands/genexamples" + _ "github.com/elastic/go-elasticsearch/v9/internal/build/cmd/generate/commands/gensource" + _ "github.com/elastic/go-elasticsearch/v9/internal/build/cmd/generate/commands/genstruct" + _ "github.com/elastic/go-elasticsearch/v9/internal/build/cmd/generate/commands/gentests" + _ "github.com/elastic/go-elasticsearch/v9/internal/build/cmd/tools/commands/spec" ) func main() { diff --git a/internal/testing/containertest/testcontainers.go b/internal/testing/containertest/testcontainers.go index 9f6cb1d354..0c8d6b4748 100644 --- a/internal/testing/containertest/testcontainers.go +++ b/internal/testing/containertest/testcontainers.go @@ -22,8 +22,7 @@ package containertest import ( "context" - - "github.com/elastic/go-elasticsearch/v8" + "github.com/elastic/go-elasticsearch/v9" "github.com/testcontainers/testcontainers-go" tces "github.com/testcontainers/testcontainers-go/modules/elasticsearch" diff --git a/internal/testing/e2e/bulk_indexer_integration_test.go b/internal/testing/e2e/bulk_indexer_integration_test.go index 97e4375a2e..7e25c384f5 100644 --- a/internal/testing/e2e/bulk_indexer_integration_test.go +++ b/internal/testing/e2e/bulk_indexer_integration_test.go @@ -32,8 +32,8 @@ import ( "time" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esutil" "testing/containertest" ) diff --git a/internal/testing/e2e/elasticsearch_integration_test.go b/internal/testing/e2e/elasticsearch_integration_test.go index e520a5d9ef..e29d78d55f 100644 --- a/internal/testing/e2e/elasticsearch_integration_test.go +++ b/internal/testing/e2e/elasticsearch_integration_test.go @@ -40,14 +40,15 @@ import ( "time" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/typedapi/core/search" - "github.com/elastic/go-elasticsearch/v8/typedapi/some" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" + "github.com/elastic/go-elasticsearch/v9/typedapi/core/search" + "github.com/elastic/go-elasticsearch/v9/typedapi/esdsl" + "github.com/elastic/go-elasticsearch/v9/typedapi/some" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" "github.com/testcontainers/testcontainers-go" tces "github.com/testcontainers/testcontainers-go/modules/elasticsearch" @@ -363,6 +364,40 @@ func TestElasticsearchIntegration(t *testing.T) { t.Fatalf("unexpected search result") } + query := esdsl.NewBoolQuery(). + Must( + esdsl.NewMatchQuery("description", "wireless"), + esdsl.NewNumberRangeQuery("price").Gte(100).Lt(500), + ). + Filter( + esdsl.NewTermQuery("brand", esdsl.NewFieldValue().String("Samsung")), + esdsl.NewTermsQuery().TermsQuery( + map[string]types.TermsQueryField{ + "category": []string{"electronics", "home-appliances"}, + }, + ), + ) + + termAgg := esdsl.NewTermsAggregation(). + Field("category.keyword"). + Size(10) + + agg := esdsl.NewAggregations(). + Terms(termAgg). + AddAggregation("avg_price", esdsl.NewAverageAggregation().Field("price")) + + sort := esdsl.NewSortOptions(). + AddSortOption("_score", esdsl.NewFieldSort(sortorder.Desc)). + AddSortOption("popularity", esdsl.NewFieldSort(sortorder.Desc)) + + es.Search(). + Index(indexName). + Query(query). + AddAggregation("categories", agg). + Sort(sort). + From(0).Size(10). + Do(context.Background()) + // Aggregate prices with a SumAggregation searchResponse, err := es.Search(). Index(indexName). @@ -394,19 +429,19 @@ func TestElasticsearchIntegration(t *testing.T) { } msearch := es.Msearch() - _ = msearch.AddSearch(types.MultisearchHeader{Index: []string{indexName}}, types.MultisearchBody{Query: &types.Query{ + _ = msearch.AddSearch(types.MultisearchHeader{Index: []string{indexName}}, types.SearchRequestBody{Query: &types.Query{ Match: map[string]types.MatchQuery{ "name": {Query: "Foo"}, }, }}) - _ = msearch.AddSearch(types.MultisearchHeader{Index: []string{indexName}}, types.MultisearchBody{Aggregations: map[string]types.Aggregations{ + _ = msearch.AddSearch(types.MultisearchHeader{Index: []string{indexName}}, types.SearchRequestBody{Aggregations: map[string]types.Aggregations{ "total_prices": { Sum: &types.SumAggregation{ Field: some.String("price"), }, }, }}) - _ = msearch.AddSearch(types.MultisearchHeader{Index: []string{"non-existent-index"}}, types.MultisearchBody{Query: &types.Query{Match: map[string]types.MatchQuery{ + _ = msearch.AddSearch(types.MultisearchHeader{Index: []string{"non-existent-index"}}, types.SearchRequestBody{Query: &types.Query{Match: map[string]types.MatchQuery{ "foo": {Query: "bzz"}, }}}) msearchRes, err := msearch.Do(context.Background()) diff --git a/internal/testing/e2e/esapi_integration_test.go b/internal/testing/e2e/esapi_integration_test.go index 3136ccb43e..94de92bb93 100644 --- a/internal/testing/e2e/esapi_integration_test.go +++ b/internal/testing/e2e/esapi_integration_test.go @@ -31,8 +31,8 @@ import ( "testing/containertest" "time" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" ) func TestAPI(t *testing.T) { diff --git a/internal/testing/e2e/json_reader_integration_test.go b/internal/testing/e2e/json_reader_integration_test.go index 297671573b..4aba79a648 100644 --- a/internal/testing/e2e/json_reader_integration_test.go +++ b/internal/testing/e2e/json_reader_integration_test.go @@ -22,9 +22,9 @@ package e2e_test import ( "context" - "github.com/elastic/go-elasticsearch/v8" - "github.com/elastic/go-elasticsearch/v8/esapi" - "github.com/elastic/go-elasticsearch/v8/esutil" + "github.com/elastic/go-elasticsearch/v9" + "github.com/elastic/go-elasticsearch/v9/esapi" + "github.com/elastic/go-elasticsearch/v9/esutil" "os" "strings" "testing" diff --git a/internal/testing/go.mod b/internal/testing/go.mod index 5b4c19a0ce..23d20f367e 100644 --- a/internal/testing/go.mod +++ b/internal/testing/go.mod @@ -1,12 +1,14 @@ module testing -go 1.22.0 +go 1.23 -replace github.com/elastic/go-elasticsearch/v8 => ./../.. +toolchain go1.24.2 + +replace github.com/elastic/go-elasticsearch/v9 => ./../.. require ( github.com/elastic/elastic-transport-go/v8 v8.6.1 - github.com/elastic/go-elasticsearch/v8 v8.14.0 + github.com/elastic/go-elasticsearch/v9 v9.0.0-20250401132409-0ffca4b1f163 github.com/testcontainers/testcontainers-go v0.34.0 github.com/testcontainers/testcontainers-go/modules/elasticsearch v0.34.0 ) @@ -32,7 +34,6 @@ require ( github.com/gogo/protobuf v1.3.2 // indirect github.com/google/uuid v1.6.0 // indirect github.com/klauspost/compress v1.17.4 // indirect - github.com/kr/text v0.2.0 // indirect github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect github.com/magiconair/properties v1.8.7 // indirect github.com/moby/docker-image-spec v1.3.1 // indirect @@ -49,14 +50,15 @@ require ( github.com/shirou/gopsutil/v3 v3.23.12 // indirect github.com/shoenig/go-m1cpu v0.1.6 // indirect github.com/sirupsen/logrus v1.9.3 // indirect - github.com/stretchr/testify v1.9.0 // indirect + github.com/stretchr/testify v1.10.0 // indirect github.com/tklauser/go-sysconf v0.3.12 // indirect github.com/tklauser/numcpus v0.6.1 // indirect github.com/yusufpapurcu/wmi v1.2.3 // indirect + go.opentelemetry.io/auto/sdk v1.1.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 // indirect - go.opentelemetry.io/otel v1.28.0 // indirect - go.opentelemetry.io/otel/metric v1.28.0 // indirect - go.opentelemetry.io/otel/trace v1.28.0 // indirect + go.opentelemetry.io/otel v1.35.0 // indirect + go.opentelemetry.io/otel/metric v1.35.0 // indirect + go.opentelemetry.io/otel/trace v1.35.0 // indirect golang.org/x/crypto v0.24.0 // indirect golang.org/x/mod v0.16.0 // indirect golang.org/x/sys v0.21.0 // indirect diff --git a/internal/testing/go.sum b/internal/testing/go.sum index 57d202819f..6098c79fcc 100644 --- a/internal/testing/go.sum +++ b/internal/testing/go.sum @@ -16,7 +16,6 @@ github.com/containerd/platforms v0.2.1 h1:zvwtM3rz2YHPQsF2CHYM8+KtB5dvhISiXh5ZpS github.com/containerd/platforms v0.2.1/go.mod h1:XHCb+2/hzowdiut9rkudds9bE5yJ7npe7dG/wG+uFPw= github.com/cpuguy83/dockercfg v0.3.2 h1:DlJTyZGBDlXqUZ2Dk2Q3xHs/FtnooJJVaad2S9GKorA= github.com/cpuguy83/dockercfg v0.3.2/go.mod h1:sugsbF4//dDlL/i+S+rtpIWp+5h0BHJHfjj5/jFyUJc= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -32,6 +31,8 @@ github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4 github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/elastic/elastic-transport-go/v8 v8.6.1 h1:h2jQRqH6eLGiBSN4eZbQnJLtL4bC5b4lfVFRjw2R4e4= github.com/elastic/elastic-transport-go/v8 v8.6.1/go.mod h1:YLHer5cj0csTzNFXoNQ8qhtGY1GTvSqPnKWKaqQE3Hk= +github.com/elastic/go-elasticsearch/v8 v8.12.1 h1:QcuFK5LaZS0pSIj/eAEsxmJWmMo7tUs1aVBbzdIgtnE= +github.com/elastic/go-elasticsearch/v8 v8.12.1/go.mod h1:wSzJYrrKPZQ8qPuqAqc6KMR4HrBfHnZORvyL+FMFqq0= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= @@ -45,8 +46,9 @@ github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= +github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 h1:YBftPWNWd4WwGqtY2yeZL2ef8rHAxPBD8KFhJpmcqms= @@ -85,8 +87,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw= github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE= -github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= -github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= +github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= +github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/shirou/gopsutil/v3 v3.23.12 h1:z90NtUkp3bMtmICZKpC4+WaknU1eXtp5vtbQ11DgpE4= github.com/shirou/gopsutil/v3 v3.23.12/go.mod h1:1FrWgea594Jp7qmjHUUPlJDTPgcsb9mGnXDxavtikzM= github.com/shoenig/go-m1cpu v0.1.6 h1:nxdKQNcEB6vzgA2E2bvzKIYRuNj7XNJ4S/aRSwKzFtM= @@ -104,8 +106,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= -github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/testcontainers/testcontainers-go v0.34.0 h1:5fbgF0vIN5u+nD3IWabQwRybuB4GY8G2HHgCkbMzMHo= github.com/testcontainers/testcontainers-go v0.34.0/go.mod h1:6P/kMkQe8yqPHfPWNulFGdFHTD8HB2vLq/231xY2iPQ= github.com/testcontainers/testcontainers-go/modules/elasticsearch v0.34.0 h1:BBwJUs9xBpt1uOfO+yAr2pYW75MsyzuO/o70HTPnhe4= @@ -118,20 +120,22 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yusufpapurcu/wmi v1.2.3 h1:E1ctvB7uKFMOJw3fdOW32DwGE9I7t++CRUEMKvFoFiw= github.com/yusufpapurcu/wmi v1.2.3/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= +go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= +go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0 h1:jq9TW8u3so/bN+JPT166wjOI6/vQPF6Xe7nMNIltagk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.49.0/go.mod h1:p8pYQP+m5XfbZm9fxtSKAbM6oIllS7s2AfxrChvc7iw= -go.opentelemetry.io/otel v1.28.0 h1:/SqNcYk+idO0CxKEUOtKQClMK/MimZihKYMruSMViUo= -go.opentelemetry.io/otel v1.28.0/go.mod h1:q68ijF8Fc8CnMHKyzqL6akLO46ePnjkgfIMIjUIX9z4= +go.opentelemetry.io/otel v1.35.0 h1:xKWKPxrxB6OtMCbmMY021CqC45J+3Onta9MqjhnusiQ= +go.opentelemetry.io/otel v1.35.0/go.mod h1:UEqy8Zp11hpkUrL73gSlELM0DupHoiq72dR+Zqel/+Y= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0 h1:Mne5On7VWdx7omSrSSZvM4Kw7cS7NQkOOmLcgscI51U= go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.19.0/go.mod h1:IPtUMKL4O3tH5y+iXVyAXqpAwMuzC1IrxVS81rummfE= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.19.0 h1:IeMeyr1aBvBiPVYihXIaeIZba6b8E1bYp7lbdxK8CQg= go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.19.0/go.mod h1:oVdCUtjq9MK9BlS7TtucsQwUcXcymNiEDjgDD2jMtZU= -go.opentelemetry.io/otel/metric v1.28.0 h1:f0HGvSl1KRAU1DLgLGFjrwVyismPlnuU6JD6bOeuA5Q= -go.opentelemetry.io/otel/metric v1.28.0/go.mod h1:Fb1eVBFZmLVTMb6PPohq3TO9IIhUisDsbJoL/+uQW4s= +go.opentelemetry.io/otel/metric v1.35.0 h1:0znxYu2SNyuMSQT4Y9WDWej0VpcsxkuklLa4/siN90M= +go.opentelemetry.io/otel/metric v1.35.0/go.mod h1:nKVFgxBZ2fReX6IlyW28MgZojkoAkJGaE8CpgeAU3oE= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.28.0 h1:GhQ9cUuQGmNDd5BTCP2dAvv75RdMxEfTmYejp+lkx9g= -go.opentelemetry.io/otel/trace v1.28.0/go.mod h1:jPyXzNPg6da9+38HEwElrQiHlVMTnVfM3/yv2OlIHaI= +go.opentelemetry.io/otel/trace v1.35.0 h1:dPpEfJu1sDIqruz7BHFG3c7528f6ddfSWfFDVt/xgMs= +go.opentelemetry.io/otel/trace v1.35.0/go.mod h1:WUk7DtFp1Aw2MkvqGdwiXYDZZNvA/1J8o6xRXLrIkyc= go.opentelemetry.io/proto/otlp v1.0.0 h1:T0TX0tmXU8a3CbNXzEKGeU5mIVOdf0oykP+u2lIVU/I= go.opentelemetry.io/proto/otlp v1.0.0/go.mod h1:Sy6pihPLfYHkr3NkUbEhGHFhINUSI/v80hjKIs5JXpM= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= diff --git a/typedapi/api._.go b/typedapi/api._.go index 56c69b0c0b..303a2da82b 100644 --- a/typedapi/api._.go +++ b/typedapi/api._.go @@ -16,539 +16,553 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package typedapi import ( "github.com/elastic/elastic-transport-go/v8/elastictransport" - async_search_delete "github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/delete" - async_search_get "github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/get" - async_search_status "github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/status" - async_search_submit "github.com/elastic/go-elasticsearch/v8/typedapi/asyncsearch/submit" - autoscaling_delete_autoscaling_policy "github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/deleteautoscalingpolicy" - autoscaling_get_autoscaling_capacity "github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingcapacity" - autoscaling_get_autoscaling_policy "github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/getautoscalingpolicy" - autoscaling_put_autoscaling_policy "github.com/elastic/go-elasticsearch/v8/typedapi/autoscaling/putautoscalingpolicy" - capabilities "github.com/elastic/go-elasticsearch/v8/typedapi/capabilities" - cat_aliases "github.com/elastic/go-elasticsearch/v8/typedapi/cat/aliases" - cat_allocation "github.com/elastic/go-elasticsearch/v8/typedapi/cat/allocation" - cat_component_templates "github.com/elastic/go-elasticsearch/v8/typedapi/cat/componenttemplates" - cat_count "github.com/elastic/go-elasticsearch/v8/typedapi/cat/count" - cat_fielddata "github.com/elastic/go-elasticsearch/v8/typedapi/cat/fielddata" - cat_health "github.com/elastic/go-elasticsearch/v8/typedapi/cat/health" - cat_help "github.com/elastic/go-elasticsearch/v8/typedapi/cat/help" - cat_indices "github.com/elastic/go-elasticsearch/v8/typedapi/cat/indices" - cat_master "github.com/elastic/go-elasticsearch/v8/typedapi/cat/master" - cat_ml_datafeeds "github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldatafeeds" - cat_ml_data_frame_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/cat/mldataframeanalytics" - cat_ml_jobs "github.com/elastic/go-elasticsearch/v8/typedapi/cat/mljobs" - cat_ml_trained_models "github.com/elastic/go-elasticsearch/v8/typedapi/cat/mltrainedmodels" - cat_nodeattrs "github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodeattrs" - cat_nodes "github.com/elastic/go-elasticsearch/v8/typedapi/cat/nodes" - cat_pending_tasks "github.com/elastic/go-elasticsearch/v8/typedapi/cat/pendingtasks" - cat_plugins "github.com/elastic/go-elasticsearch/v8/typedapi/cat/plugins" - cat_recovery "github.com/elastic/go-elasticsearch/v8/typedapi/cat/recovery" - cat_repositories "github.com/elastic/go-elasticsearch/v8/typedapi/cat/repositories" - cat_segments "github.com/elastic/go-elasticsearch/v8/typedapi/cat/segments" - cat_shards "github.com/elastic/go-elasticsearch/v8/typedapi/cat/shards" - cat_snapshots "github.com/elastic/go-elasticsearch/v8/typedapi/cat/snapshots" - cat_tasks "github.com/elastic/go-elasticsearch/v8/typedapi/cat/tasks" - cat_templates "github.com/elastic/go-elasticsearch/v8/typedapi/cat/templates" - cat_thread_pool "github.com/elastic/go-elasticsearch/v8/typedapi/cat/threadpool" - cat_transforms "github.com/elastic/go-elasticsearch/v8/typedapi/cat/transforms" - ccr_delete_auto_follow_pattern "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/deleteautofollowpattern" - ccr_follow "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/follow" - ccr_follow_info "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followinfo" - ccr_follow_stats "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/followstats" - ccr_forget_follower "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/forgetfollower" - ccr_get_auto_follow_pattern "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/getautofollowpattern" - ccr_pause_auto_follow_pattern "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pauseautofollowpattern" - ccr_pause_follow "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/pausefollow" - ccr_put_auto_follow_pattern "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/putautofollowpattern" - ccr_resume_auto_follow_pattern "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumeautofollowpattern" - ccr_resume_follow "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/resumefollow" - ccr_stats "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/stats" - ccr_unfollow "github.com/elastic/go-elasticsearch/v8/typedapi/ccr/unfollow" - cluster_allocation_explain "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/allocationexplain" - cluster_delete_component_template "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletecomponenttemplate" - cluster_delete_voting_config_exclusions "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/deletevotingconfigexclusions" - cluster_exists_component_template "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/existscomponenttemplate" - cluster_get_component_template "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getcomponenttemplate" - cluster_get_settings "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/getsettings" - cluster_health "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/health" - cluster_info "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/info" - cluster_pending_tasks "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/pendingtasks" - cluster_post_voting_config_exclusions "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/postvotingconfigexclusions" - cluster_put_component_template "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putcomponenttemplate" - cluster_put_settings "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/putsettings" - cluster_remote_info "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/remoteinfo" - cluster_reroute "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/reroute" - cluster_state "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/state" - cluster_stats "github.com/elastic/go-elasticsearch/v8/typedapi/cluster/stats" - connector_check_in "github.com/elastic/go-elasticsearch/v8/typedapi/connector/checkin" - connector_delete "github.com/elastic/go-elasticsearch/v8/typedapi/connector/delete" - connector_get "github.com/elastic/go-elasticsearch/v8/typedapi/connector/get" - connector_last_sync "github.com/elastic/go-elasticsearch/v8/typedapi/connector/lastsync" - connector_list "github.com/elastic/go-elasticsearch/v8/typedapi/connector/list" - connector_post "github.com/elastic/go-elasticsearch/v8/typedapi/connector/post" - connector_put "github.com/elastic/go-elasticsearch/v8/typedapi/connector/put" - connector_secret_post "github.com/elastic/go-elasticsearch/v8/typedapi/connector/secretpost" - connector_sync_job_cancel "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcancel" - connector_sync_job_check_in "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobcheckin" - connector_sync_job_claim "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobclaim" - connector_sync_job_delete "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobdelete" - connector_sync_job_error "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoberror" - connector_sync_job_get "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobget" - connector_sync_job_list "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjoblist" - connector_sync_job_post "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobpost" - connector_sync_job_update_stats "github.com/elastic/go-elasticsearch/v8/typedapi/connector/syncjobupdatestats" - connector_update_active_filtering "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateactivefiltering" - connector_update_api_key_id "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateapikeyid" - connector_update_configuration "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateconfiguration" - connector_update_error "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateerror" - connector_update_features "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefeatures" - connector_update_filtering "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefiltering" - connector_update_filtering_validation "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatefilteringvalidation" - connector_update_index_name "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateindexname" - connector_update_name "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatename" - connector_update_native "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatenative" - connector_update_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatepipeline" - connector_update_scheduling "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatescheduling" - connector_update_service_type "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updateservicetype" - connector_update_status "github.com/elastic/go-elasticsearch/v8/typedapi/connector/updatestatus" - core_bulk "github.com/elastic/go-elasticsearch/v8/typedapi/core/bulk" - core_clear_scroll "github.com/elastic/go-elasticsearch/v8/typedapi/core/clearscroll" - core_close_point_in_time "github.com/elastic/go-elasticsearch/v8/typedapi/core/closepointintime" - core_count "github.com/elastic/go-elasticsearch/v8/typedapi/core/count" - core_create "github.com/elastic/go-elasticsearch/v8/typedapi/core/create" - core_delete "github.com/elastic/go-elasticsearch/v8/typedapi/core/delete" - core_delete_by_query "github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyquery" - core_delete_by_query_rethrottle "github.com/elastic/go-elasticsearch/v8/typedapi/core/deletebyqueryrethrottle" - core_delete_script "github.com/elastic/go-elasticsearch/v8/typedapi/core/deletescript" - core_exists "github.com/elastic/go-elasticsearch/v8/typedapi/core/exists" - core_exists_source "github.com/elastic/go-elasticsearch/v8/typedapi/core/existssource" - core_explain "github.com/elastic/go-elasticsearch/v8/typedapi/core/explain" - core_field_caps "github.com/elastic/go-elasticsearch/v8/typedapi/core/fieldcaps" - core_get "github.com/elastic/go-elasticsearch/v8/typedapi/core/get" - core_get_script "github.com/elastic/go-elasticsearch/v8/typedapi/core/getscript" - core_get_script_context "github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptcontext" - core_get_script_languages "github.com/elastic/go-elasticsearch/v8/typedapi/core/getscriptlanguages" - core_get_source "github.com/elastic/go-elasticsearch/v8/typedapi/core/getsource" - core_health_report "github.com/elastic/go-elasticsearch/v8/typedapi/core/healthreport" - core_index "github.com/elastic/go-elasticsearch/v8/typedapi/core/index" - core_info "github.com/elastic/go-elasticsearch/v8/typedapi/core/info" - core_knn_search "github.com/elastic/go-elasticsearch/v8/typedapi/core/knnsearch" - core_mget "github.com/elastic/go-elasticsearch/v8/typedapi/core/mget" - core_msearch "github.com/elastic/go-elasticsearch/v8/typedapi/core/msearch" - core_msearch_template "github.com/elastic/go-elasticsearch/v8/typedapi/core/msearchtemplate" - core_mtermvectors "github.com/elastic/go-elasticsearch/v8/typedapi/core/mtermvectors" - core_open_point_in_time "github.com/elastic/go-elasticsearch/v8/typedapi/core/openpointintime" - core_ping "github.com/elastic/go-elasticsearch/v8/typedapi/core/ping" - core_put_script "github.com/elastic/go-elasticsearch/v8/typedapi/core/putscript" - core_rank_eval "github.com/elastic/go-elasticsearch/v8/typedapi/core/rankeval" - core_reindex "github.com/elastic/go-elasticsearch/v8/typedapi/core/reindex" - core_reindex_rethrottle "github.com/elastic/go-elasticsearch/v8/typedapi/core/reindexrethrottle" - core_render_search_template "github.com/elastic/go-elasticsearch/v8/typedapi/core/rendersearchtemplate" - core_scripts_painless_execute "github.com/elastic/go-elasticsearch/v8/typedapi/core/scriptspainlessexecute" - core_scroll "github.com/elastic/go-elasticsearch/v8/typedapi/core/scroll" - core_search "github.com/elastic/go-elasticsearch/v8/typedapi/core/search" - core_search_mvt "github.com/elastic/go-elasticsearch/v8/typedapi/core/searchmvt" - core_search_shards "github.com/elastic/go-elasticsearch/v8/typedapi/core/searchshards" - core_search_template "github.com/elastic/go-elasticsearch/v8/typedapi/core/searchtemplate" - core_terms_enum "github.com/elastic/go-elasticsearch/v8/typedapi/core/termsenum" - core_termvectors "github.com/elastic/go-elasticsearch/v8/typedapi/core/termvectors" - core_update "github.com/elastic/go-elasticsearch/v8/typedapi/core/update" - core_update_by_query "github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyquery" - core_update_by_query_rethrottle "github.com/elastic/go-elasticsearch/v8/typedapi/core/updatebyqueryrethrottle" - dangling_indices_delete_dangling_index "github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/deletedanglingindex" - dangling_indices_import_dangling_index "github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/importdanglingindex" - dangling_indices_list_dangling_indices "github.com/elastic/go-elasticsearch/v8/typedapi/danglingindices/listdanglingindices" - enrich_delete_policy "github.com/elastic/go-elasticsearch/v8/typedapi/enrich/deletepolicy" - enrich_execute_policy "github.com/elastic/go-elasticsearch/v8/typedapi/enrich/executepolicy" - enrich_get_policy "github.com/elastic/go-elasticsearch/v8/typedapi/enrich/getpolicy" - enrich_put_policy "github.com/elastic/go-elasticsearch/v8/typedapi/enrich/putpolicy" - enrich_stats "github.com/elastic/go-elasticsearch/v8/typedapi/enrich/stats" - eql_delete "github.com/elastic/go-elasticsearch/v8/typedapi/eql/delete" - eql_get "github.com/elastic/go-elasticsearch/v8/typedapi/eql/get" - eql_get_status "github.com/elastic/go-elasticsearch/v8/typedapi/eql/getstatus" - eql_search "github.com/elastic/go-elasticsearch/v8/typedapi/eql/search" - esql_async_query "github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncquery" - esql_async_query_delete "github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncquerydelete" - esql_async_query_get "github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncqueryget" - esql_async_query_stop "github.com/elastic/go-elasticsearch/v8/typedapi/esql/asyncquerystop" - esql_query "github.com/elastic/go-elasticsearch/v8/typedapi/esql/query" - features_get_features "github.com/elastic/go-elasticsearch/v8/typedapi/features/getfeatures" - features_reset_features "github.com/elastic/go-elasticsearch/v8/typedapi/features/resetfeatures" - fleet_global_checkpoints "github.com/elastic/go-elasticsearch/v8/typedapi/fleet/globalcheckpoints" - fleet_msearch "github.com/elastic/go-elasticsearch/v8/typedapi/fleet/msearch" - fleet_post_secret "github.com/elastic/go-elasticsearch/v8/typedapi/fleet/postsecret" - fleet_search "github.com/elastic/go-elasticsearch/v8/typedapi/fleet/search" - graph_explore "github.com/elastic/go-elasticsearch/v8/typedapi/graph/explore" - ilm_delete_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/ilm/deletelifecycle" - ilm_explain_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/ilm/explainlifecycle" - ilm_get_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getlifecycle" - ilm_get_status "github.com/elastic/go-elasticsearch/v8/typedapi/ilm/getstatus" - ilm_migrate_to_data_tiers "github.com/elastic/go-elasticsearch/v8/typedapi/ilm/migratetodatatiers" - ilm_move_to_step "github.com/elastic/go-elasticsearch/v8/typedapi/ilm/movetostep" - ilm_put_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/ilm/putlifecycle" - ilm_remove_policy "github.com/elastic/go-elasticsearch/v8/typedapi/ilm/removepolicy" - ilm_retry "github.com/elastic/go-elasticsearch/v8/typedapi/ilm/retry" - ilm_start "github.com/elastic/go-elasticsearch/v8/typedapi/ilm/start" - ilm_stop "github.com/elastic/go-elasticsearch/v8/typedapi/ilm/stop" - indices_add_block "github.com/elastic/go-elasticsearch/v8/typedapi/indices/addblock" - indices_analyze "github.com/elastic/go-elasticsearch/v8/typedapi/indices/analyze" - indices_cancel_migrate_reindex "github.com/elastic/go-elasticsearch/v8/typedapi/indices/cancelmigratereindex" - indices_clear_cache "github.com/elastic/go-elasticsearch/v8/typedapi/indices/clearcache" - indices_clone "github.com/elastic/go-elasticsearch/v8/typedapi/indices/clone" - indices_close "github.com/elastic/go-elasticsearch/v8/typedapi/indices/close" - indices_create "github.com/elastic/go-elasticsearch/v8/typedapi/indices/create" - indices_create_data_stream "github.com/elastic/go-elasticsearch/v8/typedapi/indices/createdatastream" - indices_create_from "github.com/elastic/go-elasticsearch/v8/typedapi/indices/createfrom" - indices_data_streams_stats "github.com/elastic/go-elasticsearch/v8/typedapi/indices/datastreamsstats" - indices_delete "github.com/elastic/go-elasticsearch/v8/typedapi/indices/delete" - indices_delete_alias "github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletealias" - indices_delete_data_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatalifecycle" - indices_delete_data_stream "github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletedatastream" - indices_delete_index_template "github.com/elastic/go-elasticsearch/v8/typedapi/indices/deleteindextemplate" - indices_delete_template "github.com/elastic/go-elasticsearch/v8/typedapi/indices/deletetemplate" - indices_disk_usage "github.com/elastic/go-elasticsearch/v8/typedapi/indices/diskusage" - indices_downsample "github.com/elastic/go-elasticsearch/v8/typedapi/indices/downsample" - indices_exists "github.com/elastic/go-elasticsearch/v8/typedapi/indices/exists" - indices_exists_alias "github.com/elastic/go-elasticsearch/v8/typedapi/indices/existsalias" - indices_exists_index_template "github.com/elastic/go-elasticsearch/v8/typedapi/indices/existsindextemplate" - indices_exists_template "github.com/elastic/go-elasticsearch/v8/typedapi/indices/existstemplate" - indices_explain_data_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/indices/explaindatalifecycle" - indices_field_usage_stats "github.com/elastic/go-elasticsearch/v8/typedapi/indices/fieldusagestats" - indices_flush "github.com/elastic/go-elasticsearch/v8/typedapi/indices/flush" - indices_forcemerge "github.com/elastic/go-elasticsearch/v8/typedapi/indices/forcemerge" - indices_get "github.com/elastic/go-elasticsearch/v8/typedapi/indices/get" - indices_get_alias "github.com/elastic/go-elasticsearch/v8/typedapi/indices/getalias" - indices_get_data_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatalifecycle" - indices_get_data_lifecycle_stats "github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatalifecyclestats" - indices_get_data_stream "github.com/elastic/go-elasticsearch/v8/typedapi/indices/getdatastream" - indices_get_field_mapping "github.com/elastic/go-elasticsearch/v8/typedapi/indices/getfieldmapping" - indices_get_index_template "github.com/elastic/go-elasticsearch/v8/typedapi/indices/getindextemplate" - indices_get_mapping "github.com/elastic/go-elasticsearch/v8/typedapi/indices/getmapping" - indices_get_migrate_reindex_status "github.com/elastic/go-elasticsearch/v8/typedapi/indices/getmigratereindexstatus" - indices_get_settings "github.com/elastic/go-elasticsearch/v8/typedapi/indices/getsettings" - indices_get_template "github.com/elastic/go-elasticsearch/v8/typedapi/indices/gettemplate" - indices_migrate_reindex "github.com/elastic/go-elasticsearch/v8/typedapi/indices/migratereindex" - indices_migrate_to_data_stream "github.com/elastic/go-elasticsearch/v8/typedapi/indices/migratetodatastream" - indices_modify_data_stream "github.com/elastic/go-elasticsearch/v8/typedapi/indices/modifydatastream" - indices_open "github.com/elastic/go-elasticsearch/v8/typedapi/indices/open" - indices_promote_data_stream "github.com/elastic/go-elasticsearch/v8/typedapi/indices/promotedatastream" - indices_put_alias "github.com/elastic/go-elasticsearch/v8/typedapi/indices/putalias" - indices_put_data_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/indices/putdatalifecycle" - indices_put_index_template "github.com/elastic/go-elasticsearch/v8/typedapi/indices/putindextemplate" - indices_put_mapping "github.com/elastic/go-elasticsearch/v8/typedapi/indices/putmapping" - indices_put_settings "github.com/elastic/go-elasticsearch/v8/typedapi/indices/putsettings" - indices_put_template "github.com/elastic/go-elasticsearch/v8/typedapi/indices/puttemplate" - indices_recovery "github.com/elastic/go-elasticsearch/v8/typedapi/indices/recovery" - indices_refresh "github.com/elastic/go-elasticsearch/v8/typedapi/indices/refresh" - indices_reload_search_analyzers "github.com/elastic/go-elasticsearch/v8/typedapi/indices/reloadsearchanalyzers" - indices_resolve_cluster "github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolvecluster" - indices_resolve_index "github.com/elastic/go-elasticsearch/v8/typedapi/indices/resolveindex" - indices_rollover "github.com/elastic/go-elasticsearch/v8/typedapi/indices/rollover" - indices_segments "github.com/elastic/go-elasticsearch/v8/typedapi/indices/segments" - indices_shard_stores "github.com/elastic/go-elasticsearch/v8/typedapi/indices/shardstores" - indices_shrink "github.com/elastic/go-elasticsearch/v8/typedapi/indices/shrink" - indices_simulate_index_template "github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulateindextemplate" - indices_simulate_template "github.com/elastic/go-elasticsearch/v8/typedapi/indices/simulatetemplate" - indices_split "github.com/elastic/go-elasticsearch/v8/typedapi/indices/split" - indices_stats "github.com/elastic/go-elasticsearch/v8/typedapi/indices/stats" - indices_update_aliases "github.com/elastic/go-elasticsearch/v8/typedapi/indices/updatealiases" - indices_validate_query "github.com/elastic/go-elasticsearch/v8/typedapi/indices/validatequery" - inference_chat_completion_unified "github.com/elastic/go-elasticsearch/v8/typedapi/inference/chatcompletionunified" - inference_completion "github.com/elastic/go-elasticsearch/v8/typedapi/inference/completion" - inference_delete "github.com/elastic/go-elasticsearch/v8/typedapi/inference/delete" - inference_get "github.com/elastic/go-elasticsearch/v8/typedapi/inference/get" - inference_put "github.com/elastic/go-elasticsearch/v8/typedapi/inference/put" - inference_put_openai "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putopenai" - inference_put_watsonx "github.com/elastic/go-elasticsearch/v8/typedapi/inference/putwatsonx" - inference_rerank "github.com/elastic/go-elasticsearch/v8/typedapi/inference/rerank" - inference_sparse_embedding "github.com/elastic/go-elasticsearch/v8/typedapi/inference/sparseembedding" - inference_stream_completion "github.com/elastic/go-elasticsearch/v8/typedapi/inference/streamcompletion" - inference_text_embedding "github.com/elastic/go-elasticsearch/v8/typedapi/inference/textembedding" - inference_update "github.com/elastic/go-elasticsearch/v8/typedapi/inference/update" - ingest_delete_geoip_database "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletegeoipdatabase" - ingest_delete_ip_location_database "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deleteiplocationdatabase" - ingest_delete_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/deletepipeline" - ingest_geo_ip_stats "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/geoipstats" - ingest_get_geoip_database "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getgeoipdatabase" - ingest_get_ip_location_database "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getiplocationdatabase" - ingest_get_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/getpipeline" - ingest_processor_grok "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/processorgrok" - ingest_put_geoip_database "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putgeoipdatabase" - ingest_put_ip_location_database "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putiplocationdatabase" - ingest_put_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/putpipeline" - ingest_simulate "github.com/elastic/go-elasticsearch/v8/typedapi/ingest/simulate" - license_delete "github.com/elastic/go-elasticsearch/v8/typedapi/license/delete" - license_get "github.com/elastic/go-elasticsearch/v8/typedapi/license/get" - license_get_basic_status "github.com/elastic/go-elasticsearch/v8/typedapi/license/getbasicstatus" - license_get_trial_status "github.com/elastic/go-elasticsearch/v8/typedapi/license/gettrialstatus" - license_post "github.com/elastic/go-elasticsearch/v8/typedapi/license/post" - license_post_start_basic "github.com/elastic/go-elasticsearch/v8/typedapi/license/poststartbasic" - license_post_start_trial "github.com/elastic/go-elasticsearch/v8/typedapi/license/poststarttrial" - logstash_delete_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/logstash/deletepipeline" - logstash_get_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/logstash/getpipeline" - logstash_put_pipeline "github.com/elastic/go-elasticsearch/v8/typedapi/logstash/putpipeline" - migration_deprecations "github.com/elastic/go-elasticsearch/v8/typedapi/migration/deprecations" - migration_get_feature_upgrade_status "github.com/elastic/go-elasticsearch/v8/typedapi/migration/getfeatureupgradestatus" - migration_post_feature_upgrade "github.com/elastic/go-elasticsearch/v8/typedapi/migration/postfeatureupgrade" - ml_clear_trained_model_deployment_cache "github.com/elastic/go-elasticsearch/v8/typedapi/ml/cleartrainedmodeldeploymentcache" - ml_close_job "github.com/elastic/go-elasticsearch/v8/typedapi/ml/closejob" - ml_delete_calendar "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendar" - ml_delete_calendar_event "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarevent" - ml_delete_calendar_job "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletecalendarjob" - ml_delete_datafeed "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedatafeed" - ml_delete_data_frame_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletedataframeanalytics" - ml_delete_expired_data "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteexpireddata" - ml_delete_filter "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletefilter" - ml_delete_forecast "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deleteforecast" - ml_delete_job "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletejob" - ml_delete_model_snapshot "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletemodelsnapshot" - ml_delete_trained_model "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodel" - ml_delete_trained_model_alias "github.com/elastic/go-elasticsearch/v8/typedapi/ml/deletetrainedmodelalias" - ml_estimate_model_memory "github.com/elastic/go-elasticsearch/v8/typedapi/ml/estimatemodelmemory" - ml_evaluate_data_frame "github.com/elastic/go-elasticsearch/v8/typedapi/ml/evaluatedataframe" - ml_explain_data_frame_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/ml/explaindataframeanalytics" - ml_flush_job "github.com/elastic/go-elasticsearch/v8/typedapi/ml/flushjob" - ml_forecast "github.com/elastic/go-elasticsearch/v8/typedapi/ml/forecast" - ml_get_buckets "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getbuckets" - ml_get_calendar_events "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendarevents" - ml_get_calendars "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcalendars" - ml_get_categories "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getcategories" - ml_get_datafeeds "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeeds" - ml_get_datafeed_stats "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdatafeedstats" - ml_get_data_frame_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalytics" - ml_get_data_frame_analytics_stats "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getdataframeanalyticsstats" - ml_get_filters "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getfilters" - ml_get_influencers "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getinfluencers" - ml_get_jobs "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobs" - ml_get_job_stats "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getjobstats" - ml_get_memory_stats "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmemorystats" - ml_get_model_snapshots "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshots" - ml_get_model_snapshot_upgrade_stats "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getmodelsnapshotupgradestats" - ml_get_overall_buckets "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getoverallbuckets" - ml_get_records "github.com/elastic/go-elasticsearch/v8/typedapi/ml/getrecords" - ml_get_trained_models "github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodels" - ml_get_trained_models_stats "github.com/elastic/go-elasticsearch/v8/typedapi/ml/gettrainedmodelsstats" - ml_infer_trained_model "github.com/elastic/go-elasticsearch/v8/typedapi/ml/infertrainedmodel" - ml_info "github.com/elastic/go-elasticsearch/v8/typedapi/ml/info" - ml_open_job "github.com/elastic/go-elasticsearch/v8/typedapi/ml/openjob" - ml_post_calendar_events "github.com/elastic/go-elasticsearch/v8/typedapi/ml/postcalendarevents" - ml_post_data "github.com/elastic/go-elasticsearch/v8/typedapi/ml/postdata" - ml_preview_datafeed "github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdatafeed" - ml_preview_data_frame_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/ml/previewdataframeanalytics" - ml_put_calendar "github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendar" - ml_put_calendar_job "github.com/elastic/go-elasticsearch/v8/typedapi/ml/putcalendarjob" - ml_put_datafeed "github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdatafeed" - ml_put_data_frame_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/ml/putdataframeanalytics" - ml_put_filter "github.com/elastic/go-elasticsearch/v8/typedapi/ml/putfilter" - ml_put_job "github.com/elastic/go-elasticsearch/v8/typedapi/ml/putjob" - ml_put_trained_model "github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodel" - ml_put_trained_model_alias "github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelalias" - ml_put_trained_model_definition_part "github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodeldefinitionpart" - ml_put_trained_model_vocabulary "github.com/elastic/go-elasticsearch/v8/typedapi/ml/puttrainedmodelvocabulary" - ml_reset_job "github.com/elastic/go-elasticsearch/v8/typedapi/ml/resetjob" - ml_revert_model_snapshot "github.com/elastic/go-elasticsearch/v8/typedapi/ml/revertmodelsnapshot" - ml_set_upgrade_mode "github.com/elastic/go-elasticsearch/v8/typedapi/ml/setupgrademode" - ml_start_datafeed "github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdatafeed" - ml_start_data_frame_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/ml/startdataframeanalytics" - ml_start_trained_model_deployment "github.com/elastic/go-elasticsearch/v8/typedapi/ml/starttrainedmodeldeployment" - ml_stop_datafeed "github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdatafeed" - ml_stop_data_frame_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/ml/stopdataframeanalytics" - ml_stop_trained_model_deployment "github.com/elastic/go-elasticsearch/v8/typedapi/ml/stoptrainedmodeldeployment" - ml_update_datafeed "github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedatafeed" - ml_update_data_frame_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatedataframeanalytics" - ml_update_filter "github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatefilter" - ml_update_job "github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatejob" - ml_update_model_snapshot "github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatemodelsnapshot" - ml_update_trained_model_deployment "github.com/elastic/go-elasticsearch/v8/typedapi/ml/updatetrainedmodeldeployment" - ml_upgrade_job_snapshot "github.com/elastic/go-elasticsearch/v8/typedapi/ml/upgradejobsnapshot" - ml_validate "github.com/elastic/go-elasticsearch/v8/typedapi/ml/validate" - ml_validate_detector "github.com/elastic/go-elasticsearch/v8/typedapi/ml/validatedetector" - monitoring_bulk "github.com/elastic/go-elasticsearch/v8/typedapi/monitoring/bulk" - nodes_clear_repositories_metering_archive "github.com/elastic/go-elasticsearch/v8/typedapi/nodes/clearrepositoriesmeteringarchive" - nodes_get_repositories_metering_info "github.com/elastic/go-elasticsearch/v8/typedapi/nodes/getrepositoriesmeteringinfo" - nodes_hot_threads "github.com/elastic/go-elasticsearch/v8/typedapi/nodes/hotthreads" - nodes_info "github.com/elastic/go-elasticsearch/v8/typedapi/nodes/info" - nodes_reload_secure_settings "github.com/elastic/go-elasticsearch/v8/typedapi/nodes/reloadsecuresettings" - nodes_stats "github.com/elastic/go-elasticsearch/v8/typedapi/nodes/stats" - nodes_usage "github.com/elastic/go-elasticsearch/v8/typedapi/nodes/usage" - profiling_flamegraph "github.com/elastic/go-elasticsearch/v8/typedapi/profiling/flamegraph" - profiling_stacktraces "github.com/elastic/go-elasticsearch/v8/typedapi/profiling/stacktraces" - profiling_status "github.com/elastic/go-elasticsearch/v8/typedapi/profiling/status" - profiling_topn_functions "github.com/elastic/go-elasticsearch/v8/typedapi/profiling/topnfunctions" - query_rules_delete_rule "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleterule" - query_rules_delete_ruleset "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/deleteruleset" - query_rules_get_rule "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getrule" - query_rules_get_ruleset "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/getruleset" - query_rules_list_rulesets "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/listrulesets" - query_rules_put_rule "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putrule" - query_rules_put_ruleset "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/putruleset" - query_rules_test "github.com/elastic/go-elasticsearch/v8/typedapi/queryrules/test" - rollup_delete_job "github.com/elastic/go-elasticsearch/v8/typedapi/rollup/deletejob" - rollup_get_jobs "github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getjobs" - rollup_get_rollup_caps "github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupcaps" - rollup_get_rollup_index_caps "github.com/elastic/go-elasticsearch/v8/typedapi/rollup/getrollupindexcaps" - rollup_put_job "github.com/elastic/go-elasticsearch/v8/typedapi/rollup/putjob" - rollup_rollup_search "github.com/elastic/go-elasticsearch/v8/typedapi/rollup/rollupsearch" - rollup_start_job "github.com/elastic/go-elasticsearch/v8/typedapi/rollup/startjob" - rollup_stop_job "github.com/elastic/go-elasticsearch/v8/typedapi/rollup/stopjob" - searchable_snapshots_cache_stats "github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/cachestats" - searchable_snapshots_clear_cache "github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/clearcache" - searchable_snapshots_mount "github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/mount" - searchable_snapshots_stats "github.com/elastic/go-elasticsearch/v8/typedapi/searchablesnapshots/stats" - search_application_delete "github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/delete" - search_application_delete_behavioral_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/deletebehavioralanalytics" - search_application_get "github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/get" - search_application_get_behavioral_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/getbehavioralanalytics" - search_application_list "github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/list" - search_application_post_behavioral_analytics_event "github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/postbehavioralanalyticsevent" - search_application_put "github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/put" - search_application_put_behavioral_analytics "github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/putbehavioralanalytics" - search_application_render_query "github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/renderquery" - search_application_search "github.com/elastic/go-elasticsearch/v8/typedapi/searchapplication/search" - security_activate_user_profile "github.com/elastic/go-elasticsearch/v8/typedapi/security/activateuserprofile" - security_authenticate "github.com/elastic/go-elasticsearch/v8/typedapi/security/authenticate" - security_bulk_delete_role "github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkdeleterole" - security_bulk_put_role "github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkputrole" - security_bulk_update_api_keys "github.com/elastic/go-elasticsearch/v8/typedapi/security/bulkupdateapikeys" - security_change_password "github.com/elastic/go-elasticsearch/v8/typedapi/security/changepassword" - security_clear_api_key_cache "github.com/elastic/go-elasticsearch/v8/typedapi/security/clearapikeycache" - security_clear_cached_privileges "github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedprivileges" - security_clear_cached_realms "github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedrealms" - security_clear_cached_roles "github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedroles" - security_clear_cached_service_tokens "github.com/elastic/go-elasticsearch/v8/typedapi/security/clearcachedservicetokens" - security_create_api_key "github.com/elastic/go-elasticsearch/v8/typedapi/security/createapikey" - security_create_cross_cluster_api_key "github.com/elastic/go-elasticsearch/v8/typedapi/security/createcrossclusterapikey" - security_create_service_token "github.com/elastic/go-elasticsearch/v8/typedapi/security/createservicetoken" - security_delegate_pki "github.com/elastic/go-elasticsearch/v8/typedapi/security/delegatepki" - security_delete_privileges "github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteprivileges" - security_delete_role "github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterole" - security_delete_role_mapping "github.com/elastic/go-elasticsearch/v8/typedapi/security/deleterolemapping" - security_delete_service_token "github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteservicetoken" - security_delete_user "github.com/elastic/go-elasticsearch/v8/typedapi/security/deleteuser" - security_disable_user "github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuser" - security_disable_user_profile "github.com/elastic/go-elasticsearch/v8/typedapi/security/disableuserprofile" - security_enable_user "github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuser" - security_enable_user_profile "github.com/elastic/go-elasticsearch/v8/typedapi/security/enableuserprofile" - security_enroll_kibana "github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollkibana" - security_enroll_node "github.com/elastic/go-elasticsearch/v8/typedapi/security/enrollnode" - security_get_api_key "github.com/elastic/go-elasticsearch/v8/typedapi/security/getapikey" - security_get_builtin_privileges "github.com/elastic/go-elasticsearch/v8/typedapi/security/getbuiltinprivileges" - security_get_privileges "github.com/elastic/go-elasticsearch/v8/typedapi/security/getprivileges" - security_get_role "github.com/elastic/go-elasticsearch/v8/typedapi/security/getrole" - security_get_role_mapping "github.com/elastic/go-elasticsearch/v8/typedapi/security/getrolemapping" - security_get_service_accounts "github.com/elastic/go-elasticsearch/v8/typedapi/security/getserviceaccounts" - security_get_service_credentials "github.com/elastic/go-elasticsearch/v8/typedapi/security/getservicecredentials" - security_get_settings "github.com/elastic/go-elasticsearch/v8/typedapi/security/getsettings" - security_get_token "github.com/elastic/go-elasticsearch/v8/typedapi/security/gettoken" - security_get_user "github.com/elastic/go-elasticsearch/v8/typedapi/security/getuser" - security_get_user_privileges "github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprivileges" - security_get_user_profile "github.com/elastic/go-elasticsearch/v8/typedapi/security/getuserprofile" - security_grant_api_key "github.com/elastic/go-elasticsearch/v8/typedapi/security/grantapikey" - security_has_privileges "github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivileges" - security_has_privileges_user_profile "github.com/elastic/go-elasticsearch/v8/typedapi/security/hasprivilegesuserprofile" - security_invalidate_api_key "github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidateapikey" - security_invalidate_token "github.com/elastic/go-elasticsearch/v8/typedapi/security/invalidatetoken" - security_oidc_authenticate "github.com/elastic/go-elasticsearch/v8/typedapi/security/oidcauthenticate" - security_oidc_logout "github.com/elastic/go-elasticsearch/v8/typedapi/security/oidclogout" - security_oidc_prepare_authentication "github.com/elastic/go-elasticsearch/v8/typedapi/security/oidcprepareauthentication" - security_put_privileges "github.com/elastic/go-elasticsearch/v8/typedapi/security/putprivileges" - security_put_role "github.com/elastic/go-elasticsearch/v8/typedapi/security/putrole" - security_put_role_mapping "github.com/elastic/go-elasticsearch/v8/typedapi/security/putrolemapping" - security_put_user "github.com/elastic/go-elasticsearch/v8/typedapi/security/putuser" - security_query_api_keys "github.com/elastic/go-elasticsearch/v8/typedapi/security/queryapikeys" - security_query_role "github.com/elastic/go-elasticsearch/v8/typedapi/security/queryrole" - security_query_user "github.com/elastic/go-elasticsearch/v8/typedapi/security/queryuser" - security_saml_authenticate "github.com/elastic/go-elasticsearch/v8/typedapi/security/samlauthenticate" - security_saml_complete_logout "github.com/elastic/go-elasticsearch/v8/typedapi/security/samlcompletelogout" - security_saml_invalidate "github.com/elastic/go-elasticsearch/v8/typedapi/security/samlinvalidate" - security_saml_logout "github.com/elastic/go-elasticsearch/v8/typedapi/security/samllogout" - security_saml_prepare_authentication "github.com/elastic/go-elasticsearch/v8/typedapi/security/samlprepareauthentication" - security_saml_service_provider_metadata "github.com/elastic/go-elasticsearch/v8/typedapi/security/samlserviceprovidermetadata" - security_suggest_user_profiles "github.com/elastic/go-elasticsearch/v8/typedapi/security/suggestuserprofiles" - security_update_api_key "github.com/elastic/go-elasticsearch/v8/typedapi/security/updateapikey" - security_update_cross_cluster_api_key "github.com/elastic/go-elasticsearch/v8/typedapi/security/updatecrossclusterapikey" - security_update_settings "github.com/elastic/go-elasticsearch/v8/typedapi/security/updatesettings" - security_update_user_profile_data "github.com/elastic/go-elasticsearch/v8/typedapi/security/updateuserprofiledata" - shutdown_delete_node "github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/deletenode" - shutdown_get_node "github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/getnode" - shutdown_put_node "github.com/elastic/go-elasticsearch/v8/typedapi/shutdown/putnode" - simulate_ingest "github.com/elastic/go-elasticsearch/v8/typedapi/simulate/ingest" - slm_delete_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/slm/deletelifecycle" - slm_execute_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/slm/executelifecycle" - slm_execute_retention "github.com/elastic/go-elasticsearch/v8/typedapi/slm/executeretention" - slm_get_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/slm/getlifecycle" - slm_get_stats "github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstats" - slm_get_status "github.com/elastic/go-elasticsearch/v8/typedapi/slm/getstatus" - slm_put_lifecycle "github.com/elastic/go-elasticsearch/v8/typedapi/slm/putlifecycle" - slm_start "github.com/elastic/go-elasticsearch/v8/typedapi/slm/start" - slm_stop "github.com/elastic/go-elasticsearch/v8/typedapi/slm/stop" - snapshot_cleanup_repository "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/cleanuprepository" - snapshot_clone "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/clone" - snapshot_create "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/create" - snapshot_create_repository "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/createrepository" - snapshot_delete "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/delete" - snapshot_delete_repository "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/deleterepository" - snapshot_get "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/get" - snapshot_get_repository "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/getrepository" - snapshot_repository_analyze "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryanalyze" - snapshot_repository_verify_integrity "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/repositoryverifyintegrity" - snapshot_restore "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/restore" - snapshot_status "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/status" - snapshot_verify_repository "github.com/elastic/go-elasticsearch/v8/typedapi/snapshot/verifyrepository" - sql_clear_cursor "github.com/elastic/go-elasticsearch/v8/typedapi/sql/clearcursor" - sql_delete_async "github.com/elastic/go-elasticsearch/v8/typedapi/sql/deleteasync" - sql_get_async "github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasync" - sql_get_async_status "github.com/elastic/go-elasticsearch/v8/typedapi/sql/getasyncstatus" - sql_query "github.com/elastic/go-elasticsearch/v8/typedapi/sql/query" - sql_translate "github.com/elastic/go-elasticsearch/v8/typedapi/sql/translate" - ssl_certificates "github.com/elastic/go-elasticsearch/v8/typedapi/ssl/certificates" - synonyms_delete_synonym "github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonym" - synonyms_delete_synonym_rule "github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/deletesynonymrule" - synonyms_get_synonym "github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonym" - synonyms_get_synonym_rule "github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymrule" - synonyms_get_synonyms_sets "github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/getsynonymssets" - synonyms_put_synonym "github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonym" - synonyms_put_synonym_rule "github.com/elastic/go-elasticsearch/v8/typedapi/synonyms/putsynonymrule" - tasks_cancel "github.com/elastic/go-elasticsearch/v8/typedapi/tasks/cancel" - tasks_get "github.com/elastic/go-elasticsearch/v8/typedapi/tasks/get" - tasks_list "github.com/elastic/go-elasticsearch/v8/typedapi/tasks/list" - text_structure_find_field_structure "github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findfieldstructure" - text_structure_find_message_structure "github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findmessagestructure" - text_structure_find_structure "github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/findstructure" - text_structure_test_grok_pattern "github.com/elastic/go-elasticsearch/v8/typedapi/textstructure/testgrokpattern" - transform_delete_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/deletetransform" - transform_get_node_stats "github.com/elastic/go-elasticsearch/v8/typedapi/transform/getnodestats" - transform_get_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransform" - transform_get_transform_stats "github.com/elastic/go-elasticsearch/v8/typedapi/transform/gettransformstats" - transform_preview_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/previewtransform" - transform_put_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/puttransform" - transform_reset_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/resettransform" - transform_schedule_now_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/schedulenowtransform" - transform_start_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/starttransform" - transform_stop_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/stoptransform" - transform_update_transform "github.com/elastic/go-elasticsearch/v8/typedapi/transform/updatetransform" - transform_upgrade_transforms "github.com/elastic/go-elasticsearch/v8/typedapi/transform/upgradetransforms" - watcher_ack_watch "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/ackwatch" - watcher_activate_watch "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/activatewatch" - watcher_deactivate_watch "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deactivatewatch" - watcher_delete_watch "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/deletewatch" - watcher_execute_watch "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/executewatch" - watcher_get_settings "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getsettings" - watcher_get_watch "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/getwatch" - watcher_put_watch "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/putwatch" - watcher_query_watches "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/querywatches" - watcher_start "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/start" - watcher_stats "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stats" - watcher_stop "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/stop" - watcher_update_settings "github.com/elastic/go-elasticsearch/v8/typedapi/watcher/updatesettings" - xpack_info "github.com/elastic/go-elasticsearch/v8/typedapi/xpack/info" - xpack_usage "github.com/elastic/go-elasticsearch/v8/typedapi/xpack/usage" + async_search_delete "github.com/elastic/go-elasticsearch/v9/typedapi/asyncsearch/delete" + async_search_get "github.com/elastic/go-elasticsearch/v9/typedapi/asyncsearch/get" + async_search_status "github.com/elastic/go-elasticsearch/v9/typedapi/asyncsearch/status" + async_search_submit "github.com/elastic/go-elasticsearch/v9/typedapi/asyncsearch/submit" + autoscaling_delete_autoscaling_policy "github.com/elastic/go-elasticsearch/v9/typedapi/autoscaling/deleteautoscalingpolicy" + autoscaling_get_autoscaling_capacity "github.com/elastic/go-elasticsearch/v9/typedapi/autoscaling/getautoscalingcapacity" + autoscaling_get_autoscaling_policy "github.com/elastic/go-elasticsearch/v9/typedapi/autoscaling/getautoscalingpolicy" + autoscaling_put_autoscaling_policy "github.com/elastic/go-elasticsearch/v9/typedapi/autoscaling/putautoscalingpolicy" + capabilities "github.com/elastic/go-elasticsearch/v9/typedapi/capabilities" + cat_aliases "github.com/elastic/go-elasticsearch/v9/typedapi/cat/aliases" + cat_allocation "github.com/elastic/go-elasticsearch/v9/typedapi/cat/allocation" + cat_component_templates "github.com/elastic/go-elasticsearch/v9/typedapi/cat/componenttemplates" + cat_count "github.com/elastic/go-elasticsearch/v9/typedapi/cat/count" + cat_fielddata "github.com/elastic/go-elasticsearch/v9/typedapi/cat/fielddata" + cat_health "github.com/elastic/go-elasticsearch/v9/typedapi/cat/health" + cat_help "github.com/elastic/go-elasticsearch/v9/typedapi/cat/help" + cat_indices "github.com/elastic/go-elasticsearch/v9/typedapi/cat/indices" + cat_master "github.com/elastic/go-elasticsearch/v9/typedapi/cat/master" + cat_ml_datafeeds "github.com/elastic/go-elasticsearch/v9/typedapi/cat/mldatafeeds" + cat_ml_data_frame_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/cat/mldataframeanalytics" + cat_ml_jobs "github.com/elastic/go-elasticsearch/v9/typedapi/cat/mljobs" + cat_ml_trained_models "github.com/elastic/go-elasticsearch/v9/typedapi/cat/mltrainedmodels" + cat_nodeattrs "github.com/elastic/go-elasticsearch/v9/typedapi/cat/nodeattrs" + cat_nodes "github.com/elastic/go-elasticsearch/v9/typedapi/cat/nodes" + cat_pending_tasks "github.com/elastic/go-elasticsearch/v9/typedapi/cat/pendingtasks" + cat_plugins "github.com/elastic/go-elasticsearch/v9/typedapi/cat/plugins" + cat_recovery "github.com/elastic/go-elasticsearch/v9/typedapi/cat/recovery" + cat_repositories "github.com/elastic/go-elasticsearch/v9/typedapi/cat/repositories" + cat_segments "github.com/elastic/go-elasticsearch/v9/typedapi/cat/segments" + cat_shards "github.com/elastic/go-elasticsearch/v9/typedapi/cat/shards" + cat_snapshots "github.com/elastic/go-elasticsearch/v9/typedapi/cat/snapshots" + cat_tasks "github.com/elastic/go-elasticsearch/v9/typedapi/cat/tasks" + cat_templates "github.com/elastic/go-elasticsearch/v9/typedapi/cat/templates" + cat_thread_pool "github.com/elastic/go-elasticsearch/v9/typedapi/cat/threadpool" + cat_transforms "github.com/elastic/go-elasticsearch/v9/typedapi/cat/transforms" + ccr_delete_auto_follow_pattern "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/deleteautofollowpattern" + ccr_follow "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/follow" + ccr_follow_info "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/followinfo" + ccr_follow_stats "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/followstats" + ccr_forget_follower "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/forgetfollower" + ccr_get_auto_follow_pattern "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/getautofollowpattern" + ccr_pause_auto_follow_pattern "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/pauseautofollowpattern" + ccr_pause_follow "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/pausefollow" + ccr_put_auto_follow_pattern "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/putautofollowpattern" + ccr_resume_auto_follow_pattern "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/resumeautofollowpattern" + ccr_resume_follow "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/resumefollow" + ccr_stats "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/stats" + ccr_unfollow "github.com/elastic/go-elasticsearch/v9/typedapi/ccr/unfollow" + cluster_allocation_explain "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/allocationexplain" + cluster_delete_component_template "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/deletecomponenttemplate" + cluster_delete_voting_config_exclusions "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/deletevotingconfigexclusions" + cluster_exists_component_template "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/existscomponenttemplate" + cluster_get_component_template "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/getcomponenttemplate" + cluster_get_settings "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/getsettings" + cluster_health "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/health" + cluster_info "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/info" + cluster_pending_tasks "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/pendingtasks" + cluster_post_voting_config_exclusions "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/postvotingconfigexclusions" + cluster_put_component_template "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/putcomponenttemplate" + cluster_put_settings "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/putsettings" + cluster_remote_info "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/remoteinfo" + cluster_reroute "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/reroute" + cluster_state "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/state" + cluster_stats "github.com/elastic/go-elasticsearch/v9/typedapi/cluster/stats" + connector_check_in "github.com/elastic/go-elasticsearch/v9/typedapi/connector/checkin" + connector_delete "github.com/elastic/go-elasticsearch/v9/typedapi/connector/delete" + connector_get "github.com/elastic/go-elasticsearch/v9/typedapi/connector/get" + connector_last_sync "github.com/elastic/go-elasticsearch/v9/typedapi/connector/lastsync" + connector_list "github.com/elastic/go-elasticsearch/v9/typedapi/connector/list" + connector_post "github.com/elastic/go-elasticsearch/v9/typedapi/connector/post" + connector_put "github.com/elastic/go-elasticsearch/v9/typedapi/connector/put" + connector_secret_post "github.com/elastic/go-elasticsearch/v9/typedapi/connector/secretpost" + connector_sync_job_cancel "github.com/elastic/go-elasticsearch/v9/typedapi/connector/syncjobcancel" + connector_sync_job_check_in "github.com/elastic/go-elasticsearch/v9/typedapi/connector/syncjobcheckin" + connector_sync_job_claim "github.com/elastic/go-elasticsearch/v9/typedapi/connector/syncjobclaim" + connector_sync_job_delete "github.com/elastic/go-elasticsearch/v9/typedapi/connector/syncjobdelete" + connector_sync_job_error "github.com/elastic/go-elasticsearch/v9/typedapi/connector/syncjoberror" + connector_sync_job_get "github.com/elastic/go-elasticsearch/v9/typedapi/connector/syncjobget" + connector_sync_job_list "github.com/elastic/go-elasticsearch/v9/typedapi/connector/syncjoblist" + connector_sync_job_post "github.com/elastic/go-elasticsearch/v9/typedapi/connector/syncjobpost" + connector_sync_job_update_stats "github.com/elastic/go-elasticsearch/v9/typedapi/connector/syncjobupdatestats" + connector_update_active_filtering "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updateactivefiltering" + connector_update_api_key_id "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updateapikeyid" + connector_update_configuration "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updateconfiguration" + connector_update_error "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updateerror" + connector_update_features "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updatefeatures" + connector_update_filtering "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updatefiltering" + connector_update_filtering_validation "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updatefilteringvalidation" + connector_update_index_name "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updateindexname" + connector_update_name "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updatename" + connector_update_native "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updatenative" + connector_update_pipeline "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updatepipeline" + connector_update_scheduling "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updatescheduling" + connector_update_service_type "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updateservicetype" + connector_update_status "github.com/elastic/go-elasticsearch/v9/typedapi/connector/updatestatus" + core_bulk "github.com/elastic/go-elasticsearch/v9/typedapi/core/bulk" + core_clear_scroll "github.com/elastic/go-elasticsearch/v9/typedapi/core/clearscroll" + core_close_point_in_time "github.com/elastic/go-elasticsearch/v9/typedapi/core/closepointintime" + core_count "github.com/elastic/go-elasticsearch/v9/typedapi/core/count" + core_create "github.com/elastic/go-elasticsearch/v9/typedapi/core/create" + core_delete "github.com/elastic/go-elasticsearch/v9/typedapi/core/delete" + core_delete_by_query "github.com/elastic/go-elasticsearch/v9/typedapi/core/deletebyquery" + core_delete_by_query_rethrottle "github.com/elastic/go-elasticsearch/v9/typedapi/core/deletebyqueryrethrottle" + core_delete_script "github.com/elastic/go-elasticsearch/v9/typedapi/core/deletescript" + core_exists "github.com/elastic/go-elasticsearch/v9/typedapi/core/exists" + core_exists_source "github.com/elastic/go-elasticsearch/v9/typedapi/core/existssource" + core_explain "github.com/elastic/go-elasticsearch/v9/typedapi/core/explain" + core_field_caps "github.com/elastic/go-elasticsearch/v9/typedapi/core/fieldcaps" + core_get "github.com/elastic/go-elasticsearch/v9/typedapi/core/get" + core_get_script "github.com/elastic/go-elasticsearch/v9/typedapi/core/getscript" + core_get_script_context "github.com/elastic/go-elasticsearch/v9/typedapi/core/getscriptcontext" + core_get_script_languages "github.com/elastic/go-elasticsearch/v9/typedapi/core/getscriptlanguages" + core_get_source "github.com/elastic/go-elasticsearch/v9/typedapi/core/getsource" + core_health_report "github.com/elastic/go-elasticsearch/v9/typedapi/core/healthreport" + core_index "github.com/elastic/go-elasticsearch/v9/typedapi/core/index" + core_info "github.com/elastic/go-elasticsearch/v9/typedapi/core/info" + core_knn_search "github.com/elastic/go-elasticsearch/v9/typedapi/core/knnsearch" + core_mget "github.com/elastic/go-elasticsearch/v9/typedapi/core/mget" + core_msearch "github.com/elastic/go-elasticsearch/v9/typedapi/core/msearch" + core_msearch_template "github.com/elastic/go-elasticsearch/v9/typedapi/core/msearchtemplate" + core_mtermvectors "github.com/elastic/go-elasticsearch/v9/typedapi/core/mtermvectors" + core_open_point_in_time "github.com/elastic/go-elasticsearch/v9/typedapi/core/openpointintime" + core_ping "github.com/elastic/go-elasticsearch/v9/typedapi/core/ping" + core_put_script "github.com/elastic/go-elasticsearch/v9/typedapi/core/putscript" + core_rank_eval "github.com/elastic/go-elasticsearch/v9/typedapi/core/rankeval" + core_reindex "github.com/elastic/go-elasticsearch/v9/typedapi/core/reindex" + core_reindex_rethrottle "github.com/elastic/go-elasticsearch/v9/typedapi/core/reindexrethrottle" + core_render_search_template "github.com/elastic/go-elasticsearch/v9/typedapi/core/rendersearchtemplate" + core_scripts_painless_execute "github.com/elastic/go-elasticsearch/v9/typedapi/core/scriptspainlessexecute" + core_scroll "github.com/elastic/go-elasticsearch/v9/typedapi/core/scroll" + core_search "github.com/elastic/go-elasticsearch/v9/typedapi/core/search" + core_search_mvt "github.com/elastic/go-elasticsearch/v9/typedapi/core/searchmvt" + core_search_shards "github.com/elastic/go-elasticsearch/v9/typedapi/core/searchshards" + core_search_template "github.com/elastic/go-elasticsearch/v9/typedapi/core/searchtemplate" + core_terms_enum "github.com/elastic/go-elasticsearch/v9/typedapi/core/termsenum" + core_termvectors "github.com/elastic/go-elasticsearch/v9/typedapi/core/termvectors" + core_update "github.com/elastic/go-elasticsearch/v9/typedapi/core/update" + core_update_by_query "github.com/elastic/go-elasticsearch/v9/typedapi/core/updatebyquery" + core_update_by_query_rethrottle "github.com/elastic/go-elasticsearch/v9/typedapi/core/updatebyqueryrethrottle" + dangling_indices_delete_dangling_index "github.com/elastic/go-elasticsearch/v9/typedapi/danglingindices/deletedanglingindex" + dangling_indices_import_dangling_index "github.com/elastic/go-elasticsearch/v9/typedapi/danglingindices/importdanglingindex" + dangling_indices_list_dangling_indices "github.com/elastic/go-elasticsearch/v9/typedapi/danglingindices/listdanglingindices" + enrich_delete_policy "github.com/elastic/go-elasticsearch/v9/typedapi/enrich/deletepolicy" + enrich_execute_policy "github.com/elastic/go-elasticsearch/v9/typedapi/enrich/executepolicy" + enrich_get_policy "github.com/elastic/go-elasticsearch/v9/typedapi/enrich/getpolicy" + enrich_put_policy "github.com/elastic/go-elasticsearch/v9/typedapi/enrich/putpolicy" + enrich_stats "github.com/elastic/go-elasticsearch/v9/typedapi/enrich/stats" + eql_delete "github.com/elastic/go-elasticsearch/v9/typedapi/eql/delete" + eql_get "github.com/elastic/go-elasticsearch/v9/typedapi/eql/get" + eql_get_status "github.com/elastic/go-elasticsearch/v9/typedapi/eql/getstatus" + eql_search "github.com/elastic/go-elasticsearch/v9/typedapi/eql/search" + esql_async_query "github.com/elastic/go-elasticsearch/v9/typedapi/esql/asyncquery" + esql_async_query_delete "github.com/elastic/go-elasticsearch/v9/typedapi/esql/asyncquerydelete" + esql_async_query_get "github.com/elastic/go-elasticsearch/v9/typedapi/esql/asyncqueryget" + esql_async_query_stop "github.com/elastic/go-elasticsearch/v9/typedapi/esql/asyncquerystop" + esql_query "github.com/elastic/go-elasticsearch/v9/typedapi/esql/query" + features_get_features "github.com/elastic/go-elasticsearch/v9/typedapi/features/getfeatures" + features_reset_features "github.com/elastic/go-elasticsearch/v9/typedapi/features/resetfeatures" + fleet_global_checkpoints "github.com/elastic/go-elasticsearch/v9/typedapi/fleet/globalcheckpoints" + fleet_msearch "github.com/elastic/go-elasticsearch/v9/typedapi/fleet/msearch" + fleet_post_secret "github.com/elastic/go-elasticsearch/v9/typedapi/fleet/postsecret" + fleet_search "github.com/elastic/go-elasticsearch/v9/typedapi/fleet/search" + graph_explore "github.com/elastic/go-elasticsearch/v9/typedapi/graph/explore" + ilm_delete_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/ilm/deletelifecycle" + ilm_explain_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/ilm/explainlifecycle" + ilm_get_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/ilm/getlifecycle" + ilm_get_status "github.com/elastic/go-elasticsearch/v9/typedapi/ilm/getstatus" + ilm_migrate_to_data_tiers "github.com/elastic/go-elasticsearch/v9/typedapi/ilm/migratetodatatiers" + ilm_move_to_step "github.com/elastic/go-elasticsearch/v9/typedapi/ilm/movetostep" + ilm_put_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/ilm/putlifecycle" + ilm_remove_policy "github.com/elastic/go-elasticsearch/v9/typedapi/ilm/removepolicy" + ilm_retry "github.com/elastic/go-elasticsearch/v9/typedapi/ilm/retry" + ilm_start "github.com/elastic/go-elasticsearch/v9/typedapi/ilm/start" + ilm_stop "github.com/elastic/go-elasticsearch/v9/typedapi/ilm/stop" + indices_add_block "github.com/elastic/go-elasticsearch/v9/typedapi/indices/addblock" + indices_analyze "github.com/elastic/go-elasticsearch/v9/typedapi/indices/analyze" + indices_cancel_migrate_reindex "github.com/elastic/go-elasticsearch/v9/typedapi/indices/cancelmigratereindex" + indices_clear_cache "github.com/elastic/go-elasticsearch/v9/typedapi/indices/clearcache" + indices_clone "github.com/elastic/go-elasticsearch/v9/typedapi/indices/clone" + indices_close "github.com/elastic/go-elasticsearch/v9/typedapi/indices/close" + indices_create "github.com/elastic/go-elasticsearch/v9/typedapi/indices/create" + indices_create_data_stream "github.com/elastic/go-elasticsearch/v9/typedapi/indices/createdatastream" + indices_create_from "github.com/elastic/go-elasticsearch/v9/typedapi/indices/createfrom" + indices_data_streams_stats "github.com/elastic/go-elasticsearch/v9/typedapi/indices/datastreamsstats" + indices_delete "github.com/elastic/go-elasticsearch/v9/typedapi/indices/delete" + indices_delete_alias "github.com/elastic/go-elasticsearch/v9/typedapi/indices/deletealias" + indices_delete_data_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/indices/deletedatalifecycle" + indices_delete_data_stream "github.com/elastic/go-elasticsearch/v9/typedapi/indices/deletedatastream" + indices_delete_index_template "github.com/elastic/go-elasticsearch/v9/typedapi/indices/deleteindextemplate" + indices_delete_template "github.com/elastic/go-elasticsearch/v9/typedapi/indices/deletetemplate" + indices_disk_usage "github.com/elastic/go-elasticsearch/v9/typedapi/indices/diskusage" + indices_downsample "github.com/elastic/go-elasticsearch/v9/typedapi/indices/downsample" + indices_exists "github.com/elastic/go-elasticsearch/v9/typedapi/indices/exists" + indices_exists_alias "github.com/elastic/go-elasticsearch/v9/typedapi/indices/existsalias" + indices_exists_index_template "github.com/elastic/go-elasticsearch/v9/typedapi/indices/existsindextemplate" + indices_exists_template "github.com/elastic/go-elasticsearch/v9/typedapi/indices/existstemplate" + indices_explain_data_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/indices/explaindatalifecycle" + indices_field_usage_stats "github.com/elastic/go-elasticsearch/v9/typedapi/indices/fieldusagestats" + indices_flush "github.com/elastic/go-elasticsearch/v9/typedapi/indices/flush" + indices_forcemerge "github.com/elastic/go-elasticsearch/v9/typedapi/indices/forcemerge" + indices_get "github.com/elastic/go-elasticsearch/v9/typedapi/indices/get" + indices_get_alias "github.com/elastic/go-elasticsearch/v9/typedapi/indices/getalias" + indices_get_data_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/indices/getdatalifecycle" + indices_get_data_lifecycle_stats "github.com/elastic/go-elasticsearch/v9/typedapi/indices/getdatalifecyclestats" + indices_get_data_stream "github.com/elastic/go-elasticsearch/v9/typedapi/indices/getdatastream" + indices_get_field_mapping "github.com/elastic/go-elasticsearch/v9/typedapi/indices/getfieldmapping" + indices_get_index_template "github.com/elastic/go-elasticsearch/v9/typedapi/indices/getindextemplate" + indices_get_mapping "github.com/elastic/go-elasticsearch/v9/typedapi/indices/getmapping" + indices_get_migrate_reindex_status "github.com/elastic/go-elasticsearch/v9/typedapi/indices/getmigratereindexstatus" + indices_get_settings "github.com/elastic/go-elasticsearch/v9/typedapi/indices/getsettings" + indices_get_template "github.com/elastic/go-elasticsearch/v9/typedapi/indices/gettemplate" + indices_migrate_reindex "github.com/elastic/go-elasticsearch/v9/typedapi/indices/migratereindex" + indices_migrate_to_data_stream "github.com/elastic/go-elasticsearch/v9/typedapi/indices/migratetodatastream" + indices_modify_data_stream "github.com/elastic/go-elasticsearch/v9/typedapi/indices/modifydatastream" + indices_open "github.com/elastic/go-elasticsearch/v9/typedapi/indices/open" + indices_promote_data_stream "github.com/elastic/go-elasticsearch/v9/typedapi/indices/promotedatastream" + indices_put_alias "github.com/elastic/go-elasticsearch/v9/typedapi/indices/putalias" + indices_put_data_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/indices/putdatalifecycle" + indices_put_index_template "github.com/elastic/go-elasticsearch/v9/typedapi/indices/putindextemplate" + indices_put_mapping "github.com/elastic/go-elasticsearch/v9/typedapi/indices/putmapping" + indices_put_settings "github.com/elastic/go-elasticsearch/v9/typedapi/indices/putsettings" + indices_put_template "github.com/elastic/go-elasticsearch/v9/typedapi/indices/puttemplate" + indices_recovery "github.com/elastic/go-elasticsearch/v9/typedapi/indices/recovery" + indices_refresh "github.com/elastic/go-elasticsearch/v9/typedapi/indices/refresh" + indices_reload_search_analyzers "github.com/elastic/go-elasticsearch/v9/typedapi/indices/reloadsearchanalyzers" + indices_resolve_cluster "github.com/elastic/go-elasticsearch/v9/typedapi/indices/resolvecluster" + indices_resolve_index "github.com/elastic/go-elasticsearch/v9/typedapi/indices/resolveindex" + indices_rollover "github.com/elastic/go-elasticsearch/v9/typedapi/indices/rollover" + indices_segments "github.com/elastic/go-elasticsearch/v9/typedapi/indices/segments" + indices_shard_stores "github.com/elastic/go-elasticsearch/v9/typedapi/indices/shardstores" + indices_shrink "github.com/elastic/go-elasticsearch/v9/typedapi/indices/shrink" + indices_simulate_index_template "github.com/elastic/go-elasticsearch/v9/typedapi/indices/simulateindextemplate" + indices_simulate_template "github.com/elastic/go-elasticsearch/v9/typedapi/indices/simulatetemplate" + indices_split "github.com/elastic/go-elasticsearch/v9/typedapi/indices/split" + indices_stats "github.com/elastic/go-elasticsearch/v9/typedapi/indices/stats" + indices_update_aliases "github.com/elastic/go-elasticsearch/v9/typedapi/indices/updatealiases" + indices_validate_query "github.com/elastic/go-elasticsearch/v9/typedapi/indices/validatequery" + inference_chat_completion_unified "github.com/elastic/go-elasticsearch/v9/typedapi/inference/chatcompletionunified" + inference_completion "github.com/elastic/go-elasticsearch/v9/typedapi/inference/completion" + inference_delete "github.com/elastic/go-elasticsearch/v9/typedapi/inference/delete" + inference_get "github.com/elastic/go-elasticsearch/v9/typedapi/inference/get" + inference_put "github.com/elastic/go-elasticsearch/v9/typedapi/inference/put" + inference_put_alibabacloud "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putalibabacloud" + inference_put_amazonbedrock "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putamazonbedrock" + inference_put_anthropic "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putanthropic" + inference_put_azureaistudio "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putazureaistudio" + inference_put_azureopenai "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putazureopenai" + inference_put_cohere "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putcohere" + inference_put_elasticsearch "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putelasticsearch" + inference_put_elser "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putelser" + inference_put_googleaistudio "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putgoogleaistudio" + inference_put_googlevertexai "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putgooglevertexai" + inference_put_hugging_face "github.com/elastic/go-elasticsearch/v9/typedapi/inference/puthuggingface" + inference_put_jinaai "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putjinaai" + inference_put_mistral "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putmistral" + inference_put_openai "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putopenai" + inference_put_voyageai "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putvoyageai" + inference_put_watsonx "github.com/elastic/go-elasticsearch/v9/typedapi/inference/putwatsonx" + inference_rerank "github.com/elastic/go-elasticsearch/v9/typedapi/inference/rerank" + inference_sparse_embedding "github.com/elastic/go-elasticsearch/v9/typedapi/inference/sparseembedding" + inference_stream_completion "github.com/elastic/go-elasticsearch/v9/typedapi/inference/streamcompletion" + inference_text_embedding "github.com/elastic/go-elasticsearch/v9/typedapi/inference/textembedding" + inference_update "github.com/elastic/go-elasticsearch/v9/typedapi/inference/update" + ingest_delete_geoip_database "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/deletegeoipdatabase" + ingest_delete_ip_location_database "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/deleteiplocationdatabase" + ingest_delete_pipeline "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/deletepipeline" + ingest_geo_ip_stats "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/geoipstats" + ingest_get_geoip_database "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/getgeoipdatabase" + ingest_get_ip_location_database "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/getiplocationdatabase" + ingest_get_pipeline "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/getpipeline" + ingest_processor_grok "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/processorgrok" + ingest_put_geoip_database "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/putgeoipdatabase" + ingest_put_ip_location_database "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/putiplocationdatabase" + ingest_put_pipeline "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/putpipeline" + ingest_simulate "github.com/elastic/go-elasticsearch/v9/typedapi/ingest/simulate" + license_delete "github.com/elastic/go-elasticsearch/v9/typedapi/license/delete" + license_get "github.com/elastic/go-elasticsearch/v9/typedapi/license/get" + license_get_basic_status "github.com/elastic/go-elasticsearch/v9/typedapi/license/getbasicstatus" + license_get_trial_status "github.com/elastic/go-elasticsearch/v9/typedapi/license/gettrialstatus" + license_post "github.com/elastic/go-elasticsearch/v9/typedapi/license/post" + license_post_start_basic "github.com/elastic/go-elasticsearch/v9/typedapi/license/poststartbasic" + license_post_start_trial "github.com/elastic/go-elasticsearch/v9/typedapi/license/poststarttrial" + logstash_delete_pipeline "github.com/elastic/go-elasticsearch/v9/typedapi/logstash/deletepipeline" + logstash_get_pipeline "github.com/elastic/go-elasticsearch/v9/typedapi/logstash/getpipeline" + logstash_put_pipeline "github.com/elastic/go-elasticsearch/v9/typedapi/logstash/putpipeline" + migration_deprecations "github.com/elastic/go-elasticsearch/v9/typedapi/migration/deprecations" + migration_get_feature_upgrade_status "github.com/elastic/go-elasticsearch/v9/typedapi/migration/getfeatureupgradestatus" + migration_post_feature_upgrade "github.com/elastic/go-elasticsearch/v9/typedapi/migration/postfeatureupgrade" + ml_clear_trained_model_deployment_cache "github.com/elastic/go-elasticsearch/v9/typedapi/ml/cleartrainedmodeldeploymentcache" + ml_close_job "github.com/elastic/go-elasticsearch/v9/typedapi/ml/closejob" + ml_delete_calendar "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deletecalendar" + ml_delete_calendar_event "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deletecalendarevent" + ml_delete_calendar_job "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deletecalendarjob" + ml_delete_datafeed "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deletedatafeed" + ml_delete_data_frame_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deletedataframeanalytics" + ml_delete_expired_data "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deleteexpireddata" + ml_delete_filter "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deletefilter" + ml_delete_forecast "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deleteforecast" + ml_delete_job "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deletejob" + ml_delete_model_snapshot "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deletemodelsnapshot" + ml_delete_trained_model "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deletetrainedmodel" + ml_delete_trained_model_alias "github.com/elastic/go-elasticsearch/v9/typedapi/ml/deletetrainedmodelalias" + ml_estimate_model_memory "github.com/elastic/go-elasticsearch/v9/typedapi/ml/estimatemodelmemory" + ml_evaluate_data_frame "github.com/elastic/go-elasticsearch/v9/typedapi/ml/evaluatedataframe" + ml_explain_data_frame_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/ml/explaindataframeanalytics" + ml_flush_job "github.com/elastic/go-elasticsearch/v9/typedapi/ml/flushjob" + ml_forecast "github.com/elastic/go-elasticsearch/v9/typedapi/ml/forecast" + ml_get_buckets "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getbuckets" + ml_get_calendar_events "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getcalendarevents" + ml_get_calendars "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getcalendars" + ml_get_categories "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getcategories" + ml_get_datafeeds "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getdatafeeds" + ml_get_datafeed_stats "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getdatafeedstats" + ml_get_data_frame_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getdataframeanalytics" + ml_get_data_frame_analytics_stats "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getdataframeanalyticsstats" + ml_get_filters "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getfilters" + ml_get_influencers "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getinfluencers" + ml_get_jobs "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getjobs" + ml_get_job_stats "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getjobstats" + ml_get_memory_stats "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getmemorystats" + ml_get_model_snapshots "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getmodelsnapshots" + ml_get_model_snapshot_upgrade_stats "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getmodelsnapshotupgradestats" + ml_get_overall_buckets "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getoverallbuckets" + ml_get_records "github.com/elastic/go-elasticsearch/v9/typedapi/ml/getrecords" + ml_get_trained_models "github.com/elastic/go-elasticsearch/v9/typedapi/ml/gettrainedmodels" + ml_get_trained_models_stats "github.com/elastic/go-elasticsearch/v9/typedapi/ml/gettrainedmodelsstats" + ml_infer_trained_model "github.com/elastic/go-elasticsearch/v9/typedapi/ml/infertrainedmodel" + ml_info "github.com/elastic/go-elasticsearch/v9/typedapi/ml/info" + ml_open_job "github.com/elastic/go-elasticsearch/v9/typedapi/ml/openjob" + ml_post_calendar_events "github.com/elastic/go-elasticsearch/v9/typedapi/ml/postcalendarevents" + ml_post_data "github.com/elastic/go-elasticsearch/v9/typedapi/ml/postdata" + ml_preview_datafeed "github.com/elastic/go-elasticsearch/v9/typedapi/ml/previewdatafeed" + ml_preview_data_frame_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/ml/previewdataframeanalytics" + ml_put_calendar "github.com/elastic/go-elasticsearch/v9/typedapi/ml/putcalendar" + ml_put_calendar_job "github.com/elastic/go-elasticsearch/v9/typedapi/ml/putcalendarjob" + ml_put_datafeed "github.com/elastic/go-elasticsearch/v9/typedapi/ml/putdatafeed" + ml_put_data_frame_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/ml/putdataframeanalytics" + ml_put_filter "github.com/elastic/go-elasticsearch/v9/typedapi/ml/putfilter" + ml_put_job "github.com/elastic/go-elasticsearch/v9/typedapi/ml/putjob" + ml_put_trained_model "github.com/elastic/go-elasticsearch/v9/typedapi/ml/puttrainedmodel" + ml_put_trained_model_alias "github.com/elastic/go-elasticsearch/v9/typedapi/ml/puttrainedmodelalias" + ml_put_trained_model_definition_part "github.com/elastic/go-elasticsearch/v9/typedapi/ml/puttrainedmodeldefinitionpart" + ml_put_trained_model_vocabulary "github.com/elastic/go-elasticsearch/v9/typedapi/ml/puttrainedmodelvocabulary" + ml_reset_job "github.com/elastic/go-elasticsearch/v9/typedapi/ml/resetjob" + ml_revert_model_snapshot "github.com/elastic/go-elasticsearch/v9/typedapi/ml/revertmodelsnapshot" + ml_set_upgrade_mode "github.com/elastic/go-elasticsearch/v9/typedapi/ml/setupgrademode" + ml_start_datafeed "github.com/elastic/go-elasticsearch/v9/typedapi/ml/startdatafeed" + ml_start_data_frame_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/ml/startdataframeanalytics" + ml_start_trained_model_deployment "github.com/elastic/go-elasticsearch/v9/typedapi/ml/starttrainedmodeldeployment" + ml_stop_datafeed "github.com/elastic/go-elasticsearch/v9/typedapi/ml/stopdatafeed" + ml_stop_data_frame_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/ml/stopdataframeanalytics" + ml_stop_trained_model_deployment "github.com/elastic/go-elasticsearch/v9/typedapi/ml/stoptrainedmodeldeployment" + ml_update_datafeed "github.com/elastic/go-elasticsearch/v9/typedapi/ml/updatedatafeed" + ml_update_data_frame_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/ml/updatedataframeanalytics" + ml_update_filter "github.com/elastic/go-elasticsearch/v9/typedapi/ml/updatefilter" + ml_update_job "github.com/elastic/go-elasticsearch/v9/typedapi/ml/updatejob" + ml_update_model_snapshot "github.com/elastic/go-elasticsearch/v9/typedapi/ml/updatemodelsnapshot" + ml_update_trained_model_deployment "github.com/elastic/go-elasticsearch/v9/typedapi/ml/updatetrainedmodeldeployment" + ml_upgrade_job_snapshot "github.com/elastic/go-elasticsearch/v9/typedapi/ml/upgradejobsnapshot" + ml_validate "github.com/elastic/go-elasticsearch/v9/typedapi/ml/validate" + ml_validate_detector "github.com/elastic/go-elasticsearch/v9/typedapi/ml/validatedetector" + monitoring_bulk "github.com/elastic/go-elasticsearch/v9/typedapi/monitoring/bulk" + nodes_clear_repositories_metering_archive "github.com/elastic/go-elasticsearch/v9/typedapi/nodes/clearrepositoriesmeteringarchive" + nodes_get_repositories_metering_info "github.com/elastic/go-elasticsearch/v9/typedapi/nodes/getrepositoriesmeteringinfo" + nodes_hot_threads "github.com/elastic/go-elasticsearch/v9/typedapi/nodes/hotthreads" + nodes_info "github.com/elastic/go-elasticsearch/v9/typedapi/nodes/info" + nodes_reload_secure_settings "github.com/elastic/go-elasticsearch/v9/typedapi/nodes/reloadsecuresettings" + nodes_stats "github.com/elastic/go-elasticsearch/v9/typedapi/nodes/stats" + nodes_usage "github.com/elastic/go-elasticsearch/v9/typedapi/nodes/usage" + profiling_flamegraph "github.com/elastic/go-elasticsearch/v9/typedapi/profiling/flamegraph" + profiling_stacktraces "github.com/elastic/go-elasticsearch/v9/typedapi/profiling/stacktraces" + profiling_status "github.com/elastic/go-elasticsearch/v9/typedapi/profiling/status" + profiling_topn_functions "github.com/elastic/go-elasticsearch/v9/typedapi/profiling/topnfunctions" + query_rules_delete_rule "github.com/elastic/go-elasticsearch/v9/typedapi/queryrules/deleterule" + query_rules_delete_ruleset "github.com/elastic/go-elasticsearch/v9/typedapi/queryrules/deleteruleset" + query_rules_get_rule "github.com/elastic/go-elasticsearch/v9/typedapi/queryrules/getrule" + query_rules_get_ruleset "github.com/elastic/go-elasticsearch/v9/typedapi/queryrules/getruleset" + query_rules_list_rulesets "github.com/elastic/go-elasticsearch/v9/typedapi/queryrules/listrulesets" + query_rules_put_rule "github.com/elastic/go-elasticsearch/v9/typedapi/queryrules/putrule" + query_rules_put_ruleset "github.com/elastic/go-elasticsearch/v9/typedapi/queryrules/putruleset" + query_rules_test "github.com/elastic/go-elasticsearch/v9/typedapi/queryrules/test" + rollup_delete_job "github.com/elastic/go-elasticsearch/v9/typedapi/rollup/deletejob" + rollup_get_jobs "github.com/elastic/go-elasticsearch/v9/typedapi/rollup/getjobs" + rollup_get_rollup_caps "github.com/elastic/go-elasticsearch/v9/typedapi/rollup/getrollupcaps" + rollup_get_rollup_index_caps "github.com/elastic/go-elasticsearch/v9/typedapi/rollup/getrollupindexcaps" + rollup_put_job "github.com/elastic/go-elasticsearch/v9/typedapi/rollup/putjob" + rollup_rollup_search "github.com/elastic/go-elasticsearch/v9/typedapi/rollup/rollupsearch" + rollup_start_job "github.com/elastic/go-elasticsearch/v9/typedapi/rollup/startjob" + rollup_stop_job "github.com/elastic/go-elasticsearch/v9/typedapi/rollup/stopjob" + searchable_snapshots_cache_stats "github.com/elastic/go-elasticsearch/v9/typedapi/searchablesnapshots/cachestats" + searchable_snapshots_clear_cache "github.com/elastic/go-elasticsearch/v9/typedapi/searchablesnapshots/clearcache" + searchable_snapshots_mount "github.com/elastic/go-elasticsearch/v9/typedapi/searchablesnapshots/mount" + searchable_snapshots_stats "github.com/elastic/go-elasticsearch/v9/typedapi/searchablesnapshots/stats" + search_application_delete "github.com/elastic/go-elasticsearch/v9/typedapi/searchapplication/delete" + search_application_delete_behavioral_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/searchapplication/deletebehavioralanalytics" + search_application_get "github.com/elastic/go-elasticsearch/v9/typedapi/searchapplication/get" + search_application_get_behavioral_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/searchapplication/getbehavioralanalytics" + search_application_list "github.com/elastic/go-elasticsearch/v9/typedapi/searchapplication/list" + search_application_post_behavioral_analytics_event "github.com/elastic/go-elasticsearch/v9/typedapi/searchapplication/postbehavioralanalyticsevent" + search_application_put "github.com/elastic/go-elasticsearch/v9/typedapi/searchapplication/put" + search_application_put_behavioral_analytics "github.com/elastic/go-elasticsearch/v9/typedapi/searchapplication/putbehavioralanalytics" + search_application_render_query "github.com/elastic/go-elasticsearch/v9/typedapi/searchapplication/renderquery" + search_application_search "github.com/elastic/go-elasticsearch/v9/typedapi/searchapplication/search" + security_activate_user_profile "github.com/elastic/go-elasticsearch/v9/typedapi/security/activateuserprofile" + security_authenticate "github.com/elastic/go-elasticsearch/v9/typedapi/security/authenticate" + security_bulk_delete_role "github.com/elastic/go-elasticsearch/v9/typedapi/security/bulkdeleterole" + security_bulk_put_role "github.com/elastic/go-elasticsearch/v9/typedapi/security/bulkputrole" + security_bulk_update_api_keys "github.com/elastic/go-elasticsearch/v9/typedapi/security/bulkupdateapikeys" + security_change_password "github.com/elastic/go-elasticsearch/v9/typedapi/security/changepassword" + security_clear_api_key_cache "github.com/elastic/go-elasticsearch/v9/typedapi/security/clearapikeycache" + security_clear_cached_privileges "github.com/elastic/go-elasticsearch/v9/typedapi/security/clearcachedprivileges" + security_clear_cached_realms "github.com/elastic/go-elasticsearch/v9/typedapi/security/clearcachedrealms" + security_clear_cached_roles "github.com/elastic/go-elasticsearch/v9/typedapi/security/clearcachedroles" + security_clear_cached_service_tokens "github.com/elastic/go-elasticsearch/v9/typedapi/security/clearcachedservicetokens" + security_create_api_key "github.com/elastic/go-elasticsearch/v9/typedapi/security/createapikey" + security_create_cross_cluster_api_key "github.com/elastic/go-elasticsearch/v9/typedapi/security/createcrossclusterapikey" + security_create_service_token "github.com/elastic/go-elasticsearch/v9/typedapi/security/createservicetoken" + security_delegate_pki "github.com/elastic/go-elasticsearch/v9/typedapi/security/delegatepki" + security_delete_privileges "github.com/elastic/go-elasticsearch/v9/typedapi/security/deleteprivileges" + security_delete_role "github.com/elastic/go-elasticsearch/v9/typedapi/security/deleterole" + security_delete_role_mapping "github.com/elastic/go-elasticsearch/v9/typedapi/security/deleterolemapping" + security_delete_service_token "github.com/elastic/go-elasticsearch/v9/typedapi/security/deleteservicetoken" + security_delete_user "github.com/elastic/go-elasticsearch/v9/typedapi/security/deleteuser" + security_disable_user "github.com/elastic/go-elasticsearch/v9/typedapi/security/disableuser" + security_disable_user_profile "github.com/elastic/go-elasticsearch/v9/typedapi/security/disableuserprofile" + security_enable_user "github.com/elastic/go-elasticsearch/v9/typedapi/security/enableuser" + security_enable_user_profile "github.com/elastic/go-elasticsearch/v9/typedapi/security/enableuserprofile" + security_enroll_kibana "github.com/elastic/go-elasticsearch/v9/typedapi/security/enrollkibana" + security_enroll_node "github.com/elastic/go-elasticsearch/v9/typedapi/security/enrollnode" + security_get_api_key "github.com/elastic/go-elasticsearch/v9/typedapi/security/getapikey" + security_get_builtin_privileges "github.com/elastic/go-elasticsearch/v9/typedapi/security/getbuiltinprivileges" + security_get_privileges "github.com/elastic/go-elasticsearch/v9/typedapi/security/getprivileges" + security_get_role "github.com/elastic/go-elasticsearch/v9/typedapi/security/getrole" + security_get_role_mapping "github.com/elastic/go-elasticsearch/v9/typedapi/security/getrolemapping" + security_get_service_accounts "github.com/elastic/go-elasticsearch/v9/typedapi/security/getserviceaccounts" + security_get_service_credentials "github.com/elastic/go-elasticsearch/v9/typedapi/security/getservicecredentials" + security_get_settings "github.com/elastic/go-elasticsearch/v9/typedapi/security/getsettings" + security_get_token "github.com/elastic/go-elasticsearch/v9/typedapi/security/gettoken" + security_get_user "github.com/elastic/go-elasticsearch/v9/typedapi/security/getuser" + security_get_user_privileges "github.com/elastic/go-elasticsearch/v9/typedapi/security/getuserprivileges" + security_get_user_profile "github.com/elastic/go-elasticsearch/v9/typedapi/security/getuserprofile" + security_grant_api_key "github.com/elastic/go-elasticsearch/v9/typedapi/security/grantapikey" + security_has_privileges "github.com/elastic/go-elasticsearch/v9/typedapi/security/hasprivileges" + security_has_privileges_user_profile "github.com/elastic/go-elasticsearch/v9/typedapi/security/hasprivilegesuserprofile" + security_invalidate_api_key "github.com/elastic/go-elasticsearch/v9/typedapi/security/invalidateapikey" + security_invalidate_token "github.com/elastic/go-elasticsearch/v9/typedapi/security/invalidatetoken" + security_oidc_authenticate "github.com/elastic/go-elasticsearch/v9/typedapi/security/oidcauthenticate" + security_oidc_logout "github.com/elastic/go-elasticsearch/v9/typedapi/security/oidclogout" + security_oidc_prepare_authentication "github.com/elastic/go-elasticsearch/v9/typedapi/security/oidcprepareauthentication" + security_put_privileges "github.com/elastic/go-elasticsearch/v9/typedapi/security/putprivileges" + security_put_role "github.com/elastic/go-elasticsearch/v9/typedapi/security/putrole" + security_put_role_mapping "github.com/elastic/go-elasticsearch/v9/typedapi/security/putrolemapping" + security_put_user "github.com/elastic/go-elasticsearch/v9/typedapi/security/putuser" + security_query_api_keys "github.com/elastic/go-elasticsearch/v9/typedapi/security/queryapikeys" + security_query_role "github.com/elastic/go-elasticsearch/v9/typedapi/security/queryrole" + security_query_user "github.com/elastic/go-elasticsearch/v9/typedapi/security/queryuser" + security_saml_authenticate "github.com/elastic/go-elasticsearch/v9/typedapi/security/samlauthenticate" + security_saml_complete_logout "github.com/elastic/go-elasticsearch/v9/typedapi/security/samlcompletelogout" + security_saml_invalidate "github.com/elastic/go-elasticsearch/v9/typedapi/security/samlinvalidate" + security_saml_logout "github.com/elastic/go-elasticsearch/v9/typedapi/security/samllogout" + security_saml_prepare_authentication "github.com/elastic/go-elasticsearch/v9/typedapi/security/samlprepareauthentication" + security_saml_service_provider_metadata "github.com/elastic/go-elasticsearch/v9/typedapi/security/samlserviceprovidermetadata" + security_suggest_user_profiles "github.com/elastic/go-elasticsearch/v9/typedapi/security/suggestuserprofiles" + security_update_api_key "github.com/elastic/go-elasticsearch/v9/typedapi/security/updateapikey" + security_update_cross_cluster_api_key "github.com/elastic/go-elasticsearch/v9/typedapi/security/updatecrossclusterapikey" + security_update_settings "github.com/elastic/go-elasticsearch/v9/typedapi/security/updatesettings" + security_update_user_profile_data "github.com/elastic/go-elasticsearch/v9/typedapi/security/updateuserprofiledata" + shutdown_delete_node "github.com/elastic/go-elasticsearch/v9/typedapi/shutdown/deletenode" + shutdown_get_node "github.com/elastic/go-elasticsearch/v9/typedapi/shutdown/getnode" + shutdown_put_node "github.com/elastic/go-elasticsearch/v9/typedapi/shutdown/putnode" + simulate_ingest "github.com/elastic/go-elasticsearch/v9/typedapi/simulate/ingest" + slm_delete_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/slm/deletelifecycle" + slm_execute_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/slm/executelifecycle" + slm_execute_retention "github.com/elastic/go-elasticsearch/v9/typedapi/slm/executeretention" + slm_get_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/slm/getlifecycle" + slm_get_stats "github.com/elastic/go-elasticsearch/v9/typedapi/slm/getstats" + slm_get_status "github.com/elastic/go-elasticsearch/v9/typedapi/slm/getstatus" + slm_put_lifecycle "github.com/elastic/go-elasticsearch/v9/typedapi/slm/putlifecycle" + slm_start "github.com/elastic/go-elasticsearch/v9/typedapi/slm/start" + slm_stop "github.com/elastic/go-elasticsearch/v9/typedapi/slm/stop" + snapshot_cleanup_repository "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/cleanuprepository" + snapshot_clone "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/clone" + snapshot_create "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/create" + snapshot_create_repository "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/createrepository" + snapshot_delete "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/delete" + snapshot_delete_repository "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/deleterepository" + snapshot_get "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/get" + snapshot_get_repository "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/getrepository" + snapshot_repository_analyze "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/repositoryanalyze" + snapshot_repository_verify_integrity "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/repositoryverifyintegrity" + snapshot_restore "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/restore" + snapshot_status "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/status" + snapshot_verify_repository "github.com/elastic/go-elasticsearch/v9/typedapi/snapshot/verifyrepository" + sql_clear_cursor "github.com/elastic/go-elasticsearch/v9/typedapi/sql/clearcursor" + sql_delete_async "github.com/elastic/go-elasticsearch/v9/typedapi/sql/deleteasync" + sql_get_async "github.com/elastic/go-elasticsearch/v9/typedapi/sql/getasync" + sql_get_async_status "github.com/elastic/go-elasticsearch/v9/typedapi/sql/getasyncstatus" + sql_query "github.com/elastic/go-elasticsearch/v9/typedapi/sql/query" + sql_translate "github.com/elastic/go-elasticsearch/v9/typedapi/sql/translate" + ssl_certificates "github.com/elastic/go-elasticsearch/v9/typedapi/ssl/certificates" + synonyms_delete_synonym "github.com/elastic/go-elasticsearch/v9/typedapi/synonyms/deletesynonym" + synonyms_delete_synonym_rule "github.com/elastic/go-elasticsearch/v9/typedapi/synonyms/deletesynonymrule" + synonyms_get_synonym "github.com/elastic/go-elasticsearch/v9/typedapi/synonyms/getsynonym" + synonyms_get_synonym_rule "github.com/elastic/go-elasticsearch/v9/typedapi/synonyms/getsynonymrule" + synonyms_get_synonyms_sets "github.com/elastic/go-elasticsearch/v9/typedapi/synonyms/getsynonymssets" + synonyms_put_synonym "github.com/elastic/go-elasticsearch/v9/typedapi/synonyms/putsynonym" + synonyms_put_synonym_rule "github.com/elastic/go-elasticsearch/v9/typedapi/synonyms/putsynonymrule" + tasks_cancel "github.com/elastic/go-elasticsearch/v9/typedapi/tasks/cancel" + tasks_get "github.com/elastic/go-elasticsearch/v9/typedapi/tasks/get" + tasks_list "github.com/elastic/go-elasticsearch/v9/typedapi/tasks/list" + text_structure_find_field_structure "github.com/elastic/go-elasticsearch/v9/typedapi/textstructure/findfieldstructure" + text_structure_find_message_structure "github.com/elastic/go-elasticsearch/v9/typedapi/textstructure/findmessagestructure" + text_structure_find_structure "github.com/elastic/go-elasticsearch/v9/typedapi/textstructure/findstructure" + text_structure_test_grok_pattern "github.com/elastic/go-elasticsearch/v9/typedapi/textstructure/testgrokpattern" + transform_delete_transform "github.com/elastic/go-elasticsearch/v9/typedapi/transform/deletetransform" + transform_get_node_stats "github.com/elastic/go-elasticsearch/v9/typedapi/transform/getnodestats" + transform_get_transform "github.com/elastic/go-elasticsearch/v9/typedapi/transform/gettransform" + transform_get_transform_stats "github.com/elastic/go-elasticsearch/v9/typedapi/transform/gettransformstats" + transform_preview_transform "github.com/elastic/go-elasticsearch/v9/typedapi/transform/previewtransform" + transform_put_transform "github.com/elastic/go-elasticsearch/v9/typedapi/transform/puttransform" + transform_reset_transform "github.com/elastic/go-elasticsearch/v9/typedapi/transform/resettransform" + transform_schedule_now_transform "github.com/elastic/go-elasticsearch/v9/typedapi/transform/schedulenowtransform" + transform_start_transform "github.com/elastic/go-elasticsearch/v9/typedapi/transform/starttransform" + transform_stop_transform "github.com/elastic/go-elasticsearch/v9/typedapi/transform/stoptransform" + transform_update_transform "github.com/elastic/go-elasticsearch/v9/typedapi/transform/updatetransform" + transform_upgrade_transforms "github.com/elastic/go-elasticsearch/v9/typedapi/transform/upgradetransforms" + watcher_ack_watch "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/ackwatch" + watcher_activate_watch "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/activatewatch" + watcher_deactivate_watch "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/deactivatewatch" + watcher_delete_watch "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/deletewatch" + watcher_execute_watch "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/executewatch" + watcher_get_settings "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/getsettings" + watcher_get_watch "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/getwatch" + watcher_put_watch "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/putwatch" + watcher_query_watches "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/querywatches" + watcher_start "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/start" + watcher_stats "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/stats" + watcher_stop "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/stop" + watcher_update_settings "github.com/elastic/go-elasticsearch/v9/typedapi/watcher/updatesettings" + xpack_info "github.com/elastic/go-elasticsearch/v9/typedapi/xpack/info" + xpack_usage "github.com/elastic/go-elasticsearch/v9/typedapi/xpack/usage" ) type AsyncSearch struct { @@ -4947,10 +4961,288 @@ type Inference struct { // APIs. // https://www.elastic.co/docs/api/doc/elasticsearch/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/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/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/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/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/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/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/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/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/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/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/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/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/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. + // service or `openai` compatible APIs. // // When you create an inference endpoint, the associated machine learning model // is automatically deployed if it is not already running. @@ -4961,8 +5253,17 @@ type Inference struct { // `"allocation_count"` matches the `"target_allocation_count"`. // Avoid creating multiple endpoints for the same model unless required, as each // endpoint consumes significant resources. - // https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-openai.html + // https://www.elastic.co/docs/api/doc/elasticsearch/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/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 @@ -8222,7 +8523,13 @@ type Watcher struct { // Update Watcher index settings. // Update settings for the Watcher internal index (`.watches`). // Only a subset of settings can be modified. - // This includes `index.auto_expand_replicas` and `index.number_of_replicas`. + // This includes `index.auto_expand_replicas`, `index.number_of_replicas`, + // `index.routing.allocation.exclude.*`, + // `index.routing.allocation.include.*` and + // `index.routing.allocation.require.*`. + // Modification of `index.routing.allocation.include._tier_preference` is an + // exception and is not allowed as the + // Watcher shards must always be in the `data_content` tier. // https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-update-settings UpdateSettings watcher_update_settings.NewUpdateSettings } @@ -10514,7 +10821,21 @@ func New(tp elastictransport.Interface) *API { Delete: inference_delete.NewDeleteFunc(tp), Get: inference_get.NewGetFunc(tp), Put: inference_put.NewPutFunc(tp), + PutAlibabacloud: inference_put_alibabacloud.NewPutAlibabacloudFunc(tp), + PutAmazonbedrock: inference_put_amazonbedrock.NewPutAmazonbedrockFunc(tp), + PutAnthropic: inference_put_anthropic.NewPutAnthropicFunc(tp), + PutAzureaistudio: inference_put_azureaistudio.NewPutAzureaistudioFunc(tp), + PutAzureopenai: inference_put_azureopenai.NewPutAzureopenaiFunc(tp), + PutCohere: inference_put_cohere.NewPutCohereFunc(tp), + PutElasticsearch: inference_put_elasticsearch.NewPutElasticsearchFunc(tp), + PutElser: inference_put_elser.NewPutElserFunc(tp), + PutGoogleaistudio: inference_put_googleaistudio.NewPutGoogleaistudioFunc(tp), + PutGooglevertexai: inference_put_googlevertexai.NewPutGooglevertexaiFunc(tp), + PutHuggingFace: inference_put_hugging_face.NewPutHuggingFaceFunc(tp), + PutJinaai: inference_put_jinaai.NewPutJinaaiFunc(tp), + PutMistral: inference_put_mistral.NewPutMistralFunc(tp), PutOpenai: inference_put_openai.NewPutOpenaiFunc(tp), + PutVoyageai: inference_put_voyageai.NewPutVoyageaiFunc(tp), PutWatsonx: inference_put_watsonx.NewPutWatsonxFunc(tp), Rerank: inference_rerank.NewRerankFunc(tp), SparseEmbedding: inference_sparse_embedding.NewSparseEmbeddingFunc(tp), diff --git a/typedapi/asyncsearch/delete/delete.go b/typedapi/asyncsearch/delete/delete.go index a3bd6311f8..11bbf8ce36 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete an async search. // @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -150,7 +150,7 @@ func (r *Delete) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/asyncsearch/delete/response.go b/typedapi/asyncsearch/delete/response.go index 223dd7ba6a..1456180f15 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/async_search/delete/AsyncSearchDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7657144399..f20d9d620c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get async search results. // @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -146,7 +146,7 @@ func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/asyncsearch/get/response.go b/typedapi/asyncsearch/get/response.go index a39a9abd94..260bc2d2ab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package get @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/async_search/get/AsyncSearchGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f7cbd30d6c..fa0374acb2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package status @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package status // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/async_search/status/AsyncSearchStatusResponse.ts#L39-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 34709ce85d..c939782203 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the async search status. // @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -154,7 +154,7 @@ func (r *Status) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/asyncsearch/submit/request.go b/typedapi/asyncsearch/submit/request.go index 4f6389a05f..ef1aab0cc9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package submit @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package submit // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/async_search/submit/AsyncSearchSubmitRequest.ts#L54-L294 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` @@ -59,7 +59,7 @@ type Request struct { // Knn Defines the approximate kNN search to run. Knn []types.KnnSearch `json:"knn,omitempty"` // MinScore Minimum _score for matching documents. Documents with a lower _score are - // not included in the search results. + // not included in search results and results collected by aggregations. MinScore *types.Float64 `json:"min_score,omitempty"` // Pit Limits the search to a point in time (PIT). If you provide a PIT, you // cannot specify an in the request path. diff --git a/typedapi/asyncsearch/submit/response.go b/typedapi/asyncsearch/submit/response.go index ee18d4ddbc..3a5212ea38 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package submit @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package submit // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/async_search/submit/AsyncSearchSubmitResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 507807cfd0..5184710e1e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run an async search. // @@ -46,11 +46,11 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/suggestmode" ) const ( @@ -215,12 +215,12 @@ func (r *Submit) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -489,8 +489,8 @@ func (r *Submit) Lenient(lenient bool) *Submit { // concurrently. This value should be used to limit the impact of the search on // the cluster in order to limit the number of concurrent shard requests // API name: max_concurrent_shard_requests -func (r *Submit) MaxConcurrentShardRequests(maxconcurrentshardrequests string) *Submit { - r.values.Set("max_concurrent_shard_requests", maxconcurrentshardrequests) +func (r *Submit) MaxConcurrentShardRequests(maxconcurrentshardrequests int) *Submit { + r.values.Set("max_concurrent_shard_requests", strconv.Itoa(maxconcurrentshardrequests)) return r } @@ -821,7 +821,7 @@ func (r *Submit) Knn(knns ...types.KnnSearchVariant) *Submit { } // Minimum _score for matching documents. Documents with a lower _score are -// not included in the search results. +// not included in search results and results collected by aggregations. // API name: min_score func (r *Submit) MinScore(minscore types.Float64) *Submit { // Initialize the request if it is not already initialized diff --git a/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go b/typedapi/autoscaling/deleteautoscalingpolicy/delete_autoscaling_policy.go index c9042a3da4..2510b8afd1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete an autoscaling policy. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -146,7 +146,7 @@ func (r *DeleteAutoscalingPolicy) HttpRequest(ctx context.Context) (*http.Reques req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/autoscaling/deleteautoscalingpolicy/response.go b/typedapi/autoscaling/deleteautoscalingpolicy/response.go index 76420f8dda..46bc9d64cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteautoscalingpolicy // Response holds the response body struct for the package deleteautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/autoscaling/delete_autoscaling_policy/DeleteAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0064b10a2b..1401b237bf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the autoscaling capacity. // @@ -55,7 +55,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -168,7 +168,7 @@ func (r *GetAutoscalingCapacity) HttpRequest(ctx context.Context) (*http.Request req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/autoscaling/getautoscalingcapacity/response.go b/typedapi/autoscaling/getautoscalingcapacity/response.go index 9f7fa6128e..b3219d5ca4 100644 --- a/typedapi/autoscaling/getautoscalingcapacity/response.go +++ b/typedapi/autoscaling/getautoscalingcapacity/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getautoscalingcapacity import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getautoscalingcapacity // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d55873ad4f..cf8864de73 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get an autoscaling policy. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -146,7 +146,7 @@ func (r *GetAutoscalingPolicy) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/autoscaling/getautoscalingpolicy/response.go b/typedapi/autoscaling/getautoscalingpolicy/response.go index e6f7c57ea7..72641f44ae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getautoscalingpolicy @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/autoscaling/get_autoscaling_policy/GetAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 95c5a03aef..4fdfcaa7a6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update an autoscaling policy. // @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -194,12 +194,12 @@ func (r *PutAutoscalingPolicy) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/autoscaling/putautoscalingpolicy/request.go b/typedapi/autoscaling/putautoscalingpolicy/request.go index a5b716027e..9a2981cc5f 100644 --- a/typedapi/autoscaling/putautoscalingpolicy/request.go +++ b/typedapi/autoscaling/putautoscalingpolicy/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putautoscalingpolicy import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyRequest.ts#L25-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 577850d424..57a780340c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putautoscalingpolicy // Response holds the response body struct for the package putautoscalingpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/autoscaling/put_autoscaling_policy/PutAutoscalingPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 67519d9de0..8faa16b181 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Checks if the specified combination of method, API, parameters, and arbitrary // capabilities are supported @@ -121,7 +121,7 @@ func (r *Capabilities) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/aliases/aliases.go b/typedapi/cat/aliases/aliases.go index a03623bc61..59921c40b1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get aliases. // @@ -40,8 +40,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -158,7 +158,7 @@ func (r *Aliases) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/aliases/response.go b/typedapi/cat/aliases/response.go index ac8a0b0955..5f7f579fd5 100644 --- a/typedapi/cat/aliases/response.go +++ b/typedapi/cat/aliases/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package aliases import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package aliases // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/aliases/CatAliasesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dd1302e881..6210c8e811 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get shard allocation information. // @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/bytes" ) const ( @@ -156,7 +156,7 @@ func (r *Allocation) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/allocation/response.go b/typedapi/cat/allocation/response.go index 3cd4257b4b..5a5bd72d99 100644 --- a/typedapi/cat/allocation/response.go +++ b/typedapi/cat/allocation/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package allocation import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package allocation // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/allocation/CatAllocationResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0b0c6f0bb8..52efee1c32 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get component templates. // @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -161,7 +161,7 @@ func (r *ComponentTemplates) HttpRequest(ctx context.Context) (*http.Request, er req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/componenttemplates/response.go b/typedapi/cat/componenttemplates/response.go index c9e35d83c7..8ad1f49a89 100644 --- a/typedapi/cat/componenttemplates/response.go +++ b/typedapi/cat/componenttemplates/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package componenttemplates import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package componenttemplates // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/component_templates/CatComponentTemplatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0f896ffd76..6d5ebe3321 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a document count. // @@ -43,7 +43,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -163,7 +163,7 @@ func (r *Count) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/count/response.go b/typedapi/cat/count/response.go index 2e0521bd1e..de2500f2b6 100644 --- a/typedapi/cat/count/response.go +++ b/typedapi/cat/count/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package count import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/count/CatCountResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 24b27fbd05..18746323ad 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get field data cache information. // @@ -41,8 +41,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/bytes" ) const ( @@ -160,7 +160,7 @@ func (r *Fielddata) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/fielddata/response.go b/typedapi/cat/fielddata/response.go index a741894638..ea203aecd5 100644 --- a/typedapi/cat/fielddata/response.go +++ b/typedapi/cat/fielddata/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package fielddata import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package fielddata // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/fielddata/CatFielddataResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6d29e45c1f..7742ad8e48 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the cluster health status. // @@ -48,8 +48,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -155,7 +155,7 @@ func (r *Health) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/health/response.go b/typedapi/cat/health/response.go index 471c9271cc..1ab00a0d25 100644 --- a/typedapi/cat/health/response.go +++ b/typedapi/cat/health/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package health import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package health // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/health/CatHealthResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8e35324ff0..17803fbff5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get CAT help. // @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. diff --git a/typedapi/cat/help/response.go b/typedapi/cat/help/response.go index 01ad8b0e3f..a9a8ce7f6b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package help // Response holds the response body struct for the package help // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/help/CatHelpResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 95bfe5ac1a..8a1026b053 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get index information. // @@ -55,11 +55,11 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "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/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/healthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) const ( @@ -191,7 +191,7 @@ func (r *Indices) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/indices/response.go b/typedapi/cat/indices/response.go index 65762f71cf..c9a6915d05 100644 --- a/typedapi/cat/indices/response.go +++ b/typedapi/cat/indices/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package indices import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package indices // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/indices/CatIndicesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 75b3265acb..83bcf4aa95 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get master node information. // @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -138,7 +138,7 @@ func (r *Master) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/master/response.go b/typedapi/cat/master/response.go index b32e9dd002..192b3d1d53 100644 --- a/typedapi/cat/master/response.go +++ b/typedapi/cat/master/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package master import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package master // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/master/CatMasterResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 069dbe60d9..142520d944 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get datafeeds. // @@ -43,9 +43,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdatafeedcolumn" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catdatafeedcolumn" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) const ( @@ -169,7 +169,7 @@ func (r *MlDatafeeds) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/mldatafeeds/response.go b/typedapi/cat/mldatafeeds/response.go index 86f95ce17e..e458565874 100644 --- a/typedapi/cat/mldatafeeds/response.go +++ b/typedapi/cat/mldatafeeds/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package mldatafeeds import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package mldatafeeds // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/ml_datafeeds/CatDatafeedsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a1bf0e11d0..7a17aa2770 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get data frame analytics jobs. // @@ -40,10 +40,10 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdfacolumn" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "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/catdfacolumn" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) const ( @@ -168,7 +168,7 @@ func (r *MlDataFrameAnalytics) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/mldataframeanalytics/response.go b/typedapi/cat/mldataframeanalytics/response.go index f0fe6cc31a..d5ce3be3d2 100644 --- a/typedapi/cat/mldataframeanalytics/response.go +++ b/typedapi/cat/mldataframeanalytics/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package mldataframeanalytics import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package mldataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/ml_data_frame_analytics/CatDataFrameAnalyticsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a6d1581e8b..8efda8ab94 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get anomaly detection jobs. // @@ -43,10 +43,10 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catanomalydetectorcolumn" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "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/catanomalydetectorcolumn" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) const ( @@ -170,7 +170,7 @@ func (r *MlJobs) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/mljobs/response.go b/typedapi/cat/mljobs/response.go index f129bb82d9..b46bb73e6e 100644 --- a/typedapi/cat/mljobs/response.go +++ b/typedapi/cat/mljobs/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package mljobs import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package mljobs // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/ml_jobs/CatJobsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4ae542728b..589149d614 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get trained models. // @@ -39,10 +39,10 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattrainedmodelscolumn" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "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/cattrainedmodelscolumn" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) const ( @@ -162,7 +162,7 @@ func (r *MlTrainedModels) HttpRequest(ctx context.Context) (*http.Request, error req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/mltrainedmodels/response.go b/typedapi/cat/mltrainedmodels/response.go index 60be79e512..cec5a7abb6 100644 --- a/typedapi/cat/mltrainedmodels/response.go +++ b/typedapi/cat/mltrainedmodels/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package mltrainedmodels import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package mltrainedmodels // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/ml_trained_models/CatTrainedModelsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e1b4e9eb47..659672808b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get node attribute information. // @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -134,7 +134,7 @@ func (r *Nodeattrs) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/nodeattrs/response.go b/typedapi/cat/nodeattrs/response.go index bcfc4e4419..432090e72b 100644 --- a/typedapi/cat/nodeattrs/response.go +++ b/typedapi/cat/nodeattrs/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package nodeattrs import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package nodeattrs // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/nodeattrs/CatNodeAttributesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3f86fc0456..abc3abfeda 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get node information. // @@ -38,9 +38,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "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/timeunit" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -136,7 +136,7 @@ func (r *Nodes) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/nodes/response.go b/typedapi/cat/nodes/response.go index 86fb508143..b4bb966ed7 100644 --- a/typedapi/cat/nodes/response.go +++ b/typedapi/cat/nodes/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package nodes import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package nodes // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/nodes/CatNodesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 300a8a1900..ebb518c4df 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get pending task information. // @@ -38,8 +38,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -135,7 +135,7 @@ func (r *PendingTasks) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/pendingtasks/response.go b/typedapi/cat/pendingtasks/response.go index 31cd9d8fff..1130062539 100644 --- a/typedapi/cat/pendingtasks/response.go +++ b/typedapi/cat/pendingtasks/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package pendingtasks import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package pendingtasks // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/pending_tasks/CatPendingTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0457708954..6796536f35 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get plugin information. // @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -134,7 +134,7 @@ func (r *Plugins) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/plugins/response.go b/typedapi/cat/plugins/response.go index a2405caf7a..bb901deb36 100644 --- a/typedapi/cat/plugins/response.go +++ b/typedapi/cat/plugins/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package plugins import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package plugins // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/plugins/CatPluginsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fdd5a7bf06..c5c2de0f8b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get shard recovery information. // @@ -44,9 +44,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "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/timeunit" ) const ( @@ -167,7 +167,7 @@ func (r *Recovery) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/recovery/response.go b/typedapi/cat/recovery/response.go index 7931ef8fdd..09af2b1956 100644 --- a/typedapi/cat/recovery/response.go +++ b/typedapi/cat/recovery/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package recovery import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package recovery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/recovery/CatRecoveryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2752709774..8ee8e48a36 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get snapshot repository information. // @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -134,7 +134,7 @@ func (r *Repositories) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/repositories/response.go b/typedapi/cat/repositories/response.go index 15083bca55..d5e1e730b2 100644 --- a/typedapi/cat/repositories/response.go +++ b/typedapi/cat/repositories/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package repositories import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package repositories // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/repositories/CatRepositoriesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9a186184ed..3ad429696f 100644 --- a/typedapi/cat/segments/response.go +++ b/typedapi/cat/segments/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package segments import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package segments // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/segments/CatSegmentsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ec83938141..c124ea1dc9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get segment information. // @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/bytes" ) const ( @@ -156,7 +156,7 @@ func (r *Segments) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/shards/response.go b/typedapi/cat/shards/response.go index 65df9d5a7c..d6aca765a7 100644 --- a/typedapi/cat/shards/response.go +++ b/typedapi/cat/shards/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package shards import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package shards // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/shards/CatShardsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5b22f35267..7d6799860c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get shard information. // @@ -38,9 +38,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/bytes" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "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/timeunit" ) const ( @@ -155,7 +155,7 @@ func (r *Shards) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/snapshots/response.go b/typedapi/cat/snapshots/response.go index 3a3653befa..3ba3ac5205 100644 --- a/typedapi/cat/snapshots/response.go +++ b/typedapi/cat/snapshots/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package snapshots import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package snapshots // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/snapshots/CatSnapshotsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c44972f578..8f3158f537 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get snapshot information. // @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) const ( @@ -156,7 +156,7 @@ func (r *Snapshots) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/tasks/response.go b/typedapi/cat/tasks/response.go index 134ec8208c..41bcda697d 100644 --- a/typedapi/cat/tasks/response.go +++ b/typedapi/cat/tasks/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package tasks import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package tasks // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/tasks/CatTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0161edb198..902576bed3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get task information. // @@ -38,8 +38,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -135,7 +135,7 @@ func (r *Tasks) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/templates/response.go b/typedapi/cat/templates/response.go index 2c4625726e..b8b2851c6b 100644 --- a/typedapi/cat/templates/response.go +++ b/typedapi/cat/templates/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package templates import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package templates // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/templates/CatTemplatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0658fb067d..adc8aa91e6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get index template information. // @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -157,7 +157,7 @@ func (r *Templates) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/threadpool/response.go b/typedapi/cat/threadpool/response.go index 77817ad294..d7f8242406 100644 --- a/typedapi/cat/threadpool/response.go +++ b/typedapi/cat/threadpool/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package threadpool import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package threadpool // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/thread_pool/CatThreadPoolResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0130476256..80de3968ac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get thread pool statistics. // @@ -40,8 +40,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) const ( @@ -158,7 +158,7 @@ func (r *ThreadPool) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cat/transforms/response.go b/typedapi/cat/transforms/response.go index f0474e0f09..73e7ab7832 100644 --- a/typedapi/cat/transforms/response.go +++ b/typedapi/cat/transforms/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package transforms import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package transforms // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/transforms/CatTransformsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2a7cbce74b..df1fac17fe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get transform information. // @@ -39,9 +39,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattransformcolumn" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cattransformcolumn" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) const ( @@ -157,7 +157,7 @@ func (r *Transforms) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/deleteautofollowpattern/delete_auto_follow_pattern.go b/typedapi/ccr/deleteautofollowpattern/delete_auto_follow_pattern.go index 5c5b2dbfde..9b7d4b881e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete auto-follow patterns. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -142,7 +142,7 @@ func (r *DeleteAutoFollowPattern) HttpRequest(ctx context.Context) (*http.Reques req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/deleteautofollowpattern/response.go b/typedapi/ccr/deleteautofollowpattern/response.go index 4f844353f9..9e0962809b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteautofollowpattern // Response holds the response body struct for the package deleteautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/delete_auto_follow_pattern/DeleteAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b979a8e352..8736d5576a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a follower. // Create a cross-cluster replication follower index that follows a specific @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -194,12 +194,12 @@ func (r *Follow) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/follow/request.go b/typedapi/ccr/follow/request.go index ab78dfd1d7..552dd6eed8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package follow @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package follow // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/follow/CreateFollowIndexRequest.ts#L26-L124 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e8f8b11978..4a4cd0ff56 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package follow // Response holds the response body struct for the package follow // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/follow/CreateFollowIndexResponse.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1270a251b0..d79caf2b32 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get follower information. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -146,7 +146,7 @@ func (r *FollowInfo) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/followinfo/response.go b/typedapi/ccr/followinfo/response.go index 00ee949498..c5b6e1122f 100644 --- a/typedapi/ccr/followinfo/response.go +++ b/typedapi/ccr/followinfo/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package followinfo import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package followinfo // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/follow_info/FollowInfoResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7bb5924958..47c2ccc043 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get follower stats. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -146,7 +146,7 @@ func (r *FollowStats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/followstats/response.go b/typedapi/ccr/followstats/response.go index 57f03c16b4..3f26eae0be 100644 --- a/typedapi/ccr/followstats/response.go +++ b/typedapi/ccr/followstats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package followstats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package followstats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/follow_stats/FollowIndexStatsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 009d0fda05..cbbecd5e70 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Forget a follower. // Remove the cross-cluster replication follower retention leases from the @@ -58,7 +58,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -234,12 +234,12 @@ func (r *ForgetFollower) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/forgetfollower/request.go b/typedapi/ccr/forgetfollower/request.go index fcfdce190d..63b117db6b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package forgetfollower @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package forgetfollower // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/forget_follower/ForgetFollowerIndexRequest.ts#L24-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 18bbf0a32f..0607b66aac 100644 --- a/typedapi/ccr/forgetfollower/response.go +++ b/typedapi/ccr/forgetfollower/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package forgetfollower import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package forgetfollower // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/forget_follower/ForgetFollowerIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 40d631301c..d830a2b116 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get auto-follow patterns. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -147,7 +147,7 @@ func (r *GetAutoFollowPattern) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/getautofollowpattern/response.go b/typedapi/ccr/getautofollowpattern/response.go index 44ba08e0e9..60f4dc655a 100644 --- a/typedapi/ccr/getautofollowpattern/response.go +++ b/typedapi/ccr/getautofollowpattern/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getautofollowpattern import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/get_auto_follow_pattern/GetAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 93c0d588f5..9b5fe942ab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Pause an auto-follow pattern. // @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -164,7 +164,7 @@ func (r *PauseAutoFollowPattern) HttpRequest(ctx context.Context) (*http.Request req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/pauseautofollowpattern/response.go b/typedapi/ccr/pauseautofollowpattern/response.go index 1a48e3bef4..af998da3d2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package pauseautofollowpattern // Response holds the response body struct for the package pauseautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/pause_auto_follow_pattern/PauseAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fbe0ddfcda..6e356c22c1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Pause a follower. // @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -152,7 +152,7 @@ func (r *PauseFollow) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/pausefollow/response.go b/typedapi/ccr/pausefollow/response.go index eaf05cd5bd..7a910d873f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package pausefollow // Response holds the response body struct for the package pausefollow // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/pause_follow/PauseFollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fda481940d..e1580602e6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update auto-follow patterns. // Create a collection of cross-cluster replication auto-follow patterns for a @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -208,12 +208,12 @@ func (r *PutAutoFollowPattern) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/putautofollowpattern/request.go b/typedapi/ccr/putautofollowpattern/request.go index 8c50f3c68a..60f08b72c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putautofollowpattern @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternRequest.ts#L27-L133 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b6f0470dbd..154114aa38 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putautofollowpattern // Response holds the response body struct for the package putautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/put_auto_follow_pattern/PutAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2c651b2832..29f121dfaf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package resumeautofollowpattern // Response holds the response body struct for the package resumeautofollowpattern // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/resume_auto_follow_pattern/ResumeAutoFollowPatternResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b095357654..efa78ad781 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Resume an auto-follow pattern. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -152,7 +152,7 @@ func (r *ResumeAutoFollowPattern) HttpRequest(ctx context.Context) (*http.Reques req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/resumefollow/request.go b/typedapi/ccr/resumefollow/request.go index 3d1ec5f675..0e5630d8f9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package resumefollow @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package resumefollow // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/resume_follow/ResumeFollowIndexRequest.ts#L25-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a59ccfd30c..da79f01117 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package resumefollow // Response holds the response body struct for the package resumefollow // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/resume_follow/ResumeFollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b145f82753..6ee2951a22 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Resume a follower. // Resume a cross-cluster replication follower index that was paused. @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -198,12 +198,12 @@ func (r *ResumeFollow) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/stats/response.go b/typedapi/ccr/stats/response.go index 1bc9e2eab9..c0a960d939 100644 --- a/typedapi/ccr/stats/response.go +++ b/typedapi/ccr/stats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/stats/CcrStatsResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 24d2676171..410ef7aad8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get cross-cluster replication stats. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -130,7 +130,7 @@ func (r *Stats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ccr/unfollow/response.go b/typedapi/ccr/unfollow/response.go index 20a300bc2b..74cd8d25b0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package unfollow // Response holds the response body struct for the package unfollow // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/unfollow/UnfollowIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 15b6625072..fe454efda9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Unfollow an index. // @@ -44,7 +44,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -160,7 +160,7 @@ func (r *Unfollow) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/allocationexplain/allocation_explain.go b/typedapi/cluster/allocationexplain/allocation_explain.go index 66f3fe246b..129d800f5a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Explain the shard allocations. // Get explanations for shard allocations in the cluster. @@ -43,7 +43,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -192,12 +192,12 @@ func (r *AllocationExplain) HttpRequest(ctx context.Context) (*http.Request, err if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/allocationexplain/request.go b/typedapi/cluster/allocationexplain/request.go index 12e508bc62..be93d0a43c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package allocationexplain @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package allocationexplain // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L79 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/allocation_explain/ClusterAllocationExplainRequest.ts#L25-L79 type Request struct { // CurrentNode Specifies the node ID or the name of the node to only explain a shard that is diff --git a/typedapi/cluster/allocationexplain/response.go b/typedapi/cluster/allocationexplain/response.go index c37314ebe4..b9e2371f23 100644 --- a/typedapi/cluster/allocationexplain/response.go +++ b/typedapi/cluster/allocationexplain/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package allocationexplain import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/decision" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/decision" ) // Response holds the response body struct for the package allocationexplain // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/ClusterAllocationExplainResponse.ts#L32-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 272208f56e..b98e222992 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete component templates. // Component templates are building blocks for constructing index templates that @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *DeleteComponentTemplate) HttpRequest(ctx context.Context) (*http.Reques req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/deletecomponenttemplate/response.go b/typedapi/cluster/deletecomponenttemplate/response.go index 1e5e407dc7..e9fc81427f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletecomponenttemplate // Response holds the response body struct for the package deletecomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/delete_component_template/ClusterDeleteComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1b0cc5b1cf..d93586efcd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear cluster voting config exclusions. // Remove master-eligible nodes from the voting configuration exclusion list. @@ -124,7 +124,7 @@ func (r *DeleteVotingConfigExclusions) HttpRequest(ctx context.Context) (*http.R req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/existscomponenttemplate/exists_component_template.go b/typedapi/cluster/existscomponenttemplate/exists_component_template.go index 1651b73049..c47c84f451 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Check component templates. // Returns information about whether a particular component template exists. @@ -136,7 +136,7 @@ func (r *ExistsComponentTemplate) HttpRequest(ctx context.Context) (*http.Reques req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/getcomponenttemplate/get_component_template.go b/typedapi/cluster/getcomponenttemplate/get_component_template.go index eb770f03ab..c1e6a4f15d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get component templates. // Get information about component templates. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -141,7 +141,7 @@ func (r *GetComponentTemplate) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/getcomponenttemplate/response.go b/typedapi/cluster/getcomponenttemplate/response.go index acd683e8b3..67fca87930 100644 --- a/typedapi/cluster/getcomponenttemplate/response.go +++ b/typedapi/cluster/getcomponenttemplate/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getcomponenttemplate import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/get_component_template/ClusterGetComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 87a16221e1..2eca9ed47a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get cluster-wide settings. // By default, it returns only settings that have been explicitly defined. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -126,7 +126,7 @@ func (r *GetSettings) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/getsettings/response.go b/typedapi/cluster/getsettings/response.go index 4fec2b5968..1155d124dc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/get_settings/ClusterGetSettingsResponse.ts#L23-L29 type Response struct { Defaults map[string]json.RawMessage `json:"defaults,omitempty"` Persistent map[string]json.RawMessage `json:"persistent"` diff --git a/typedapi/cluster/health/health.go b/typedapi/cluster/health/health.go index 5670c542a2..f6c9dd3fdc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the cluster health status. // @@ -49,11 +49,11 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/level" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/waitforevents" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/healthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/level" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/waitforevents" ) const ( @@ -178,7 +178,7 @@ func (r *Health) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/health/response.go b/typedapi/cluster/health/response.go index 080b4bba39..0f94b4ab22 100644 --- a/typedapi/cluster/health/response.go +++ b/typedapi/cluster/health/response.go @@ -16,26 +16,29 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package health import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/healthstatus" ) // Response holds the response body struct for the package health // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/health/ClusterHealthResponse.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/health/ClusterHealthResponse.ts#L26-L38 type Response struct { // ActivePrimaryShards The number of active primary shards. ActivePrimaryShards int `json:"active_primary_shards"` // ActiveShards The total number of active primary and replica shards. ActiveShards int `json:"active_shards"` + // ActiveShardsPercent The ratio of active shards in the cluster expressed as a string formatted + // percentage. + ActiveShardsPercent *string `json:"active_shards_percent,omitempty"` // ActiveShardsPercentAsNumber The ratio of active shards in the cluster expressed as a percentage. - ActiveShardsPercentAsNumber types.Percentage `json:"active_shards_percent_as_number"` + ActiveShardsPercentAsNumber types.Float64 `json:"active_shards_percent_as_number"` // ClusterName The name of the cluster. ClusterName string `json:"cluster_name"` // DelayedUnassignedShards The number of shards whose allocation has been delayed by the timeout diff --git a/typedapi/cluster/info/info.go b/typedapi/cluster/info/info.go index 02bd725682..ec54281e6a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get cluster info. // Returns basic information about the cluster. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -138,7 +138,7 @@ func (r *Info) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/info/response.go b/typedapi/cluster/info/response.go index b7ecc8ee1c..a5f78085e9 100644 --- a/typedapi/cluster/info/response.go +++ b/typedapi/cluster/info/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package info import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/info/ClusterInfoResponse.ts#L26-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f09fb7aff3..ef9df10e48 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the pending cluster tasks. // Get information about cluster-level changes (such as create index, update @@ -43,7 +43,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -144,7 +144,7 @@ func (r *PendingTasks) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/pendingtasks/response.go b/typedapi/cluster/pendingtasks/response.go index 31fc88c8cf..7ef96f7986 100644 --- a/typedapi/cluster/pendingtasks/response.go +++ b/typedapi/cluster/pendingtasks/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package pendingtasks import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package pendingtasks // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/pending_tasks/ClusterPendingTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4f6a5b5af4..696872f47d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update voting configuration exclusions. // Update the cluster voting config exclusions by node IDs or node names. @@ -198,7 +198,7 @@ func (r *PostVotingConfigExclusions) HttpRequest(ctx context.Context) (*http.Req req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/putcomponenttemplate/put_component_template.go b/typedapi/cluster/putcomponenttemplate/put_component_template.go index 4fb4d421d2..5b5c0f36dc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a component template. // Component templates are building blocks for constructing index templates that @@ -62,7 +62,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -240,12 +240,12 @@ func (r *PutComponentTemplate) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/putcomponenttemplate/request.go b/typedapi/cluster/putcomponenttemplate/request.go index 41718cbcc9..35d4d0b0b3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putcomponenttemplate @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L105 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L25-L105 type Request struct { // Deprecated Marks this index template as deprecated. When creating or updating a diff --git a/typedapi/cluster/putcomponenttemplate/response.go b/typedapi/cluster/putcomponenttemplate/response.go index cd9a44e1fd..78eeda35a6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putcomponenttemplate // Response holds the response body struct for the package putcomponenttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/put_component_template/ClusterPutComponentTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 27d0efef5e..a38ac7ca6c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the cluster settings. // @@ -66,7 +66,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -236,12 +236,12 @@ func (r *PutSettings) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/putsettings/request.go b/typedapi/cluster/putsettings/request.go index 52230a2d17..0439cd1bac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putsettings @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L68 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/put_settings/ClusterPutSettingsRequest.ts#L25-L68 type Request struct { Persistent map[string]json.RawMessage `json:"persistent,omitempty"` Transient map[string]json.RawMessage `json:"transient,omitempty"` diff --git a/typedapi/cluster/putsettings/response.go b/typedapi/cluster/putsettings/response.go index 89feb4c565..dc45e878cd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putsettings @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/put_settings/ClusterPutSettingsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 40b27ee469..250f9388bf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get remote cluster information. // @@ -49,7 +49,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -156,7 +156,7 @@ func (r *RemoteInfo) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/remoteinfo/response.go b/typedapi/cluster/remoteinfo/response.go index f4ab17a293..32d185b8a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package remoteinfo @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package remoteinfo // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2f4f959de7..da229db61b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package reroute @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package reroute // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/reroute/ClusterRerouteRequest.ts#L25-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 542932757d..3b6d076399 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Reroute the cluster. // Manually change the allocation of individual shards in the cluster. @@ -62,7 +62,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -228,12 +228,12 @@ func (r *Reroute) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/reroute/response.go b/typedapi/cluster/reroute/response.go index 6754a70140..eb40cc4ccd 100644 --- a/typedapi/cluster/reroute/response.go +++ b/typedapi/cluster/reroute/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package reroute import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package reroute // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/reroute/ClusterRerouteResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d67e08936c..18a66b0c05 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package state @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package state // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/state/ClusterStateResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ba1c01284d..1086be1d9d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the cluster state. // Get comprehensive information about the state of the cluster. @@ -64,8 +64,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -228,7 +228,7 @@ func (r *State) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/cluster/stats/response.go b/typedapi/cluster/stats/response.go index 7f65f6b66f..b6d68d7337 100644 --- a/typedapi/cluster/stats/response.go +++ b/typedapi/cluster/stats/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/healthstatus" ) // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/ClusterStatsResponse.ts#L53-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/ClusterStatsResponse.ts#L53-L56 type Response struct { // ClusterName Name of the cluster, based on the cluster name setting. diff --git a/typedapi/cluster/stats/stats.go b/typedapi/cluster/stats/stats.go index 305bc0e594..d5f8fe0a78 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get cluster statistics. // Get basic index metrics (shard numbers, store size, memory usage) and @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -151,7 +151,7 @@ func (r *Stats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/checkin/check_in.go b/typedapi/connector/checkin/check_in.go index 6ebe966e6a..f4ed40effe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Check in a connector. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *CheckIn) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/checkin/response.go b/typedapi/connector/checkin/response.go index 95100ec115..0850ca879b 100644 --- a/typedapi/connector/checkin/response.go +++ b/typedapi/connector/checkin/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package checkin import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package checkin // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/check_in/ConnectorCheckInResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0caaec0745..9715cc3859 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a connector. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -148,7 +148,7 @@ func (r *Delete) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/delete/response.go b/typedapi/connector/delete/response.go index 77a998c1ad..83e91bacd5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/delete/ConnectorDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e6a0d4a0cc..3945eb4f93 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a connector. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/get/response.go b/typedapi/connector/get/response.go index df7919e392..9a76a9d510 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package get @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/connectorstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncstatus" ) // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/get/ConnectorGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 117626843b..18c4159b49 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector last sync stats. // @@ -37,8 +37,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncstatus" ) const ( @@ -193,12 +193,12 @@ func (r *LastSync) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/lastsync/request.go b/typedapi/connector/lastsync/request.go index 650d59fed8..e30c496e3f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package lastsync @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncstatus" ) // Request holds the request body struct for the package lastsync // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/last_sync/ConnectorUpdateLastSyncRequest.ts#L26-L66 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5924e69612..7c52d4bdaf 100644 --- a/typedapi/connector/lastsync/response.go +++ b/typedapi/connector/lastsync/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package lastsync import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package lastsync // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/last_sync/ConnectorUpdateLastSyncResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bda8cd12ad..2176da0f67 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get all connectors. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -126,7 +126,7 @@ func (r *List) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/list/response.go b/typedapi/connector/list/response.go index 6852eb7181..5ff98431db 100644 --- a/typedapi/connector/list/response.go +++ b/typedapi/connector/list/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package list import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/list/ConnectorListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 38aca81735..494e687916 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a connector. // @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -186,12 +186,12 @@ func (r *Post) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/post/request.go b/typedapi/connector/post/request.go index e5253f8ecd..013d66a718 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package post @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/post/ConnectorPostRequest.ts#L22-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dbc30e5e70..4416be5c37 100644 --- a/typedapi/connector/post/response.go +++ b/typedapi/connector/post/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package post import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/post/ConnectorPostResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 79fc874fb2..e422aefe7b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a connector. package put @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -187,12 +187,12 @@ func (r *Put) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/put/request.go b/typedapi/connector/put/request.go index a295412b6c..0f51ed9dab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package put @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/put/ConnectorPutRequest.ts#L22-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9e0b091bd8..16c77c5a3c 100644 --- a/typedapi/connector/put/response.go +++ b/typedapi/connector/put/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package put import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/put/ConnectorPutResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dc9c000de3..b20235858f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Creates a secret for a Connector. package secretpost @@ -119,7 +119,7 @@ func (r *SecretPost) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/syncjobcancel/response.go b/typedapi/connector/syncjobcancel/response.go index 7f98cb9034..cceb8ecd65 100644 --- a/typedapi/connector/syncjobcancel/response.go +++ b/typedapi/connector/syncjobcancel/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjobcancel import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package syncjobcancel // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_cancel/SyncJobCancelResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 56c82552ee..42cc192818 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Cancel a connector sync job. // @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -150,7 +150,7 @@ func (r *SyncJobCancel) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/syncjobcheckin/response.go b/typedapi/connector/syncjobcheckin/response.go index 4d52512ac1..2b040179e2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjobcheckin // Response holds the response body struct for the package syncjobcheckin // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_check_in/SyncJobCheckInResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cc1e59a08e..1dc0f21537 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Check in a connector sync job. // Check in a connector sync job and set the `last_seen` field to the current @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -154,7 +154,7 @@ func (r *SyncJobCheckIn) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/syncjobclaim/request.go b/typedapi/connector/syncjobclaim/request.go index 870cc44423..df57eaf167 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjobclaim @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package syncjobclaim // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_claim/SyncJobClaimRequest.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 81479e6ba8..2734350968 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjobclaim // Response holds the response body struct for the package syncjobclaim // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_claim/SyncJobClaimResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 af48e8258e..7b5980184b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Claim a connector sync job. // This action updates the job status to `in_progress` and sets the `last_seen` @@ -46,7 +46,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -212,12 +212,12 @@ func (r *SyncJobClaim) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/syncjobdelete/response.go b/typedapi/connector/syncjobdelete/response.go index 556ca74559..eab563eaf5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjobdelete // Response holds the response body struct for the package syncjobdelete // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_delete/SyncJobDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c78475c5ac..4877fd5b6a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a connector sync job. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *SyncJobDelete) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/syncjoberror/request.go b/typedapi/connector/syncjoberror/request.go index b15ba74cbd..3e165b219f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjoberror @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package syncjoberror // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_error/SyncJobErrorRequest.ts#L23-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d6001268b7..fe0dade7e3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjoberror // Response holds the response body struct for the package syncjoberror // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_error/SyncJobErrorResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0f865c68a9..3303cc4e1f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Set a connector sync job error. // Set the `error` field for a connector sync job and set its `status` to @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -202,12 +202,12 @@ func (r *SyncJobError) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/syncjobget/response.go b/typedapi/connector/syncjobget/response.go index 2881984468..d683f6228f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjobget @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncjobtriggermethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncjobtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncstatus" ) // Response holds the response body struct for the package syncjobget // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_get/SyncJobGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c6a614faef..d1c9c8da55 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a connector sync job. package syncjobget @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -138,7 +138,7 @@ func (r *SyncJobGet) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/syncjoblist/response.go b/typedapi/connector/syncjoblist/response.go index fa483b354e..5b6338631d 100644 --- a/typedapi/connector/syncjoblist/response.go +++ b/typedapi/connector/syncjoblist/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjoblist import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package syncjoblist // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_list/SyncJobListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6ca0770e49..1936e4bb5b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get all connector sync jobs. // @@ -36,9 +36,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncjobtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncstatus" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -132,7 +132,7 @@ func (r *SyncJobList) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/syncjobpost/request.go b/typedapi/connector/syncjobpost/request.go index a6d9ed2d64..a96a405883 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjobpost @@ -27,13 +27,13 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncjobtriggermethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncjobtype" ) // Request holds the request body struct for the package syncjobpost // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_post/SyncJobPostRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 48983ad53b..c1b157671b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjobpost // Response holds the response body struct for the package syncjobpost // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_post/SyncJobPostResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fbf1e36cab..dd7e61d018 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a connector sync job. // @@ -37,9 +37,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncjobtriggermethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncjobtype" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -180,12 +180,12 @@ func (r *SyncJobPost) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/syncjobupdatestats/request.go b/typedapi/connector/syncjobupdatestats/request.go index c6eaec2e38..d9af9b0382 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjobupdatestats @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package syncjobupdatestats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_update_stats/SyncJobUpdateStatsRequest.ts#L24-L78 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 871e9da252..866864869d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package syncjobupdatestats // Response holds the response body struct for the package syncjobupdatestats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/sync_job_update_stats/SyncJobUpdateStatsResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 42bf56330a..f1d9fa37e0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Set the connector sync job stats. // Stats include: `deleted_document_count`, `indexed_document_count`, @@ -44,7 +44,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -208,12 +208,12 @@ func (r *SyncJobUpdateStats) HttpRequest(ctx context.Context) (*http.Request, er if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updateactivefiltering/response.go b/typedapi/connector/updateactivefiltering/response.go index 52af798585..49bf2fab07 100644 --- a/typedapi/connector/updateactivefiltering/response.go +++ b/typedapi/connector/updateactivefiltering/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateactivefiltering import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updateactivefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_active_filtering/ConnectorUpdateActiveFilteringResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ae010f6520..dd087bafe9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Activate the connector draft filter. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -145,12 +145,12 @@ func (r *UpdateActiveFiltering) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updateapikeyid/request.go b/typedapi/connector/updateapikeyid/request.go index 40830bccdb..bac88043e2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateapikeyid @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateapikeyid // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDRequest.ts#L21-L53 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4692fb67bc..88cdb3dd11 100644 --- a/typedapi/connector/updateapikeyid/response.go +++ b/typedapi/connector/updateapikeyid/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateapikeyid import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updateapikeyid // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_api_key_id/ConnectorUpdateAPIKeyIDResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 490d69524c..216ec52faa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector API key ID. // @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -200,12 +200,12 @@ func (r *UpdateApiKeyId) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updateconfiguration/request.go b/typedapi/connector/updateconfiguration/request.go index 0f0c3d99f3..324213c6f0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateconfiguration @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updateconfiguration // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_configuration/ConnectorUpdateConfigurationRequest.ts#L25-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 05df72690f..840a6d8a3c 100644 --- a/typedapi/connector/updateconfiguration/response.go +++ b/typedapi/connector/updateconfiguration/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateconfiguration import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updateconfiguration // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_configuration/ConnectorUpdateConfigurationResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6edc779633..eb4cf45e6d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector configuration. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -190,12 +190,12 @@ func (r *UpdateConfiguration) HttpRequest(ctx context.Context) (*http.Request, e if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updateerror/request.go b/typedapi/connector/updateerror/request.go index e731093b23..7360b178e4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateerror @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package updateerror // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_error/ConnectorUpdateErrorRequest.ts#L23-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 08ccc39998..8089b10535 100644 --- a/typedapi/connector/updateerror/response.go +++ b/typedapi/connector/updateerror/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateerror import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updateerror // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_error/ConnectorUpdateErrorResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 177f28856c..b3113268ed 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector error field. // @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -198,12 +198,12 @@ func (r *UpdateError) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updatefeatures/request.go b/typedapi/connector/updatefeatures/request.go index 93faaa0919..3e8637db99 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatefeatures @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatefeatures // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_features/ConnectorUpdateFeaturesRequest.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 104bbb9ace..dffceff795 100644 --- a/typedapi/connector/updatefeatures/response.go +++ b/typedapi/connector/updatefeatures/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatefeatures import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updatefeatures // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_features/ConnectorUpdateFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 af27067216..fe805d3e34 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector features. // Update the connector features in the connector document. @@ -49,7 +49,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -216,12 +216,12 @@ func (r *UpdateFeatures) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updatefiltering/request.go b/typedapi/connector/updatefiltering/request.go index cc3ab7b810..0eb49f4465 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatefiltering @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_filtering/ConnectorUpdateFilteringRequest.ts#L27-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8a8c17f69c..7939d89cee 100644 --- a/typedapi/connector/updatefiltering/response.go +++ b/typedapi/connector/updatefiltering/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatefiltering import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updatefiltering // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_filtering/ConnectorUpdateFilteringResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 96785e1264..491a143806 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector filtering. // @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -200,12 +200,12 @@ func (r *UpdateFiltering) HttpRequest(ctx context.Context) (*http.Request, error if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updatefilteringvalidation/request.go b/typedapi/connector/updatefilteringvalidation/request.go index 715feb256f..4f8ef08b13 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatefilteringvalidation @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatefilteringvalidation // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationRequest.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6ff0e2eaa1..d18df43cf2 100644 --- a/typedapi/connector/updatefilteringvalidation/response.go +++ b/typedapi/connector/updatefilteringvalidation/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatefilteringvalidation import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updatefilteringvalidation // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_filtering_validation/ConnectorUpdateFilteringValidationResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a25e53a4fd..8cd80abf3a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector draft filtering validation. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -192,12 +192,12 @@ func (r *UpdateFilteringValidation) HttpRequest(ctx context.Context) (*http.Requ if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updateindexname/request.go b/typedapi/connector/updateindexname/request.go index e315c22273..0f00bd285f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateindexname @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package updateindexname // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_index_name/ConnectorUpdateIndexNameRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5f3798d022..e8f5d1c869 100644 --- a/typedapi/connector/updateindexname/response.go +++ b/typedapi/connector/updateindexname/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateindexname import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updateindexname // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_index_name/ConnectorUpdateIndexNameResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fe3e1173fa..8c2a0be726 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector index name. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -192,12 +192,12 @@ func (r *UpdateIndexName) HttpRequest(ctx context.Context) (*http.Request, error if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updatename/request.go b/typedapi/connector/updatename/request.go index 5d6bc8ab10..2ba297ddd1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatename @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatename // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_name/ConnectorUpdateNameRequest.ts#L22-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 21f7ff0f90..fe5b35c0e0 100644 --- a/typedapi/connector/updatename/response.go +++ b/typedapi/connector/updatename/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatename import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updatename // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_name/ConnectorUpdateNameResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f1c4f54e63..64461b1a62 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector name and description. package updatename @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -186,12 +186,12 @@ func (r *UpdateName) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updatenative/request.go b/typedapi/connector/updatenative/request.go index 351b8c1290..14bb220305 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatenative @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatenative // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_native/ConnectorUpdateNativeRequest.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 32691b913b..902641fad0 100644 --- a/typedapi/connector/updatenative/response.go +++ b/typedapi/connector/updatenative/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatenative import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updatenative // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_native/ConnectorUpdateNativeResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ece1f59d39..a8f48a7b7a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector is_native flag. package updatenative @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -186,12 +186,12 @@ func (r *UpdateNative) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updatepipeline/request.go b/typedapi/connector/updatepipeline/request.go index fbab2311f1..1c3d4289a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatepipeline @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_pipeline/ConnectorUpdatePipelineRequest.ts#L23-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6a9d93d73a..a775c444cc 100644 --- a/typedapi/connector/updatepipeline/response.go +++ b/typedapi/connector/updatepipeline/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatepipeline import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updatepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_pipeline/ConnectorUpdatePipelineResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dfc97fcbe1..a25f869b6e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector pipeline. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -192,12 +192,12 @@ func (r *UpdatePipeline) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updatescheduling/request.go b/typedapi/connector/updatescheduling/request.go index f68fb83b20..e31d791f05 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatescheduling @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatescheduling // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_scheduling/ConnectorUpdateSchedulingRequest.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c2ed34542c..0355fff044 100644 --- a/typedapi/connector/updatescheduling/response.go +++ b/typedapi/connector/updatescheduling/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatescheduling import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updatescheduling // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_scheduling/ConnectorUpdateSchedulingResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d1670f1c08..f0d9730a22 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector scheduling. package updatescheduling @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -186,12 +186,12 @@ func (r *UpdateScheduling) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updateservicetype/request.go b/typedapi/connector/updateservicetype/request.go index c0ce4d398a..5553e48b04 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateservicetype @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateservicetype // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_service_type/ConnectorUpdateServiceTypeRequest.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 acf71c9a18..95da54c2db 100644 --- a/typedapi/connector/updateservicetype/response.go +++ b/typedapi/connector/updateservicetype/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateservicetype import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updateservicetype // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_service_type/ConnectorUpdateServiceTypeResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3abcf5b39b..e97540d2bf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector service type. package updateservicetype @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -186,12 +186,12 @@ func (r *UpdateServiceType) HttpRequest(ctx context.Context) (*http.Request, err if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/connector/updatestatus/request.go b/typedapi/connector/updatestatus/request.go index 36d2f3b75f..bfb05ad08b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatestatus @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/connectorstatus" ) // Request holds the request body struct for the package updatestatus // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_status/ConnectorUpdateStatusRequest.ts#L23-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9c5032cd9e..3ad2501fe8 100644 --- a/typedapi/connector/updatestatus/response.go +++ b/typedapi/connector/updatestatus/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatestatus import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package updatestatus // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/update_status/ConnectorUpdateStatusResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d66d7b87e9..f7a3053e76 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the connector status. package updatestatus @@ -34,8 +34,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/connectorstatus" ) const ( @@ -187,12 +187,12 @@ func (r *UpdateStatus) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/bulk/bulk.go b/typedapi/core/bulk/bulk.go index 6e6865afa8..5275b86d71 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Bulk index or delete documents. // Perform multiple `index`, `create`, `delete`, and `update` actions in a @@ -190,8 +190,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -505,12 +505,12 @@ func (r *Bulk) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/bulk/helpers.go b/typedapi/core/bulk/helpers.go index 00d95c7c82..becff08c3f 100644 --- a/typedapi/core/bulk/helpers.go +++ b/typedapi/core/bulk/helpers.go @@ -21,7 +21,7 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // CreateOp is a helper function to add a CreateOperation to the current bulk request. diff --git a/typedapi/core/bulk/helpers_test.go b/typedapi/core/bulk/helpers_test.go index dd55f2a04e..7e1b45333a 100644 --- a/typedapi/core/bulk/helpers_test.go +++ b/typedapi/core/bulk/helpers_test.go @@ -23,7 +23,7 @@ import ( "math" "testing" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) func TestBulk_CreateOp(t *testing.T) { diff --git a/typedapi/core/bulk/request.go b/typedapi/core/bulk/request.go index f758ae3017..9a3a8bb798 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package bulk // Request holds the request body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/bulk/BulkRequest.ts#L32-L247 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/bulk/BulkRequest.ts#L32-L247 type Request = []any diff --git a/typedapi/core/bulk/response.go b/typedapi/core/bulk/response.go index 46e659d919..7b8328eeb3 100644 --- a/typedapi/core/bulk/response.go +++ b/typedapi/core/bulk/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package bulk import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operationtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operationtype" ) // Response holds the response body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/bulk/BulkResponse.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 846db7c83f..79dca79558 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear a scrolling search. // Clear the search context and results for a scrolling search. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -176,12 +176,12 @@ func (r *ClearScroll) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/clearscroll/request.go b/typedapi/core/clearscroll/request.go index 84d9e39c2f..db912aac9c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearscroll @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package clearscroll // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/clear_scroll/ClearScrollRequest.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 810bce73dd..3eccaec45a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearscroll // Response holds the response body struct for the package clearscroll // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/clear_scroll/ClearScrollResponse.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cd22c56ad5..2f71b52752 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Close a point in time. // A point in time must be opened explicitly before being used in search @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -184,12 +184,12 @@ func (r *ClosePointInTime) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/closepointintime/request.go b/typedapi/core/closepointintime/request.go index 2ed163027c..3b241c1a1a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package closepointintime @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package closepointintime // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/close_point_in_time/ClosePointInTimeRequest.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c2053b0479..1bc647d179 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package closepointintime // Response holds the response body struct for the package closepointintime // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/close_point_in_time/ClosePointInTimeResponse.ts#L22-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4504343a2f..3550d9d859 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Count search results. // Get the number of documents matching a query. @@ -48,9 +48,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" ) const ( @@ -217,12 +217,12 @@ func (r *Count) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/count/request.go b/typedapi/core/count/request.go index 24c022add3..431e97a37b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package count @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/count/CountRequest.ts#L26-L154 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 286be32af2..742d398549 100644 --- a/typedapi/core/count/response.go +++ b/typedapi/core/count/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package count import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package count // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/count/CountResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f3dc470776..bf8d56a897 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a new document in the index. // @@ -159,10 +159,10 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/optype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "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" ) const ( @@ -455,12 +455,12 @@ func (r *Create) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/create/request.go b/typedapi/core/create/request.go index 0b785ee1ec..d5d26c55cd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package create @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/create/CreateRequest.ts#L35-L221 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/create/CreateRequest.ts#L35-L221 type Request = json.RawMessage // NewRequest returns a Request diff --git a/typedapi/core/create/response.go b/typedapi/core/create/response.go index 1fabfebfef..5c0cd364f4 100644 --- a/typedapi/core/create/response.go +++ b/typedapi/core/create/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package create import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/create/CreateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b5f26c809f..d4a8c810d3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a document. // @@ -86,9 +86,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) const ( @@ -254,7 +254,7 @@ func (r *Delete) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/delete/response.go b/typedapi/core/delete/response.go index b5b59e9dc1..1af45b0d31 100644 --- a/typedapi/core/delete/response.go +++ b/typedapi/core/delete/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package delete import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/delete/DeleteResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6708bfeff3..f06799be3a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete documents. // @@ -160,11 +160,11 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/conflicts" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" ) const ( @@ -440,12 +440,12 @@ func (r *DeleteByQuery) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -646,7 +646,7 @@ func (r *DeleteByQuery) ExpandWildcards(expandwildcards ...expandwildcard.Expand return r } -// From Starting offset (default: 0) +// From Skips the specified number of documents. // API name: from func (r *DeleteByQuery) From(from string) *DeleteByQuery { r.values.Set("from", from) diff --git a/typedapi/core/deletebyquery/request.go b/typedapi/core/deletebyquery/request.go index 0ebe24d80a..df28214ab4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletebyquery @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package deletebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/delete_by_query/DeleteByQueryRequest.ts#L36-L310 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 800b1d87af..61274a530b 100644 --- a/typedapi/core/deletebyquery/response.go +++ b/typedapi/core/deletebyquery/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletebyquery import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package deletebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/delete_by_query/DeleteByQueryResponse.ts#L26-L88 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 74dc5914ad..681f730910 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Throttle a delete by query operation. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -150,7 +150,7 @@ func (r *DeleteByQueryRethrottle) HttpRequest(ctx context.Context) (*http.Reques req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/deletebyqueryrethrottle/response.go b/typedapi/core/deletebyqueryrethrottle/response.go index 7b0e767470..3b5946d20a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletebyqueryrethrottle @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package deletebyqueryrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d148f2e2ea..19312e7bd3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a script or search template. // Deletes a stored script or search template. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -138,7 +138,7 @@ func (r *DeleteScript) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/deletescript/response.go b/typedapi/core/deletescript/response.go index f12635f4c7..db0e246472 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletescript // Response holds the response body struct for the package deletescript // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/delete_script/DeleteScriptResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 75dcdb4c89..a92d76d913 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Check a document. // @@ -54,7 +54,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) const ( @@ -190,7 +190,7 @@ func (r *Exists) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/existssource/exists_source.go b/typedapi/core/existssource/exists_source.go index 94c40afc0c..43b47ec994 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Check for a document source. // @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) const ( @@ -164,7 +164,7 @@ func (r *ExistsSource) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/explain/explain.go b/typedapi/core/explain/explain.go index 964980c293..08cada325d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Explain a document match result. // Get information about why a specific document matches, or doesn't match, a @@ -37,8 +37,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" ) const ( @@ -202,12 +202,12 @@ func (r *Explain) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/explain/request.go b/typedapi/core/explain/request.go index d5b3ed7a1e..138bd334d0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package explain @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package explain // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/explain/ExplainRequest.ts#L26-L125 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f619b5508e..17bfe69218 100644 --- a/typedapi/core/explain/response.go +++ b/typedapi/core/explain/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package explain import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package explain // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/explain/ExplainResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2b49ef19c2..ed468beac3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the field capabilities. // @@ -42,8 +42,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -204,12 +204,12 @@ func (r *FieldCaps) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/fieldcaps/request.go b/typedapi/core/fieldcaps/request.go index 70e3711983..99c68ec73c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package fieldcaps @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package fieldcaps // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/field_caps/FieldCapabilitiesRequest.ts#L25-L130 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 aaa34e53ef..2ce1110484 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package fieldcaps @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package fieldcaps // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/field_caps/FieldCapabilitiesResponse.ts#L24-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c4c8198f11..35ed8b7478 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a document by its ID. // @@ -107,8 +107,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) const ( @@ -295,7 +295,7 @@ func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/get/response.go b/typedapi/core/get/response.go index 70ad59631f..18c15d2ca0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package get @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/get/GetResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e0949e88be..cde4dab4cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a script or search template. // Retrieves a stored script or search template. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -138,7 +138,7 @@ func (r *GetScript) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/getscript/response.go b/typedapi/core/getscript/response.go index 045495e30c..138ce28944 100644 --- a/typedapi/core/getscript/response.go +++ b/typedapi/core/getscript/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getscript import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getscript // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/get_script/GetScriptResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 53fdabee64..e5cbbe61e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get script contexts. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -126,7 +126,7 @@ func (r *GetScriptContext) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/getscriptcontext/response.go b/typedapi/core/getscriptcontext/response.go index 3162100878..22e69485fd 100644 --- a/typedapi/core/getscriptcontext/response.go +++ b/typedapi/core/getscriptcontext/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getscriptcontext import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getscriptcontext // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/get_script_context/GetScriptContextResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 169eea286a..9d16f206aa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get script languages. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -126,7 +126,7 @@ func (r *GetScriptLanguages) HttpRequest(ctx context.Context) (*http.Request, er req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/getscriptlanguages/response.go b/typedapi/core/getscriptlanguages/response.go index e85a91b2b4..7d4c66abdc 100644 --- a/typedapi/core/getscriptlanguages/response.go +++ b/typedapi/core/getscriptlanguages/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getscriptlanguages import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getscriptlanguages // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/get_script_languages/GetScriptLanguagesResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 677c27eb73..666afc6a66 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a document's source. // @@ -48,8 +48,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) const ( @@ -178,7 +178,7 @@ func (r *GetSource) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/getsource/response.go b/typedapi/core/getsource/response.go index 704cb8cc60..69fd16d4c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getsource @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package getsource // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/get_source/SourceResponse.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 843bcbea09..f79c8fd932 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the cluster health. // Get a report with the health status of an Elasticsearch cluster. @@ -62,7 +62,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -197,7 +197,7 @@ func (r *HealthReport) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/healthreport/response.go b/typedapi/core/healthreport/response.go index 74504d1338..eaa0be6ea6 100644 --- a/typedapi/core/healthreport/response.go +++ b/typedapi/core/healthreport/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package healthreport import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indicatorhealthstatus" ) // Response holds the response body struct for the package healthreport // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/Response.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7103706718..d3c90530c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a document in an index. // @@ -232,10 +232,10 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/optype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "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" ) const ( @@ -610,12 +610,12 @@ func (r *Index) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/index/request.go b/typedapi/core/index/request.go index 107f9fa6c2..0829f3bc14 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package index @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package index // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/index/IndexRequest.ts#L35-L268 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/index/IndexRequest.ts#L35-L268 type Request = json.RawMessage // NewRequest returns a Request diff --git a/typedapi/core/index/response.go b/typedapi/core/index/response.go index 3309afd739..1e57bc187f 100644 --- a/typedapi/core/index/response.go +++ b/typedapi/core/index/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package index import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package index // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/index/IndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3d3319936c..a7daabf016 100644 --- a/typedapi/core/info/info.go +++ b/typedapi/core/info/info.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get cluster info. // Get basic build, version, and cluster information. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -122,7 +122,7 @@ func (r *Info) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/info/response.go b/typedapi/core/info/response.go index a13374bc3a..d76b0e22ee 100644 --- a/typedapi/core/info/response.go +++ b/typedapi/core/info/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package info import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/info/RootNodeInfoResponse.ts#L23-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/info/RootNodeInfoResponse.ts#L23-L40 type Response struct { // ClusterName The responding cluster's name. diff --git a/typedapi/core/knnsearch/knn_search.go b/typedapi/core/knnsearch/knn_search.go index 6787208b53..59e08dc648 100644 --- a/typedapi/core/knnsearch/knn_search.go +++ b/typedapi/core/knnsearch/knn_search.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run a knn search. // @@ -59,7 +59,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -234,12 +234,12 @@ func (r *KnnSearch) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/knnsearch/request.go b/typedapi/core/knnsearch/request.go index 8c638d087e..5c52cbf748 100644 --- a/typedapi/core/knnsearch/request.go +++ b/typedapi/core/knnsearch/request.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package knnsearch @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package knnsearch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/knn_search/KnnSearchRequest.ts#L26-L112 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/knn_search/KnnSearchRequest.ts#L26-L112 type Request struct { // DocvalueFields The request returns doc values for field names matching these patterns diff --git a/typedapi/core/knnsearch/response.go b/typedapi/core/knnsearch/response.go index dbdfaa981d..fd1df0cef0 100644 --- a/typedapi/core/knnsearch/response.go +++ b/typedapi/core/knnsearch/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package knnsearch import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package knnsearch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/knn_search/KnnSearchResponse.ts#L26-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/knn_search/KnnSearchResponse.ts#L26-L54 type Response struct { // Fields The field values for the documents. These fields diff --git a/typedapi/core/mget/mget.go b/typedapi/core/mget/mget.go index 2b38224a72..2a8826cd50 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get multiple documents. // @@ -57,7 +57,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -233,12 +233,12 @@ func (r *Mget) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/mget/request.go b/typedapi/core/mget/request.go index 7871b1d973..2768717557 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package mget @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package mget // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/mget/MultiGetRequest.ts#L25-L127 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5fef5e7a9e..6cc7f9b411 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package mget @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package mget // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/mget/MultiGetResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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/helpers.go b/typedapi/core/msearch/helpers.go index cbf8603a8b..cd063729af 100644 --- a/typedapi/core/msearch/helpers.go +++ b/typedapi/core/msearch/helpers.go @@ -21,11 +21,11 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // AddSearch is a helper function to add a new search to the buffer of the current msearch request. -func (r *Msearch) AddSearch(header types.MultisearchHeader, body types.MultisearchBody) error { +func (r *Msearch) AddSearch(header types.MultisearchHeader, body types.SearchRequestBody) error { h, err := json.Marshal(header) if err != nil { return fmt.Errorf("msearch.AddSearch cannot serialize header: %w", err) diff --git a/typedapi/core/msearch/helpers_test.go b/typedapi/core/msearch/helpers_test.go index 886f46b799..c460bf66e0 100644 --- a/typedapi/core/msearch/helpers_test.go +++ b/typedapi/core/msearch/helpers_test.go @@ -21,13 +21,13 @@ import ( "strings" "testing" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) func TestMsearch_AddSearch(t *testing.T) { type args struct { header types.MultisearchHeader - body types.MultisearchBody + body types.SearchRequestBody } tests := []struct { name string @@ -39,7 +39,7 @@ func TestMsearch_AddSearch(t *testing.T) { name: "nominal test case", args: args{ header: types.MultisearchHeader{Index: []string{"foo"}}, - body: types.MultisearchBody{Query: &types.Query{Term: map[string]types.TermQuery{"bar": {Value: "baz"}}}}, + body: types.SearchRequestBody{Query: &types.Query{Term: map[string]types.TermQuery{"bar": {Value: "baz"}}}}, }, expects: `{"index":["foo"]} {"query":{"term":{"bar":{"value":"baz"}}}} diff --git a/typedapi/core/msearch/msearch.go b/typedapi/core/msearch/msearch.go index 7a7c0c95c9..048468e7a7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run multiple searches. // @@ -53,9 +53,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" ) const ( @@ -232,12 +232,12 @@ func (r *Msearch) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -428,9 +428,10 @@ func (r *Msearch) IncludeNamedQueriesScore(includenamedqueriesscore bool) *Msear } // MaxConcurrentSearches Maximum number of concurrent searches the multi search API can execute. +// Defaults to `max(1, (# of data nodes * min(search thread pool size, 10)))`. // API name: max_concurrent_searches -func (r *Msearch) MaxConcurrentSearches(maxconcurrentsearches string) *Msearch { - r.values.Set("max_concurrent_searches", maxconcurrentsearches) +func (r *Msearch) MaxConcurrentSearches(maxconcurrentsearches int) *Msearch { + r.values.Set("max_concurrent_searches", strconv.Itoa(maxconcurrentsearches)) return r } @@ -438,8 +439,8 @@ func (r *Msearch) MaxConcurrentSearches(maxconcurrentsearches string) *Msearch { // MaxConcurrentShardRequests Maximum number of concurrent shard requests that each sub-search request // executes per node. // API name: max_concurrent_shard_requests -func (r *Msearch) MaxConcurrentShardRequests(maxconcurrentshardrequests string) *Msearch { - r.values.Set("max_concurrent_shard_requests", maxconcurrentshardrequests) +func (r *Msearch) MaxConcurrentShardRequests(maxconcurrentshardrequests int) *Msearch { + r.values.Set("max_concurrent_shard_requests", strconv.Itoa(maxconcurrentshardrequests)) return r } diff --git a/typedapi/core/msearch/request.go b/typedapi/core/msearch/request.go index 38a9ebd3fb..e3b7fb3143 100644 --- a/typedapi/core/msearch/request.go +++ b/typedapi/core/msearch/request.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package msearch import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/msearch/MultiSearchRequest.ts#L25-L135 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/msearch/MultiSearchRequest.ts#L25-L136 type Request = []types.MsearchRequestItem diff --git a/typedapi/core/msearch/response.go b/typedapi/core/msearch/response.go index 5bbb1b5bfb..df4cd74e00 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package msearch @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/msearch/MultiSearchResponse.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0d41c11514..f3be213011 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run multiple templated searches. // @@ -51,8 +51,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" ) const ( @@ -231,12 +231,12 @@ func (r *MsearchTemplate) HttpRequest(ctx context.Context) (*http.Request, error if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/msearchtemplate/request.go b/typedapi/core/msearchtemplate/request.go index d33f5726f7..7184d02085 100644 --- a/typedapi/core/msearchtemplate/request.go +++ b/typedapi/core/msearchtemplate/request.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package msearchtemplate import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package msearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/msearch_template/MultiSearchTemplateRequest.ts#L25-L116 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e9f3dc5caa..59d1849056 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package msearchtemplate @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package msearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/msearch_template/MultiSearchTemplateResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2a6b572fba..e3a1cd6ca2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get multiple term vectors. // @@ -47,8 +47,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) const ( @@ -214,12 +214,12 @@ func (r *Mtermvectors) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/mtermvectors/request.go b/typedapi/core/mtermvectors/request.go index eb33f7394c..088610afa8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package mtermvectors @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package mtermvectors // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/mtermvectors/MultiTermVectorsRequest.ts#L31-L134 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1f14c01744..1539e8dcb3 100644 --- a/typedapi/core/mtermvectors/response.go +++ b/typedapi/core/mtermvectors/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package mtermvectors import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package mtermvectors // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/mtermvectors/MultiTermVectorsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 79501b3c9f..8e558e64de 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Open a point in time. // @@ -96,8 +96,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -309,12 +309,12 @@ func (r *OpenPointInTime) HttpRequest(ctx context.Context) (*http.Request, error if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -500,6 +500,15 @@ func (r *OpenPointInTime) AllowPartialSearchResults(allowpartialsearchresults bo return r } +// MaxConcurrentShardRequests Maximum number of concurrent shard requests that each sub-search request +// executes per node. +// API name: max_concurrent_shard_requests +func (r *OpenPointInTime) MaxConcurrentShardRequests(maxconcurrentshardrequests int) *OpenPointInTime { + r.values.Set("max_concurrent_shard_requests", strconv.Itoa(maxconcurrentshardrequests)) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/core/openpointintime/request.go b/typedapi/core/openpointintime/request.go index 702f8f212d..cd840698ba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package openpointintime @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package openpointintime // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/open_point_in_time/OpenPointInTimeRequest.ts#L25-L121 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ddfbd2c7c6..686780a38c 100644 --- a/typedapi/core/openpointintime/response.go +++ b/typedapi/core/openpointintime/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package openpointintime import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package openpointintime // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/open_point_in_time/OpenPointInTimeResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d47e5180ad..3de60b4f63 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Ping the cluster. // Get information about whether the cluster is running. @@ -120,7 +120,7 @@ func (r *Ping) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/putscript/put_script.go b/typedapi/core/putscript/put_script.go index 57fa26eb9e..92711a077b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a script or search template. // Creates or updates a stored script or search template. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -206,12 +206,12 @@ func (r *PutScript) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/putscript/request.go b/typedapi/core/putscript/request.go index b41f3655d1..fdc8c66451 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putscript @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putscript // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/put_script/PutScriptRequest.ts#L25-L87 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 60ee03f9a5..36177014fb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putscript // Response holds the response body struct for the package putscript // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/put_script/PutScriptResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fc3b9871c7..54c370b74b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Evaluate ranked search results. // @@ -37,8 +37,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -194,12 +194,12 @@ func (r *RankEval) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/rankeval/request.go b/typedapi/core/rankeval/request.go index 4b37bf8822..ff401e16f1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package rankeval @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package rankeval // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/RankEvalRequest.ts#L24-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c26310bec3..d41acf2c16 100644 --- a/typedapi/core/rankeval/response.go +++ b/typedapi/core/rankeval/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package rankeval import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package rankeval // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/RankEvalResponse.ts#L26-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c9b6ba0668..d8e0b98862 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Reindex documents. // @@ -314,8 +314,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/conflicts" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -731,12 +731,12 @@ func (r *Reindex) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/reindex/request.go b/typedapi/core/reindex/request.go index ba27281ea2..edcecce9c0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package reindex @@ -24,13 +24,13 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/conflicts" ) // Request holds the request body struct for the package reindex // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/reindex/ReindexRequest.ts#L27-L309 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/reindex/ReindexRequest.ts#L27-L309 type Request struct { // Conflicts Indicates whether to continue reindexing even when there are conflicts. diff --git a/typedapi/core/reindex/response.go b/typedapi/core/reindex/response.go index e24bc8ed88..fb115138cb 100644 --- a/typedapi/core/reindex/response.go +++ b/typedapi/core/reindex/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package reindex import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package reindex // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/reindex/ReindexResponse.ts#L26-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 563c97352b..8060f20d5f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Throttle a reindex operation. // @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -162,7 +162,7 @@ func (r *ReindexRethrottle) HttpRequest(ctx context.Context) (*http.Request, err req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/reindexrethrottle/response.go b/typedapi/core/reindexrethrottle/response.go index e963793887..e1840f4771 100644 --- a/typedapi/core/reindexrethrottle/response.go +++ b/typedapi/core/reindexrethrottle/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package reindexrethrottle import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package reindexrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/reindex_rethrottle/ReindexRethrottleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3324ef8e86..8282dda84c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Render a search template. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -178,12 +178,12 @@ func (r *RenderSearchTemplate) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -406,13 +406,13 @@ func (r *RenderSearchTemplate) AddParam(key string, value json.RawMessage) *Rend // These parameters also support Mustache variables. // If no `id` or `` is specified, this parameter is required. // API name: source -func (r *RenderSearchTemplate) Source(source string) *RenderSearchTemplate { +func (r *RenderSearchTemplate) Source(scriptsource types.ScriptSourceVariant) *RenderSearchTemplate { // Initialize the request if it is not already initialized if r.req == nil { r.req = NewRequest() } - r.req.Source = &source + r.req.Source = *scriptsource.ScriptSourceCaster() return r } diff --git a/typedapi/core/rendersearchtemplate/request.go b/typedapi/core/rendersearchtemplate/request.go index 1bc38501f4..43862b59db 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package rendersearchtemplate @@ -27,11 +27,13 @@ import ( "fmt" "io" "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package rendersearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/render_search_template/RenderSearchTemplateRequest.ts#L25-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. @@ -48,7 +50,7 @@ type Request struct { // It supports the same parameters as the search API's request body. // These parameters also support Mustache variables. // If no `id` or `` is specified, this parameter is required. - Source *string `json:"source,omitempty"` + Source types.ScriptSource `json:"source,omitempty"` } // NewRequest returns a Request @@ -112,16 +114,40 @@ func (s *Request) UnmarshalJSON(data []byte) error { } case "source": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) + keyDec := json.NewDecoder(bytes.NewReader(message)) + source_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source", err) + } + + switch t { + + case "aggregations", "collapse", "docvalue_fields", "explain", "ext", "fields", "from", "highlight", "indices_boost", "knn", "min_score", "pit", "post_filter", "profile", "query", "rank", "rescore", "retriever", "runtime_mappings", "script_fields", "search_after", "seq_no_primary_term", "size", "slice", "sort", "_source", "stats", "stored_fields", "suggest", "terminate_after", "timeout", "track_scores", "track_total_hits", "version": + o := types.NewSearchRequestBody() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + s.Source = o + break source_field + + } + } + if s.Source == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } } - s.Source = &o } } diff --git a/typedapi/core/rendersearchtemplate/response.go b/typedapi/core/rendersearchtemplate/response.go index 568a94ed32..d7830e3939 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package rendersearchtemplate @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package rendersearchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/render_search_template/RenderSearchTemplateResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7067323f0b..c940f5ed28 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package scriptspainlessexecute @@ -24,13 +24,13 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/painlesscontext" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/painlesscontext" ) // Request holds the request body struct for the package scriptspainlessexecute // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/scripts_painless_execute/ExecutePainlessScriptRequest.ts#L24-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 afde3bf188..48badffd50 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package scriptspainlessexecute @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package scriptspainlessexecute // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/scripts_painless_execute/ExecutePainlessScriptResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1ffc0c6e29..03bc9655cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run a script. // @@ -46,8 +46,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/painlesscontext" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/painlesscontext" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -199,12 +199,12 @@ func (r *ScriptsPainlessExecute) HttpRequest(ctx context.Context) (*http.Request if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/scroll/request.go b/typedapi/core/scroll/request.go index 4da453bb58..87d47157b8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package scroll @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package scroll // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/scroll/ScrollRequest.ts#L24-L88 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2667f6518b..2aee441a62 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package scroll @@ -29,12 +29,12 @@ import ( "strconv" "strings" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package scroll // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/scroll/ScrollResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 68e3235e7d..fd6edeadc7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run a scrolling search. // @@ -59,7 +59,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -224,12 +224,12 @@ func (r *Scroll) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/search/request.go b/typedapi/core/search/request.go index 4110aab925..f8c2949ed8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package search @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/SearchRequest.ts#L53-L584 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/SearchRequest.ts#L53-L584 type Request struct { // Aggregations Defines the aggregations that are run as part of the search request. @@ -69,7 +69,8 @@ type Request struct { // Knn The approximate kNN search to run. Knn []types.KnnSearch `json:"knn,omitempty"` // MinScore The minimum `_score` for matching documents. - // Documents with a lower `_score` are not included in the search results. + // Documents with a lower `_score` are not included in search results and + // results collected by aggregations. MinScore *types.Float64 `json:"min_score,omitempty"` // Pit Limit the search to a point in time (PIT). // If you provide a PIT, you cannot specify an `` in the request path. diff --git a/typedapi/core/search/response.go b/typedapi/core/search/response.go index 0f9121fdc4..998469de9a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package search @@ -29,12 +29,12 @@ import ( "strconv" "strings" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/SearchResponse.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 75efedb139..7b360bce1b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run a search. // @@ -65,11 +65,11 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/suggestmode" ) const ( @@ -253,12 +253,12 @@ func (r *Search) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -534,8 +534,8 @@ func (r *Search) Lenient(lenient bool) *Search { // This value should be used to limit the impact of the search on the cluster in // order to limit the number of concurrent shard requests. // API name: max_concurrent_shard_requests -func (r *Search) MaxConcurrentShardRequests(maxconcurrentshardrequests string) *Search { - r.values.Set("max_concurrent_shard_requests", maxconcurrentshardrequests) +func (r *Search) MaxConcurrentShardRequests(maxconcurrentshardrequests int) *Search { + r.values.Set("max_concurrent_shard_requests", strconv.Itoa(maxconcurrentshardrequests)) return r } @@ -957,7 +957,8 @@ func (r *Search) Knn(knns ...types.KnnSearchVariant) *Search { } // The minimum `_score` for matching documents. -// Documents with a lower `_score` are not included in the search results. +// Documents with a lower `_score` are not included in search results and +// results collected by aggregations. // API name: min_score func (r *Search) MinScore(minscore types.Float64) *Search { // Initialize the request if it is not already initialized diff --git a/typedapi/core/searchmvt/request.go b/typedapi/core/searchmvt/request.go index 9637ddfd31..655e722999 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package searchmvt @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridaggregationtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gridaggregationtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gridtype" ) // Request holds the request body struct for the package searchmvt // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L373 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search_mvt/SearchMvtRequest.ts#L33-L373 type Request struct { // Aggs Sub-aggregations for the geotile_grid. diff --git a/typedapi/core/searchmvt/response.go b/typedapi/core/searchmvt/response.go index bee421eaeb..aa2e24cc82 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package searchmvt // Response holds the response body struct for the package searchmvt // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search_mvt/SearchMvtResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 64127aae29..7ac4ce7e26 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Search a vector tile. // @@ -202,9 +202,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridaggregationtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gridtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gridaggregationtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gridtype" ) const ( diff --git a/typedapi/core/searchshards/response.go b/typedapi/core/searchshards/response.go index 0a9797c177..7b869bbb09 100644 --- a/typedapi/core/searchshards/response.go +++ b/typedapi/core/searchshards/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package searchshards import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package searchshards // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search_shards/SearchShardsResponse.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 32752c93e5..72792384b7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the search shards. // @@ -43,8 +43,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -160,7 +160,7 @@ func (r *SearchShards) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/searchtemplate/request.go b/typedapi/core/searchtemplate/request.go index 0d6c96fdad..ec7387682c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package searchtemplate @@ -27,11 +27,13 @@ import ( "fmt" "io" "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package searchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search_template/SearchTemplateRequest.ts#L32-L153 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search_template/SearchTemplateRequest.ts#L33-L154 type Request struct { // Explain If `true`, returns detailed information about score calculation as part of @@ -52,7 +54,7 @@ type Request struct { // request body. It also supports Mustache variables. If no `id` is specified, // this // parameter is required. - Source *string `json:"source,omitempty"` + Source types.ScriptSource `json:"source,omitempty"` } // NewRequest returns a Request @@ -132,16 +134,40 @@ func (s *Request) UnmarshalJSON(data []byte) error { } case "source": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) + keyDec := json.NewDecoder(bytes.NewReader(message)) + source_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source", err) + } + + switch t { + + case "aggregations", "collapse", "docvalue_fields", "explain", "ext", "fields", "from", "highlight", "indices_boost", "knn", "min_score", "pit", "post_filter", "profile", "query", "rank", "rescore", "retriever", "runtime_mappings", "script_fields", "search_after", "seq_no_primary_term", "size", "slice", "sort", "_source", "stats", "stored_fields", "suggest", "terminate_after", "timeout", "track_scores", "track_total_hits", "version": + o := types.NewSearchRequestBody() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + s.Source = o + break source_field + + } + } + if s.Source == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } } - s.Source = &o } } diff --git a/typedapi/core/searchtemplate/response.go b/typedapi/core/searchtemplate/response.go index 902b2982a2..2d8316f212 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package searchtemplate @@ -29,12 +29,12 @@ import ( "strconv" "strings" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package searchtemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search_template/SearchTemplateResponse.ts#L30-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4bc2ec3e95..c6ebf58c8d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run a search with a search template. package searchtemplate @@ -34,9 +34,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" ) const ( @@ -193,12 +193,12 @@ func (r *SearchTemplate) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -554,13 +554,13 @@ func (r *SearchTemplate) Profile(profile bool) *SearchTemplate { // this // parameter is required. // API name: source -func (r *SearchTemplate) Source(source string) *SearchTemplate { +func (r *SearchTemplate) Source(scriptsource types.ScriptSourceVariant) *SearchTemplate { // Initialize the request if it is not already initialized if r.req == nil { r.req = NewRequest() } - r.req.Source = &source + r.req.Source = *scriptsource.ScriptSourceCaster() return r } diff --git a/typedapi/core/termsenum/request.go b/typedapi/core/termsenum/request.go index 5791fd3091..4646a1665a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package termsenum @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package termsenum // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/terms_enum/TermsEnumRequest.ts#L26-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e0c9b512d8..46b2087ca8 100644 --- a/typedapi/core/termsenum/response.go +++ b/typedapi/core/termsenum/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package termsenum import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package termsenum // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/terms_enum/TermsEnumResponse.ts#L22-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a782b6517a..6c843d048f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get terms in an index. // @@ -44,7 +44,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -204,12 +204,12 @@ func (r *TermsEnum) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/termvectors/request.go b/typedapi/core/termvectors/request.go index b2def43f1c..675e0505bf 100644 --- a/typedapi/core/termvectors/request.go +++ b/typedapi/core/termvectors/request.go @@ -16,37 +16,75 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package termvectors import ( + "bytes" "encoding/json" + "errors" "fmt" + "io" + "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) // Request holds the request body struct for the package termvectors // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/termvectors/TermVectorsRequest.ts#L33-L187 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/termvectors/TermVectorsRequest.ts#L33-L239 type Request struct { // Doc An artificial document (a document not present in the index) for which you // want to retrieve term vectors. Doc json.RawMessage `json:"doc,omitempty"` + // FieldStatistics If `true`, the response includes: + // + // * The document count (how many documents contain this field). + // * The sum of document frequencies (the sum of document frequencies for all + // terms in this field). + // * The sum of total term frequencies (the sum of total term frequencies of + // each term in this field). + FieldStatistics *bool `json:"field_statistics,omitempty"` + // Fields A list of fields to include in the statistics. + // It is used as the default list unless a specific field list is provided in + // the `completion_fields` or `fielddata_fields` parameters. + Fields []string `json:"fields,omitempty"` // Filter Filter terms based on their tf-idf scores. // This could be useful in order find out a good characteristic vector of a // document. // This feature works in a similar manner to the second phase of the More Like // This Query. Filter *types.TermVectorsFilter `json:"filter,omitempty"` + // Offsets If `true`, the response includes term offsets. + Offsets *bool `json:"offsets,omitempty"` + // Payloads If `true`, the response includes term payloads. + Payloads *bool `json:"payloads,omitempty"` // PerFieldAnalyzer Override the default per-field analyzer. // This is useful in order to generate term vectors in any fashion, especially // when using artificial documents. // When providing an analyzer for a field that already stores term vectors, the // term vectors will be regenerated. PerFieldAnalyzer map[string]string `json:"per_field_analyzer,omitempty"` + // Positions If `true`, the response includes term positions. + Positions *bool `json:"positions,omitempty"` + // Routing A custom value that is used to route operations to a specific shard. + Routing *string `json:"routing,omitempty"` + // TermStatistics If `true`, the response includes: + // + // * The total term frequency (how often a term occurs in all documents). + // * The document frequency (the number of documents containing the current + // term). + // + // By default these values are not returned since term statistics can have a + // serious performance impact. + TermStatistics *bool `json:"term_statistics,omitempty"` + // Version If `true`, returns the document version as part of a hit. + Version *int64 `json:"version,omitempty"` + // VersionType The version type. + VersionType *versiontype.VersionType `json:"version_type,omitempty"` } // NewRequest returns a Request @@ -69,3 +107,141 @@ func (r *Request) FromJSON(data string) (*Request, error) { return &req, nil } + +func (s *Request) UnmarshalJSON(data []byte) error { + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "doc": + if err := dec.Decode(&s.Doc); err != nil { + return fmt.Errorf("%s | %w", "Doc", err) + } + + case "field_statistics": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "FieldStatistics", err) + } + s.FieldStatistics = &value + case bool: + s.FieldStatistics = &v + } + + case "fields": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := new(string) + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Fields", err) + } + + s.Fields = append(s.Fields, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.Fields); err != nil { + return fmt.Errorf("%s | %w", "Fields", err) + } + } + + case "filter": + if err := dec.Decode(&s.Filter); err != nil { + return fmt.Errorf("%s | %w", "Filter", err) + } + + case "offsets": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "Offsets", err) + } + s.Offsets = &value + case bool: + s.Offsets = &v + } + + case "payloads": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "Payloads", err) + } + s.Payloads = &value + case bool: + s.Payloads = &v + } + + case "per_field_analyzer": + if s.PerFieldAnalyzer == nil { + s.PerFieldAnalyzer = make(map[string]string, 0) + } + if err := dec.Decode(&s.PerFieldAnalyzer); err != nil { + return fmt.Errorf("%s | %w", "PerFieldAnalyzer", err) + } + + case "positions": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "Positions", err) + } + s.Positions = &value + case bool: + s.Positions = &v + } + + case "routing": + if err := dec.Decode(&s.Routing); err != nil { + return fmt.Errorf("%s | %w", "Routing", err) + } + + case "term_statistics": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "TermStatistics", err) + } + s.TermStatistics = &value + case bool: + s.TermStatistics = &v + } + + case "version": + if err := dec.Decode(&s.Version); err != nil { + return fmt.Errorf("%s | %w", "Version", err) + } + + case "version_type": + if err := dec.Decode(&s.VersionType); err != nil { + return fmt.Errorf("%s | %w", "VersionType", err) + } + + } + } + return nil +} diff --git a/typedapi/core/termvectors/response.go b/typedapi/core/termvectors/response.go index 954a4bb62d..0089414616 100644 --- a/typedapi/core/termvectors/response.go +++ b/typedapi/core/termvectors/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package termvectors import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package termvectors // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/termvectors/TermVectorsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5d2f7a9d2e..f74c1ca5f2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get term vector information. // @@ -87,8 +87,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) const ( @@ -311,12 +311,12 @@ func (r *Termvectors) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -447,55 +447,6 @@ func (r *Termvectors) Id(id string) *Termvectors { return r } -// Fields A comma-separated list or wildcard expressions of fields to include in the -// statistics. -// It is used as the default list unless a specific field list is provided in -// the `completion_fields` or `fielddata_fields` parameters. -// API name: fields -func (r *Termvectors) Fields(fields ...string) *Termvectors { - r.values.Set("fields", strings.Join(fields, ",")) - - return r -} - -// FieldStatistics If `true`, the response includes: -// -// * The document count (how many documents contain this field). -// * The sum of document frequencies (the sum of document frequencies for all -// terms in this field). -// * The sum of total term frequencies (the sum of total term frequencies of -// each term in this field). -// API name: field_statistics -func (r *Termvectors) FieldStatistics(fieldstatistics bool) *Termvectors { - r.values.Set("field_statistics", strconv.FormatBool(fieldstatistics)) - - return r -} - -// Offsets If `true`, the response includes term offsets. -// API name: offsets -func (r *Termvectors) Offsets(offsets bool) *Termvectors { - r.values.Set("offsets", strconv.FormatBool(offsets)) - - return r -} - -// Payloads If `true`, the response includes term payloads. -// API name: payloads -func (r *Termvectors) Payloads(payloads bool) *Termvectors { - r.values.Set("payloads", strconv.FormatBool(payloads)) - - return r -} - -// Positions If `true`, the response includes term positions. -// API name: positions -func (r *Termvectors) Positions(positions bool) *Termvectors { - r.values.Set("positions", strconv.FormatBool(positions)) - - return r -} - // Preference The node or shard the operation should be performed on. // It is random by default. // API name: preference @@ -513,45 +464,6 @@ func (r *Termvectors) Realtime(realtime bool) *Termvectors { return r } -// Routing A custom value that is used to route operations to a specific shard. -// API name: routing -func (r *Termvectors) Routing(routing string) *Termvectors { - r.values.Set("routing", routing) - - return r -} - -// TermStatistics If `true`, the response includes: -// -// * The total term frequency (how often a term occurs in all documents). -// * The document frequency (the number of documents containing the current -// term). -// -// By default these values are not returned since term statistics can have a -// serious performance impact. -// API name: term_statistics -func (r *Termvectors) TermStatistics(termstatistics bool) *Termvectors { - r.values.Set("term_statistics", strconv.FormatBool(termstatistics)) - - return r -} - -// Version If `true`, returns the document version as part of a hit. -// API name: version -func (r *Termvectors) Version(versionnumber string) *Termvectors { - r.values.Set("version", versionnumber) - - return r -} - -// VersionType The version type. -// API name: version_type -func (r *Termvectors) VersionType(versiontype versiontype.VersionType) *Termvectors { - r.values.Set("version_type", versiontype.String()) - - return r -} - // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace @@ -620,6 +532,40 @@ func (r *Termvectors) Doc(doc any) *Termvectors { return r } +// If `true`, the response includes: +// +// * The document count (how many documents contain this field). +// * The sum of document frequencies (the sum of document frequencies for all +// terms in this field). +// * The sum of total term frequencies (the sum of total term frequencies of +// each term in this field). +// API name: field_statistics +func (r *Termvectors) FieldStatistics(fieldstatistics bool) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.FieldStatistics = &fieldstatistics + + return r +} + +// A list of fields to include in the statistics. +// It is used as the default list unless a specific field list is provided in +// the `completion_fields` or `fielddata_fields` parameters. +// API name: fields +func (r *Termvectors) Fields(fields ...string) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Fields = fields + + return r +} + // Filter terms based on their tf-idf scores. // This could be useful in order find out a good characteristic vector of a // document. @@ -637,6 +583,32 @@ func (r *Termvectors) Filter(filter types.TermVectorsFilterVariant) *Termvectors return r } +// If `true`, the response includes term offsets. +// API name: offsets +func (r *Termvectors) Offsets(offsets bool) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Offsets = &offsets + + return r +} + +// If `true`, the response includes term payloads. +// API name: payloads +func (r *Termvectors) Payloads(payloads bool) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Payloads = &payloads + + return r +} + // Override the default per-field analyzer. // This is useful in order to generate term vectors in any fashion, especially // when using artificial documents. @@ -670,3 +642,73 @@ func (r *Termvectors) AddPerFieldAnalyzer(key string, value string) *Termvectors r.req.PerFieldAnalyzer = tmp return r } + +// If `true`, the response includes term positions. +// API name: positions +func (r *Termvectors) Positions(positions bool) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Positions = &positions + + return r +} + +// A custom value that is used to route operations to a specific shard. +// API name: routing +func (r *Termvectors) Routing(routing string) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Routing = &routing + + return r +} + +// If `true`, the response includes: +// +// * The total term frequency (how often a term occurs in all documents). +// * The document frequency (the number of documents containing the current +// term). +// +// By default these values are not returned since term statistics can have a +// serious performance impact. +// API name: term_statistics +func (r *Termvectors) TermStatistics(termstatistics bool) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TermStatistics = &termstatistics + + return r +} + +// If `true`, returns the document version as part of a hit. +// API name: version +func (r *Termvectors) Version(versionnumber int64) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.Version = &versionnumber + + return r +} + +// The version type. +// API name: version_type +func (r *Termvectors) VersionType(versiontype versiontype.VersionType) *Termvectors { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.VersionType = &versiontype + return r +} diff --git a/typedapi/core/update/request.go b/typedapi/core/update/request.go index 031ed95d2f..509d3807a0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package update @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/update/UpdateRequest.ts#L38-L194 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/update/UpdateRequest.ts#L38-L194 type Request struct { // DetectNoop If `true`, the `result` in the response is set to `noop` (no operation) when diff --git a/typedapi/core/update/response.go b/typedapi/core/update/response.go index e69177dbd4..d19fd4d68c 100644 --- a/typedapi/core/update/response.go +++ b/typedapi/core/update/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package update import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/update/UpdateResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 732ea4bb35..d1a0651bb9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update a document. // @@ -58,8 +58,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -244,12 +244,12 @@ func (r *Update) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/core/updatebyquery/request.go b/typedapi/core/updatebyquery/request.go index 8a46a3d3a9..a19b19fc97 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatebyquery @@ -24,13 +24,13 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/conflicts" ) // Request holds the request body struct for the package updatebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L336 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/update_by_query/UpdateByQueryRequest.ts#L37-L340 type Request struct { // Conflicts The preferred behavior when update by query hits version conflicts: `abort` diff --git a/typedapi/core/updatebyquery/response.go b/typedapi/core/updatebyquery/response.go index 7e74f22f72..7268428851 100644 --- a/typedapi/core/updatebyquery/response.go +++ b/typedapi/core/updatebyquery/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatebyquery import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package updatebyquery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/update_by_query/UpdateByQueryResponse.ts#L26-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fd81890743..e364ee5fc8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update documents. // Updates documents that match the specified query. @@ -170,11 +170,11 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conflicts" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/conflicts" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" ) const ( @@ -460,12 +460,12 @@ func (r *UpdateByQuery) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -659,7 +659,7 @@ func (r *UpdateByQuery) ExpandWildcards(expandwildcards ...expandwildcard.Expand return r } -// From Starting offset (default: 0) +// From Skips the specified number of documents. // API name: from func (r *UpdateByQuery) From(from string) *UpdateByQuery { r.values.Set("from", from) diff --git a/typedapi/core/updatebyqueryrethrottle/response.go b/typedapi/core/updatebyqueryrethrottle/response.go index 285a819a73..8770500d26 100644 --- a/typedapi/core/updatebyqueryrethrottle/response.go +++ b/typedapi/core/updatebyqueryrethrottle/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatebyqueryrethrottle import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package updatebyqueryrethrottle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 274a521fda..31867d47d3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Throttle an update by query operation. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -150,7 +150,7 @@ func (r *UpdateByQueryRethrottle) HttpRequest(ctx context.Context) (*http.Reques req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/danglingindices/deletedanglingindex/delete_dangling_index.go b/typedapi/danglingindices/deletedanglingindex/delete_dangling_index.go index 1864b53f3f..80d9464417 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a dangling index. // If Elasticsearch encounters index data that is absent from the current @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -146,7 +146,7 @@ func (r *DeleteDanglingIndex) HttpRequest(ctx context.Context) (*http.Request, e req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/danglingindices/deletedanglingindex/response.go b/typedapi/danglingindices/deletedanglingindex/response.go index b3f7227134..aacdcbf07f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletedanglingindex // Response holds the response body struct for the package deletedanglingindex // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/dangling_indices/delete_dangling_index/DeleteDanglingIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ae7640c6dc..9174f8ed8b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Import a dangling index. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -148,7 +148,7 @@ func (r *ImportDanglingIndex) HttpRequest(ctx context.Context) (*http.Request, e req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/danglingindices/importdanglingindex/response.go b/typedapi/danglingindices/importdanglingindex/response.go index 64da7ac54e..9c87b2828d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package importdanglingindex // Response holds the response body struct for the package importdanglingindex // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/dangling_indices/import_dangling_index/ImportDanglingIndexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 72c09dd6fc..9774ec55c5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the dangling indices. // @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -138,7 +138,7 @@ func (r *ListDanglingIndices) HttpRequest(ctx context.Context) (*http.Request, e req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/danglingindices/listdanglingindices/response.go b/typedapi/danglingindices/listdanglingindices/response.go index bc8ed50559..f83f195fc6 100644 --- a/typedapi/danglingindices/listdanglingindices/response.go +++ b/typedapi/danglingindices/listdanglingindices/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package listdanglingindices import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package listdanglingindices // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ef5148b5c3..74caf1fc9e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete an enrich policy. // Deletes an existing enrich policy and its enrich index. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *DeletePolicy) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/enrich/deletepolicy/response.go b/typedapi/enrich/deletepolicy/response.go index 9ee3364a4a..f836ec7f95 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletepolicy // Response holds the response body struct for the package deletepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/delete_policy/DeleteEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 aa44ec8f93..0e31348214 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run an enrich policy. // Create the enrich index for an existing enrich policy. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -142,7 +142,7 @@ func (r *ExecutePolicy) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/enrich/executepolicy/response.go b/typedapi/enrich/executepolicy/response.go index aa68bc5d24..8041b943ff 100644 --- a/typedapi/enrich/executepolicy/response.go +++ b/typedapi/enrich/executepolicy/response.go @@ -16,20 +16,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package executepolicy import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package executepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/enrich/execute_policy/ExecuteEnrichPolicyResponse.ts#L23-L28 type Response struct { Status *types.ExecuteEnrichPolicyStatus `json:"status,omitempty"` - TaskId types.TaskId `json:"task_id,omitempty"` + Task types.TaskId `json:"task,omitempty"` } // NewResponse returns a Response diff --git a/typedapi/enrich/getpolicy/get_policy.go b/typedapi/enrich/getpolicy/get_policy.go index 5570d5d65e..255d00b1e6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get an enrich policy. // Returns information about an enrich policy. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -145,7 +145,7 @@ func (r *GetPolicy) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/enrich/getpolicy/response.go b/typedapi/enrich/getpolicy/response.go index db328f5cf7..14d3dcae5d 100644 --- a/typedapi/enrich/getpolicy/response.go +++ b/typedapi/enrich/getpolicy/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getpolicy import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/get_policy/GetEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cb27e0e1fa..a56092b4ab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create an enrich policy. // Creates an enrich policy. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -188,12 +188,12 @@ func (r *PutPolicy) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/enrich/putpolicy/request.go b/typedapi/enrich/putpolicy/request.go index bebda5f7be..a0807d61dc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putpolicy @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/put_policy/PutEnrichPolicyRequest.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7abb03f982..506659f747 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putpolicy // Response holds the response body struct for the package putpolicy // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/put_policy/PutEnrichPolicyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 aa5d4dde95..4a5198cbf1 100644 --- a/typedapi/enrich/stats/response.go +++ b/typedapi/enrich/stats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/stats/EnrichStatsResponse.ts#L22-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8f31915e8b..d8b17b989c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get enrich stats. // Returns enrich coordinator statistics and information about enrich policies @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -128,7 +128,7 @@ func (r *Stats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/eql/delete/delete.go b/typedapi/eql/delete/delete.go index 644b93a7e2..f61d8f0aed 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete an async EQL search. // Delete an async EQL search or a stored synchronous EQL search. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -142,7 +142,7 @@ func (r *Delete) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/eql/delete/response.go b/typedapi/eql/delete/response.go index 16776dc500..e1667f21af 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/eql/delete/EqlDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0eca3253b6..fce7de2bc1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get async EQL search results. // Get the current status and available results for an async EQL search or a @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -142,7 +142,7 @@ func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/eql/get/response.go b/typedapi/eql/get/response.go index 7a9371875e..9f539d50a7 100644 --- a/typedapi/eql/get/response.go +++ b/typedapi/eql/get/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package get import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/eql/get/EqlGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d7f75645b5..bc7d208b22 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the async EQL status. // Get the current status for an async EQL search or a stored synchronous EQL @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *GetStatus) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/eql/getstatus/response.go b/typedapi/eql/getstatus/response.go index 5b77617507..de6fa0fd51 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getstatus // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/eql/get_status/EqlGetStatusResponse.ts#L24-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 18f28942c5..a1f35baa04 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package search @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/resultposition" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/resultposition" ) // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/eql/search/EqlSearchRequest.ts#L28-L161 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/eql/search/EqlSearchRequest.ts#L28-L161 type Request struct { // AllowPartialSearchResults Allow query execution also in case of shard failures. diff --git a/typedapi/eql/search/response.go b/typedapi/eql/search/response.go index a0e2e9b4d5..5b08afac46 100644 --- a/typedapi/eql/search/response.go +++ b/typedapi/eql/search/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package search import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/eql/search/EqlSearchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ca15fe842b..15d8090baf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get EQL search results. // Returns search results for an Event Query Language (EQL) query. @@ -36,9 +36,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/resultposition" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/resultposition" ) const ( @@ -192,12 +192,12 @@ func (r *Search) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/esdsl/access.go b/typedapi/esdsl/access.go index d49c54b05c..c662bea1b4 100644 --- a/typedapi/esdsl/access.go +++ b/typedapi/esdsl/access.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _access struct { v *types.Access @@ -32,7 +32,6 @@ func NewAccess() *_access { } -// A list of indices permission entries for cross-cluster replication. func (s *_access) Replication(replications ...types.ReplicationAccessVariant) *_access { for _, v := range replications { @@ -43,7 +42,6 @@ func (s *_access) Replication(replications ...types.ReplicationAccessVariant) *_ return s } -// A list of indices permission entries for cross-cluster search. func (s *_access) Search(searches ...types.SearchAccessVariant) *_access { for _, v := range searches { diff --git a/typedapi/esdsl/acknowledgestate.go b/typedapi/esdsl/acknowledgestate.go index d0e89fccda..7ac4e71dd2 100644 --- a/typedapi/esdsl/acknowledgestate.go +++ b/typedapi/esdsl/acknowledgestate.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/acknowledgementoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/acknowledgementoptions" ) type _acknowledgeState struct { diff --git a/typedapi/esdsl/actionstatus.go b/typedapi/esdsl/actionstatus.go index 90f4531b7c..ce714ed3a5 100644 --- a/typedapi/esdsl/actionstatus.go +++ b/typedapi/esdsl/actionstatus.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _actionStatus struct { v *types.ActionStatus diff --git a/typedapi/esdsl/activationstate.go b/typedapi/esdsl/activationstate.go index 24a28a6c4b..b3ace3ea0f 100644 --- a/typedapi/esdsl/activationstate.go +++ b/typedapi/esdsl/activationstate.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _activationState struct { v *types.ActivationState diff --git a/typedapi/esdsl/adaptiveallocations.go b/typedapi/esdsl/adaptiveallocations.go new file mode 100644 index 0000000000..35a61554a8 --- /dev/null +++ b/typedapi/esdsl/adaptiveallocations.go @@ -0,0 +1,58 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _adaptiveAllocations struct { + v *types.AdaptiveAllocations +} + +func NewAdaptiveAllocations() *_adaptiveAllocations { + + return &_adaptiveAllocations{v: types.NewAdaptiveAllocations()} + +} + +func (s *_adaptiveAllocations) Enabled(enabled bool) *_adaptiveAllocations { + + s.v.Enabled = &enabled + + return s +} + +func (s *_adaptiveAllocations) MaxNumberOfAllocations(maxnumberofallocations int) *_adaptiveAllocations { + + s.v.MaxNumberOfAllocations = &maxnumberofallocations + + return s +} + +func (s *_adaptiveAllocations) MinNumberOfAllocations(minnumberofallocations int) *_adaptiveAllocations { + + s.v.MinNumberOfAllocations = &minnumberofallocations + + return s +} + +func (s *_adaptiveAllocations) AdaptiveAllocationsCaster() *types.AdaptiveAllocations { + return s.v +} diff --git a/typedapi/esdsl/adaptiveallocationssettings.go b/typedapi/esdsl/adaptiveallocationssettings.go index 3de0f7ea0c..546a28f0a4 100644 --- a/typedapi/esdsl/adaptiveallocationssettings.go +++ b/typedapi/esdsl/adaptiveallocationssettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _adaptiveAllocationsSettings struct { v *types.AdaptiveAllocationsSettings @@ -36,7 +36,6 @@ func NewAdaptiveAllocationsSettings(enabled bool) *_adaptiveAllocationsSettings } -// If true, adaptive_allocations is enabled func (s *_adaptiveAllocationsSettings) Enabled(enabled bool) *_adaptiveAllocationsSettings { s.v.Enabled = enabled @@ -44,8 +43,6 @@ func (s *_adaptiveAllocationsSettings) Enabled(enabled bool) *_adaptiveAllocatio return s } -// Specifies the maximum number of allocations to scale to. -// If set, it must be greater than or equal to min_number_of_allocations. func (s *_adaptiveAllocationsSettings) MaxNumberOfAllocations(maxnumberofallocations int) *_adaptiveAllocationsSettings { s.v.MaxNumberOfAllocations = &maxnumberofallocations @@ -53,9 +50,6 @@ func (s *_adaptiveAllocationsSettings) MaxNumberOfAllocations(maxnumberofallocat return s } -// Specifies the minimum number of allocations to scale to. -// If set, it must be greater than or equal to 0. -// If not defined, the deployment scales to 0. func (s *_adaptiveAllocationsSettings) MinNumberOfAllocations(minnumberofallocations int) *_adaptiveAllocationsSettings { s.v.MinNumberOfAllocations = &minnumberofallocations diff --git a/typedapi/esdsl/addaction.go b/typedapi/esdsl/addaction.go index 1b13559e47..5db570c134 100644 --- a/typedapi/esdsl/addaction.go +++ b/typedapi/esdsl/addaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _addAction struct { v *types.AddAction @@ -34,8 +34,6 @@ func NewAddAction() *_addAction { } -// Alias for the action. -// Index alias names support date math. func (s *_addAction) Alias(indexalias string) *_addAction { s.v.Alias = &indexalias @@ -43,8 +41,6 @@ func (s *_addAction) Alias(indexalias string) *_addAction { return s } -// Aliases for the action. -// Index alias names support date math. func (s *_addAction) Aliases(aliases ...string) *_addAction { s.v.Aliases = make([]string, len(aliases)) @@ -53,7 +49,6 @@ func (s *_addAction) Aliases(aliases ...string) *_addAction { return s } -// Query used to limit documents the alias can access. func (s *_addAction) Filter(filter types.QueryVariant) *_addAction { s.v.Filter = filter.QueryCaster() @@ -61,8 +56,6 @@ func (s *_addAction) Filter(filter types.QueryVariant) *_addAction { return s } -// Data stream or index for the action. -// Supports wildcards (`*`). func (s *_addAction) Index(indexname string) *_addAction { s.v.Index = &indexname @@ -70,9 +63,6 @@ func (s *_addAction) Index(indexname string) *_addAction { return s } -// Value used to route indexing operations to a specific shard. -// If specified, this overwrites the `routing` value for indexing operations. -// Data stream aliases don’t support this parameter. func (s *_addAction) IndexRouting(routing string) *_addAction { s.v.IndexRouting = &routing @@ -80,8 +70,6 @@ func (s *_addAction) IndexRouting(routing string) *_addAction { return s } -// Data streams or indices for the action. -// Supports wildcards (`*`). func (s *_addAction) Indices(indices ...string) *_addAction { s.v.Indices = indices @@ -89,7 +77,6 @@ func (s *_addAction) Indices(indices ...string) *_addAction { return s } -// If `true`, the alias is hidden. func (s *_addAction) IsHidden(ishidden bool) *_addAction { s.v.IsHidden = &ishidden @@ -97,7 +84,6 @@ func (s *_addAction) IsHidden(ishidden bool) *_addAction { return s } -// If `true`, sets the write index or data stream for the alias. func (s *_addAction) IsWriteIndex(iswriteindex bool) *_addAction { s.v.IsWriteIndex = &iswriteindex @@ -105,7 +91,6 @@ func (s *_addAction) IsWriteIndex(iswriteindex bool) *_addAction { return s } -// If `true`, the alias must exist to perform the action. func (s *_addAction) MustExist(mustexist bool) *_addAction { s.v.MustExist = &mustexist @@ -113,8 +98,6 @@ func (s *_addAction) MustExist(mustexist bool) *_addAction { return s } -// Value used to route indexing and search operations to a specific shard. -// Data stream aliases don’t support this parameter. func (s *_addAction) Routing(routing string) *_addAction { s.v.Routing = &routing @@ -122,9 +105,6 @@ func (s *_addAction) Routing(routing string) *_addAction { return s } -// Value used to route search operations to a specific shard. -// If specified, this overwrites the `routing` value for search operations. -// Data stream aliases don’t support this parameter. func (s *_addAction) SearchRouting(routing string) *_addAction { s.v.SearchRouting = &routing diff --git a/typedapi/esdsl/adjacencymatrixaggregation.go b/typedapi/esdsl/adjacencymatrixaggregation.go index 3736c3c1da..7a7b2ef692 100644 --- a/typedapi/esdsl/adjacencymatrixaggregation.go +++ b/typedapi/esdsl/adjacencymatrixaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _adjacencyMatrixAggregation struct { v *types.AdjacencyMatrixAggregation @@ -37,8 +37,6 @@ func NewAdjacencyMatrixAggregation() *_adjacencyMatrixAggregation { } -// Filters used to create buckets. -// At least one filter is required. func (s *_adjacencyMatrixAggregation) Filters(filters map[string]types.Query) *_adjacencyMatrixAggregation { s.v.Filters = filters @@ -60,7 +58,6 @@ func (s *_adjacencyMatrixAggregation) AddFilter(key string, value types.QueryVar return s } -// Separator used to concatenate filter names. Defaults to &. func (s *_adjacencyMatrixAggregation) Separator(separator string) *_adjacencyMatrixAggregation { s.v.Separator = &separator diff --git a/typedapi/esdsl/aggregatemetricdoubleproperty.go b/typedapi/esdsl/aggregatemetricdoubleproperty.go index 7daceb561f..f78def3e8f 100644 --- a/typedapi/esdsl/aggregatemetricdoubleproperty.go +++ b/typedapi/esdsl/aggregatemetricdoubleproperty.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "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/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) type _aggregateMetricDoubleProperty struct { @@ -82,7 +82,6 @@ func (s *_aggregateMetricDoubleProperty) IgnoreAbove(ignoreabove int) *_aggregat return s } -// Metadata about the field. 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 b32384f5d1..3969b12c48 100644 --- a/typedapi/esdsl/aggregateorder.go +++ b/typedapi/esdsl/aggregateorder.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) // This is provide all the types that are part of the union. diff --git a/typedapi/esdsl/aggregateoutput.go b/typedapi/esdsl/aggregateoutput.go index 5317878f81..ce4a4d5e69 100644 --- a/typedapi/esdsl/aggregateoutput.go +++ b/typedapi/esdsl/aggregateoutput.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _aggregateOutput struct { v *types.AggregateOutput diff --git a/typedapi/esdsl/aggregationrange.go b/typedapi/esdsl/aggregationrange.go index 9375f97e42..3b1430ad65 100644 --- a/typedapi/esdsl/aggregationrange.go +++ b/typedapi/esdsl/aggregationrange.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _aggregationRange struct { v *types.AggregationRange @@ -32,7 +32,6 @@ func NewAggregationRange() *_aggregationRange { } -// Start of the range (inclusive). func (s *_aggregationRange) From(from types.Float64) *_aggregationRange { s.v.From = &from @@ -40,7 +39,6 @@ func (s *_aggregationRange) From(from types.Float64) *_aggregationRange { return s } -// Custom key to return the range with. func (s *_aggregationRange) Key(key string) *_aggregationRange { s.v.Key = &key @@ -48,7 +46,6 @@ func (s *_aggregationRange) Key(key string) *_aggregationRange { return s } -// End of the range (exclusive). func (s *_aggregationRange) To(to types.Float64) *_aggregationRange { s.v.To = &to diff --git a/typedapi/esdsl/aggregations.go b/typedapi/esdsl/aggregations.go index 1e407e46ca..8fd7d83fc7 100644 --- a/typedapi/esdsl/aggregations.go +++ b/typedapi/esdsl/aggregations.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _aggregations struct { @@ -46,11 +46,6 @@ func (s *_aggregations) AdditionalAggregationsProperty(key string, value json.Ra return s } -// A bucket aggregation returning a form of adjacency matrix. -// The request provides a collection of named filter expressions, similar to the -// `filters` aggregation. -// Each bucket in the response represents a non-empty cell in the matrix of -// intersecting filters. func (s *_aggregations) AdjacencyMatrix(adjacencymatrix types.AdjacencyMatrixAggregationVariant) *_aggregations { s.v.AdjacencyMatrix = adjacencymatrix.AdjacencyMatrixAggregationCaster() @@ -58,8 +53,6 @@ func (s *_aggregations) AdjacencyMatrix(adjacencymatrix types.AdjacencyMatrixAgg return s } -// Sub-aggregations for this aggregation. -// Only applies to bucket aggregations. func (s *_aggregations) Aggregations(aggregations map[string]types.Aggregations) *_aggregations { s.v.Aggregations = aggregations @@ -81,9 +74,6 @@ func (s *_aggregations) AddAggregation(key string, value types.AggregationsVaria return s } -// A multi-bucket aggregation similar to the date histogram, except instead of -// providing an interval to use as the width of each bucket, a target number of -// buckets is provided. func (s *_aggregations) AutoDateHistogram(autodatehistogram types.AutoDateHistogramAggregationVariant) *_aggregations { s.v.AutoDateHistogram = autodatehistogram.AutoDateHistogramAggregationCaster() @@ -91,8 +81,6 @@ func (s *_aggregations) AutoDateHistogram(autodatehistogram types.AutoDateHistog return s } -// A single-value metrics aggregation that computes the average of numeric -// values that are extracted from the aggregated documents. func (s *_aggregations) Avg(avg types.AverageAggregationVariant) *_aggregations { s.v.Avg = avg.AverageAggregationCaster() @@ -100,10 +88,6 @@ func (s *_aggregations) Avg(avg types.AverageAggregationVariant) *_aggregations return s } -// A sibling pipeline aggregation which calculates the mean value of a specified -// metric in a sibling aggregation. -// The specified metric must be numeric and the sibling aggregation must be a -// multi-bucket aggregation. func (s *_aggregations) AvgBucket(avgbucket types.AverageBucketAggregationVariant) *_aggregations { s.v.AvgBucket = avgbucket.AverageBucketAggregationCaster() @@ -111,8 +95,6 @@ func (s *_aggregations) AvgBucket(avgbucket types.AverageBucketAggregationVarian return s } -// A metrics aggregation that computes a box plot of numeric values extracted -// from the aggregated documents. func (s *_aggregations) Boxplot(boxplot types.BoxplotAggregationVariant) *_aggregations { s.v.Boxplot = boxplot.BoxplotAggregationCaster() @@ -120,8 +102,6 @@ func (s *_aggregations) Boxplot(boxplot types.BoxplotAggregationVariant) *_aggre return s } -// A sibling pipeline aggregation which runs a correlation function on the -// configured sibling multi-bucket aggregation. func (s *_aggregations) BucketCorrelation(bucketcorrelation types.BucketCorrelationAggregationVariant) *_aggregations { s.v.BucketCorrelation = bucketcorrelation.BucketCorrelationAggregationCaster() @@ -129,9 +109,6 @@ func (s *_aggregations) BucketCorrelation(bucketcorrelation types.BucketCorrelat return s } -// A sibling pipeline aggregation which runs a two sample Kolmogorov–Smirnov -// test ("K-S test") against a provided distribution and the distribution -// implied by the documents counts in the configured sibling aggregation. func (s *_aggregations) BucketCountKsTest(bucketcountkstest types.BucketKsAggregationVariant) *_aggregations { s.v.BucketCountKsTest = bucketcountkstest.BucketKsAggregationCaster() @@ -139,8 +116,6 @@ func (s *_aggregations) BucketCountKsTest(bucketcountkstest types.BucketKsAggreg return s } -// A parent pipeline aggregation which runs a script which can perform per -// bucket computations on metrics in the parent multi-bucket aggregation. func (s *_aggregations) BucketScript(bucketscript types.BucketScriptAggregationVariant) *_aggregations { s.v.BucketScript = bucketscript.BucketScriptAggregationCaster() @@ -148,8 +123,6 @@ func (s *_aggregations) BucketScript(bucketscript types.BucketScriptAggregationV return s } -// A parent pipeline aggregation which runs a script to determine whether the -// current bucket will be retained in the parent multi-bucket aggregation. func (s *_aggregations) BucketSelector(bucketselector types.BucketSelectorAggregationVariant) *_aggregations { s.v.BucketSelector = bucketselector.BucketSelectorAggregationCaster() @@ -157,8 +130,6 @@ func (s *_aggregations) BucketSelector(bucketselector types.BucketSelectorAggreg return s } -// A parent pipeline aggregation which sorts the buckets of its parent -// multi-bucket aggregation. func (s *_aggregations) BucketSort(bucketsort types.BucketSortAggregationVariant) *_aggregations { s.v.BucketSort = bucketsort.BucketSortAggregationCaster() @@ -166,8 +137,6 @@ func (s *_aggregations) BucketSort(bucketsort types.BucketSortAggregationVariant return s } -// A single-value metrics aggregation that calculates an approximate count of -// distinct values. func (s *_aggregations) Cardinality(cardinality types.CardinalityAggregationVariant) *_aggregations { s.v.Cardinality = cardinality.CardinalityAggregationCaster() @@ -175,7 +144,6 @@ func (s *_aggregations) Cardinality(cardinality types.CardinalityAggregationVari return s } -// A multi-bucket aggregation that groups semi-structured text into buckets. func (s *_aggregations) CategorizeText(categorizetext types.CategorizeTextAggregationVariant) *_aggregations { s.v.CategorizeText = categorizetext.CategorizeTextAggregationCaster() @@ -183,8 +151,6 @@ func (s *_aggregations) CategorizeText(categorizetext types.CategorizeTextAggreg return s } -// A single bucket aggregation that selects child documents that have the -// specified type, as defined in a `join` field. func (s *_aggregations) Children(children types.ChildrenAggregationVariant) *_aggregations { s.v.Children = children.ChildrenAggregationCaster() @@ -192,11 +158,6 @@ func (s *_aggregations) Children(children types.ChildrenAggregationVariant) *_ag return s } -// A multi-bucket aggregation that creates composite buckets from different -// sources. -// Unlike the other multi-bucket aggregations, you can use the `composite` -// aggregation to paginate *all* buckets from a multi-level aggregation -// efficiently. func (s *_aggregations) Composite(composite types.CompositeAggregationVariant) *_aggregations { s.v.Composite = composite.CompositeAggregationCaster() @@ -204,8 +165,6 @@ func (s *_aggregations) Composite(composite types.CompositeAggregationVariant) * return s } -// A parent pipeline aggregation which calculates the cumulative cardinality in -// a parent `histogram` or `date_histogram` aggregation. func (s *_aggregations) CumulativeCardinality(cumulativecardinality types.CumulativeCardinalityAggregationVariant) *_aggregations { s.v.CumulativeCardinality = cumulativecardinality.CumulativeCardinalityAggregationCaster() @@ -213,8 +172,6 @@ func (s *_aggregations) CumulativeCardinality(cumulativecardinality types.Cumula return s } -// A parent pipeline aggregation which calculates the cumulative sum of a -// specified metric in a parent `histogram` or `date_histogram` aggregation. func (s *_aggregations) CumulativeSum(cumulativesum types.CumulativeSumAggregationVariant) *_aggregations { s.v.CumulativeSum = cumulativesum.CumulativeSumAggregationCaster() @@ -222,9 +179,6 @@ func (s *_aggregations) CumulativeSum(cumulativesum types.CumulativeSumAggregati return s } -// A multi-bucket values source based aggregation that can be applied on date -// values or date range values extracted from the documents. -// It dynamically builds fixed size (interval) buckets over the values. func (s *_aggregations) DateHistogram(datehistogram types.DateHistogramAggregationVariant) *_aggregations { s.v.DateHistogram = datehistogram.DateHistogramAggregationCaster() @@ -232,8 +186,6 @@ func (s *_aggregations) DateHistogram(datehistogram types.DateHistogramAggregati return s } -// A multi-bucket value source based aggregation that enables the user to define -// a set of date ranges - each representing a bucket. func (s *_aggregations) DateRange(daterange types.DateRangeAggregationVariant) *_aggregations { s.v.DateRange = daterange.DateRangeAggregationCaster() @@ -241,8 +193,6 @@ func (s *_aggregations) DateRange(daterange types.DateRangeAggregationVariant) * return s } -// A parent pipeline aggregation which calculates the derivative of a specified -// metric in a parent `histogram` or `date_histogram` aggregation. func (s *_aggregations) Derivative(derivative types.DerivativeAggregationVariant) *_aggregations { s.v.Derivative = derivative.DerivativeAggregationCaster() @@ -250,10 +200,6 @@ func (s *_aggregations) Derivative(derivative types.DerivativeAggregationVariant return s } -// A filtering aggregation used to limit any sub aggregations' processing to a -// sample of the top-scoring documents. -// Similar to the `sampler` aggregation, but adds the ability to limit the -// number of matches that share a common value. func (s *_aggregations) DiversifiedSampler(diversifiedsampler types.DiversifiedSamplerAggregationVariant) *_aggregations { s.v.DiversifiedSampler = diversifiedsampler.DiversifiedSamplerAggregationCaster() @@ -261,8 +207,6 @@ func (s *_aggregations) DiversifiedSampler(diversifiedsampler types.DiversifiedS return s } -// A multi-value metrics aggregation that computes stats over numeric values -// extracted from the aggregated documents. func (s *_aggregations) ExtendedStats(extendedstats types.ExtendedStatsAggregationVariant) *_aggregations { s.v.ExtendedStats = extendedstats.ExtendedStatsAggregationCaster() @@ -270,8 +214,6 @@ func (s *_aggregations) ExtendedStats(extendedstats types.ExtendedStatsAggregati return s } -// A sibling pipeline aggregation which calculates a variety of stats across all -// bucket of a specified metric in a sibling aggregation. func (s *_aggregations) ExtendedStatsBucket(extendedstatsbucket types.ExtendedStatsBucketAggregationVariant) *_aggregations { s.v.ExtendedStatsBucket = extendedstatsbucket.ExtendedStatsBucketAggregationCaster() @@ -279,8 +221,6 @@ func (s *_aggregations) ExtendedStatsBucket(extendedstatsbucket types.ExtendedSt return s } -// A single bucket aggregation that narrows the set of documents to those that -// match a query. func (s *_aggregations) Filter(filter types.QueryVariant) *_aggregations { s.v.Filter = filter.QueryCaster() @@ -288,8 +228,6 @@ func (s *_aggregations) Filter(filter types.QueryVariant) *_aggregations { return s } -// A multi-bucket aggregation where each bucket contains the documents that -// match a query. func (s *_aggregations) Filters(filters types.FiltersAggregationVariant) *_aggregations { s.v.Filters = filters.FiltersAggregationCaster() @@ -297,8 +235,6 @@ func (s *_aggregations) Filters(filters types.FiltersAggregationVariant) *_aggre return s } -// A bucket aggregation which finds frequent item sets, a form of association -// rules mining that identifies items that often occur together. func (s *_aggregations) FrequentItemSets(frequentitemsets types.FrequentItemSetsAggregationVariant) *_aggregations { s.v.FrequentItemSets = frequentitemsets.FrequentItemSetsAggregationCaster() @@ -306,8 +242,6 @@ func (s *_aggregations) FrequentItemSets(frequentitemsets types.FrequentItemSets return s } -// A metric aggregation that computes the geographic bounding box containing all -// values for a Geopoint or Geoshape field. func (s *_aggregations) GeoBounds(geobounds types.GeoBoundsAggregationVariant) *_aggregations { s.v.GeoBounds = geobounds.GeoBoundsAggregationCaster() @@ -315,8 +249,6 @@ func (s *_aggregations) GeoBounds(geobounds types.GeoBoundsAggregationVariant) * return s } -// A metric aggregation that computes the weighted centroid from all coordinate -// values for geo fields. func (s *_aggregations) GeoCentroid(geocentroid types.GeoCentroidAggregationVariant) *_aggregations { s.v.GeoCentroid = geocentroid.GeoCentroidAggregationCaster() @@ -324,9 +256,6 @@ func (s *_aggregations) GeoCentroid(geocentroid types.GeoCentroidAggregationVari return s } -// A multi-bucket aggregation that works on `geo_point` fields. -// Evaluates the distance of each document value from an origin point and -// determines the buckets it belongs to, based on ranges defined in the request. func (s *_aggregations) GeoDistance(geodistance types.GeoDistanceAggregationVariant) *_aggregations { s.v.GeoDistance = geodistance.GeoDistanceAggregationCaster() @@ -334,8 +263,6 @@ func (s *_aggregations) GeoDistance(geodistance types.GeoDistanceAggregationVari return s } -// Aggregates all `geo_point` values within a bucket into a `LineString` ordered -// by the chosen sort field. func (s *_aggregations) GeoLine(geoline types.GeoLineAggregationVariant) *_aggregations { s.v.GeoLine = geoline.GeoLineAggregationCaster() @@ -343,9 +270,6 @@ func (s *_aggregations) GeoLine(geoline types.GeoLineAggregationVariant) *_aggre return s } -// A multi-bucket aggregation that groups `geo_point` and `geo_shape` values -// into buckets that represent a grid. -// Each cell is labeled using a geohash which is of user-definable precision. func (s *_aggregations) GeohashGrid(geohashgrid types.GeoHashGridAggregationVariant) *_aggregations { s.v.GeohashGrid = geohashgrid.GeoHashGridAggregationCaster() @@ -353,10 +277,6 @@ func (s *_aggregations) GeohashGrid(geohashgrid types.GeoHashGridAggregationVari return s } -// A multi-bucket aggregation that groups `geo_point` and `geo_shape` values -// into buckets that represent a grid. -// Each cell corresponds to a H3 cell index and is labeled using the H3Index -// representation. func (s *_aggregations) GeohexGrid(geohexgrid types.GeohexGridAggregationVariant) *_aggregations { s.v.GeohexGrid = geohexgrid.GeohexGridAggregationCaster() @@ -364,9 +284,6 @@ func (s *_aggregations) GeohexGrid(geohexgrid types.GeohexGridAggregationVariant return s } -// A multi-bucket aggregation that groups `geo_point` and `geo_shape` values -// into buckets that represent a grid. -// Each cell corresponds to a map tile as used by many online map sites. func (s *_aggregations) GeotileGrid(geotilegrid types.GeoTileGridAggregationVariant) *_aggregations { s.v.GeotileGrid = geotilegrid.GeoTileGridAggregationCaster() @@ -374,10 +291,6 @@ func (s *_aggregations) GeotileGrid(geotilegrid types.GeoTileGridAggregationVari return s } -// Defines a single bucket of all the documents within the search execution -// context. -// This context is defined by the indices and the document types you’re -// searching on, but is not influenced by the search query itself. func (s *_aggregations) Global(global types.GlobalAggregationVariant) *_aggregations { s.v.Global = global.GlobalAggregationCaster() @@ -385,9 +298,6 @@ func (s *_aggregations) Global(global types.GlobalAggregationVariant) *_aggregat return s } -// A multi-bucket values source based aggregation that can be applied on numeric -// values or numeric range values extracted from the documents. -// It dynamically builds fixed size (interval) buckets over the values. func (s *_aggregations) Histogram(histogram types.HistogramAggregationVariant) *_aggregations { s.v.Histogram = histogram.HistogramAggregationCaster() @@ -395,8 +305,6 @@ func (s *_aggregations) Histogram(histogram types.HistogramAggregationVariant) * return s } -// A parent pipeline aggregation which loads a pre-trained model and performs -// inference on the collated result fields from the parent bucket aggregation. func (s *_aggregations) Inference(inference types.InferenceAggregationVariant) *_aggregations { s.v.Inference = inference.InferenceAggregationCaster() @@ -404,8 +312,6 @@ func (s *_aggregations) Inference(inference types.InferenceAggregationVariant) * return s } -// A bucket aggregation that groups documents based on the network or -// sub-network of an IP address. func (s *_aggregations) IpPrefix(ipprefix types.IpPrefixAggregationVariant) *_aggregations { s.v.IpPrefix = ipprefix.IpPrefixAggregationCaster() @@ -413,8 +319,6 @@ func (s *_aggregations) IpPrefix(ipprefix types.IpPrefixAggregationVariant) *_ag return s } -// A multi-bucket value source based aggregation that enables the user to define -// a set of IP ranges - each representing a bucket. func (s *_aggregations) IpRange(iprange types.IpRangeAggregationVariant) *_aggregations { s.v.IpRange = iprange.IpRangeAggregationCaster() @@ -429,9 +333,6 @@ func (s *_aggregations) Line(line types.GeoLineAggregationVariant) *_aggregation return s } -// A numeric aggregation that computes the following statistics over a set of -// document fields: `count`, `mean`, `variance`, `skewness`, `kurtosis`, -// `covariance`, and `covariance`. func (s *_aggregations) MatrixStats(matrixstats types.MatrixStatsAggregationVariant) *_aggregations { s.v.MatrixStats = matrixstats.MatrixStatsAggregationCaster() @@ -439,8 +340,6 @@ func (s *_aggregations) MatrixStats(matrixstats types.MatrixStatsAggregationVari return s } -// A single-value metrics aggregation that returns the maximum value among the -// numeric values extracted from the aggregated documents. func (s *_aggregations) Max(max types.MaxAggregationVariant) *_aggregations { s.v.Max = max.MaxAggregationCaster() @@ -448,9 +347,6 @@ func (s *_aggregations) Max(max types.MaxAggregationVariant) *_aggregations { return s } -// A sibling pipeline aggregation which identifies the bucket(s) with the -// maximum value of a specified metric in a sibling aggregation and outputs both -// the value and the key(s) of the bucket(s). func (s *_aggregations) MaxBucket(maxbucket types.MaxBucketAggregationVariant) *_aggregations { s.v.MaxBucket = maxbucket.MaxBucketAggregationCaster() @@ -458,8 +354,6 @@ func (s *_aggregations) MaxBucket(maxbucket types.MaxBucketAggregationVariant) * return s } -// A single-value aggregation that approximates the median absolute deviation of -// its search results. func (s *_aggregations) MedianAbsoluteDeviation(medianabsolutedeviation types.MedianAbsoluteDeviationAggregationVariant) *_aggregations { s.v.MedianAbsoluteDeviation = medianabsolutedeviation.MedianAbsoluteDeviationAggregationCaster() @@ -474,8 +368,6 @@ func (s *_aggregations) Meta(metadata types.MetadataVariant) *_aggregations { return s } -// A single-value metrics aggregation that returns the minimum value among -// numeric values extracted from the aggregated documents. func (s *_aggregations) Min(min types.MinAggregationVariant) *_aggregations { s.v.Min = min.MinAggregationCaster() @@ -483,9 +375,6 @@ func (s *_aggregations) Min(min types.MinAggregationVariant) *_aggregations { return s } -// A sibling pipeline aggregation which identifies the bucket(s) with the -// minimum value of a specified metric in a sibling aggregation and outputs both -// the value and the key(s) of the bucket(s). func (s *_aggregations) MinBucket(minbucket types.MinBucketAggregationVariant) *_aggregations { s.v.MinBucket = minbucket.MinBucketAggregationCaster() @@ -493,9 +382,6 @@ func (s *_aggregations) MinBucket(minbucket types.MinBucketAggregationVariant) * return s } -// A field data based single bucket aggregation, that creates a bucket of all -// documents in the current document set context that are missing a field value -// (effectively, missing a field or having the configured NULL value set). func (s *_aggregations) Missing(missing types.MissingAggregationVariant) *_aggregations { s.v.Missing = missing.MissingAggregationCaster() @@ -510,10 +396,6 @@ func (s *_aggregations) MovingAvg(movingaverageaggregation types.MovingAverageAg return s } -// Given an ordered series of data, "slides" a window across the data and runs a -// custom script on each window of data. -// For convenience, a number of common functions are predefined such as `min`, -// `max`, and moving averages. func (s *_aggregations) MovingFn(movingfn types.MovingFunctionAggregationVariant) *_aggregations { s.v.MovingFn = movingfn.MovingFunctionAggregationCaster() @@ -521,8 +403,6 @@ func (s *_aggregations) MovingFn(movingfn types.MovingFunctionAggregationVariant return s } -// Given an ordered series of percentiles, "slides" a window across those -// percentiles and computes cumulative percentiles. func (s *_aggregations) MovingPercentiles(movingpercentiles types.MovingPercentilesAggregationVariant) *_aggregations { s.v.MovingPercentiles = movingpercentiles.MovingPercentilesAggregationCaster() @@ -530,8 +410,6 @@ func (s *_aggregations) MovingPercentiles(movingpercentiles types.MovingPercenti return s } -// A multi-bucket value source based aggregation where buckets are dynamically -// built - one per unique set of values. func (s *_aggregations) MultiTerms(multiterms types.MultiTermsAggregationVariant) *_aggregations { s.v.MultiTerms = multiterms.MultiTermsAggregationCaster() @@ -539,8 +417,6 @@ func (s *_aggregations) MultiTerms(multiterms types.MultiTermsAggregationVariant return s } -// A special single bucket aggregation that enables aggregating nested -// documents. func (s *_aggregations) Nested(nested types.NestedAggregationVariant) *_aggregations { s.v.Nested = nested.NestedAggregationCaster() @@ -548,8 +424,6 @@ func (s *_aggregations) Nested(nested types.NestedAggregationVariant) *_aggregat return s } -// A parent pipeline aggregation which calculates the specific -// normalized/rescaled value for a specific bucket value. func (s *_aggregations) Normalize(normalize types.NormalizeAggregationVariant) *_aggregations { s.v.Normalize = normalize.NormalizeAggregationCaster() @@ -557,8 +431,6 @@ func (s *_aggregations) Normalize(normalize types.NormalizeAggregationVariant) * return s } -// A special single bucket aggregation that selects parent documents that have -// the specified type, as defined in a `join` field. func (s *_aggregations) Parent(parent types.ParentAggregationVariant) *_aggregations { s.v.Parent = parent.ParentAggregationCaster() @@ -566,8 +438,6 @@ func (s *_aggregations) Parent(parent types.ParentAggregationVariant) *_aggregat return s } -// A multi-value metrics aggregation that calculates one or more percentile -// ranks over numeric values extracted from the aggregated documents. func (s *_aggregations) PercentileRanks(percentileranks types.PercentileRanksAggregationVariant) *_aggregations { s.v.PercentileRanks = percentileranks.PercentileRanksAggregationCaster() @@ -575,8 +445,6 @@ func (s *_aggregations) PercentileRanks(percentileranks types.PercentileRanksAgg return s } -// A multi-value metrics aggregation that calculates one or more percentiles -// over numeric values extracted from the aggregated documents. func (s *_aggregations) Percentiles(percentiles types.PercentilesAggregationVariant) *_aggregations { s.v.Percentiles = percentiles.PercentilesAggregationCaster() @@ -584,8 +452,6 @@ func (s *_aggregations) Percentiles(percentiles types.PercentilesAggregationVari return s } -// A sibling pipeline aggregation which calculates percentiles across all bucket -// of a specified metric in a sibling aggregation. func (s *_aggregations) PercentilesBucket(percentilesbucket types.PercentilesBucketAggregationVariant) *_aggregations { s.v.PercentilesBucket = percentilesbucket.PercentilesBucketAggregationCaster() @@ -593,9 +459,6 @@ func (s *_aggregations) PercentilesBucket(percentilesbucket types.PercentilesBuc return s } -// A single bucket aggregation that randomly includes documents in the -// aggregated results. -// Sampling provides significant speed improvement at the cost of accuracy. func (s *_aggregations) RandomSampler(randomsampler types.RandomSamplerAggregationVariant) *_aggregations { s.v.RandomSampler = randomsampler.RandomSamplerAggregationCaster() @@ -603,8 +466,6 @@ func (s *_aggregations) RandomSampler(randomsampler types.RandomSamplerAggregati return s } -// A multi-bucket value source based aggregation that enables the user to define -// a set of ranges - each representing a bucket. func (s *_aggregations) Range(range_ types.RangeAggregationVariant) *_aggregations { s.v.Range = range_.RangeAggregationCaster() @@ -612,8 +473,6 @@ func (s *_aggregations) Range(range_ types.RangeAggregationVariant) *_aggregatio return s } -// A multi-bucket value source based aggregation which finds "rare" terms — -// terms that are at the long-tail of the distribution and are not frequent. func (s *_aggregations) RareTerms(rareterms types.RareTermsAggregationVariant) *_aggregations { s.v.RareTerms = rareterms.RareTermsAggregationCaster() @@ -621,8 +480,6 @@ func (s *_aggregations) RareTerms(rareterms types.RareTermsAggregationVariant) * return s } -// Calculates a rate of documents or a field in each bucket. -// Can only be used inside a `date_histogram` or `composite` aggregation. func (s *_aggregations) Rate(rate types.RateAggregationVariant) *_aggregations { s.v.Rate = rate.RateAggregationCaster() @@ -630,9 +487,6 @@ func (s *_aggregations) Rate(rate types.RateAggregationVariant) *_aggregations { return s } -// A special single bucket aggregation that enables aggregating on parent -// documents from nested documents. -// Should only be defined inside a `nested` aggregation. func (s *_aggregations) ReverseNested(reversenested types.ReverseNestedAggregationVariant) *_aggregations { s.v.ReverseNested = reversenested.ReverseNestedAggregationCaster() @@ -640,8 +494,6 @@ func (s *_aggregations) ReverseNested(reversenested types.ReverseNestedAggregati return s } -// A filtering aggregation used to limit any sub aggregations' processing to a -// sample of the top-scoring documents. func (s *_aggregations) Sampler(sampler types.SamplerAggregationVariant) *_aggregations { s.v.Sampler = sampler.SamplerAggregationCaster() @@ -649,7 +501,6 @@ func (s *_aggregations) Sampler(sampler types.SamplerAggregationVariant) *_aggre return s } -// A metric aggregation that uses scripts to provide a metric output. func (s *_aggregations) ScriptedMetric(scriptedmetric types.ScriptedMetricAggregationVariant) *_aggregations { s.v.ScriptedMetric = scriptedmetric.ScriptedMetricAggregationCaster() @@ -657,8 +508,6 @@ func (s *_aggregations) ScriptedMetric(scriptedmetric types.ScriptedMetricAggreg return s } -// An aggregation that subtracts values in a time series from themselves at -// different time lags or periods. func (s *_aggregations) SerialDiff(serialdiff types.SerialDifferencingAggregationVariant) *_aggregations { s.v.SerialDiff = serialdiff.SerialDifferencingAggregationCaster() @@ -666,7 +515,6 @@ func (s *_aggregations) SerialDiff(serialdiff types.SerialDifferencingAggregatio return s } -// Returns interesting or unusual occurrences of terms in a set. func (s *_aggregations) SignificantTerms(significantterms types.SignificantTermsAggregationVariant) *_aggregations { s.v.SignificantTerms = significantterms.SignificantTermsAggregationCaster() @@ -674,7 +522,6 @@ func (s *_aggregations) SignificantTerms(significantterms types.SignificantTerms return s } -// Returns interesting or unusual occurrences of free-text terms in a set. func (s *_aggregations) SignificantText(significanttext types.SignificantTextAggregationVariant) *_aggregations { s.v.SignificantText = significanttext.SignificantTextAggregationCaster() @@ -682,8 +529,6 @@ func (s *_aggregations) SignificantText(significanttext types.SignificantTextAgg return s } -// A multi-value metrics aggregation that computes stats over numeric values -// extracted from the aggregated documents. func (s *_aggregations) Stats(stats types.StatsAggregationVariant) *_aggregations { s.v.Stats = stats.StatsAggregationCaster() @@ -691,8 +536,6 @@ func (s *_aggregations) Stats(stats types.StatsAggregationVariant) *_aggregation return s } -// A sibling pipeline aggregation which calculates a variety of stats across all -// bucket of a specified metric in a sibling aggregation. func (s *_aggregations) StatsBucket(statsbucket types.StatsBucketAggregationVariant) *_aggregations { s.v.StatsBucket = statsbucket.StatsBucketAggregationCaster() @@ -700,8 +543,6 @@ func (s *_aggregations) StatsBucket(statsbucket types.StatsBucketAggregationVari return s } -// A multi-value metrics aggregation that computes statistics over string values -// extracted from the aggregated documents. func (s *_aggregations) StringStats(stringstats types.StringStatsAggregationVariant) *_aggregations { s.v.StringStats = stringstats.StringStatsAggregationCaster() @@ -709,8 +550,6 @@ func (s *_aggregations) StringStats(stringstats types.StringStatsAggregationVari return s } -// A single-value metrics aggregation that sums numeric values that are -// extracted from the aggregated documents. func (s *_aggregations) Sum(sum types.SumAggregationVariant) *_aggregations { s.v.Sum = sum.SumAggregationCaster() @@ -718,8 +557,6 @@ func (s *_aggregations) Sum(sum types.SumAggregationVariant) *_aggregations { return s } -// A sibling pipeline aggregation which calculates the sum of a specified metric -// across all buckets in a sibling aggregation. func (s *_aggregations) SumBucket(sumbucket types.SumBucketAggregationVariant) *_aggregations { s.v.SumBucket = sumbucket.SumBucketAggregationCaster() @@ -727,9 +564,6 @@ func (s *_aggregations) SumBucket(sumbucket types.SumBucketAggregationVariant) * return s } -// A metrics aggregation that performs a statistical hypothesis test in which -// the test statistic follows a Student’s t-distribution under the null -// hypothesis on numeric values extracted from the aggregated documents. func (s *_aggregations) TTest(ttest types.TTestAggregationVariant) *_aggregations { s.v.TTest = ttest.TTestAggregationCaster() @@ -737,8 +571,6 @@ func (s *_aggregations) TTest(ttest types.TTestAggregationVariant) *_aggregation return s } -// A multi-bucket value source based aggregation where buckets are dynamically -// built - one per unique value. func (s *_aggregations) Terms(terms types.TermsAggregationVariant) *_aggregations { s.v.Terms = terms.TermsAggregationCaster() @@ -746,9 +578,6 @@ func (s *_aggregations) Terms(terms types.TermsAggregationVariant) *_aggregation return s } -// The time series aggregation queries data created using a time series index. -// This is typically data such as metrics or other data streams with a time -// component, and requires creating an index using the time series mode. func (s *_aggregations) TimeSeries(timeseries types.TimeSeriesAggregationVariant) *_aggregations { s.v.TimeSeries = timeseries.TimeSeriesAggregationCaster() @@ -756,7 +585,6 @@ func (s *_aggregations) TimeSeries(timeseries types.TimeSeriesAggregationVariant return s } -// A metric aggregation that returns the top matching documents per bucket. func (s *_aggregations) TopHits(tophits types.TopHitsAggregationVariant) *_aggregations { s.v.TopHits = tophits.TopHitsAggregationCaster() @@ -764,8 +592,6 @@ func (s *_aggregations) TopHits(tophits types.TopHitsAggregationVariant) *_aggre return s } -// A metric aggregation that selects metrics from the document with the largest -// or smallest sort value. func (s *_aggregations) TopMetrics(topmetrics types.TopMetricsAggregationVariant) *_aggregations { s.v.TopMetrics = topmetrics.TopMetricsAggregationCaster() @@ -773,8 +599,6 @@ func (s *_aggregations) TopMetrics(topmetrics types.TopMetricsAggregationVariant return s } -// A single-value metrics aggregation that counts the number of values that are -// extracted from the aggregated documents. func (s *_aggregations) ValueCount(valuecount types.ValueCountAggregationVariant) *_aggregations { s.v.ValueCount = valuecount.ValueCountAggregationCaster() @@ -782,9 +606,6 @@ func (s *_aggregations) ValueCount(valuecount types.ValueCountAggregationVariant return s } -// A multi-bucket aggregation similar to the histogram, except instead of -// providing an interval to use as the width of each bucket, a target number of -// buckets is provided. func (s *_aggregations) VariableWidthHistogram(variablewidthhistogram types.VariableWidthHistogramAggregationVariant) *_aggregations { s.v.VariableWidthHistogram = variablewidthhistogram.VariableWidthHistogramAggregationCaster() @@ -792,8 +613,6 @@ func (s *_aggregations) VariableWidthHistogram(variablewidthhistogram types.Vari return s } -// A single-value metrics aggregation that computes the weighted average of -// numeric values that are extracted from the aggregated documents. func (s *_aggregations) WeightedAvg(weightedavg types.WeightedAverageAggregationVariant) *_aggregations { s.v.WeightedAvg = weightedavg.WeightedAverageAggregationCaster() diff --git a/typedapi/esdsl/alias.go b/typedapi/esdsl/alias.go index 567460bbdc..29da960348 100644 --- a/typedapi/esdsl/alias.go +++ b/typedapi/esdsl/alias.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _alias struct { v *types.Alias @@ -32,7 +32,6 @@ func NewAlias() *_alias { } -// Query used to limit documents the alias can access. func (s *_alias) Filter(filter types.QueryVariant) *_alias { s.v.Filter = filter.QueryCaster() @@ -40,8 +39,6 @@ func (s *_alias) Filter(filter types.QueryVariant) *_alias { return s } -// Value used to route indexing operations to a specific shard. -// If specified, this overwrites the `routing` value for indexing operations. func (s *_alias) IndexRouting(routing string) *_alias { s.v.IndexRouting = &routing @@ -49,8 +46,6 @@ func (s *_alias) IndexRouting(routing string) *_alias { return s } -// If `true`, the alias is hidden. -// All indices for the alias must have the same `is_hidden` value. func (s *_alias) IsHidden(ishidden bool) *_alias { s.v.IsHidden = &ishidden @@ -58,7 +53,6 @@ func (s *_alias) IsHidden(ishidden bool) *_alias { return s } -// If `true`, the index is the write index for the alias. func (s *_alias) IsWriteIndex(iswriteindex bool) *_alias { s.v.IsWriteIndex = &iswriteindex @@ -66,7 +60,6 @@ func (s *_alias) IsWriteIndex(iswriteindex bool) *_alias { return s } -// Value used to route indexing and search operations to a specific shard. func (s *_alias) Routing(routing string) *_alias { s.v.Routing = &routing @@ -74,8 +67,6 @@ func (s *_alias) Routing(routing string) *_alias { return s } -// Value used to route search operations to a specific shard. -// If specified, this overwrites the `routing` value for search operations. func (s *_alias) SearchRouting(routing string) *_alias { s.v.SearchRouting = &routing diff --git a/typedapi/esdsl/aliasdefinition.go b/typedapi/esdsl/aliasdefinition.go index b7c3d8e1eb..c3feab2448 100644 --- a/typedapi/esdsl/aliasdefinition.go +++ b/typedapi/esdsl/aliasdefinition.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _aliasDefinition struct { v *types.AliasDefinition @@ -32,7 +32,6 @@ func NewAliasDefinition() *_aliasDefinition { } -// Query used to limit documents the alias can access. func (s *_aliasDefinition) Filter(filter types.QueryVariant) *_aliasDefinition { s.v.Filter = filter.QueryCaster() @@ -40,8 +39,6 @@ func (s *_aliasDefinition) Filter(filter types.QueryVariant) *_aliasDefinition { return s } -// Value used to route indexing operations to a specific shard. -// If specified, this overwrites the `routing` value for indexing operations. func (s *_aliasDefinition) IndexRouting(indexrouting string) *_aliasDefinition { s.v.IndexRouting = &indexrouting @@ -49,8 +46,6 @@ func (s *_aliasDefinition) IndexRouting(indexrouting string) *_aliasDefinition { return s } -// If `true`, the alias is hidden. -// All indices for the alias must have the same `is_hidden` value. func (s *_aliasDefinition) IsHidden(ishidden bool) *_aliasDefinition { s.v.IsHidden = &ishidden @@ -58,7 +53,6 @@ func (s *_aliasDefinition) IsHidden(ishidden bool) *_aliasDefinition { return s } -// If `true`, the index is the write index for the alias. func (s *_aliasDefinition) IsWriteIndex(iswriteindex bool) *_aliasDefinition { s.v.IsWriteIndex = &iswriteindex @@ -66,7 +60,6 @@ func (s *_aliasDefinition) IsWriteIndex(iswriteindex bool) *_aliasDefinition { return s } -// Value used to route indexing and search operations to a specific shard. func (s *_aliasDefinition) Routing(routing string) *_aliasDefinition { s.v.Routing = &routing @@ -74,8 +67,6 @@ func (s *_aliasDefinition) Routing(routing string) *_aliasDefinition { return s } -// Value used to route search operations to a specific shard. -// If specified, this overwrites the `routing` value for search operations. func (s *_aliasDefinition) SearchRouting(searchrouting string) *_aliasDefinition { s.v.SearchRouting = &searchrouting diff --git a/typedapi/esdsl/alibabacloudservicesettings.go b/typedapi/esdsl/alibabacloudservicesettings.go new file mode 100644 index 0000000000..66668b124f --- /dev/null +++ b/typedapi/esdsl/alibabacloudservicesettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _alibabaCloudServiceSettings struct { + v *types.AlibabaCloudServiceSettings +} + +func NewAlibabaCloudServiceSettings(apikey string, host string, serviceid string, workspace string) *_alibabaCloudServiceSettings { + + tmp := &_alibabaCloudServiceSettings{v: types.NewAlibabaCloudServiceSettings()} + + tmp.ApiKey(apikey) + + tmp.Host(host) + + tmp.ServiceId(serviceid) + + tmp.Workspace(workspace) + + return tmp + +} + +func (s *_alibabaCloudServiceSettings) ApiKey(apikey string) *_alibabaCloudServiceSettings { + + s.v.ApiKey = apikey + + return s +} + +func (s *_alibabaCloudServiceSettings) Host(host string) *_alibabaCloudServiceSettings { + + s.v.Host = host + + return s +} + +func (s *_alibabaCloudServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_alibabaCloudServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_alibabaCloudServiceSettings) ServiceId(serviceid string) *_alibabaCloudServiceSettings { + + s.v.ServiceId = serviceid + + return s +} + +func (s *_alibabaCloudServiceSettings) Workspace(workspace string) *_alibabaCloudServiceSettings { + + s.v.Workspace = workspace + + return s +} + +func (s *_alibabaCloudServiceSettings) AlibabaCloudServiceSettingsCaster() *types.AlibabaCloudServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/alibabacloudtasksettings.go b/typedapi/esdsl/alibabacloudtasksettings.go new file mode 100644 index 0000000000..5c647feafc --- /dev/null +++ b/typedapi/esdsl/alibabacloudtasksettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _alibabaCloudTaskSettings struct { + v *types.AlibabaCloudTaskSettings +} + +func NewAlibabaCloudTaskSettings() *_alibabaCloudTaskSettings { + + return &_alibabaCloudTaskSettings{v: types.NewAlibabaCloudTaskSettings()} + +} + +func (s *_alibabaCloudTaskSettings) InputType(inputtype string) *_alibabaCloudTaskSettings { + + s.v.InputType = &inputtype + + return s +} + +func (s *_alibabaCloudTaskSettings) ReturnToken(returntoken bool) *_alibabaCloudTaskSettings { + + s.v.ReturnToken = &returntoken + + return s +} + +func (s *_alibabaCloudTaskSettings) AlibabaCloudTaskSettingsCaster() *types.AlibabaCloudTaskSettings { + return s.v +} diff --git a/typedapi/esdsl/allfield.go b/typedapi/esdsl/allfield.go index 8d6327c43a..0b97044b70 100644 --- a/typedapi/esdsl/allfield.go +++ b/typedapi/esdsl/allfield.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _allField struct { v *types.AllField diff --git a/typedapi/esdsl/allocateaction.go b/typedapi/esdsl/allocateaction.go index e0df7dfca9..4d3846cb0f 100644 --- a/typedapi/esdsl/allocateaction.go +++ b/typedapi/esdsl/allocateaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _allocateAction struct { v *types.AllocateAction diff --git a/typedapi/esdsl/alwayscondition.go b/typedapi/esdsl/alwayscondition.go index 6da4f66cf5..cea740ce0c 100644 --- a/typedapi/esdsl/alwayscondition.go +++ b/typedapi/esdsl/alwayscondition.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _alwaysCondition struct { v *types.AlwaysCondition diff --git a/typedapi/esdsl/amazonbedrockservicesettings.go b/typedapi/esdsl/amazonbedrockservicesettings.go new file mode 100644 index 0000000000..af513522af --- /dev/null +++ b/typedapi/esdsl/amazonbedrockservicesettings.go @@ -0,0 +1,89 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _amazonBedrockServiceSettings struct { + v *types.AmazonBedrockServiceSettings +} + +func NewAmazonBedrockServiceSettings(accesskey string, model string, region string, secretkey string) *_amazonBedrockServiceSettings { + + tmp := &_amazonBedrockServiceSettings{v: types.NewAmazonBedrockServiceSettings()} + + tmp.AccessKey(accesskey) + + tmp.Model(model) + + tmp.Region(region) + + tmp.SecretKey(secretkey) + + return tmp + +} + +func (s *_amazonBedrockServiceSettings) AccessKey(accesskey string) *_amazonBedrockServiceSettings { + + s.v.AccessKey = accesskey + + return s +} + +func (s *_amazonBedrockServiceSettings) Model(model string) *_amazonBedrockServiceSettings { + + s.v.Model = model + + return s +} + +func (s *_amazonBedrockServiceSettings) Provider(provider string) *_amazonBedrockServiceSettings { + + s.v.Provider = &provider + + return s +} + +func (s *_amazonBedrockServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_amazonBedrockServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_amazonBedrockServiceSettings) Region(region string) *_amazonBedrockServiceSettings { + + s.v.Region = region + + return s +} + +func (s *_amazonBedrockServiceSettings) SecretKey(secretkey string) *_amazonBedrockServiceSettings { + + s.v.SecretKey = secretkey + + return s +} + +func (s *_amazonBedrockServiceSettings) AmazonBedrockServiceSettingsCaster() *types.AmazonBedrockServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/amazonbedrocktasksettings.go b/typedapi/esdsl/amazonbedrocktasksettings.go new file mode 100644 index 0000000000..7f80ba8d8a --- /dev/null +++ b/typedapi/esdsl/amazonbedrocktasksettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _amazonBedrockTaskSettings struct { + v *types.AmazonBedrockTaskSettings +} + +func NewAmazonBedrockTaskSettings() *_amazonBedrockTaskSettings { + + return &_amazonBedrockTaskSettings{v: types.NewAmazonBedrockTaskSettings()} + +} + +func (s *_amazonBedrockTaskSettings) MaxNewTokens(maxnewtokens int) *_amazonBedrockTaskSettings { + + s.v.MaxNewTokens = &maxnewtokens + + return s +} + +func (s *_amazonBedrockTaskSettings) Temperature(temperature float32) *_amazonBedrockTaskSettings { + + s.v.Temperature = &temperature + + return s +} + +func (s *_amazonBedrockTaskSettings) TopK(topk float32) *_amazonBedrockTaskSettings { + + s.v.TopK = &topk + + return s +} + +func (s *_amazonBedrockTaskSettings) TopP(topp float32) *_amazonBedrockTaskSettings { + + s.v.TopP = &topp + + return s +} + +func (s *_amazonBedrockTaskSettings) AmazonBedrockTaskSettingsCaster() *types.AmazonBedrockTaskSettings { + return s.v +} diff --git a/typedapi/esdsl/analysisconfig.go b/typedapi/esdsl/analysisconfig.go index b0781190fe..7605332736 100644 --- a/typedapi/esdsl/analysisconfig.go +++ b/typedapi/esdsl/analysisconfig.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _analysisConfig struct { v *types.AnalysisConfig @@ -32,12 +32,6 @@ func NewAnalysisConfig() *_analysisConfig { } -// 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 -// equate to a -// whole number of buckets in one day. If the anomaly detection job uses a -// datafeed with aggregations, this value must also be divisible by the interval -// of the date histogram aggregation. func (s *_analysisConfig) BucketSpan(duration types.DurationVariant) *_analysisConfig { s.v.BucketSpan = *duration.DurationCaster() @@ -45,13 +39,6 @@ func (s *_analysisConfig) BucketSpan(duration types.DurationVariant) *_analysisC return s } -// If `categorization_field_name` is specified, you can also define the analyzer -// that is used to interpret the categorization field. This property cannot be -// used at the same time as `categorization_filters`. The categorization -// analyzer specifies how the `categorization_field` is interpreted by the -// categorization process. The `categorization_analyzer` field can be specified -// either as a string or as an object. If it is a string, it must refer to a -// built-in analyzer or one added by another plugin. func (s *_analysisConfig) CategorizationAnalyzer(categorizationanalyzer types.CategorizationAnalyzerVariant) *_analysisConfig { s.v.CategorizationAnalyzer = *categorizationanalyzer.CategorizationAnalyzerCaster() @@ -59,10 +46,6 @@ func (s *_analysisConfig) CategorizationAnalyzer(categorizationanalyzer types.Ca return s } -// If this property is specified, the values of the specified field will be -// categorized. The resulting categories must be used in a detector by setting -// `by_field_name`, `over_field_name`, or `partition_field_name` to the keyword -// `mlcategory`. func (s *_analysisConfig) CategorizationFieldName(field string) *_analysisConfig { s.v.CategorizationFieldName = &field @@ -70,18 +53,6 @@ func (s *_analysisConfig) CategorizationFieldName(field string) *_analysisConfig return s } -// If `categorization_field_name` is specified, you can also define optional -// filters. This property expects an array of regular expressions. The -// expressions are used to filter out matching sequences from the categorization -// field values. You can use this functionality to fine tune the categorization -// by excluding sequences from consideration when categories are defined. For -// example, you can exclude SQL statements that appear in your log files. This -// property cannot be used at the same time as `categorization_analyzer`. If you -// only want to define simple regular expression filters that are applied prior -// to tokenization, setting this property is the easiest method. If you also -// want to customize the tokenizer or post-tokenization filtering, use the -// `categorization_analyzer` property instead and include the filters as -// pattern_replace character filters. The effect is exactly the same. func (s *_analysisConfig) CategorizationFilters(categorizationfilters ...string) *_analysisConfig { for _, v := range categorizationfilters { @@ -92,10 +63,6 @@ func (s *_analysisConfig) CategorizationFilters(categorizationfilters ...string) return s } -// Detector configuration objects specify which data fields a job analyzes. They -// also specify which analytical functions are used. You can specify multiple -// detectors for a job. If the detectors array does not contain at least one -// detector, no analysis can occur and an error is returned. func (s *_analysisConfig) Detectors(detectors ...types.DetectorVariant) *_analysisConfig { for _, v := range detectors { @@ -106,12 +73,6 @@ func (s *_analysisConfig) Detectors(detectors ...types.DetectorVariant) *_analys return s } -// A comma separated list of influencer field names. Typically these can be the -// by, over, or partition fields that are used in the detector configuration. -// You might also want to use a field name that is not specifically named in a -// detector, but is available as part of the input data. When you use multiple -// detectors, the use of influencers is recommended as it aggregates results for -// each influencer entity. func (s *_analysisConfig) Influencers(influencers ...string) *_analysisConfig { for _, v := range influencers { @@ -122,10 +83,6 @@ func (s *_analysisConfig) Influencers(influencers ...string) *_analysisConfig { return s } -// The size of the window in which to expect data that is out of time order. If -// you specify a non-zero value, it must be greater than or equal to one second. -// NOTE: Latency is applicable only when you send data by using the post data -// API. func (s *_analysisConfig) Latency(duration types.DurationVariant) *_analysisConfig { s.v.Latency = *duration.DurationCaster() @@ -133,11 +90,6 @@ func (s *_analysisConfig) Latency(duration types.DurationVariant) *_analysisConf return s } -// Advanced configuration option. Affects the pruning of models that have not -// been updated for the given time duration. The value must be set to a multiple -// of the `bucket_span`. If set too low, important information may be removed -// from the model. For jobs created in 8.1 and later, the default value is the -// greater of `30d` or 20 times `bucket_span`. func (s *_analysisConfig) ModelPruneWindow(duration types.DurationVariant) *_analysisConfig { s.v.ModelPruneWindow = *duration.DurationCaster() @@ -145,18 +97,6 @@ func (s *_analysisConfig) ModelPruneWindow(duration types.DurationVariant) *_ana return s } -// This functionality is reserved for internal use. It is not supported for use -// in customer environments and is not subject to the support SLA of official GA -// features. If set to `true`, the analysis will automatically find correlations -// between metrics for a given by field value and report anomalies when those -// correlations cease to hold. For example, suppose CPU and memory usage on host -// A is usually highly correlated with the same metrics on host B. Perhaps this -// correlation occurs because they are running a load-balanced application. If -// you enable this property, anomalies will be reported when, for example, CPU -// usage on host A is high and the value of CPU usage on host B is low. That is -// to say, you’ll see an anomaly when the CPU of host A is unusual given the CPU -// of host B. To use the `multivariate_by_fields` property, you must also -// specify `by_field_name` in your detector. func (s *_analysisConfig) MultivariateByFields(multivariatebyfields bool) *_analysisConfig { s.v.MultivariateByFields = &multivariatebyfields @@ -164,7 +104,6 @@ func (s *_analysisConfig) MultivariateByFields(multivariatebyfields bool) *_anal return s } -// Settings related to how categorization interacts with partition fields. func (s *_analysisConfig) PerPartitionCategorization(perpartitioncategorization types.PerPartitionCategorizationVariant) *_analysisConfig { s.v.PerPartitionCategorization = perpartitioncategorization.PerPartitionCategorizationCaster() @@ -172,12 +111,6 @@ func (s *_analysisConfig) PerPartitionCategorization(perpartitioncategorization return s } -// If this property is specified, the data that is fed to the job is expected to -// be pre-summarized. This property value is the name of the field that contains -// the count of raw data points that have been summarized. The same -// `summary_count_field_name` applies to all detectors in the job. NOTE: The -// `summary_count_field_name` property cannot be used with the `metric` -// function. func (s *_analysisConfig) SummaryCountFieldName(field string) *_analysisConfig { s.v.SummaryCountFieldName = &field diff --git a/typedapi/esdsl/analysislimits.go b/typedapi/esdsl/analysislimits.go index e04452ca91..5d07133f92 100644 --- a/typedapi/esdsl/analysislimits.go +++ b/typedapi/esdsl/analysislimits.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _analysisLimits struct { v *types.AnalysisLimits @@ -32,11 +32,6 @@ func NewAnalysisLimits() *_analysisLimits { } -// 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, -// however it requires that you have more storage available. If you set this -// value to 0, no examples are stored. NOTE: The `categorization_examples_limit` -// applies only to analysis that uses categorization. func (s *_analysisLimits) CategorizationExamplesLimit(categorizationexampleslimit int64) *_analysisLimits { s.v.CategorizationExamplesLimit = &categorizationexampleslimit @@ -44,22 +39,6 @@ func (s *_analysisLimits) CategorizationExamplesLimit(categorizationexampleslimi return s } -// The approximate maximum amount of memory resources that are required for -// analytical processing. Once this limit is approached, data pruning becomes -// more aggressive. Upon exceeding this limit, new entities are not modeled. If -// the `xpack.ml.max_model_memory_limit` setting has a value greater than 0 and -// less than 1024mb, that value is used instead of the default. The default -// value is relatively small to ensure that high resource usage is a conscious -// decision. If you have jobs that are expected to analyze high cardinality -// fields, you will likely need to use a higher value. If you specify a number -// instead of a string, the units are assumed to be MiB. Specifying a string is -// recommended for clarity. If you specify a byte size unit of `b` or `kb` and -// the number does not equate to a discrete number of megabytes, it is rounded -// down to the closest MiB. The minimum valid value is 1 MiB. If you specify a -// value less than 1 MiB, an error occurs. If you specify a value for the -// `xpack.ml.max_model_memory_limit` setting, an error occurs when you try to -// create jobs that have `model_memory_limit` values greater than that setting -// value. func (s *_analysisLimits) ModelMemoryLimit(bytesize types.ByteSizeVariant) *_analysisLimits { s.v.ModelMemoryLimit = *bytesize.ByteSizeCaster() diff --git a/typedapi/esdsl/analysismemorylimit.go b/typedapi/esdsl/analysismemorylimit.go index 6bd5edf842..129d9d27a1 100644 --- a/typedapi/esdsl/analysismemorylimit.go +++ b/typedapi/esdsl/analysismemorylimit.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _analysisMemoryLimit struct { v *types.AnalysisMemoryLimit @@ -36,10 +36,6 @@ func NewAnalysisMemoryLimit(modelmemorylimit string) *_analysisMemoryLimit { } -// 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 -// do not control the memory used by other processes, for example the -// Elasticsearch Java processes. func (s *_analysisMemoryLimit) ModelMemoryLimit(modelmemorylimit string) *_analysisMemoryLimit { s.v.ModelMemoryLimit = modelmemorylimit diff --git a/typedapi/esdsl/analyzer.go b/typedapi/esdsl/analyzer.go index e9875fc3b3..454fdd4e8a 100644 --- a/typedapi/esdsl/analyzer.go +++ b/typedapi/esdsl/analyzer.go @@ -16,11 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" +) // This is provide all the types that are part of the union. type _analyzer struct { @@ -31,6 +35,13 @@ func NewAnalyzer() *_analyzer { return &_analyzer{v: nil} } +// UnknownAnalyzer is used to set the unknown value of the union. +// Highlited as @non_exhaustive in the specification. +func (u *_analyzer) UnknownAnalyzer(unknown json.RawMessage) *_analyzer { + u.v = unknown + return u +} + func (u *_analyzer) CustomAnalyzer(customanalyzer types.CustomAnalyzerVariant) *_analyzer { u.v = &customanalyzer diff --git a/typedapi/esdsl/anthropicservicesettings.go b/typedapi/esdsl/anthropicservicesettings.go new file mode 100644 index 0000000000..7a247538be --- /dev/null +++ b/typedapi/esdsl/anthropicservicesettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _anthropicServiceSettings struct { + v *types.AnthropicServiceSettings +} + +func NewAnthropicServiceSettings(apikey string, modelid string) *_anthropicServiceSettings { + + tmp := &_anthropicServiceSettings{v: types.NewAnthropicServiceSettings()} + + tmp.ApiKey(apikey) + + tmp.ModelId(modelid) + + return tmp + +} + +func (s *_anthropicServiceSettings) ApiKey(apikey string) *_anthropicServiceSettings { + + s.v.ApiKey = apikey + + return s +} + +func (s *_anthropicServiceSettings) ModelId(modelid string) *_anthropicServiceSettings { + + s.v.ModelId = modelid + + return s +} + +func (s *_anthropicServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_anthropicServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_anthropicServiceSettings) AnthropicServiceSettingsCaster() *types.AnthropicServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/anthropictasksettings.go b/typedapi/esdsl/anthropictasksettings.go new file mode 100644 index 0000000000..af1ae4071f --- /dev/null +++ b/typedapi/esdsl/anthropictasksettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _anthropicTaskSettings struct { + v *types.AnthropicTaskSettings +} + +func NewAnthropicTaskSettings(maxtokens int) *_anthropicTaskSettings { + + tmp := &_anthropicTaskSettings{v: types.NewAnthropicTaskSettings()} + + tmp.MaxTokens(maxtokens) + + return tmp + +} + +func (s *_anthropicTaskSettings) MaxTokens(maxtokens int) *_anthropicTaskSettings { + + s.v.MaxTokens = maxtokens + + return s +} + +func (s *_anthropicTaskSettings) Temperature(temperature float32) *_anthropicTaskSettings { + + s.v.Temperature = &temperature + + return s +} + +func (s *_anthropicTaskSettings) TopK(topk int) *_anthropicTaskSettings { + + s.v.TopK = &topk + + return s +} + +func (s *_anthropicTaskSettings) TopP(topp float32) *_anthropicTaskSettings { + + s.v.TopP = &topp + + return s +} + +func (s *_anthropicTaskSettings) AnthropicTaskSettingsCaster() *types.AnthropicTaskSettings { + return s.v +} diff --git a/typedapi/esdsl/apikeyaggregationcontainer.go b/typedapi/esdsl/apikeyaggregationcontainer.go index db3ad6400e..6fa7f38f53 100644 --- a/typedapi/esdsl/apikeyaggregationcontainer.go +++ b/typedapi/esdsl/apikeyaggregationcontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _apiKeyAggregationContainer struct { @@ -46,8 +46,6 @@ func (s *_apiKeyAggregationContainer) AdditionalApiKeyAggregationContainerProper return s } -// Sub-aggregations for this aggregation. -// Only applies to bucket aggregations. func (s *_apiKeyAggregationContainer) Aggregations(aggregations map[string]types.ApiKeyAggregationContainer) *_apiKeyAggregationContainer { s.v.Aggregations = aggregations @@ -69,8 +67,6 @@ func (s *_apiKeyAggregationContainer) AddAggregation(key string, value types.Api return s } -// A single-value metrics aggregation that calculates an approximate count of -// distinct values. func (s *_apiKeyAggregationContainer) Cardinality(cardinality types.CardinalityAggregationVariant) *_apiKeyAggregationContainer { s.v.Cardinality = cardinality.CardinalityAggregationCaster() @@ -78,11 +74,6 @@ func (s *_apiKeyAggregationContainer) Cardinality(cardinality types.CardinalityA return s } -// A multi-bucket aggregation that creates composite buckets from different -// sources. -// Unlike the other multi-bucket aggregations, you can use the `composite` -// aggregation to paginate *all* buckets from a multi-level aggregation -// efficiently. func (s *_apiKeyAggregationContainer) Composite(composite types.CompositeAggregationVariant) *_apiKeyAggregationContainer { s.v.Composite = composite.CompositeAggregationCaster() @@ -90,8 +81,6 @@ func (s *_apiKeyAggregationContainer) Composite(composite types.CompositeAggrega return s } -// A multi-bucket value source based aggregation that enables the user to define -// a set of date ranges - each representing a bucket. func (s *_apiKeyAggregationContainer) DateRange(daterange types.DateRangeAggregationVariant) *_apiKeyAggregationContainer { s.v.DateRange = daterange.DateRangeAggregationCaster() @@ -99,8 +88,6 @@ func (s *_apiKeyAggregationContainer) DateRange(daterange types.DateRangeAggrega return s } -// A single bucket aggregation that narrows the set of documents to those that -// match a query. func (s *_apiKeyAggregationContainer) Filter(filter types.ApiKeyQueryContainerVariant) *_apiKeyAggregationContainer { s.v.Filter = filter.ApiKeyQueryContainerCaster() @@ -108,8 +95,6 @@ func (s *_apiKeyAggregationContainer) Filter(filter types.ApiKeyQueryContainerVa return s } -// A multi-bucket aggregation where each bucket contains the documents that -// match a query. func (s *_apiKeyAggregationContainer) Filters(filters types.ApiKeyFiltersAggregationVariant) *_apiKeyAggregationContainer { s.v.Filters = filters.ApiKeyFiltersAggregationCaster() @@ -131,8 +116,6 @@ func (s *_apiKeyAggregationContainer) Missing(missing types.MissingAggregationVa return s } -// A multi-bucket value source based aggregation that enables the user to define -// a set of ranges - each representing a bucket. func (s *_apiKeyAggregationContainer) Range(range_ types.RangeAggregationVariant) *_apiKeyAggregationContainer { s.v.Range = range_.RangeAggregationCaster() @@ -140,8 +123,6 @@ func (s *_apiKeyAggregationContainer) Range(range_ types.RangeAggregationVariant return s } -// A multi-bucket value source based aggregation where buckets are dynamically -// built - one per unique value. func (s *_apiKeyAggregationContainer) Terms(terms types.TermsAggregationVariant) *_apiKeyAggregationContainer { s.v.Terms = terms.TermsAggregationCaster() @@ -149,8 +130,6 @@ func (s *_apiKeyAggregationContainer) Terms(terms types.TermsAggregationVariant) return s } -// A single-value metrics aggregation that counts the number of values that are -// extracted from the aggregated documents. func (s *_apiKeyAggregationContainer) ValueCount(valuecount types.ValueCountAggregationVariant) *_apiKeyAggregationContainer { s.v.ValueCount = valuecount.ValueCountAggregationCaster() diff --git a/typedapi/esdsl/apikeyfiltersaggregation.go b/typedapi/esdsl/apikeyfiltersaggregation.go index 936b335c08..c14cfbc52a 100644 --- a/typedapi/esdsl/apikeyfiltersaggregation.go +++ b/typedapi/esdsl/apikeyfiltersaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _apiKeyFiltersAggregation struct { v *types.ApiKeyFiltersAggregation @@ -34,7 +34,6 @@ func NewApiKeyFiltersAggregation() *_apiKeyFiltersAggregation { } -// Collection of queries from which to build buckets. func (s *_apiKeyFiltersAggregation) Filters(bucketsapikeyquerycontainer types.BucketsApiKeyQueryContainerVariant) *_apiKeyFiltersAggregation { s.v.Filters = *bucketsapikeyquerycontainer.BucketsApiKeyQueryContainerCaster() @@ -42,8 +41,6 @@ func (s *_apiKeyFiltersAggregation) Filters(bucketsapikeyquerycontainer types.Bu return s } -// By default, the named filters aggregation returns the buckets as an object. -// Set to `false` to return the buckets as an array of objects. func (s *_apiKeyFiltersAggregation) Keyed(keyed bool) *_apiKeyFiltersAggregation { s.v.Keyed = &keyed @@ -51,8 +48,6 @@ func (s *_apiKeyFiltersAggregation) Keyed(keyed bool) *_apiKeyFiltersAggregation return s } -// Set to `true` to add a bucket to the response which will contain all -// documents that do not match any of the given filters. func (s *_apiKeyFiltersAggregation) OtherBucket(otherbucket bool) *_apiKeyFiltersAggregation { s.v.OtherBucket = &otherbucket @@ -60,7 +55,6 @@ func (s *_apiKeyFiltersAggregation) OtherBucket(otherbucket bool) *_apiKeyFilter return s } -// The key with which the other bucket is returned. func (s *_apiKeyFiltersAggregation) OtherBucketKey(otherbucketkey string) *_apiKeyFiltersAggregation { s.v.OtherBucketKey = &otherbucketkey diff --git a/typedapi/esdsl/apikeyquerycontainer.go b/typedapi/esdsl/apikeyquerycontainer.go index 956cc2ef15..3143a8779f 100644 --- a/typedapi/esdsl/apikeyquerycontainer.go +++ b/typedapi/esdsl/apikeyquerycontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _apiKeyQueryContainer struct { @@ -46,7 +46,6 @@ func (s *_apiKeyQueryContainer) AdditionalApiKeyQueryContainerProperty(key strin return s } -// Matches documents matching boolean combinations of other queries. func (s *_apiKeyQueryContainer) Bool(bool types.BoolQueryVariant) *_apiKeyQueryContainer { s.v.Bool = bool.BoolQueryCaster() @@ -54,7 +53,6 @@ func (s *_apiKeyQueryContainer) Bool(bool types.BoolQueryVariant) *_apiKeyQueryC return s } -// Returns documents that contain an indexed value for a field. func (s *_apiKeyQueryContainer) Exists(exists types.ExistsQueryVariant) *_apiKeyQueryContainer { s.v.Exists = exists.ExistsQueryCaster() @@ -62,8 +60,6 @@ func (s *_apiKeyQueryContainer) Exists(exists types.ExistsQueryVariant) *_apiKey return s } -// Returns documents based on their IDs. -// This query uses document IDs stored in the `_id` field. func (s *_apiKeyQueryContainer) Ids(ids types.IdsQueryVariant) *_apiKeyQueryContainer { s.v.Ids = ids.IdsQueryCaster() @@ -71,8 +67,6 @@ func (s *_apiKeyQueryContainer) Ids(ids types.IdsQueryVariant) *_apiKeyQueryCont return s } -// Returns documents that match a provided text, number, date or boolean value. -// The provided text is analyzed before matching. // Match is a single key dictionnary. // It will replace the current value on each call. func (s *_apiKeyQueryContainer) Match(key string, value types.MatchQueryVariant) *_apiKeyQueryContainer { @@ -85,7 +79,6 @@ func (s *_apiKeyQueryContainer) Match(key string, value types.MatchQueryVariant) return s } -// Matches all documents, giving them all a `_score` of 1.0. func (s *_apiKeyQueryContainer) MatchAll(matchall types.MatchAllQueryVariant) *_apiKeyQueryContainer { s.v.MatchAll = matchall.MatchAllQueryCaster() @@ -93,7 +86,6 @@ func (s *_apiKeyQueryContainer) MatchAll(matchall types.MatchAllQueryVariant) *_ return s } -// Returns documents that contain a specific prefix in a provided field. // Prefix is a single key dictionnary. // It will replace the current value on each call. func (s *_apiKeyQueryContainer) Prefix(key string, value types.PrefixQueryVariant) *_apiKeyQueryContainer { @@ -106,7 +98,6 @@ func (s *_apiKeyQueryContainer) Prefix(key string, value types.PrefixQueryVarian return s } -// Returns documents that contain terms within a provided range. // Range is a single key dictionnary. // It will replace the current value on each call. func (s *_apiKeyQueryContainer) Range(key string, value types.RangeQueryVariant) *_apiKeyQueryContainer { @@ -119,8 +110,6 @@ func (s *_apiKeyQueryContainer) Range(key string, value types.RangeQueryVariant) return s } -// Returns documents based on a provided query string, using a parser with a -// limited but fault-tolerant syntax. func (s *_apiKeyQueryContainer) SimpleQueryString(simplequerystring types.SimpleQueryStringQueryVariant) *_apiKeyQueryContainer { s.v.SimpleQueryString = simplequerystring.SimpleQueryStringQueryCaster() @@ -128,9 +117,6 @@ func (s *_apiKeyQueryContainer) SimpleQueryString(simplequerystring types.Simple return s } -// Returns documents that contain an exact term in a provided field. -// To return a document, the query term must exactly match the queried field's -// value, including whitespace and capitalization. // Term is a single key dictionnary. // It will replace the current value on each call. func (s *_apiKeyQueryContainer) Term(key string, value types.TermQueryVariant) *_apiKeyQueryContainer { @@ -143,9 +129,6 @@ func (s *_apiKeyQueryContainer) Term(key string, value types.TermQueryVariant) * return s } -// Returns documents 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 (s *_apiKeyQueryContainer) Terms(terms types.TermsQueryVariant) *_apiKeyQueryContainer { s.v.Terms = terms.TermsQueryCaster() @@ -153,7 +136,6 @@ func (s *_apiKeyQueryContainer) Terms(terms types.TermsQueryVariant) *_apiKeyQue return s } -// Returns documents that contain terms matching a wildcard pattern. // Wildcard is a single key dictionnary. // It will replace the current value on each call. func (s *_apiKeyQueryContainer) Wildcard(key string, value types.WildcardQueryVariant) *_apiKeyQueryContainer { diff --git a/typedapi/esdsl/appendprocessor.go b/typedapi/esdsl/appendprocessor.go index 42e4eb45bc..24075ef0c1 100644 --- a/typedapi/esdsl/appendprocessor.go +++ b/typedapi/esdsl/appendprocessor.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _appendProcessor struct { @@ -42,8 +42,6 @@ func NewAppendProcessor() *_appendProcessor { } -// If `false`, the processor does not append values already present in the -// field. func (s *_appendProcessor) AllowDuplicates(allowduplicates bool) *_appendProcessor { s.v.AllowDuplicates = &allowduplicates @@ -51,8 +49,6 @@ func (s *_appendProcessor) AllowDuplicates(allowduplicates bool) *_appendProcess return s } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_appendProcessor) Description(description string) *_appendProcessor { s.v.Description = &description @@ -60,8 +56,6 @@ func (s *_appendProcessor) Description(description string) *_appendProcessor { return s } -// The field to be appended to. -// Supports template snippets. func (s *_appendProcessor) Field(field string) *_appendProcessor { s.v.Field = field @@ -69,7 +63,6 @@ func (s *_appendProcessor) Field(field string) *_appendProcessor { return s } -// Conditionally execute the processor. func (s *_appendProcessor) If(if_ types.ScriptVariant) *_appendProcessor { s.v.If = if_.ScriptCaster() @@ -77,7 +70,6 @@ func (s *_appendProcessor) If(if_ types.ScriptVariant) *_appendProcessor { return s } -// Ignore failures for the processor. func (s *_appendProcessor) IgnoreFailure(ignorefailure bool) *_appendProcessor { s.v.IgnoreFailure = &ignorefailure @@ -85,7 +77,6 @@ func (s *_appendProcessor) IgnoreFailure(ignorefailure bool) *_appendProcessor { return s } -// Handle failures for the processor. func (s *_appendProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_appendProcessor { for _, v := range onfailures { @@ -96,8 +87,6 @@ func (s *_appendProcessor) OnFailure(onfailures ...types.ProcessorContainerVaria return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_appendProcessor) Tag(tag string) *_appendProcessor { s.v.Tag = &tag @@ -105,7 +94,6 @@ func (s *_appendProcessor) Tag(tag string) *_appendProcessor { return s } -// The value to be appended. Supports template snippets. func (s *_appendProcessor) Value(values ...json.RawMessage) *_appendProcessor { s.v.Value = make([]json.RawMessage, len(values)) diff --git a/typedapi/esdsl/applicationglobaluserprivileges.go b/typedapi/esdsl/applicationglobaluserprivileges.go index 848b8675b4..3804a23a44 100644 --- a/typedapi/esdsl/applicationglobaluserprivileges.go +++ b/typedapi/esdsl/applicationglobaluserprivileges.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _applicationGlobalUserPrivileges struct { v *types.ApplicationGlobalUserPrivileges diff --git a/typedapi/esdsl/applicationprivileges.go b/typedapi/esdsl/applicationprivileges.go index eff021e664..fe7f0a47d7 100644 --- a/typedapi/esdsl/applicationprivileges.go +++ b/typedapi/esdsl/applicationprivileges.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _applicationPrivileges struct { v *types.ApplicationPrivileges @@ -36,7 +36,6 @@ func NewApplicationPrivileges(application string) *_applicationPrivileges { } -// The name of the application to which this entry applies. func (s *_applicationPrivileges) Application(application string) *_applicationPrivileges { s.v.Application = application @@ -44,8 +43,6 @@ func (s *_applicationPrivileges) Application(application string) *_applicationPr return s } -// A list of strings, where each element is the name of an application privilege -// or action. func (s *_applicationPrivileges) Privileges(privileges ...string) *_applicationPrivileges { for _, v := range privileges { @@ -56,7 +53,6 @@ func (s *_applicationPrivileges) Privileges(privileges ...string) *_applicationP return s } -// A list resources to which the privileges are applied. func (s *_applicationPrivileges) Resources(resources ...string) *_applicationPrivileges { for _, v := range resources { diff --git a/typedapi/esdsl/applicationprivilegescheck.go b/typedapi/esdsl/applicationprivilegescheck.go index a161fb1813..41fd98d6bc 100644 --- a/typedapi/esdsl/applicationprivilegescheck.go +++ b/typedapi/esdsl/applicationprivilegescheck.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _applicationPrivilegesCheck struct { v *types.ApplicationPrivilegesCheck @@ -36,7 +36,6 @@ func NewApplicationPrivilegesCheck(application string) *_applicationPrivilegesCh } -// The name of the application. func (s *_applicationPrivilegesCheck) Application(application string) *_applicationPrivilegesCheck { s.v.Application = application @@ -44,9 +43,6 @@ func (s *_applicationPrivilegesCheck) Application(application string) *_applicat return s } -// A list of the privileges that you want to check for the specified resources. -// It may be either application privilege names or the names of actions that are -// granted by those privileges func (s *_applicationPrivilegesCheck) Privileges(privileges ...string) *_applicationPrivilegesCheck { for _, v := range privileges { @@ -57,7 +53,6 @@ func (s *_applicationPrivilegesCheck) Privileges(privileges ...string) *_applica return s } -// A list of resource names against which the privileges should be checked. func (s *_applicationPrivilegesCheck) Resources(resources ...string) *_applicationPrivilegesCheck { for _, v := range resources { diff --git a/typedapi/esdsl/arabicanalyzer.go b/typedapi/esdsl/arabicanalyzer.go index 1c145364d4..0974a8125e 100644 --- a/typedapi/esdsl/arabicanalyzer.go +++ b/typedapi/esdsl/arabicanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _arabicAnalyzer struct { v *types.ArabicAnalyzer diff --git a/typedapi/esdsl/armeniananalyzer.go b/typedapi/esdsl/armeniananalyzer.go index 06dee592d9..bd03274eb6 100644 --- a/typedapi/esdsl/armeniananalyzer.go +++ b/typedapi/esdsl/armeniananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _armenianAnalyzer struct { v *types.ArmenianAnalyzer diff --git a/typedapi/esdsl/arraycomparecondition.go b/typedapi/esdsl/arraycomparecondition.go index 3871438b49..aa31252b0b 100644 --- a/typedapi/esdsl/arraycomparecondition.go +++ b/typedapi/esdsl/arraycomparecondition.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionop" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/conditionop" ) type _arrayCompareCondition struct { diff --git a/typedapi/esdsl/arraycompareopparams.go b/typedapi/esdsl/arraycompareopparams.go index 04369c60b9..94fec4eaa6 100644 --- a/typedapi/esdsl/arraycompareopparams.go +++ b/typedapi/esdsl/arraycompareopparams.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/quantifier" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/quantifier" ) type _arrayCompareOpParams struct { diff --git a/typedapi/esdsl/asciifoldingtokenfilter.go b/typedapi/esdsl/asciifoldingtokenfilter.go index ec52b6a8f2..e215a0c452 100644 --- a/typedapi/esdsl/asciifoldingtokenfilter.go +++ b/typedapi/esdsl/asciifoldingtokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _asciiFoldingTokenFilter struct { v *types.AsciiFoldingTokenFilter diff --git a/typedapi/esdsl/attachmentprocessor.go b/typedapi/esdsl/attachmentprocessor.go index 7d44218097..ad8970d022 100644 --- a/typedapi/esdsl/attachmentprocessor.go +++ b/typedapi/esdsl/attachmentprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _attachmentProcessor struct { v *types.AttachmentProcessor @@ -35,8 +35,6 @@ func NewAttachmentProcessor() *_attachmentProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_attachmentProcessor) Description(description string) *_attachmentProcessor { s.v.Description = &description @@ -44,7 +42,6 @@ func (s *_attachmentProcessor) Description(description string) *_attachmentProce return s } -// The field to get the base64 encoded field from. func (s *_attachmentProcessor) Field(field string) *_attachmentProcessor { s.v.Field = field @@ -52,7 +49,6 @@ func (s *_attachmentProcessor) Field(field string) *_attachmentProcessor { return s } -// Conditionally execute the processor. func (s *_attachmentProcessor) If(if_ types.ScriptVariant) *_attachmentProcessor { s.v.If = if_.ScriptCaster() @@ -60,7 +56,6 @@ func (s *_attachmentProcessor) If(if_ types.ScriptVariant) *_attachmentProcessor return s } -// Ignore failures for the processor. func (s *_attachmentProcessor) IgnoreFailure(ignorefailure bool) *_attachmentProcessor { s.v.IgnoreFailure = &ignorefailure @@ -68,8 +63,6 @@ func (s *_attachmentProcessor) IgnoreFailure(ignorefailure bool) *_attachmentPro return s } -// If `true` and field does not exist, the processor quietly exits without -// modifying the document. func (s *_attachmentProcessor) IgnoreMissing(ignoremissing bool) *_attachmentProcessor { s.v.IgnoreMissing = &ignoremissing @@ -77,8 +70,6 @@ func (s *_attachmentProcessor) IgnoreMissing(ignoremissing bool) *_attachmentPro return s } -// The number of chars being used for extraction to prevent huge fields. -// Use `-1` for no limit. func (s *_attachmentProcessor) IndexedChars(indexedchars int64) *_attachmentProcessor { s.v.IndexedChars = &indexedchars @@ -86,8 +77,6 @@ func (s *_attachmentProcessor) IndexedChars(indexedchars int64) *_attachmentProc return s } -// Field name from which you can overwrite the number of chars being used for -// extraction. func (s *_attachmentProcessor) IndexedCharsField(field string) *_attachmentProcessor { s.v.IndexedCharsField = &field @@ -95,7 +84,6 @@ func (s *_attachmentProcessor) IndexedCharsField(field string) *_attachmentProce return s } -// Handle failures for the processor. func (s *_attachmentProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_attachmentProcessor { for _, v := range onfailures { @@ -106,9 +94,6 @@ func (s *_attachmentProcessor) OnFailure(onfailures ...types.ProcessorContainerV return s } -// Array of properties to select to be stored. -// Can be `content`, `title`, `name`, `author`, `keywords`, `date`, -// `content_type`, `content_length`, `language`. func (s *_attachmentProcessor) Properties(properties ...string) *_attachmentProcessor { for _, v := range properties { @@ -119,7 +104,6 @@ func (s *_attachmentProcessor) Properties(properties ...string) *_attachmentProc return s } -// If true, the binary field will be removed from the document func (s *_attachmentProcessor) RemoveBinary(removebinary bool) *_attachmentProcessor { s.v.RemoveBinary = &removebinary @@ -127,9 +111,6 @@ func (s *_attachmentProcessor) RemoveBinary(removebinary bool) *_attachmentProce return s } -// Field containing the name of the resource to decode. -// If specified, the processor passes this resource name to the underlying Tika -// library to enable Resource Name Based Detection. func (s *_attachmentProcessor) ResourceName(resourcename string) *_attachmentProcessor { s.v.ResourceName = &resourcename @@ -137,8 +118,6 @@ func (s *_attachmentProcessor) ResourceName(resourcename string) *_attachmentPro return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_attachmentProcessor) Tag(tag string) *_attachmentProcessor { s.v.Tag = &tag @@ -146,7 +125,6 @@ func (s *_attachmentProcessor) Tag(tag string) *_attachmentProcessor { return s } -// The field that will hold the attachment information. func (s *_attachmentProcessor) TargetField(field string) *_attachmentProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/autodatehistogramaggregation.go b/typedapi/esdsl/autodatehistogramaggregation.go index 06b5e4d67e..6007a29bab 100644 --- a/typedapi/esdsl/autodatehistogramaggregation.go +++ b/typedapi/esdsl/autodatehistogramaggregation.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/minimuminterval" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/minimuminterval" ) type _autoDateHistogramAggregation struct { @@ -40,7 +40,6 @@ func NewAutoDateHistogramAggregation() *_autoDateHistogramAggregation { } -// The target number of buckets. func (s *_autoDateHistogramAggregation) Buckets(buckets int) *_autoDateHistogramAggregation { s.v.Buckets = &buckets @@ -48,7 +47,6 @@ func (s *_autoDateHistogramAggregation) Buckets(buckets int) *_autoDateHistogram return s } -// The field on which to run the aggregation. func (s *_autoDateHistogramAggregation) Field(field string) *_autoDateHistogramAggregation { s.v.Field = &field @@ -56,9 +54,6 @@ func (s *_autoDateHistogramAggregation) Field(field string) *_autoDateHistogramA return s } -// The date format used to format `key_as_string` in the response. -// If no `format` is specified, the first date format specified in the field -// mapping is used. func (s *_autoDateHistogramAggregation) Format(format string) *_autoDateHistogramAggregation { s.v.Format = &format @@ -66,17 +61,12 @@ func (s *_autoDateHistogramAggregation) Format(format string) *_autoDateHistogra return s } -// The minimum rounding interval. -// This can make the collection process more efficient, as the aggregation will -// not attempt to round at any interval lower than `minimum_interval`. func (s *_autoDateHistogramAggregation) MinimumInterval(minimuminterval minimuminterval.MinimumInterval) *_autoDateHistogramAggregation { s.v.MinimumInterval = &minimuminterval return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_autoDateHistogramAggregation) Missing(datetime types.DateTimeVariant) *_autoDateHistogramAggregation { s.v.Missing = *datetime.DateTimeCaster() @@ -84,7 +74,6 @@ func (s *_autoDateHistogramAggregation) Missing(datetime types.DateTimeVariant) return s } -// Time zone specified as a ISO 8601 UTC offset. func (s *_autoDateHistogramAggregation) Offset(offset string) *_autoDateHistogramAggregation { s.v.Offset = &offset @@ -120,7 +109,6 @@ func (s *_autoDateHistogramAggregation) Script(script types.ScriptVariant) *_aut return s } -// Time zone ID. func (s *_autoDateHistogramAggregation) TimeZone(timezone string) *_autoDateHistogramAggregation { s.v.TimeZone = &timezone diff --git a/typedapi/esdsl/autoscalingpolicy.go b/typedapi/esdsl/autoscalingpolicy.go index cabb5d597f..cd2456b256 100644 --- a/typedapi/esdsl/autoscalingpolicy.go +++ b/typedapi/esdsl/autoscalingpolicy.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _autoscalingPolicy struct { @@ -36,7 +36,6 @@ func NewAutoscalingPolicy() *_autoscalingPolicy { } -// Decider settings. func (s *_autoscalingPolicy) Deciders(deciders map[string]json.RawMessage) *_autoscalingPolicy { s.v.Deciders = deciders diff --git a/typedapi/esdsl/averageaggregation.go b/typedapi/esdsl/averageaggregation.go index c9c0f0f847..8db0b83060 100644 --- a/typedapi/esdsl/averageaggregation.go +++ b/typedapi/esdsl/averageaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _averageAggregation struct { v *types.AverageAggregation @@ -34,7 +34,6 @@ func NewAverageAggregation() *_averageAggregation { } -// The field on which to run the aggregation. func (s *_averageAggregation) Field(field string) *_averageAggregation { s.v.Field = &field @@ -49,8 +48,6 @@ func (s *_averageAggregation) Format(format string) *_averageAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_averageAggregation) Missing(missing types.MissingVariant) *_averageAggregation { s.v.Missing = *missing.MissingCaster() diff --git a/typedapi/esdsl/averagebucketaggregation.go b/typedapi/esdsl/averagebucketaggregation.go index b20fb7ff6d..59957465cb 100644 --- a/typedapi/esdsl/averagebucketaggregation.go +++ b/typedapi/esdsl/averagebucketaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _averageBucketAggregation struct { @@ -39,7 +39,6 @@ func NewAverageBucketAggregation() *_averageBucketAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_averageBucketAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_averageBucketAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -47,9 +46,6 @@ func (s *_averageBucketAggregation) BucketsPath(bucketspath types.BucketsPathVar return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_averageBucketAggregation) Format(format string) *_averageBucketAggregation { s.v.Format = &format @@ -57,7 +53,6 @@ func (s *_averageBucketAggregation) Format(format string) *_averageBucketAggrega return s } -// Policy to apply when gaps are found in the data. func (s *_averageBucketAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_averageBucketAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/azureaistudioservicesettings.go b/typedapi/esdsl/azureaistudioservicesettings.go new file mode 100644 index 0000000000..1f357880a1 --- /dev/null +++ b/typedapi/esdsl/azureaistudioservicesettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _azureAiStudioServiceSettings struct { + v *types.AzureAiStudioServiceSettings +} + +func NewAzureAiStudioServiceSettings(apikey string, endpointtype string, provider string, target string) *_azureAiStudioServiceSettings { + + tmp := &_azureAiStudioServiceSettings{v: types.NewAzureAiStudioServiceSettings()} + + tmp.ApiKey(apikey) + + tmp.EndpointType(endpointtype) + + tmp.Provider(provider) + + tmp.Target(target) + + return tmp + +} + +func (s *_azureAiStudioServiceSettings) ApiKey(apikey string) *_azureAiStudioServiceSettings { + + s.v.ApiKey = apikey + + return s +} + +func (s *_azureAiStudioServiceSettings) EndpointType(endpointtype string) *_azureAiStudioServiceSettings { + + s.v.EndpointType = endpointtype + + return s +} + +func (s *_azureAiStudioServiceSettings) Provider(provider string) *_azureAiStudioServiceSettings { + + s.v.Provider = provider + + return s +} + +func (s *_azureAiStudioServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_azureAiStudioServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_azureAiStudioServiceSettings) Target(target string) *_azureAiStudioServiceSettings { + + s.v.Target = target + + return s +} + +func (s *_azureAiStudioServiceSettings) AzureAiStudioServiceSettingsCaster() *types.AzureAiStudioServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/azureaistudiotasksettings.go b/typedapi/esdsl/azureaistudiotasksettings.go new file mode 100644 index 0000000000..542697ded9 --- /dev/null +++ b/typedapi/esdsl/azureaistudiotasksettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _azureAiStudioTaskSettings struct { + v *types.AzureAiStudioTaskSettings +} + +func NewAzureAiStudioTaskSettings() *_azureAiStudioTaskSettings { + + return &_azureAiStudioTaskSettings{v: types.NewAzureAiStudioTaskSettings()} + +} + +func (s *_azureAiStudioTaskSettings) DoSample(dosample float32) *_azureAiStudioTaskSettings { + + s.v.DoSample = &dosample + + return s +} + +func (s *_azureAiStudioTaskSettings) MaxNewTokens(maxnewtokens int) *_azureAiStudioTaskSettings { + + s.v.MaxNewTokens = &maxnewtokens + + return s +} + +func (s *_azureAiStudioTaskSettings) Temperature(temperature float32) *_azureAiStudioTaskSettings { + + s.v.Temperature = &temperature + + return s +} + +func (s *_azureAiStudioTaskSettings) TopP(topp float32) *_azureAiStudioTaskSettings { + + s.v.TopP = &topp + + return s +} + +func (s *_azureAiStudioTaskSettings) User(user string) *_azureAiStudioTaskSettings { + + s.v.User = &user + + return s +} + +func (s *_azureAiStudioTaskSettings) AzureAiStudioTaskSettingsCaster() *types.AzureAiStudioTaskSettings { + return s.v +} diff --git a/typedapi/esdsl/azureopenaiservicesettings.go b/typedapi/esdsl/azureopenaiservicesettings.go new file mode 100644 index 0000000000..0aea02e77e --- /dev/null +++ b/typedapi/esdsl/azureopenaiservicesettings.go @@ -0,0 +1,87 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _azureOpenAIServiceSettings struct { + v *types.AzureOpenAIServiceSettings +} + +func NewAzureOpenAIServiceSettings(apiversion string, deploymentid string, resourcename string) *_azureOpenAIServiceSettings { + + tmp := &_azureOpenAIServiceSettings{v: types.NewAzureOpenAIServiceSettings()} + + tmp.ApiVersion(apiversion) + + tmp.DeploymentId(deploymentid) + + tmp.ResourceName(resourcename) + + return tmp + +} + +func (s *_azureOpenAIServiceSettings) ApiKey(apikey string) *_azureOpenAIServiceSettings { + + s.v.ApiKey = &apikey + + return s +} + +func (s *_azureOpenAIServiceSettings) ApiVersion(apiversion string) *_azureOpenAIServiceSettings { + + s.v.ApiVersion = apiversion + + return s +} + +func (s *_azureOpenAIServiceSettings) DeploymentId(deploymentid string) *_azureOpenAIServiceSettings { + + s.v.DeploymentId = deploymentid + + return s +} + +func (s *_azureOpenAIServiceSettings) EntraId(entraid string) *_azureOpenAIServiceSettings { + + s.v.EntraId = &entraid + + return s +} + +func (s *_azureOpenAIServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_azureOpenAIServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_azureOpenAIServiceSettings) ResourceName(resourcename string) *_azureOpenAIServiceSettings { + + s.v.ResourceName = resourcename + + return s +} + +func (s *_azureOpenAIServiceSettings) AzureOpenAIServiceSettingsCaster() *types.AzureOpenAIServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/azureopenaitasksettings.go b/typedapi/esdsl/azureopenaitasksettings.go new file mode 100644 index 0000000000..8989bd9352 --- /dev/null +++ b/typedapi/esdsl/azureopenaitasksettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _azureOpenAITaskSettings struct { + v *types.AzureOpenAITaskSettings +} + +func NewAzureOpenAITaskSettings() *_azureOpenAITaskSettings { + + return &_azureOpenAITaskSettings{v: types.NewAzureOpenAITaskSettings()} + +} + +func (s *_azureOpenAITaskSettings) User(user string) *_azureOpenAITaskSettings { + + s.v.User = &user + + return s +} + +func (s *_azureOpenAITaskSettings) AzureOpenAITaskSettingsCaster() *types.AzureOpenAITaskSettings { + return s.v +} diff --git a/typedapi/esdsl/azurerepository.go b/typedapi/esdsl/azurerepository.go index 15d79aa4ce..e917206dda 100644 --- a/typedapi/esdsl/azurerepository.go +++ b/typedapi/esdsl/azurerepository.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _azureRepository struct { v *types.AzureRepository @@ -32,7 +32,6 @@ func NewAzureRepository() *_azureRepository { } -// The repository settings. func (s *_azureRepository) Settings(settings types.AzureRepositorySettingsVariant) *_azureRepository { s.v.Settings = settings.AzureRepositorySettingsCaster() diff --git a/typedapi/esdsl/azurerepositorysettings.go b/typedapi/esdsl/azurerepositorysettings.go index 414d0ae3a7..fedba6b854 100644 --- a/typedapi/esdsl/azurerepositorysettings.go +++ b/typedapi/esdsl/azurerepositorysettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _azureRepositorySettings struct { v *types.AzureRepositorySettings @@ -32,13 +32,6 @@ func NewAzureRepositorySettings() *_azureRepositorySettings { } -// The path to the repository data within the container. -// It defaults to the root directory. -// -// NOTE: Don't set `base_path` when configuring a snapshot repository for -// Elastic Cloud Enterprise. -// Elastic Cloud Enterprise automatically generates the `base_path` for each -// deployment so that multiple deployments can share the same bucket. func (s *_azureRepositorySettings) BasePath(basepath string) *_azureRepositorySettings { s.v.BasePath = &basepath @@ -46,16 +39,6 @@ func (s *_azureRepositorySettings) BasePath(basepath string) *_azureRepositorySe return s } -// Big files can be broken down into multiple smaller blobs in the blob store -// during snapshotting. -// It is not recommended to change this value from its default unless there is -// an explicit reason for limiting the size of blobs in the repository. -// Setting a value lower than the default can result in an increased number of -// API calls to the blob store during snapshot create and restore operations -// compared to using the default value and thus make both operations slower and -// more costly. -// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B. -// The default varies by repository type. func (s *_azureRepositorySettings) ChunkSize(bytesize types.ByteSizeVariant) *_azureRepositorySettings { s.v.ChunkSize = *bytesize.ByteSizeCaster() @@ -63,7 +46,6 @@ func (s *_azureRepositorySettings) ChunkSize(bytesize types.ByteSizeVariant) *_a return s } -// The name of the Azure repository client to use. func (s *_azureRepositorySettings) Client(client string) *_azureRepositorySettings { s.v.Client = &client @@ -71,9 +53,6 @@ func (s *_azureRepositorySettings) Client(client string) *_azureRepositorySettin return s } -// When set to `true`, metadata files are stored in compressed format. -// This setting doesn't affect index files that are already compressed by -// default. func (s *_azureRepositorySettings) Compress(compress bool) *_azureRepositorySettings { s.v.Compress = &compress @@ -81,7 +60,6 @@ func (s *_azureRepositorySettings) Compress(compress bool) *_azureRepositorySett return s } -// The Azure container. func (s *_azureRepositorySettings) Container(container string) *_azureRepositorySettings { s.v.Container = &container @@ -89,9 +67,6 @@ func (s *_azureRepositorySettings) Container(container string) *_azureRepository return s } -// The maxmimum batch size, between 1 and 256, used for `BlobBatch` requests. -// Defaults to 256 which is the maximum number supported by the Azure blob batch -// API. func (s *_azureRepositorySettings) DeleteObjectsMaxSize(deleteobjectsmaxsize int) *_azureRepositorySettings { s.v.DeleteObjectsMaxSize = &deleteobjectsmaxsize @@ -99,9 +74,6 @@ func (s *_azureRepositorySettings) DeleteObjectsMaxSize(deleteobjectsmaxsize int return s } -// Either `primary_only` or `secondary_only`. -// Note that if you set it to `secondary_only`, it will force `readonly` to -// `true`. func (s *_azureRepositorySettings) LocationMode(locationmode string) *_azureRepositorySettings { s.v.LocationMode = &locationmode @@ -109,11 +81,6 @@ func (s *_azureRepositorySettings) LocationMode(locationmode string) *_azureRepo return s } -// The maximum number of concurrent batch delete requests that will be submitted -// for any individual bulk delete with `BlobBatch`. -// Note that the effective number of concurrent deletes is further limited by -// the Azure client connection and event loop thread limits. -// Defaults to 10, minimum is 1, maximum is 100. func (s *_azureRepositorySettings) MaxConcurrentBatchDeletes(maxconcurrentbatchdeletes int) *_azureRepositorySettings { s.v.MaxConcurrentBatchDeletes = &maxconcurrentbatchdeletes @@ -121,9 +88,6 @@ func (s *_azureRepositorySettings) MaxConcurrentBatchDeletes(maxconcurrentbatchd return s } -// The maximum snapshot restore rate per node. -// It defaults to unlimited. -// Note that restores are also throttled through recovery settings. func (s *_azureRepositorySettings) MaxRestoreBytesPerSec(bytesize types.ByteSizeVariant) *_azureRepositorySettings { s.v.MaxRestoreBytesPerSec = *bytesize.ByteSizeCaster() @@ -131,11 +95,6 @@ func (s *_azureRepositorySettings) MaxRestoreBytesPerSec(bytesize types.ByteSize return s } -// The maximum snapshot creation rate per node. -// It defaults to 40mb per second. -// Note that if the recovery settings for managed services are set, then it -// defaults to unlimited, and the rate is additionally throttled through -// recovery settings. func (s *_azureRepositorySettings) MaxSnapshotBytesPerSec(bytesize types.ByteSizeVariant) *_azureRepositorySettings { s.v.MaxSnapshotBytesPerSec = *bytesize.ByteSizeCaster() @@ -143,20 +102,6 @@ func (s *_azureRepositorySettings) MaxSnapshotBytesPerSec(bytesize types.ByteSiz return s } -// If `true`, the repository is read-only. -// The cluster can retrieve and restore snapshots from the repository but not -// write to the repository or create snapshots in it. -// -// Only a cluster with write access can create snapshots in the repository. -// All other clusters connected to the repository should have the `readonly` -// parameter set to `true`. -// If `false`, the cluster can write to the repository and create snapshots in -// it. -// -// IMPORTANT: If you register the same snapshot repository with multiple -// clusters, only one cluster should have write access to the repository. -// Having multiple clusters write to the repository at the same time risks -// corrupting the contents of the repository. func (s *_azureRepositorySettings) Readonly(readonly bool) *_azureRepositorySettings { s.v.Readonly = &readonly diff --git a/typedapi/esdsl/basqueanalyzer.go b/typedapi/esdsl/basqueanalyzer.go index f1e1dcc4b9..a9bec2c13d 100644 --- a/typedapi/esdsl/basqueanalyzer.go +++ b/typedapi/esdsl/basqueanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _basqueAnalyzer struct { v *types.BasqueAnalyzer diff --git a/typedapi/esdsl/bengalianalyzer.go b/typedapi/esdsl/bengalianalyzer.go index 479460943c..fcf8514c31 100644 --- a/typedapi/esdsl/bengalianalyzer.go +++ b/typedapi/esdsl/bengalianalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _bengaliAnalyzer struct { v *types.BengaliAnalyzer diff --git a/typedapi/esdsl/binaryproperty.go b/typedapi/esdsl/binaryproperty.go index a900256cee..b29b18e719 100644 --- a/typedapi/esdsl/binaryproperty.go +++ b/typedapi/esdsl/binaryproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _binaryProperty struct { @@ -84,7 +84,6 @@ func (s *_binaryProperty) IgnoreAbove(ignoreabove int) *_binaryProperty { return s } -// Metadata about the field. func (s *_binaryProperty) Meta(meta map[string]string) *_binaryProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/booleanproperty.go b/typedapi/esdsl/booleanproperty.go index f2a8ed190c..711af14fc4 100644 --- a/typedapi/esdsl/booleanproperty.go +++ b/typedapi/esdsl/booleanproperty.go @@ -16,14 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _booleanProperty struct { @@ -98,6 +99,13 @@ func (s *_booleanProperty) IgnoreAbove(ignoreabove int) *_booleanProperty { return s } +func (s *_booleanProperty) IgnoreMalformed(ignoremalformed bool) *_booleanProperty { + + s.v.IgnoreMalformed = &ignoremalformed + + return s +} + func (s *_booleanProperty) Index(index bool) *_booleanProperty { s.v.Index = &index @@ -105,7 +113,6 @@ func (s *_booleanProperty) Index(index bool) *_booleanProperty { return s } -// Metadata about the field. func (s *_booleanProperty) Meta(meta map[string]string) *_booleanProperty { s.v.Meta = meta @@ -134,6 +141,12 @@ func (s *_booleanProperty) NullValue(nullvalue bool) *_booleanProperty { return s } +func (s *_booleanProperty) OnScriptError(onscripterror onscripterror.OnScriptError) *_booleanProperty { + + s.v.OnScriptError = &onscripterror + return s +} + func (s *_booleanProperty) Properties(properties map[string]types.Property) *_booleanProperty { s.v.Properties = properties @@ -155,6 +168,13 @@ func (s *_booleanProperty) AddProperty(key string, value types.PropertyVariant) return s } +func (s *_booleanProperty) Script(script types.ScriptVariant) *_booleanProperty { + + s.v.Script = script.ScriptCaster() + + return s +} + func (s *_booleanProperty) Store(store bool) *_booleanProperty { s.v.Store = &store @@ -168,6 +188,13 @@ func (s *_booleanProperty) SyntheticSourceKeep(syntheticsourcekeep syntheticsour return s } +func (s *_booleanProperty) TimeSeriesDimension(timeseriesdimension bool) *_booleanProperty { + + s.v.TimeSeriesDimension = ×eriesdimension + + return s +} + func (s *_booleanProperty) DynamicTemplateCaster() *types.DynamicTemplate { container := types.NewDynamicTemplate() diff --git a/typedapi/esdsl/boolquery.go b/typedapi/esdsl/boolquery.go index 1c49d80d78..280b5283de 100644 --- a/typedapi/esdsl/boolquery.go +++ b/typedapi/esdsl/boolquery.go @@ -16,28 +16,23 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _boolQuery struct { v *types.BoolQuery } -// matches documents matching boolean combinations of other queries. +// matches users matching boolean combinations of other queries. func NewBoolQuery() *_boolQuery { return &_boolQuery{v: types.NewBoolQuery()} } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_boolQuery) Boost(boost float32) *_boolQuery { s.v.Boost = &boost @@ -45,8 +40,6 @@ func (s *_boolQuery) Boost(boost float32) *_boolQuery { return s } -// The clause (query) must appear in matching documents. -// However, unlike `must`, the score of the query will be ignored. func (s *_boolQuery) Filter(filters ...types.QueryVariant) *_boolQuery { s.v.Filter = make([]types.Query, len(filters)) @@ -57,8 +50,6 @@ func (s *_boolQuery) Filter(filters ...types.QueryVariant) *_boolQuery { return s } -// Specifies the number or percentage of `should` clauses returned documents -// must match. func (s *_boolQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShouldMatchVariant) *_boolQuery { s.v.MinimumShouldMatch = *minimumshouldmatch.MinimumShouldMatchCaster() @@ -66,8 +57,6 @@ func (s *_boolQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShouldMa return s } -// The clause (query) must appear in matching documents and will contribute to -// the score. func (s *_boolQuery) Must(musts ...types.QueryVariant) *_boolQuery { s.v.Must = make([]types.Query, len(musts)) @@ -78,8 +67,6 @@ func (s *_boolQuery) Must(musts ...types.QueryVariant) *_boolQuery { return s } -// The clause (query) must not appear in the matching documents. -// Because scoring is ignored, a score of `0` is returned for all documents. func (s *_boolQuery) MustNot(mustnots ...types.QueryVariant) *_boolQuery { s.v.MustNot = make([]types.Query, len(mustnots)) @@ -97,7 +84,6 @@ func (s *_boolQuery) QueryName_(queryname_ string) *_boolQuery { return s } -// The clause (query) should appear in the matching document. func (s *_boolQuery) Should(shoulds ...types.QueryVariant) *_boolQuery { s.v.Should = make([]types.Query, len(shoulds)) diff --git a/typedapi/esdsl/boostingquery.go b/typedapi/esdsl/boostingquery.go index fd6ffcf479..7bc2995fcf 100644 --- a/typedapi/esdsl/boostingquery.go +++ b/typedapi/esdsl/boostingquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _boostingQuery struct { v *types.BoostingQuery @@ -42,11 +42,6 @@ func NewBoostingQuery(negative types.QueryVariant, negativeboost types.Float64, } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_boostingQuery) Boost(boost float32) *_boostingQuery { s.v.Boost = &boost @@ -54,7 +49,6 @@ func (s *_boostingQuery) Boost(boost float32) *_boostingQuery { return s } -// Query used to decrease the relevance score of matching documents. func (s *_boostingQuery) Negative(negative types.QueryVariant) *_boostingQuery { s.v.Negative = *negative.QueryCaster() @@ -62,8 +56,6 @@ func (s *_boostingQuery) Negative(negative types.QueryVariant) *_boostingQuery { return s } -// Floating point number between 0 and 1.0 used to decrease the relevance scores -// of documents matching the `negative` query. func (s *_boostingQuery) NegativeBoost(negativeboost types.Float64) *_boostingQuery { s.v.NegativeBoost = negativeboost @@ -71,7 +63,6 @@ func (s *_boostingQuery) NegativeBoost(negativeboost types.Float64) *_boostingQu return s } -// Any returned documents must match this query. func (s *_boostingQuery) Positive(positive types.QueryVariant) *_boostingQuery { s.v.Positive = *positive.QueryCaster() diff --git a/typedapi/esdsl/boxplotaggregation.go b/typedapi/esdsl/boxplotaggregation.go index 48fe8e6032..627e3b3b93 100644 --- a/typedapi/esdsl/boxplotaggregation.go +++ b/typedapi/esdsl/boxplotaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _boxplotAggregation struct { v *types.BoxplotAggregation @@ -34,9 +34,6 @@ func NewBoxplotAggregation() *_boxplotAggregation { } -// Limits the maximum number of nodes used by the underlying TDigest algorithm -// to `20 * compression`, enabling control of memory usage and approximation -// error. func (s *_boxplotAggregation) Compression(compression types.Float64) *_boxplotAggregation { s.v.Compression = &compression @@ -44,7 +41,6 @@ func (s *_boxplotAggregation) Compression(compression types.Float64) *_boxplotAg return s } -// The field on which to run the aggregation. func (s *_boxplotAggregation) Field(field string) *_boxplotAggregation { s.v.Field = &field @@ -52,8 +48,6 @@ func (s *_boxplotAggregation) Field(field string) *_boxplotAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_boxplotAggregation) Missing(missing types.MissingVariant) *_boxplotAggregation { s.v.Missing = *missing.MissingCaster() diff --git a/typedapi/esdsl/braziliananalyzer.go b/typedapi/esdsl/braziliananalyzer.go index a87de89606..f0f3de1f3c 100644 --- a/typedapi/esdsl/braziliananalyzer.go +++ b/typedapi/esdsl/braziliananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _brazilianAnalyzer struct { v *types.BrazilianAnalyzer diff --git a/typedapi/esdsl/bucketcorrelationaggregation.go b/typedapi/esdsl/bucketcorrelationaggregation.go index 52923b9470..133ea3032e 100644 --- a/typedapi/esdsl/bucketcorrelationaggregation.go +++ b/typedapi/esdsl/bucketcorrelationaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _bucketCorrelationAggregation struct { v *types.BucketCorrelationAggregation @@ -38,7 +38,6 @@ func NewBucketCorrelationAggregation(function types.BucketCorrelationFunctionVar } -// Path to the buckets that contain one set of values to correlate. func (s *_bucketCorrelationAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_bucketCorrelationAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -46,7 +45,6 @@ func (s *_bucketCorrelationAggregation) BucketsPath(bucketspath types.BucketsPat return s } -// The correlation function to execute. func (s *_bucketCorrelationAggregation) Function(function types.BucketCorrelationFunctionVariant) *_bucketCorrelationAggregation { s.v.Function = *function.BucketCorrelationFunctionCaster() diff --git a/typedapi/esdsl/bucketcorrelationfunction.go b/typedapi/esdsl/bucketcorrelationfunction.go index 3687480a6d..5c7043a095 100644 --- a/typedapi/esdsl/bucketcorrelationfunction.go +++ b/typedapi/esdsl/bucketcorrelationfunction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _bucketCorrelationFunction struct { v *types.BucketCorrelationFunction @@ -36,8 +36,6 @@ func NewBucketCorrelationFunction(countcorrelation types.BucketCorrelationFuncti } -// The configuration to calculate a count correlation. This function is designed -// for determining the correlation of a term value and a given metric. func (s *_bucketCorrelationFunction) CountCorrelation(countcorrelation types.BucketCorrelationFunctionCountCorrelationVariant) *_bucketCorrelationFunction { s.v.CountCorrelation = *countcorrelation.BucketCorrelationFunctionCountCorrelationCaster() diff --git a/typedapi/esdsl/bucketcorrelationfunctioncountcorrelation.go b/typedapi/esdsl/bucketcorrelationfunctioncountcorrelation.go index 46f4eb1442..d4525c1536 100644 --- a/typedapi/esdsl/bucketcorrelationfunctioncountcorrelation.go +++ b/typedapi/esdsl/bucketcorrelationfunctioncountcorrelation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _bucketCorrelationFunctionCountCorrelation struct { v *types.BucketCorrelationFunctionCountCorrelation @@ -36,7 +36,6 @@ func NewBucketCorrelationFunctionCountCorrelation(indicator types.BucketCorrelat } -// The indicator with which to correlate the configured `bucket_path` values. func (s *_bucketCorrelationFunctionCountCorrelation) Indicator(indicator types.BucketCorrelationFunctionCountCorrelationIndicatorVariant) *_bucketCorrelationFunctionCountCorrelation { s.v.Indicator = *indicator.BucketCorrelationFunctionCountCorrelationIndicatorCaster() diff --git a/typedapi/esdsl/bucketcorrelationfunctioncountcorrelationindicator.go b/typedapi/esdsl/bucketcorrelationfunctioncountcorrelationindicator.go index a64cd57961..249ae56400 100644 --- a/typedapi/esdsl/bucketcorrelationfunctioncountcorrelationindicator.go +++ b/typedapi/esdsl/bucketcorrelationfunctioncountcorrelationindicator.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _bucketCorrelationFunctionCountCorrelationIndicator struct { v *types.BucketCorrelationFunctionCountCorrelationIndicator @@ -36,11 +36,6 @@ func NewBucketCorrelationFunctionCountCorrelationIndicator(doccount int) *_bucke } -// The total number of documents that initially created the expectations. It’s -// required to be greater -// than or equal to the sum of all values in the buckets_path as this is the -// originating superset of data -// to which the term values are correlated. func (s *_bucketCorrelationFunctionCountCorrelationIndicator) DocCount(doccount int) *_bucketCorrelationFunctionCountCorrelationIndicator { s.v.DocCount = doccount @@ -48,10 +43,6 @@ func (s *_bucketCorrelationFunctionCountCorrelationIndicator) DocCount(doccount return s } -// An array of numbers with which to correlate the configured `bucket_path` -// values. -// The length of this value must always equal the number of buckets returned by -// the `bucket_path`. func (s *_bucketCorrelationFunctionCountCorrelationIndicator) Expectations(expectations ...types.Float64) *_bucketCorrelationFunctionCountCorrelationIndicator { for _, v := range expectations { @@ -62,11 +53,6 @@ func (s *_bucketCorrelationFunctionCountCorrelationIndicator) Expectations(expec return s } -// An array of fractions to use when averaging and calculating variance. This -// should be used if -// the pre-calculated data and the buckets_path have known gaps. The length of -// fractions, if provided, -// must equal expectations. func (s *_bucketCorrelationFunctionCountCorrelationIndicator) Fractions(fractions ...types.Float64) *_bucketCorrelationFunctionCountCorrelationIndicator { for _, v := range fractions { diff --git a/typedapi/esdsl/bucketksaggregation.go b/typedapi/esdsl/bucketksaggregation.go index 44f0fff6ec..750d18d0ba 100644 --- a/typedapi/esdsl/bucketksaggregation.go +++ b/typedapi/esdsl/bucketksaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _bucketKsAggregation struct { v *types.BucketKsAggregation @@ -35,12 +35,6 @@ func NewBucketKsAggregation() *_bucketKsAggregation { } -// A list of string values indicating which K-S test alternative to calculate. -// The valid values -// are: "greater", "less", "two_sided". This parameter is key for determining -// the K-S statistic used -// when calculating the K-S test. Default value is all possible alternative -// hypotheses. func (s *_bucketKsAggregation) Alternative(alternatives ...string) *_bucketKsAggregation { for _, v := range alternatives { @@ -51,7 +45,6 @@ func (s *_bucketKsAggregation) Alternative(alternatives ...string) *_bucketKsAgg return s } -// Path to the buckets that contain one set of values to correlate. func (s *_bucketKsAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_bucketKsAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -59,15 +52,6 @@ func (s *_bucketKsAggregation) BucketsPath(bucketspath types.BucketsPathVariant) return s } -// A list of doubles indicating the distribution of the samples with which to -// compare to the `buckets_path` results. -// In typical usage this is the overall proportion of documents in each bucket, -// which is compared with the actual -// document proportions in each bucket from the sibling aggregation counts. The -// default is to assume that overall -// documents are uniformly distributed on these buckets, which they would be if -// one used equal percentiles of a -// metric to define the bucket end points. func (s *_bucketKsAggregation) Fractions(fractions ...types.Float64) *_bucketKsAggregation { for _, v := range fractions { @@ -78,13 +62,6 @@ func (s *_bucketKsAggregation) Fractions(fractions ...types.Float64) *_bucketKsA return s } -// Indicates the sampling methodology when calculating the K-S test. Note, this -// is sampling of the returned values. -// This determines the cumulative distribution function (CDF) points used -// comparing the two samples. Default is -// `upper_tail`, which emphasizes the upper end of the CDF points. Valid options -// are: `upper_tail`, `uniform`, -// and `lower_tail`. func (s *_bucketKsAggregation) SamplingMethod(samplingmethod string) *_bucketKsAggregation { s.v.SamplingMethod = &samplingmethod diff --git a/typedapi/esdsl/bucketsapikeyquerycontainer.go b/typedapi/esdsl/bucketsapikeyquerycontainer.go index 0038d5ac40..93904adec9 100644 --- a/typedapi/esdsl/bucketsapikeyquerycontainer.go +++ b/typedapi/esdsl/bucketsapikeyquerycontainer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _bucketsApiKeyQueryContainer struct { diff --git a/typedapi/esdsl/bucketscriptaggregation.go b/typedapi/esdsl/bucketscriptaggregation.go index c424fbb828..0a80b47359 100644 --- a/typedapi/esdsl/bucketscriptaggregation.go +++ b/typedapi/esdsl/bucketscriptaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _bucketScriptAggregation struct { @@ -37,7 +37,6 @@ func NewBucketScriptAggregation() *_bucketScriptAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_bucketScriptAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_bucketScriptAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_bucketScriptAggregation) BucketsPath(bucketspath types.BucketsPathVari return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_bucketScriptAggregation) Format(format string) *_bucketScriptAggregation { s.v.Format = &format @@ -55,14 +51,12 @@ func (s *_bucketScriptAggregation) Format(format string) *_bucketScriptAggregati return s } -// Policy to apply when gaps are found in the data. func (s *_bucketScriptAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_bucketScriptAggregation { s.v.GapPolicy = &gappolicy return s } -// The script to run for this aggregation. func (s *_bucketScriptAggregation) Script(script types.ScriptVariant) *_bucketScriptAggregation { s.v.Script = script.ScriptCaster() diff --git a/typedapi/esdsl/bucketselectoraggregation.go b/typedapi/esdsl/bucketselectoraggregation.go index f045fb8466..019e3ac850 100644 --- a/typedapi/esdsl/bucketselectoraggregation.go +++ b/typedapi/esdsl/bucketselectoraggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _bucketSelectorAggregation struct { @@ -37,7 +37,6 @@ func NewBucketSelectorAggregation() *_bucketSelectorAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_bucketSelectorAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_bucketSelectorAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_bucketSelectorAggregation) BucketsPath(bucketspath types.BucketsPathVa return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_bucketSelectorAggregation) Format(format string) *_bucketSelectorAggregation { s.v.Format = &format @@ -55,14 +51,12 @@ func (s *_bucketSelectorAggregation) Format(format string) *_bucketSelectorAggre return s } -// Policy to apply when gaps are found in the data. func (s *_bucketSelectorAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_bucketSelectorAggregation { s.v.GapPolicy = &gappolicy return s } -// The script to run for this aggregation. func (s *_bucketSelectorAggregation) Script(script types.ScriptVariant) *_bucketSelectorAggregation { s.v.Script = script.ScriptCaster() diff --git a/typedapi/esdsl/bucketsortaggregation.go b/typedapi/esdsl/bucketsortaggregation.go index 9f0fd182b8..b4a32a77b2 100644 --- a/typedapi/esdsl/bucketsortaggregation.go +++ b/typedapi/esdsl/bucketsortaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _bucketSortAggregation struct { @@ -37,7 +37,6 @@ func NewBucketSortAggregation() *_bucketSortAggregation { } -// Buckets in positions prior to `from` will be truncated. func (s *_bucketSortAggregation) From(from int) *_bucketSortAggregation { s.v.From = &from @@ -45,15 +44,12 @@ func (s *_bucketSortAggregation) From(from int) *_bucketSortAggregation { return s } -// The policy to apply when gaps are found in the data. func (s *_bucketSortAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_bucketSortAggregation { s.v.GapPolicy = &gappolicy return s } -// The number of buckets to return. -// Defaults to all buckets of the parent aggregation. func (s *_bucketSortAggregation) Size(size int) *_bucketSortAggregation { s.v.Size = &size @@ -61,7 +57,6 @@ func (s *_bucketSortAggregation) Size(size int) *_bucketSortAggregation { return s } -// The list of fields to sort on. func (s *_bucketSortAggregation) Sort(sorts ...types.SortCombinationsVariant) *_bucketSortAggregation { for _, v := range sorts { diff --git a/typedapi/esdsl/bucketspath.go b/typedapi/esdsl/bucketspath.go index e0e023a70c..11c1b473d8 100644 --- a/typedapi/esdsl/bucketspath.go +++ b/typedapi/esdsl/bucketspath.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _bucketsPath struct { diff --git a/typedapi/esdsl/bucketsquery.go b/typedapi/esdsl/bucketsquery.go index 5738825d87..c17367873e 100644 --- a/typedapi/esdsl/bucketsquery.go +++ b/typedapi/esdsl/bucketsquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _bucketsQuery struct { diff --git a/typedapi/esdsl/bulgariananalyzer.go b/typedapi/esdsl/bulgariananalyzer.go index 56a0fb113f..0c68b6ad0d 100644 --- a/typedapi/esdsl/bulgariananalyzer.go +++ b/typedapi/esdsl/bulgariananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _bulgarianAnalyzer struct { v *types.BulgarianAnalyzer diff --git a/typedapi/esdsl/bytenumberproperty.go b/typedapi/esdsl/bytenumberproperty.go index 591c82feb7..c13a7f1f73 100644 --- a/typedapi/esdsl/bytenumberproperty.go +++ b/typedapi/esdsl/bytenumberproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) type _byteNumberProperty struct { @@ -114,7 +114,6 @@ func (s *_byteNumberProperty) Index(index bool) *_byteNumberProperty { return s } -// Metadata about the field. func (s *_byteNumberProperty) Meta(meta map[string]string) *_byteNumberProperty { s.v.Meta = meta @@ -190,8 +189,6 @@ func (s *_byteNumberProperty) SyntheticSourceKeep(syntheticsourcekeep synthetics return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_byteNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_byteNumberProperty { s.v.TimeSeriesDimension = ×eriesdimension @@ -199,8 +196,6 @@ func (s *_byteNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_by return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_byteNumberProperty) TimeSeriesMetric(timeseriesmetric timeseriesmetrictype.TimeSeriesMetricType) *_byteNumberProperty { s.v.TimeSeriesMetric = ×eriesmetric diff --git a/typedapi/esdsl/bytesize.go b/typedapi/esdsl/bytesize.go index a80734935b..9684177596 100644 --- a/typedapi/esdsl/bytesize.go +++ b/typedapi/esdsl/bytesize.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _byteSize struct { diff --git a/typedapi/esdsl/bytesprocessor.go b/typedapi/esdsl/bytesprocessor.go index 20bb4ac4e7..6c5f562daf 100644 --- a/typedapi/esdsl/bytesprocessor.go +++ b/typedapi/esdsl/bytesprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _bytesProcessor struct { v *types.BytesProcessor @@ -40,8 +40,6 @@ func NewBytesProcessor() *_bytesProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_bytesProcessor) Description(description string) *_bytesProcessor { s.v.Description = &description @@ -49,7 +47,6 @@ func (s *_bytesProcessor) Description(description string) *_bytesProcessor { return s } -// The field to convert. func (s *_bytesProcessor) Field(field string) *_bytesProcessor { s.v.Field = field @@ -57,7 +54,6 @@ func (s *_bytesProcessor) Field(field string) *_bytesProcessor { return s } -// Conditionally execute the processor. func (s *_bytesProcessor) If(if_ types.ScriptVariant) *_bytesProcessor { s.v.If = if_.ScriptCaster() @@ -65,7 +61,6 @@ func (s *_bytesProcessor) If(if_ types.ScriptVariant) *_bytesProcessor { return s } -// Ignore failures for the processor. func (s *_bytesProcessor) IgnoreFailure(ignorefailure bool) *_bytesProcessor { s.v.IgnoreFailure = &ignorefailure @@ -73,8 +68,6 @@ func (s *_bytesProcessor) IgnoreFailure(ignorefailure bool) *_bytesProcessor { return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document. func (s *_bytesProcessor) IgnoreMissing(ignoremissing bool) *_bytesProcessor { s.v.IgnoreMissing = &ignoremissing @@ -82,7 +75,6 @@ func (s *_bytesProcessor) IgnoreMissing(ignoremissing bool) *_bytesProcessor { return s } -// Handle failures for the processor. func (s *_bytesProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_bytesProcessor { for _, v := range onfailures { @@ -93,8 +85,6 @@ func (s *_bytesProcessor) OnFailure(onfailures ...types.ProcessorContainerVarian return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_bytesProcessor) Tag(tag string) *_bytesProcessor { s.v.Tag = &tag @@ -102,8 +92,6 @@ func (s *_bytesProcessor) Tag(tag string) *_bytesProcessor { return s } -// The field to assign the converted value to. -// By default, the field is updated in-place. func (s *_bytesProcessor) TargetField(field string) *_bytesProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/cachequeries.go b/typedapi/esdsl/cachequeries.go index b995732cae..4796842cf7 100644 --- a/typedapi/esdsl/cachequeries.go +++ b/typedapi/esdsl/cachequeries.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _cacheQueries struct { v *types.CacheQueries diff --git a/typedapi/esdsl/calendarevent.go b/typedapi/esdsl/calendarevent.go index 85aff450e2..aa60316b96 100644 --- a/typedapi/esdsl/calendarevent.go +++ b/typedapi/esdsl/calendarevent.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _calendarEvent struct { v *types.CalendarEvent @@ -36,7 +36,6 @@ func NewCalendarEvent(description string) *_calendarEvent { } -// A string that uniquely identifies a calendar. func (s *_calendarEvent) CalendarId(id string) *_calendarEvent { s.v.CalendarId = &id @@ -44,7 +43,6 @@ func (s *_calendarEvent) CalendarId(id string) *_calendarEvent { return s } -// A description of the scheduled event. func (s *_calendarEvent) Description(description string) *_calendarEvent { s.v.Description = description @@ -52,8 +50,6 @@ func (s *_calendarEvent) Description(description string) *_calendarEvent { return s } -// The timestamp for the end of the scheduled event in milliseconds since the -// epoch or ISO 8601 format. func (s *_calendarEvent) EndTime(datetime types.DateTimeVariant) *_calendarEvent { s.v.EndTime = *datetime.DateTimeCaster() @@ -68,8 +64,6 @@ func (s *_calendarEvent) EventId(id string) *_calendarEvent { return s } -// Shift time by this many seconds. For example adjust time for daylight savings -// changes func (s *_calendarEvent) ForceTimeShift(forcetimeshift int) *_calendarEvent { s.v.ForceTimeShift = &forcetimeshift @@ -77,7 +71,6 @@ func (s *_calendarEvent) ForceTimeShift(forcetimeshift int) *_calendarEvent { return s } -// When true the model will not be updated for this calendar period. func (s *_calendarEvent) SkipModelUpdate(skipmodelupdate bool) *_calendarEvent { s.v.SkipModelUpdate = &skipmodelupdate @@ -85,7 +78,6 @@ func (s *_calendarEvent) SkipModelUpdate(skipmodelupdate bool) *_calendarEvent { return s } -// When true the model will not create results for this calendar period. func (s *_calendarEvent) SkipResult(skipresult bool) *_calendarEvent { s.v.SkipResult = &skipresult @@ -93,8 +85,6 @@ func (s *_calendarEvent) SkipResult(skipresult bool) *_calendarEvent { return s } -// The timestamp for the beginning of the scheduled event in milliseconds since -// the epoch or ISO 8601 format. func (s *_calendarEvent) StartTime(datetime types.DateTimeVariant) *_calendarEvent { s.v.StartTime = *datetime.DateTimeCaster() diff --git a/typedapi/esdsl/cardinalityaggregation.go b/typedapi/esdsl/cardinalityaggregation.go index 9a16c78959..90a6cef338 100644 --- a/typedapi/esdsl/cardinalityaggregation.go +++ b/typedapi/esdsl/cardinalityaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cardinalityexecutionmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cardinalityexecutionmode" ) type _cardinalityAggregation struct { @@ -37,14 +37,12 @@ func NewCardinalityAggregation() *_cardinalityAggregation { } -// Mechanism by which cardinality aggregations is run. func (s *_cardinalityAggregation) ExecutionHint(executionhint cardinalityexecutionmode.CardinalityExecutionMode) *_cardinalityAggregation { s.v.ExecutionHint = &executionhint return s } -// The field on which to run the aggregation. func (s *_cardinalityAggregation) Field(field string) *_cardinalityAggregation { s.v.Field = &field @@ -52,8 +50,6 @@ func (s *_cardinalityAggregation) Field(field string) *_cardinalityAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_cardinalityAggregation) Missing(missing types.MissingVariant) *_cardinalityAggregation { s.v.Missing = *missing.MissingCaster() @@ -61,8 +57,6 @@ func (s *_cardinalityAggregation) Missing(missing types.MissingVariant) *_cardin return s } -// A unique count below which counts are expected to be close to accurate. -// This allows to trade memory for accuracy. func (s *_cardinalityAggregation) PrecisionThreshold(precisionthreshold int) *_cardinalityAggregation { s.v.PrecisionThreshold = &precisionthreshold diff --git a/typedapi/esdsl/catalananalyzer.go b/typedapi/esdsl/catalananalyzer.go index 1339bedc93..fae4644f8d 100644 --- a/typedapi/esdsl/catalananalyzer.go +++ b/typedapi/esdsl/catalananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _catalanAnalyzer struct { v *types.CatalanAnalyzer diff --git a/typedapi/esdsl/categorizationanalyzer.go b/typedapi/esdsl/categorizationanalyzer.go index e77a647a10..a008fd66e7 100644 --- a/typedapi/esdsl/categorizationanalyzer.go +++ b/typedapi/esdsl/categorizationanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _categorizationAnalyzer struct { diff --git a/typedapi/esdsl/categorizationanalyzerdefinition.go b/typedapi/esdsl/categorizationanalyzerdefinition.go index 7bc7db8255..c8ced6c923 100644 --- a/typedapi/esdsl/categorizationanalyzerdefinition.go +++ b/typedapi/esdsl/categorizationanalyzerdefinition.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _categorizationAnalyzerDefinition struct { v *types.CategorizationAnalyzerDefinition @@ -32,13 +32,6 @@ func NewCategorizationAnalyzerDefinition() *_categorizationAnalyzerDefinition { } -// 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 -// specified, no character filters are applied prior to categorization. If you -// are customizing some other aspect of the analyzer and you need to achieve the -// equivalent of `categorization_filters` (which are not permitted when some -// other aspect of the analyzer is customized), add them here as pattern replace -// character filters. func (s *_categorizationAnalyzerDefinition) CharFilter(charfilters ...types.CharFilterVariant) *_categorizationAnalyzerDefinition { for _, v := range charfilters { @@ -49,9 +42,6 @@ func (s *_categorizationAnalyzerDefinition) CharFilter(charfilters ...types.Char return s } -// One or more token filters. In addition to the built-in token filters, other -// plugins can provide more token filters. If this property is not specified, no -// token filters are applied prior to categorization. func (s *_categorizationAnalyzerDefinition) Filter(filters ...types.TokenFilterVariant) *_categorizationAnalyzerDefinition { for _, v := range filters { @@ -62,19 +52,6 @@ func (s *_categorizationAnalyzerDefinition) Filter(filters ...types.TokenFilterV return s } -// The name or definition of the tokenizer to use after character filters are -// applied. This property is compulsory if `categorization_analyzer` is -// specified as an object. Machine learning provides a tokenizer called -// `ml_standard` that tokenizes in a way that has been determined to produce -// good categorization results on a variety of log file formats for logs in -// English. If you want to use that tokenizer but change the character or token -// filters, specify "tokenizer": "ml_standard" in your -// `categorization_analyzer`. Additionally, the `ml_classic` tokenizer is -// available, which tokenizes in the same way as the non-customizable tokenizer -// in old versions of the product (before 6.2). `ml_classic` was the default -// categorization tokenizer in versions 6.2 to 7.13, so if you need -// categorization identical to the default for jobs created in these versions, -// specify "tokenizer": "ml_classic" in your `categorization_analyzer`. func (s *_categorizationAnalyzerDefinition) Tokenizer(tokenizer types.TokenizerVariant) *_categorizationAnalyzerDefinition { s.v.Tokenizer = *tokenizer.TokenizerCaster() diff --git a/typedapi/esdsl/categorizetextaggregation.go b/typedapi/esdsl/categorizetextaggregation.go index fb1f8d9314..36deeb9afa 100644 --- a/typedapi/esdsl/categorizetextaggregation.go +++ b/typedapi/esdsl/categorizetextaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _categorizeTextAggregation struct { v *types.CategorizeTextAggregation @@ -33,13 +33,6 @@ func NewCategorizeTextAggregation() *_categorizeTextAggregation { } -// The categorization analyzer specifies how the text is analyzed and tokenized -// before being categorized. -// The syntax is very similar to that used to define the analyzer in the -// [Analyze -// endpoint](https://www.elastic.co/guide/en/elasticsearch/reference/8.0/indices-analyze.html). -// This property -// cannot be used at the same time as categorization_filters. func (s *_categorizeTextAggregation) CategorizationAnalyzer(categorizetextanalyzer types.CategorizeTextAnalyzerVariant) *_categorizeTextAggregation { s.v.CategorizationAnalyzer = *categorizetextanalyzer.CategorizeTextAnalyzerCaster() @@ -47,20 +40,6 @@ func (s *_categorizeTextAggregation) CategorizationAnalyzer(categorizetextanalyz return s } -// This property expects an array of regular expressions. The expressions are -// used to filter out matching -// sequences from the categorization field values. You can use this -// functionality to fine tune the categorization -// by excluding sequences from consideration when categories are defined. For -// example, you can exclude SQL -// statements that appear in your log files. This property cannot be used at the -// same time as categorization_analyzer. -// If you only want to define simple regular expression filters that are applied -// prior to tokenization, setting -// this property is the easiest method. If you also want to customize the -// tokenizer or post-tokenization filtering, -// use the categorization_analyzer property instead and include the filters as -// pattern_replace character filters. func (s *_categorizeTextAggregation) CategorizationFilters(categorizationfilters ...string) *_categorizeTextAggregation { for _, v := range categorizationfilters { @@ -71,7 +50,6 @@ func (s *_categorizeTextAggregation) CategorizationFilters(categorizationfilters return s } -// The semi-structured text field to categorize. func (s *_categorizeTextAggregation) Field(field string) *_categorizeTextAggregation { s.v.Field = field @@ -79,10 +57,6 @@ func (s *_categorizeTextAggregation) Field(field string) *_categorizeTextAggrega return s } -// The maximum number of token positions to match on before attempting to merge -// categories. Larger -// values will use more memory and create narrower categories. Max allowed value -// is 100. func (s *_categorizeTextAggregation) MaxMatchedTokens(maxmatchedtokens int) *_categorizeTextAggregation { s.v.MaxMatchedTokens = &maxmatchedtokens @@ -90,11 +64,6 @@ func (s *_categorizeTextAggregation) MaxMatchedTokens(maxmatchedtokens int) *_ca return s } -// The maximum number of unique tokens at any position up to max_matched_tokens. -// Must be larger than 1. -// Smaller values use less memory and create fewer categories. Larger values -// will use more memory and -// create narrower categories. Max allowed value is 100. func (s *_categorizeTextAggregation) MaxUniqueTokens(maxuniquetokens int) *_categorizeTextAggregation { s.v.MaxUniqueTokens = &maxuniquetokens @@ -102,7 +71,6 @@ func (s *_categorizeTextAggregation) MaxUniqueTokens(maxuniquetokens int) *_cate return s } -// The minimum number of documents in a bucket to be returned to the results. func (s *_categorizeTextAggregation) MinDocCount(mindoccount int) *_categorizeTextAggregation { s.v.MinDocCount = &mindoccount @@ -110,8 +78,6 @@ func (s *_categorizeTextAggregation) MinDocCount(mindoccount int) *_categorizeTe return s } -// The minimum number of documents in a bucket to be returned from the shard -// before merging. func (s *_categorizeTextAggregation) ShardMinDocCount(shardmindoccount int) *_categorizeTextAggregation { s.v.ShardMinDocCount = &shardmindoccount @@ -119,8 +85,6 @@ func (s *_categorizeTextAggregation) ShardMinDocCount(shardmindoccount int) *_ca return s } -// The number of categorization buckets to return from each shard before merging -// all the results. func (s *_categorizeTextAggregation) ShardSize(shardsize int) *_categorizeTextAggregation { s.v.ShardSize = &shardsize @@ -128,11 +92,6 @@ func (s *_categorizeTextAggregation) ShardSize(shardsize int) *_categorizeTextAg return s } -// The minimum percentage of tokens that must match for text to be added to the -// category bucket. Must -// be between 1 and 100. The larger the value the narrower the categories. -// Larger values will increase memory -// usage and create narrower categories. func (s *_categorizeTextAggregation) SimilarityThreshold(similaritythreshold int) *_categorizeTextAggregation { s.v.SimilarityThreshold = &similaritythreshold @@ -140,7 +99,6 @@ func (s *_categorizeTextAggregation) SimilarityThreshold(similaritythreshold int return s } -// The number of buckets to return. func (s *_categorizeTextAggregation) Size(size int) *_categorizeTextAggregation { s.v.Size = &size diff --git a/typedapi/esdsl/categorizetextanalyzer.go b/typedapi/esdsl/categorizetextanalyzer.go index ba2b837efb..91a60f642c 100644 --- a/typedapi/esdsl/categorizetextanalyzer.go +++ b/typedapi/esdsl/categorizetextanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _categorizeTextAnalyzer struct { diff --git a/typedapi/esdsl/chaininput.go b/typedapi/esdsl/chaininput.go index 097a2f2d27..116c079010 100644 --- a/typedapi/esdsl/chaininput.go +++ b/typedapi/esdsl/chaininput.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _chainInput struct { v *types.ChainInput diff --git a/typedapi/esdsl/charfilter.go b/typedapi/esdsl/charfilter.go index 529d3bdcd5..3fdb15f7eb 100644 --- a/typedapi/esdsl/charfilter.go +++ b/typedapi/esdsl/charfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _charFilter struct { diff --git a/typedapi/esdsl/charfilterdefinition.go b/typedapi/esdsl/charfilterdefinition.go index a414033644..369d8df57c 100644 --- a/typedapi/esdsl/charfilterdefinition.go +++ b/typedapi/esdsl/charfilterdefinition.go @@ -16,11 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" +) // This is provide all the types that are part of the union. type _charFilterDefinition struct { @@ -31,6 +35,13 @@ func NewCharFilterDefinition() *_charFilterDefinition { return &_charFilterDefinition{v: nil} } +// UnknownCharFilterDefinition is used to set the unknown value of the union. +// Highlited as @non_exhaustive in the specification. +func (u *_charFilterDefinition) UnknownCharFilterDefinition(unknown json.RawMessage) *_charFilterDefinition { + u.v = unknown + return u +} + func (u *_charFilterDefinition) HtmlStripCharFilter(htmlstripcharfilter types.HtmlStripCharFilterVariant) *_charFilterDefinition { u.v = &htmlstripcharfilter diff --git a/typedapi/esdsl/chargrouptokenizer.go b/typedapi/esdsl/chargrouptokenizer.go index 16e5d045c7..a9958654ff 100644 --- a/typedapi/esdsl/chargrouptokenizer.go +++ b/typedapi/esdsl/chargrouptokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _charGroupTokenizer struct { v *types.CharGroupTokenizer diff --git a/typedapi/esdsl/childrenaggregation.go b/typedapi/esdsl/childrenaggregation.go index 29152fffe7..c403166d44 100644 --- a/typedapi/esdsl/childrenaggregation.go +++ b/typedapi/esdsl/childrenaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _childrenAggregation struct { v *types.ChildrenAggregation @@ -34,7 +34,6 @@ func NewChildrenAggregation() *_childrenAggregation { } -// The child type that should be selected. func (s *_childrenAggregation) Type(relationname string) *_childrenAggregation { s.v.Type = &relationname diff --git a/typedapi/esdsl/chineseanalyzer.go b/typedapi/esdsl/chineseanalyzer.go index 05fbe17014..a0026be3f7 100644 --- a/typedapi/esdsl/chineseanalyzer.go +++ b/typedapi/esdsl/chineseanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _chineseAnalyzer struct { v *types.ChineseAnalyzer diff --git a/typedapi/esdsl/chisquareheuristic.go b/typedapi/esdsl/chisquareheuristic.go index 7222bd54d7..37e51fc51e 100644 --- a/typedapi/esdsl/chisquareheuristic.go +++ b/typedapi/esdsl/chisquareheuristic.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _chiSquareHeuristic struct { v *types.ChiSquareHeuristic @@ -38,8 +38,6 @@ func NewChiSquareHeuristic(backgroundissuperset bool, includenegatives bool) *_c } -// Set to `false` if you defined a custom background filter that represents a -// different set of documents that you want to compare to. func (s *_chiSquareHeuristic) BackgroundIsSuperset(backgroundissuperset bool) *_chiSquareHeuristic { s.v.BackgroundIsSuperset = backgroundissuperset @@ -47,8 +45,6 @@ func (s *_chiSquareHeuristic) BackgroundIsSuperset(backgroundissuperset bool) *_ return s } -// Set to `false` to filter out the terms that appear less often in the subset -// than in documents outside the subset. func (s *_chiSquareHeuristic) IncludeNegatives(includenegatives bool) *_chiSquareHeuristic { s.v.IncludeNegatives = includenegatives diff --git a/typedapi/esdsl/chunkingconfig.go b/typedapi/esdsl/chunkingconfig.go index 11fb821ae3..1e2b855176 100644 --- a/typedapi/esdsl/chunkingconfig.go +++ b/typedapi/esdsl/chunkingconfig.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/chunkingmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/chunkingmode" ) type _chunkingConfig struct { @@ -39,20 +39,12 @@ func NewChunkingConfig(mode chunkingmode.ChunkingMode) *_chunkingConfig { } -// If the mode is `auto`, the chunk size is dynamically calculated; -// this is the recommended value when the datafeed does not use aggregations. -// If the mode is `manual`, chunking is applied according to the specified -// `time_span`; -// use this mode when the datafeed uses aggregations. If the mode is `off`, no -// chunking is applied. func (s *_chunkingConfig) Mode(mode chunkingmode.ChunkingMode) *_chunkingConfig { s.v.Mode = mode return s } -// The time span that each search will be querying. This setting is applicable -// only when the `mode` is set to `manual`. func (s *_chunkingConfig) TimeSpan(duration types.DurationVariant) *_chunkingConfig { s.v.TimeSpan = *duration.DurationCaster() diff --git a/typedapi/esdsl/circleprocessor.go b/typedapi/esdsl/circleprocessor.go index 698b846fb8..ec6414daeb 100644 --- a/typedapi/esdsl/circleprocessor.go +++ b/typedapi/esdsl/circleprocessor.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shapetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shapetype" ) type _circleProcessor struct { @@ -43,8 +43,6 @@ func NewCircleProcessor(errordistance types.Float64, shapetype shapetype.ShapeTy } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_circleProcessor) Description(description string) *_circleProcessor { s.v.Description = &description @@ -52,9 +50,6 @@ func (s *_circleProcessor) Description(description string) *_circleProcessor { return s } -// The difference between the resulting inscribed distance from center to side -// and the circle’s radius (measured in meters for `geo_shape`, unit-less for -// `shape`). func (s *_circleProcessor) ErrorDistance(errordistance types.Float64) *_circleProcessor { s.v.ErrorDistance = errordistance @@ -62,8 +57,6 @@ func (s *_circleProcessor) ErrorDistance(errordistance types.Float64) *_circlePr return s } -// The field to interpret as a circle. Either a string in WKT format or a map -// for GeoJSON. func (s *_circleProcessor) Field(field string) *_circleProcessor { s.v.Field = field @@ -71,7 +64,6 @@ func (s *_circleProcessor) Field(field string) *_circleProcessor { return s } -// Conditionally execute the processor. func (s *_circleProcessor) If(if_ types.ScriptVariant) *_circleProcessor { s.v.If = if_.ScriptCaster() @@ -79,7 +71,6 @@ func (s *_circleProcessor) If(if_ types.ScriptVariant) *_circleProcessor { return s } -// Ignore failures for the processor. func (s *_circleProcessor) IgnoreFailure(ignorefailure bool) *_circleProcessor { s.v.IgnoreFailure = &ignorefailure @@ -87,8 +78,6 @@ func (s *_circleProcessor) IgnoreFailure(ignorefailure bool) *_circleProcessor { return s } -// If `true` and `field` does not exist, the processor quietly exits without -// modifying the document. func (s *_circleProcessor) IgnoreMissing(ignoremissing bool) *_circleProcessor { s.v.IgnoreMissing = &ignoremissing @@ -96,7 +85,6 @@ func (s *_circleProcessor) IgnoreMissing(ignoremissing bool) *_circleProcessor { return s } -// Handle failures for the processor. func (s *_circleProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_circleProcessor { for _, v := range onfailures { @@ -107,16 +95,12 @@ func (s *_circleProcessor) OnFailure(onfailures ...types.ProcessorContainerVaria return s } -// Which field mapping type is to be used when processing the circle: -// `geo_shape` or `shape`. func (s *_circleProcessor) ShapeType(shapetype shapetype.ShapeType) *_circleProcessor { s.v.ShapeType = shapetype return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_circleProcessor) Tag(tag string) *_circleProcessor { s.v.Tag = &tag @@ -124,8 +108,6 @@ func (s *_circleProcessor) Tag(tag string) *_circleProcessor { return s } -// The field to assign the polygon shape to -// By default, the field is updated in-place. func (s *_circleProcessor) TargetField(field string) *_circleProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/cjkanalyzer.go b/typedapi/esdsl/cjkanalyzer.go index 75fec879f7..f7caa26edf 100644 --- a/typedapi/esdsl/cjkanalyzer.go +++ b/typedapi/esdsl/cjkanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _cjkAnalyzer struct { v *types.CjkAnalyzer diff --git a/typedapi/esdsl/classictokenizer.go b/typedapi/esdsl/classictokenizer.go index 2676015adb..05750478f0 100644 --- a/typedapi/esdsl/classictokenizer.go +++ b/typedapi/esdsl/classictokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _classicTokenizer struct { v *types.ClassicTokenizer diff --git a/typedapi/esdsl/classificationinferenceoptions.go b/typedapi/esdsl/classificationinferenceoptions.go index c1bad783d3..3fcafacbd9 100644 --- a/typedapi/esdsl/classificationinferenceoptions.go +++ b/typedapi/esdsl/classificationinferenceoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _classificationInferenceOptions struct { v *types.ClassificationInferenceOptions @@ -33,7 +33,6 @@ func NewClassificationInferenceOptions() *_classificationInferenceOptions { } -// Specifies the number of top class predictions to return. Defaults to 0. func (s *_classificationInferenceOptions) NumTopClasses(numtopclasses int) *_classificationInferenceOptions { s.v.NumTopClasses = &numtopclasses @@ -41,7 +40,6 @@ func (s *_classificationInferenceOptions) NumTopClasses(numtopclasses int) *_cla return s } -// Specifies the maximum number of feature importance values per document. func (s *_classificationInferenceOptions) NumTopFeatureImportanceValues(numtopfeatureimportancevalues int) *_classificationInferenceOptions { s.v.NumTopFeatureImportanceValues = &numtopfeatureimportancevalues @@ -49,9 +47,6 @@ func (s *_classificationInferenceOptions) NumTopFeatureImportanceValues(numtopfe return s } -// Specifies the type of the predicted field to write. Acceptable values are: -// string, number, boolean. When boolean is provided 1.0 is transformed to true -// and 0.0 to false. func (s *_classificationInferenceOptions) PredictionFieldType(predictionfieldtype string) *_classificationInferenceOptions { s.v.PredictionFieldType = &predictionfieldtype @@ -59,8 +54,6 @@ func (s *_classificationInferenceOptions) PredictionFieldType(predictionfieldtyp return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_classificationInferenceOptions) ResultsField(resultsfield string) *_classificationInferenceOptions { s.v.ResultsField = &resultsfield @@ -68,8 +61,6 @@ func (s *_classificationInferenceOptions) ResultsField(resultsfield string) *_cl return s } -// Specifies the field to which the top classes are written. Defaults to -// top_classes. func (s *_classificationInferenceOptions) TopClassesResultsField(topclassesresultsfield string) *_classificationInferenceOptions { s.v.TopClassesResultsField = &topclassesresultsfield diff --git a/typedapi/esdsl/cohereservicesettings.go b/typedapi/esdsl/cohereservicesettings.go new file mode 100644 index 0000000000..92e62c028a --- /dev/null +++ b/typedapi/esdsl/cohereservicesettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cohereembeddingtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/coheresimilaritytype" +) + +type _cohereServiceSettings struct { + v *types.CohereServiceSettings +} + +func NewCohereServiceSettings(apikey string) *_cohereServiceSettings { + + tmp := &_cohereServiceSettings{v: types.NewCohereServiceSettings()} + + tmp.ApiKey(apikey) + + return tmp + +} + +func (s *_cohereServiceSettings) ApiKey(apikey string) *_cohereServiceSettings { + + s.v.ApiKey = apikey + + return s +} + +func (s *_cohereServiceSettings) EmbeddingType(embeddingtype cohereembeddingtype.CohereEmbeddingType) *_cohereServiceSettings { + + s.v.EmbeddingType = &embeddingtype + return s +} + +func (s *_cohereServiceSettings) ModelId(modelid string) *_cohereServiceSettings { + + s.v.ModelId = &modelid + + return s +} + +func (s *_cohereServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_cohereServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_cohereServiceSettings) Similarity(similarity coheresimilaritytype.CohereSimilarityType) *_cohereServiceSettings { + + s.v.Similarity = &similarity + return s +} + +func (s *_cohereServiceSettings) CohereServiceSettingsCaster() *types.CohereServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/coheretasksettings.go b/typedapi/esdsl/coheretasksettings.go new file mode 100644 index 0000000000..d47c3a54d8 --- /dev/null +++ b/typedapi/esdsl/coheretasksettings.go @@ -0,0 +1,67 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cohereinputtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/coheretruncatetype" +) + +type _cohereTaskSettings struct { + v *types.CohereTaskSettings +} + +func NewCohereTaskSettings() *_cohereTaskSettings { + + return &_cohereTaskSettings{v: types.NewCohereTaskSettings()} + +} + +func (s *_cohereTaskSettings) InputType(inputtype cohereinputtype.CohereInputType) *_cohereTaskSettings { + + s.v.InputType = &inputtype + return s +} + +func (s *_cohereTaskSettings) ReturnDocuments(returndocuments bool) *_cohereTaskSettings { + + s.v.ReturnDocuments = &returndocuments + + return s +} + +func (s *_cohereTaskSettings) TopN(topn int) *_cohereTaskSettings { + + s.v.TopN = &topn + + return s +} + +func (s *_cohereTaskSettings) Truncate(truncate coheretruncatetype.CohereTruncateType) *_cohereTaskSettings { + + s.v.Truncate = &truncate + return s +} + +func (s *_cohereTaskSettings) CohereTaskSettingsCaster() *types.CohereTaskSettings { + return s.v +} diff --git a/typedapi/esdsl/combinedfieldsquery.go b/typedapi/esdsl/combinedfieldsquery.go index 00307d617a..bdc41d15c7 100644 --- a/typedapi/esdsl/combinedfieldsquery.go +++ b/typedapi/esdsl/combinedfieldsquery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldsoperator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldszeroterms" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/combinedfieldsoperator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/combinedfieldszeroterms" ) type _combinedFieldsQuery struct { @@ -42,8 +42,6 @@ func NewCombinedFieldsQuery(query string) *_combinedFieldsQuery { } -// If true, match phrase queries are automatically created for multi-term -// synonyms. func (s *_combinedFieldsQuery) AutoGenerateSynonymsPhraseQuery(autogeneratesynonymsphrasequery bool) *_combinedFieldsQuery { s.v.AutoGenerateSynonymsPhraseQuery = &autogeneratesynonymsphrasequery @@ -51,11 +49,6 @@ func (s *_combinedFieldsQuery) AutoGenerateSynonymsPhraseQuery(autogeneratesynon return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_combinedFieldsQuery) Boost(boost float32) *_combinedFieldsQuery { s.v.Boost = &boost @@ -63,8 +56,6 @@ func (s *_combinedFieldsQuery) Boost(boost float32) *_combinedFieldsQuery { return s } -// List of fields to search. Field wildcard patterns are allowed. Only `text` -// fields are supported, and they must all have the same search `analyzer`. func (s *_combinedFieldsQuery) Fields(fields ...string) *_combinedFieldsQuery { for _, v := range fields { @@ -75,7 +66,6 @@ func (s *_combinedFieldsQuery) Fields(fields ...string) *_combinedFieldsQuery { return s } -// Minimum number of clauses that must match for a document to be returned. func (s *_combinedFieldsQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShouldMatchVariant) *_combinedFieldsQuery { s.v.MinimumShouldMatch = *minimumshouldmatch.MinimumShouldMatchCaster() @@ -83,16 +73,12 @@ func (s *_combinedFieldsQuery) MinimumShouldMatch(minimumshouldmatch types.Minim return s } -// Boolean logic used to interpret text in the query value. func (s *_combinedFieldsQuery) Operator(operator combinedfieldsoperator.CombinedFieldsOperator) *_combinedFieldsQuery { s.v.Operator = &operator return s } -// Text to search for in the provided `fields`. -// The `combined_fields` query analyzes the provided text before performing a -// search. func (s *_combinedFieldsQuery) Query(query string) *_combinedFieldsQuery { s.v.Query = query @@ -107,8 +93,6 @@ func (s *_combinedFieldsQuery) QueryName_(queryname_ string) *_combinedFieldsQue return s } -// Indicates whether no documents are returned if the analyzer removes all -// tokens, such as when using a `stop` filter. func (s *_combinedFieldsQuery) ZeroTermsQuery(zerotermsquery combinedfieldszeroterms.CombinedFieldsZeroTerms) *_combinedFieldsQuery { s.v.ZeroTermsQuery = &zerotermsquery diff --git a/typedapi/esdsl/command.go b/typedapi/esdsl/command.go index b59afaed51..9e116af1cd 100644 --- a/typedapi/esdsl/command.go +++ b/typedapi/esdsl/command.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _command struct { v *types.Command @@ -32,13 +32,6 @@ func NewCommand() *_command { } -// 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 -// command leads to a complete loss of all data that was indexed into this -// shard, if it was previously started. 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, this command requires the flag -// accept_data_loss to be explicitly set to true. func (s *_command) AllocateEmptyPrimary(allocateemptyprimary types.CommandAllocatePrimaryActionVariant) *_command { s.v.AllocateEmptyPrimary = allocateemptyprimary.CommandAllocatePrimaryActionCaster() @@ -46,9 +39,6 @@ func (s *_command) AllocateEmptyPrimary(allocateemptyprimary types.CommandAlloca return s } -// Allocate an unassigned replica shard to a node. Accepts index and shard for -// index name and shard number, and node to allocate the shard to. Takes -// allocation deciders into account. func (s *_command) AllocateReplica(allocatereplica types.CommandAllocateReplicaActionVariant) *_command { s.v.AllocateReplica = allocatereplica.CommandAllocateReplicaActionCaster() @@ -56,14 +46,6 @@ func (s *_command) AllocateReplica(allocatereplica types.CommandAllocateReplicaA return s } -// Allocate a primary shard to a node that holds a stale copy. Accepts the index -// and shard for index name and shard number, and node to allocate the shard to. -// Using this command may lead to data loss for the provided shard id. If a node -// which has the good copy of the data rejoins the cluster later on, that data -// will be deleted or overwritten with the data of the stale copy that was -// forcefully allocated with this command. To ensure that these implications are -// well-understood, this command requires the flag accept_data_loss to be -// explicitly set to true. func (s *_command) AllocateStalePrimary(allocatestaleprimary types.CommandAllocatePrimaryActionVariant) *_command { s.v.AllocateStalePrimary = allocatestaleprimary.CommandAllocatePrimaryActionCaster() @@ -71,14 +53,6 @@ func (s *_command) AllocateStalePrimary(allocatestaleprimary types.CommandAlloca return s } -// Cancel allocation of a shard (or recovery). Accepts index and shard for index -// name and shard number, and node for the node to cancel the shard allocation -// on. This can be used to force resynchronization of existing replicas from the -// primary shard by cancelling them and allowing them to be reinitialized -// through the standard recovery process. By default only replica shard -// allocations can be cancelled. If it is necessary to cancel the allocation of -// a primary shard then the allow_primary flag must also be included in the -// request. func (s *_command) Cancel(cancel types.CommandCancelActionVariant) *_command { s.v.Cancel = cancel.CommandCancelActionCaster() @@ -86,9 +60,6 @@ func (s *_command) Cancel(cancel types.CommandCancelActionVariant) *_command { return s } -// Move a started shard from one node to another node. Accepts index and shard -// for index name and shard number, from_node for the node to move the shard -// from, and to_node for the node to move the shard to. func (s *_command) Move(move types.CommandMoveActionVariant) *_command { s.v.Move = move.CommandMoveActionCaster() diff --git a/typedapi/esdsl/commandallocateprimaryaction.go b/typedapi/esdsl/commandallocateprimaryaction.go index 6d049d18da..65d33922c5 100644 --- a/typedapi/esdsl/commandallocateprimaryaction.go +++ b/typedapi/esdsl/commandallocateprimaryaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _commandAllocatePrimaryAction struct { v *types.CommandAllocatePrimaryAction @@ -40,9 +40,6 @@ func NewCommandAllocatePrimaryAction(acceptdataloss bool, node string, shard int } -// 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, -// this command requires the flag accept_data_loss to be explicitly set to true func (s *_commandAllocatePrimaryAction) AcceptDataLoss(acceptdataloss bool) *_commandAllocatePrimaryAction { s.v.AcceptDataLoss = acceptdataloss diff --git a/typedapi/esdsl/commandallocatereplicaaction.go b/typedapi/esdsl/commandallocatereplicaaction.go index 5ad9d510ab..5f782cb4f4 100644 --- a/typedapi/esdsl/commandallocatereplicaaction.go +++ b/typedapi/esdsl/commandallocatereplicaaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _commandAllocateReplicaAction struct { v *types.CommandAllocateReplicaAction diff --git a/typedapi/esdsl/commandcancelaction.go b/typedapi/esdsl/commandcancelaction.go index 2bc78d201e..defeb0ce37 100644 --- a/typedapi/esdsl/commandcancelaction.go +++ b/typedapi/esdsl/commandcancelaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _commandCancelAction struct { v *types.CommandCancelAction diff --git a/typedapi/esdsl/commandmoveaction.go b/typedapi/esdsl/commandmoveaction.go index 60ce4b6b1e..38e396e23e 100644 --- a/typedapi/esdsl/commandmoveaction.go +++ b/typedapi/esdsl/commandmoveaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _commandMoveAction struct { v *types.CommandMoveAction @@ -40,7 +40,6 @@ func NewCommandMoveAction(fromnode string, shard int, tonode string) *_commandMo } -// The node to move the shard from func (s *_commandMoveAction) FromNode(fromnode string) *_commandMoveAction { s.v.FromNode = fromnode @@ -62,7 +61,6 @@ func (s *_commandMoveAction) Shard(shard int) *_commandMoveAction { return s } -// The node to move the shard to func (s *_commandMoveAction) ToNode(tonode string) *_commandMoveAction { s.v.ToNode = tonode diff --git a/typedapi/esdsl/commongramstokenfilter.go b/typedapi/esdsl/commongramstokenfilter.go index cbbc9a11f9..8e7b5972f6 100644 --- a/typedapi/esdsl/commongramstokenfilter.go +++ b/typedapi/esdsl/commongramstokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _commonGramsTokenFilter struct { v *types.CommonGramsTokenFilter diff --git a/typedapi/esdsl/commontermsquery.go b/typedapi/esdsl/commontermsquery.go index 457e72da7b..325805718e 100644 --- a/typedapi/esdsl/commontermsquery.go +++ b/typedapi/esdsl/commontermsquery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" ) type _commonTermsQuery struct { @@ -47,11 +47,6 @@ func (s *_commonTermsQuery) Analyzer(analyzer string) *_commonTermsQuery { return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_commonTermsQuery) Boost(boost float32) *_commonTermsQuery { s.v.Boost = &boost diff --git a/typedapi/esdsl/communityidprocessor.go b/typedapi/esdsl/communityidprocessor.go index e9f255f90a..07a18001a9 100644 --- a/typedapi/esdsl/communityidprocessor.go +++ b/typedapi/esdsl/communityidprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _communityIDProcessor struct { v *types.CommunityIDProcessor @@ -35,8 +35,6 @@ func NewCommunityIDProcessor() *_communityIDProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_communityIDProcessor) Description(description string) *_communityIDProcessor { s.v.Description = &description @@ -44,7 +42,6 @@ func (s *_communityIDProcessor) Description(description string) *_communityIDPro return s } -// Field containing the destination IP address. func (s *_communityIDProcessor) DestinationIp(field string) *_communityIDProcessor { s.v.DestinationIp = &field @@ -52,7 +49,6 @@ func (s *_communityIDProcessor) DestinationIp(field string) *_communityIDProcess return s } -// Field containing the destination port. func (s *_communityIDProcessor) DestinationPort(field string) *_communityIDProcessor { s.v.DestinationPort = &field @@ -60,7 +56,6 @@ func (s *_communityIDProcessor) DestinationPort(field string) *_communityIDProce return s } -// Field containing the IANA number. func (s *_communityIDProcessor) IanaNumber(field string) *_communityIDProcessor { s.v.IanaNumber = &field @@ -68,7 +63,6 @@ func (s *_communityIDProcessor) IanaNumber(field string) *_communityIDProcessor return s } -// Field containing the ICMP code. func (s *_communityIDProcessor) IcmpCode(field string) *_communityIDProcessor { s.v.IcmpCode = &field @@ -76,7 +70,6 @@ func (s *_communityIDProcessor) IcmpCode(field string) *_communityIDProcessor { return s } -// Field containing the ICMP type. func (s *_communityIDProcessor) IcmpType(field string) *_communityIDProcessor { s.v.IcmpType = &field @@ -84,7 +77,6 @@ func (s *_communityIDProcessor) IcmpType(field string) *_communityIDProcessor { return s } -// Conditionally execute the processor. func (s *_communityIDProcessor) If(if_ types.ScriptVariant) *_communityIDProcessor { s.v.If = if_.ScriptCaster() @@ -92,7 +84,6 @@ func (s *_communityIDProcessor) If(if_ types.ScriptVariant) *_communityIDProcess return s } -// Ignore failures for the processor. func (s *_communityIDProcessor) IgnoreFailure(ignorefailure bool) *_communityIDProcessor { s.v.IgnoreFailure = &ignorefailure @@ -100,8 +91,6 @@ func (s *_communityIDProcessor) IgnoreFailure(ignorefailure bool) *_communityIDP return s } -// If true and any required fields are missing, the processor quietly exits -// without modifying the document. func (s *_communityIDProcessor) IgnoreMissing(ignoremissing bool) *_communityIDProcessor { s.v.IgnoreMissing = &ignoremissing @@ -109,7 +98,6 @@ func (s *_communityIDProcessor) IgnoreMissing(ignoremissing bool) *_communityIDP return s } -// Handle failures for the processor. func (s *_communityIDProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_communityIDProcessor { for _, v := range onfailures { @@ -120,9 +108,6 @@ func (s *_communityIDProcessor) OnFailure(onfailures ...types.ProcessorContainer return s } -// Seed for the community ID hash. Must be between 0 and 65535 (inclusive). The -// seed can prevent hash collisions between network domains, such as a staging -// and production network that use the same addressing scheme. func (s *_communityIDProcessor) Seed(seed int) *_communityIDProcessor { s.v.Seed = &seed @@ -130,7 +115,6 @@ func (s *_communityIDProcessor) Seed(seed int) *_communityIDProcessor { return s } -// Field containing the source IP address. func (s *_communityIDProcessor) SourceIp(field string) *_communityIDProcessor { s.v.SourceIp = &field @@ -138,7 +122,6 @@ func (s *_communityIDProcessor) SourceIp(field string) *_communityIDProcessor { return s } -// Field containing the source port. func (s *_communityIDProcessor) SourcePort(field string) *_communityIDProcessor { s.v.SourcePort = &field @@ -146,8 +129,6 @@ func (s *_communityIDProcessor) SourcePort(field string) *_communityIDProcessor return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_communityIDProcessor) Tag(tag string) *_communityIDProcessor { s.v.Tag = &tag @@ -155,7 +136,6 @@ func (s *_communityIDProcessor) Tag(tag string) *_communityIDProcessor { return s } -// Output field for the community ID. func (s *_communityIDProcessor) TargetField(field string) *_communityIDProcessor { s.v.TargetField = &field @@ -163,10 +143,6 @@ func (s *_communityIDProcessor) TargetField(field string) *_communityIDProcessor return s } -// Field containing the transport protocol name or number. Used only when the -// iana_number field is not present. The following protocol names are currently -// supported: eigrp, gre, icmp, icmpv6, igmp, ipv6-icmp, ospf, pim, sctp, tcp, -// udp func (s *_communityIDProcessor) Transport(field string) *_communityIDProcessor { s.v.Transport = &field diff --git a/typedapi/esdsl/completioncontext.go b/typedapi/esdsl/completioncontext.go index 9388e95c8c..919ee31d7e 100644 --- a/typedapi/esdsl/completioncontext.go +++ b/typedapi/esdsl/completioncontext.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _completionContext struct { v *types.CompletionContext @@ -32,8 +32,6 @@ func NewCompletionContext() *_completionContext { } -// The factor by which the score of the suggestion should be boosted. -// The score is computed by multiplying the boost with the suggestion weight. func (s *_completionContext) Boost(boost types.Float64) *_completionContext { s.v.Boost = &boost @@ -41,7 +39,6 @@ func (s *_completionContext) Boost(boost types.Float64) *_completionContext { return s } -// The value of the category to filter/boost on. func (s *_completionContext) Context(context types.ContextVariant) *_completionContext { s.v.Context = *context.ContextCaster() @@ -49,11 +46,6 @@ func (s *_completionContext) Context(context types.ContextVariant) *_completionC return s } -// An array of precision values at which neighboring geohashes should be taken -// into account. -// Precision value can be a distance value (`5m`, `10km`, etc.) or a raw geohash -// precision (`1`..`12`). -// Defaults to generating neighbors for index time precision level. func (s *_completionContext) Neighbours(neighbours ...types.GeoHashPrecisionVariant) *_completionContext { for _, v := range neighbours { @@ -64,10 +56,6 @@ func (s *_completionContext) Neighbours(neighbours ...types.GeoHashPrecisionVari return s } -// The precision of the geohash to encode the query geo point. -// Can be specified as a distance value (`5m`, `10km`, etc.), or as a raw -// geohash precision (`1`..`12`). -// Defaults to index time precision level. func (s *_completionContext) Precision(geohashprecision types.GeoHashPrecisionVariant) *_completionContext { s.v.Precision = *geohashprecision.GeoHashPrecisionCaster() @@ -75,7 +63,6 @@ func (s *_completionContext) Precision(geohashprecision types.GeoHashPrecisionVa return s } -// Whether the category value should be treated as a prefix or not. func (s *_completionContext) Prefix(prefix bool) *_completionContext { s.v.Prefix = &prefix diff --git a/typedapi/esdsl/completionproperty.go b/typedapi/esdsl/completionproperty.go index 5daf7ab45c..0c5c4082fd 100644 --- a/typedapi/esdsl/completionproperty.go +++ b/typedapi/esdsl/completionproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _completionProperty struct { @@ -108,7 +108,6 @@ func (s *_completionProperty) MaxInputLength(maxinputlength int) *_completionPro return s } -// Metadata about the field. func (s *_completionProperty) Meta(meta map[string]string) *_completionProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/completionsuggester.go b/typedapi/esdsl/completionsuggester.go index 5b3143d26c..9e5f4c54e1 100644 --- a/typedapi/esdsl/completionsuggester.go +++ b/typedapi/esdsl/completionsuggester.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _completionSuggester struct { v *types.CompletionSuggester @@ -33,8 +33,6 @@ func NewCompletionSuggester() *_completionSuggester { } -// The analyzer to analyze the suggest text with. -// Defaults to the search analyzer of the suggest field. func (s *_completionSuggester) Analyzer(analyzer string) *_completionSuggester { s.v.Analyzer = &analyzer @@ -42,16 +40,12 @@ func (s *_completionSuggester) Analyzer(analyzer string) *_completionSuggester { return s } -// A value, geo point object, or a geo hash string to filter or boost the -// suggestion on. func (s *_completionSuggester) Contexts(contexts map[string][]types.CompletionContext) *_completionSuggester { s.v.Contexts = contexts return s } -// The field to fetch the candidate suggestions from. -// Needs to be set globally or per suggestion. func (s *_completionSuggester) Field(field string) *_completionSuggester { s.v.Field = field @@ -59,8 +53,6 @@ func (s *_completionSuggester) Field(field string) *_completionSuggester { return s } -// Enables fuzziness, meaning you can have a typo in your search and still get -// results back. func (s *_completionSuggester) Fuzzy(fuzzy types.SuggestFuzzinessVariant) *_completionSuggester { s.v.Fuzzy = fuzzy.SuggestFuzzinessCaster() @@ -68,7 +60,6 @@ func (s *_completionSuggester) Fuzzy(fuzzy types.SuggestFuzzinessVariant) *_comp return s } -// A regex query that expresses a prefix as a regular expression. func (s *_completionSuggester) Regex(regex types.RegexOptionsVariant) *_completionSuggester { s.v.Regex = regex.RegexOptionsCaster() @@ -76,7 +67,6 @@ func (s *_completionSuggester) Regex(regex types.RegexOptionsVariant) *_completi return s } -// The maximum corrections to be returned per suggest text token. func (s *_completionSuggester) Size(size int) *_completionSuggester { s.v.Size = &size @@ -84,7 +74,6 @@ func (s *_completionSuggester) Size(size int) *_completionSuggester { return s } -// Whether duplicate suggestions should be filtered out. func (s *_completionSuggester) SkipDuplicates(skipduplicates bool) *_completionSuggester { s.v.SkipDuplicates = &skipduplicates diff --git a/typedapi/esdsl/completiontool.go b/typedapi/esdsl/completiontool.go index 89e24fd237..e5eec7d427 100644 --- a/typedapi/esdsl/completiontool.go +++ b/typedapi/esdsl/completiontool.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _completionTool struct { v *types.CompletionTool @@ -38,7 +38,6 @@ func NewCompletionTool(function types.CompletionToolFunctionVariant, type_ strin } -// The function definition. func (s *_completionTool) Function(function types.CompletionToolFunctionVariant) *_completionTool { s.v.Function = *function.CompletionToolFunctionCaster() @@ -46,7 +45,6 @@ func (s *_completionTool) Function(function types.CompletionToolFunctionVariant) return s } -// The type of tool. func (s *_completionTool) Type(type_ string) *_completionTool { s.v.Type = type_ diff --git a/typedapi/esdsl/completiontoolchoice.go b/typedapi/esdsl/completiontoolchoice.go index cd93f4c213..5653988218 100644 --- a/typedapi/esdsl/completiontoolchoice.go +++ b/typedapi/esdsl/completiontoolchoice.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _completionToolChoice struct { v *types.CompletionToolChoice @@ -38,7 +38,6 @@ func NewCompletionToolChoice(function types.CompletionToolChoiceFunctionVariant, } -// The tool choice function. func (s *_completionToolChoice) Function(function types.CompletionToolChoiceFunctionVariant) *_completionToolChoice { s.v.Function = *function.CompletionToolChoiceFunctionCaster() @@ -46,7 +45,6 @@ func (s *_completionToolChoice) Function(function types.CompletionToolChoiceFunc return s } -// The type of the tool. func (s *_completionToolChoice) Type(type_ string) *_completionToolChoice { s.v.Type = type_ diff --git a/typedapi/esdsl/completiontoolchoicefunction.go b/typedapi/esdsl/completiontoolchoicefunction.go index 9cd7c8bacd..30fe67684f 100644 --- a/typedapi/esdsl/completiontoolchoicefunction.go +++ b/typedapi/esdsl/completiontoolchoicefunction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _completionToolChoiceFunction struct { v *types.CompletionToolChoiceFunction @@ -36,7 +36,6 @@ func NewCompletionToolChoiceFunction(name string) *_completionToolChoiceFunction } -// The name of the function to call. func (s *_completionToolChoiceFunction) Name(name string) *_completionToolChoiceFunction { s.v.Name = name diff --git a/typedapi/esdsl/completiontoolfunction.go b/typedapi/esdsl/completiontoolfunction.go index bd1f2e9a76..b2cb1f178a 100644 --- a/typedapi/esdsl/completiontoolfunction.go +++ b/typedapi/esdsl/completiontoolfunction.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _completionToolFunction struct { @@ -40,8 +40,6 @@ func NewCompletionToolFunction(name string) *_completionToolFunction { } -// A description of what the function does. -// This is used by the model to choose when and how to call the function. func (s *_completionToolFunction) Description(description string) *_completionToolFunction { s.v.Description = &description @@ -49,7 +47,6 @@ func (s *_completionToolFunction) Description(description string) *_completionTo return s } -// The name of the function. func (s *_completionToolFunction) Name(name string) *_completionToolFunction { s.v.Name = name @@ -57,8 +54,6 @@ func (s *_completionToolFunction) Name(name string) *_completionToolFunction { return s } -// The parameters the functional accepts. This should be formatted as a JSON -// object. func (s *_completionToolFunction) Parameters(parameters json.RawMessage) *_completionToolFunction { s.v.Parameters = parameters @@ -66,7 +61,6 @@ func (s *_completionToolFunction) Parameters(parameters json.RawMessage) *_compl return s } -// Whether to enable schema adherence when generating the function call. func (s *_completionToolFunction) Strict(strict bool) *_completionToolFunction { s.v.Strict = &strict diff --git a/typedapi/esdsl/completiontooltype.go b/typedapi/esdsl/completiontooltype.go index 7a49a49944..f0af944b87 100644 --- a/typedapi/esdsl/completiontooltype.go +++ b/typedapi/esdsl/completiontooltype.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _completionToolType struct { diff --git a/typedapi/esdsl/componenttemplatenode.go b/typedapi/esdsl/componenttemplatenode.go index 324170592f..724b75a94f 100644 --- a/typedapi/esdsl/componenttemplatenode.go +++ b/typedapi/esdsl/componenttemplatenode.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _componentTemplateNode struct { v *types.ComponentTemplateNode diff --git a/typedapi/esdsl/componenttemplatesummary.go b/typedapi/esdsl/componenttemplatesummary.go index a803a18a26..22480f640b 100644 --- a/typedapi/esdsl/componenttemplatesummary.go +++ b/typedapi/esdsl/componenttemplatesummary.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _componentTemplateSummary struct { v *types.ComponentTemplateSummary diff --git a/typedapi/esdsl/compositeaggregatekey.go b/typedapi/esdsl/compositeaggregatekey.go index c07c23b508..6ca1768adb 100644 --- a/typedapi/esdsl/compositeaggregatekey.go +++ b/typedapi/esdsl/compositeaggregatekey.go @@ -16,19 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _compositeAggregateKey struct { v types.CompositeAggregateKey } -func NewCompositeAggregateKey(compositeaggregatekey types.FieldValueVariant) *_compositeAggregateKey { - return &_compositeAggregateKey{v: make(map[string]types.FieldValue, 0)} +func NewCompositeAggregateKey(compositeaggregatekey map[string]types.FieldValue) *_compositeAggregateKey { + return &_compositeAggregateKey{v: compositeaggregatekey} } func (u *_compositeAggregateKey) CompositeAggregateKeyCaster() *types.CompositeAggregateKey { diff --git a/typedapi/esdsl/compositeaggregation.go b/typedapi/esdsl/compositeaggregation.go index 2240a5e85f..48fda071bf 100644 --- a/typedapi/esdsl/compositeaggregation.go +++ b/typedapi/esdsl/compositeaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _compositeAggregation struct { v *types.CompositeAggregation @@ -37,8 +37,6 @@ func NewCompositeAggregation() *_compositeAggregation { } -// When paginating, use the `after_key` value returned in the previous response -// to retrieve the next page. func (s *_compositeAggregation) After(compositeaggregatekey types.CompositeAggregateKeyVariant) *_compositeAggregation { s.v.After = *compositeaggregatekey.CompositeAggregateKeyCaster() @@ -46,7 +44,6 @@ func (s *_compositeAggregation) After(compositeaggregatekey types.CompositeAggre return s } -// The number of composite buckets that should be returned. func (s *_compositeAggregation) Size(size int) *_compositeAggregation { s.v.Size = &size @@ -54,8 +51,6 @@ func (s *_compositeAggregation) Size(size int) *_compositeAggregation { return s } -// The value sources used to build composite buckets. -// Keys are returned in the order of the `sources` definition. func (s *_compositeAggregation) Sources(sources []map[string]types.CompositeAggregationSource) *_compositeAggregation { s.v.Sources = sources diff --git a/typedapi/esdsl/compositeaggregationsource.go b/typedapi/esdsl/compositeaggregationsource.go index 1331710044..70c93bcdbc 100644 --- a/typedapi/esdsl/compositeaggregationsource.go +++ b/typedapi/esdsl/compositeaggregationsource.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _compositeAggregationSource struct { v *types.CompositeAggregationSource @@ -32,7 +32,6 @@ func NewCompositeAggregationSource() *_compositeAggregationSource { } -// A date histogram aggregation. func (s *_compositeAggregationSource) DateHistogram(datehistogram types.CompositeDateHistogramAggregationVariant) *_compositeAggregationSource { s.v.DateHistogram = datehistogram.CompositeDateHistogramAggregationCaster() @@ -40,7 +39,6 @@ func (s *_compositeAggregationSource) DateHistogram(datehistogram types.Composit return s } -// A geotile grid aggregation. func (s *_compositeAggregationSource) GeotileGrid(geotilegrid types.CompositeGeoTileGridAggregationVariant) *_compositeAggregationSource { s.v.GeotileGrid = geotilegrid.CompositeGeoTileGridAggregationCaster() @@ -48,7 +46,6 @@ func (s *_compositeAggregationSource) GeotileGrid(geotilegrid types.CompositeGeo return s } -// A histogram aggregation. func (s *_compositeAggregationSource) Histogram(histogram types.CompositeHistogramAggregationVariant) *_compositeAggregationSource { s.v.Histogram = histogram.CompositeHistogramAggregationCaster() @@ -56,7 +53,6 @@ func (s *_compositeAggregationSource) Histogram(histogram types.CompositeHistogr return s } -// A terms aggregation. func (s *_compositeAggregationSource) Terms(terms types.CompositeTermsAggregationVariant) *_compositeAggregationSource { s.v.Terms = terms.CompositeTermsAggregationCaster() diff --git a/typedapi/esdsl/compositedatehistogramaggregation.go b/typedapi/esdsl/compositedatehistogramaggregation.go index 2c6d35ee7d..9016ddc393 100644 --- a/typedapi/esdsl/compositedatehistogramaggregation.go +++ b/typedapi/esdsl/compositedatehistogramaggregation.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/missingorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/valuetype" ) type _compositeDateHistogramAggregation struct { @@ -37,7 +37,6 @@ func NewCompositeDateHistogramAggregation() *_compositeDateHistogramAggregation } -// Either `calendar_interval` or `fixed_interval` must be present func (s *_compositeDateHistogramAggregation) CalendarInterval(durationlarge string) *_compositeDateHistogramAggregation { s.v.CalendarInterval = &durationlarge @@ -45,7 +44,6 @@ func (s *_compositeDateHistogramAggregation) CalendarInterval(durationlarge stri return s } -// Either `field` or `script` must be present func (s *_compositeDateHistogramAggregation) Field(field string) *_compositeDateHistogramAggregation { s.v.Field = &field @@ -53,7 +51,6 @@ func (s *_compositeDateHistogramAggregation) Field(field string) *_compositeDate return s } -// Either `calendar_interval` or `fixed_interval` must be present func (s *_compositeDateHistogramAggregation) FixedInterval(durationlarge string) *_compositeDateHistogramAggregation { s.v.FixedInterval = &durationlarge @@ -94,7 +91,6 @@ func (s *_compositeDateHistogramAggregation) Order(order sortorder.SortOrder) *_ return s } -// Either `field` or `script` must be present func (s *_compositeDateHistogramAggregation) Script(script types.ScriptVariant) *_compositeDateHistogramAggregation { s.v.Script = script.ScriptCaster() diff --git a/typedapi/esdsl/compositegeotilegridaggregation.go b/typedapi/esdsl/compositegeotilegridaggregation.go index 8bde7bcccc..08700abfb4 100644 --- a/typedapi/esdsl/compositegeotilegridaggregation.go +++ b/typedapi/esdsl/compositegeotilegridaggregation.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/missingorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/valuetype" ) type _compositeGeoTileGridAggregation struct { @@ -44,7 +44,6 @@ func (s *_compositeGeoTileGridAggregation) Bounds(geobounds types.GeoBoundsVaria return s } -// Either `field` or `script` must be present func (s *_compositeGeoTileGridAggregation) Field(field string) *_compositeGeoTileGridAggregation { s.v.Field = &field @@ -78,7 +77,6 @@ func (s *_compositeGeoTileGridAggregation) Precision(precision int) *_compositeG return s } -// Either `field` or `script` must be present func (s *_compositeGeoTileGridAggregation) Script(script types.ScriptVariant) *_compositeGeoTileGridAggregation { s.v.Script = script.ScriptCaster() diff --git a/typedapi/esdsl/compositehistogramaggregation.go b/typedapi/esdsl/compositehistogramaggregation.go index 47b8b5bea7..547497e564 100644 --- a/typedapi/esdsl/compositehistogramaggregation.go +++ b/typedapi/esdsl/compositehistogramaggregation.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/missingorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/valuetype" ) type _compositeHistogramAggregation struct { @@ -41,7 +41,6 @@ func NewCompositeHistogramAggregation(interval types.Float64) *_compositeHistogr } -// Either `field` or `script` must be present func (s *_compositeHistogramAggregation) Field(field string) *_compositeHistogramAggregation { s.v.Field = &field @@ -75,7 +74,6 @@ func (s *_compositeHistogramAggregation) Order(order sortorder.SortOrder) *_comp return s } -// Either `field` or `script` must be present func (s *_compositeHistogramAggregation) Script(script types.ScriptVariant) *_compositeHistogramAggregation { s.v.Script = script.ScriptCaster() diff --git a/typedapi/esdsl/compositesubfield.go b/typedapi/esdsl/compositesubfield.go index 1d4397e1b5..952ac8e6b4 100644 --- a/typedapi/esdsl/compositesubfield.go +++ b/typedapi/esdsl/compositesubfield.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/runtimefieldtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/runtimefieldtype" ) type _compositeSubField struct { diff --git a/typedapi/esdsl/compositetermsaggregation.go b/typedapi/esdsl/compositetermsaggregation.go index 693f561e1b..0055f8b5b3 100644 --- a/typedapi/esdsl/compositetermsaggregation.go +++ b/typedapi/esdsl/compositetermsaggregation.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/missingorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/valuetype" ) type _compositeTermsAggregation struct { @@ -37,7 +37,6 @@ func NewCompositeTermsAggregation() *_compositeTermsAggregation { } -// Either `field` or `script` must be present func (s *_compositeTermsAggregation) Field(field string) *_compositeTermsAggregation { s.v.Field = &field @@ -64,7 +63,6 @@ func (s *_compositeTermsAggregation) Order(order sortorder.SortOrder) *_composit return s } -// Either `field` or `script` must be present func (s *_compositeTermsAggregation) Script(script types.ScriptVariant) *_compositeTermsAggregation { s.v.Script = script.ScriptCaster() diff --git a/typedapi/esdsl/conditiontokenfilter.go b/typedapi/esdsl/conditiontokenfilter.go index adde793c97..7fe9002331 100644 --- a/typedapi/esdsl/conditiontokenfilter.go +++ b/typedapi/esdsl/conditiontokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _conditionTokenFilter struct { v *types.ConditionTokenFilter diff --git a/typedapi/esdsl/configuration.go b/typedapi/esdsl/configuration.go index fd33a68196..6dee0d023c 100644 --- a/typedapi/esdsl/configuration.go +++ b/typedapi/esdsl/configuration.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _configuration struct { v *types.Configuration @@ -32,15 +32,6 @@ func NewConfiguration() *_configuration { } -// 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 -// retrieved using the get features API. -// Each feature state includes one or more system indices containing data -// necessary for the function of that feature. Providing an empty array will -// include no feature states in the snapshot, regardless of the value of -// include_global_state. By default, all available feature states will be -// included in the snapshot if include_global_state is true, or no feature -// states if include_global_state is false. func (s *_configuration) FeatureStates(featurestates ...string) *_configuration { for _, v := range featurestates { @@ -51,9 +42,6 @@ func (s *_configuration) FeatureStates(featurestates ...string) *_configuration return s } -// If false, the snapshot fails if any data stream or index in indices is -// missing or closed. If true, the snapshot ignores missing or closed data -// streams and indices. func (s *_configuration) IgnoreUnavailable(ignoreunavailable bool) *_configuration { s.v.IgnoreUnavailable = &ignoreunavailable @@ -61,7 +49,6 @@ func (s *_configuration) IgnoreUnavailable(ignoreunavailable bool) *_configurati return s } -// If true, the current global state is included in the snapshot. func (s *_configuration) IncludeGlobalState(includeglobalstate bool) *_configuration { s.v.IncludeGlobalState = &includeglobalstate @@ -69,11 +56,6 @@ func (s *_configuration) IncludeGlobalState(includeglobalstate bool) *_configura return s } -// A comma-separated list of data streams and indices to include in the -// snapshot. Multi-index syntax is supported. -// By default, a snapshot includes all data streams and indices in the cluster. -// If this argument is provided, the snapshot only includes the specified data -// streams and clusters. func (s *_configuration) Indices(indices ...string) *_configuration { s.v.Indices = indices @@ -81,9 +63,6 @@ func (s *_configuration) Indices(indices ...string) *_configuration { return s } -// Attaches arbitrary metadata to the snapshot, such as a record of who took the -// snapshot, why it was taken, or any other useful data. Metadata must be less -// than 1024 bytes. func (s *_configuration) Metadata(metadata types.MetadataVariant) *_configuration { s.v.Metadata = *metadata.MetadataCaster() @@ -91,8 +70,6 @@ func (s *_configuration) Metadata(metadata types.MetadataVariant) *_configuratio return s } -// If false, the entire snapshot will fail if one or more indices included in -// the snapshot do not have all primary shards available. func (s *_configuration) Partial(partial bool) *_configuration { s.v.Partial = &partial diff --git a/typedapi/esdsl/connectorconfigproperties.go b/typedapi/esdsl/connectorconfigproperties.go index 2a3a0a9ca2..42ed6b1451 100644 --- a/typedapi/esdsl/connectorconfigproperties.go +++ b/typedapi/esdsl/connectorconfigproperties.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorfieldtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/displaytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/connectorfieldtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/displaytype" ) type _connectorConfigProperties struct { diff --git a/typedapi/esdsl/connectorconfiguration.go b/typedapi/esdsl/connectorconfiguration.go index fd7064c340..99fea3a3f1 100644 --- a/typedapi/esdsl/connectorconfiguration.go +++ b/typedapi/esdsl/connectorconfiguration.go @@ -16,19 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _connectorConfiguration struct { v types.ConnectorConfiguration } -func NewConnectorConfiguration(connectorconfiguration types.ConnectorConfigPropertiesVariant) *_connectorConfiguration { - return &_connectorConfiguration{v: make(map[string]types.ConnectorConfigProperties, 0)} +func NewConnectorConfiguration(connectorconfiguration map[string]types.ConnectorConfigProperties) *_connectorConfiguration { + return &_connectorConfiguration{v: connectorconfiguration} } func (u *_connectorConfiguration) ConnectorConfigurationCaster() *types.ConnectorConfiguration { diff --git a/typedapi/esdsl/connectorfeatures.go b/typedapi/esdsl/connectorfeatures.go index 27bcfe0c7b..725a988c7b 100644 --- a/typedapi/esdsl/connectorfeatures.go +++ b/typedapi/esdsl/connectorfeatures.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _connectorFeatures struct { v *types.ConnectorFeatures @@ -32,7 +32,6 @@ func NewConnectorFeatures() *_connectorFeatures { } -// Indicates whether document-level security is enabled. func (s *_connectorFeatures) DocumentLevelSecurity(documentlevelsecurity types.FeatureEnabledVariant) *_connectorFeatures { s.v.DocumentLevelSecurity = documentlevelsecurity.FeatureEnabledCaster() @@ -40,7 +39,6 @@ func (s *_connectorFeatures) DocumentLevelSecurity(documentlevelsecurity types.F return s } -// Indicates whether incremental syncs are enabled. func (s *_connectorFeatures) IncrementalSync(incrementalsync types.FeatureEnabledVariant) *_connectorFeatures { s.v.IncrementalSync = incrementalsync.FeatureEnabledCaster() @@ -48,7 +46,6 @@ func (s *_connectorFeatures) IncrementalSync(incrementalsync types.FeatureEnable return s } -// Indicates whether managed connector API keys are enabled. func (s *_connectorFeatures) NativeConnectorApiKeys(nativeconnectorapikeys types.FeatureEnabledVariant) *_connectorFeatures { s.v.NativeConnectorApiKeys = nativeconnectorapikeys.FeatureEnabledCaster() diff --git a/typedapi/esdsl/connectorscheduling.go b/typedapi/esdsl/connectorscheduling.go index 0cc2238210..ae789ef546 100644 --- a/typedapi/esdsl/connectorscheduling.go +++ b/typedapi/esdsl/connectorscheduling.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _connectorScheduling struct { v *types.ConnectorScheduling @@ -45,7 +45,6 @@ func (s *_connectorScheduling) Enabled(enabled bool) *_connectorScheduling { return s } -// The interval is expressed using the crontab syntax func (s *_connectorScheduling) Interval(interval string) *_connectorScheduling { s.v.Interval = interval diff --git a/typedapi/esdsl/constantkeywordproperty.go b/typedapi/esdsl/constantkeywordproperty.go index f859787b79..e2a3ea50f0 100644 --- a/typedapi/esdsl/constantkeywordproperty.go +++ b/typedapi/esdsl/constantkeywordproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _constantKeywordProperty struct { @@ -72,7 +72,6 @@ func (s *_constantKeywordProperty) IgnoreAbove(ignoreabove int) *_constantKeywor return s } -// Metadata about the field. func (s *_constantKeywordProperty) Meta(meta map[string]string) *_constantKeywordProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/constantscorequery.go b/typedapi/esdsl/constantscorequery.go index 32a577dae0..aaa0508d8f 100644 --- a/typedapi/esdsl/constantscorequery.go +++ b/typedapi/esdsl/constantscorequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _constantScoreQuery struct { v *types.ConstantScoreQuery @@ -38,11 +38,6 @@ func NewConstantScoreQuery(filter types.QueryVariant) *_constantScoreQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_constantScoreQuery) Boost(boost float32) *_constantScoreQuery { s.v.Boost = &boost @@ -50,10 +45,6 @@ func (s *_constantScoreQuery) Boost(boost float32) *_constantScoreQuery { return s } -// Filter query you wish to run. Any returned documents must match this query. -// Filter queries do not calculate relevance scores. -// To speed up performance, Elasticsearch automatically caches frequently used -// filter queries. func (s *_constantScoreQuery) Filter(filter types.QueryVariant) *_constantScoreQuery { s.v.Filter = *filter.QueryCaster() diff --git a/typedapi/esdsl/contentobject.go b/typedapi/esdsl/contentobject.go index 63f87f37fc..3247901589 100644 --- a/typedapi/esdsl/contentobject.go +++ b/typedapi/esdsl/contentobject.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _contentObject struct { v *types.ContentObject @@ -38,7 +38,6 @@ func NewContentObject(text string, type_ string) *_contentObject { } -// The text content. func (s *_contentObject) Text(text string) *_contentObject { s.v.Text = text @@ -46,7 +45,6 @@ func (s *_contentObject) Text(text string) *_contentObject { return s } -// The type of content. func (s *_contentObject) Type(type_ string) *_contentObject { s.v.Type = type_ diff --git a/typedapi/esdsl/context.go b/typedapi/esdsl/context.go index 7e0e1c4a81..3c968fce1c 100644 --- a/typedapi/esdsl/context.go +++ b/typedapi/esdsl/context.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _context struct { diff --git a/typedapi/esdsl/convertprocessor.go b/typedapi/esdsl/convertprocessor.go index f23c7e40ac..793b79b4d4 100644 --- a/typedapi/esdsl/convertprocessor.go +++ b/typedapi/esdsl/convertprocessor.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/converttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/converttype" ) type _convertProcessor struct { @@ -42,8 +42,6 @@ func NewConvertProcessor(type_ converttype.ConvertType) *_convertProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_convertProcessor) Description(description string) *_convertProcessor { s.v.Description = &description @@ -51,7 +49,6 @@ func (s *_convertProcessor) Description(description string) *_convertProcessor { return s } -// The field whose value is to be converted. func (s *_convertProcessor) Field(field string) *_convertProcessor { s.v.Field = field @@ -59,7 +56,6 @@ func (s *_convertProcessor) Field(field string) *_convertProcessor { return s } -// Conditionally execute the processor. func (s *_convertProcessor) If(if_ types.ScriptVariant) *_convertProcessor { s.v.If = if_.ScriptCaster() @@ -67,7 +63,6 @@ func (s *_convertProcessor) If(if_ types.ScriptVariant) *_convertProcessor { return s } -// Ignore failures for the processor. func (s *_convertProcessor) IgnoreFailure(ignorefailure bool) *_convertProcessor { s.v.IgnoreFailure = &ignorefailure @@ -75,8 +70,6 @@ func (s *_convertProcessor) IgnoreFailure(ignorefailure bool) *_convertProcessor return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document. func (s *_convertProcessor) IgnoreMissing(ignoremissing bool) *_convertProcessor { s.v.IgnoreMissing = &ignoremissing @@ -84,7 +77,6 @@ func (s *_convertProcessor) IgnoreMissing(ignoremissing bool) *_convertProcessor return s } -// Handle failures for the processor. func (s *_convertProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_convertProcessor { for _, v := range onfailures { @@ -95,8 +87,6 @@ func (s *_convertProcessor) OnFailure(onfailures ...types.ProcessorContainerVari return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_convertProcessor) Tag(tag string) *_convertProcessor { s.v.Tag = &tag @@ -104,8 +94,6 @@ func (s *_convertProcessor) Tag(tag string) *_convertProcessor { return s } -// The field to assign the converted value to. -// By default, the `field` is updated in-place. func (s *_convertProcessor) TargetField(field string) *_convertProcessor { s.v.TargetField = &field @@ -113,7 +101,6 @@ func (s *_convertProcessor) TargetField(field string) *_convertProcessor { return s } -// The type to convert the existing value to. func (s *_convertProcessor) Type(type_ converttype.ConvertType) *_convertProcessor { s.v.Type = type_ diff --git a/typedapi/esdsl/coordsgeobounds.go b/typedapi/esdsl/coordsgeobounds.go index 5383612b01..69a646b397 100644 --- a/typedapi/esdsl/coordsgeobounds.go +++ b/typedapi/esdsl/coordsgeobounds.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _coordsGeoBounds struct { v *types.CoordsGeoBounds diff --git a/typedapi/esdsl/coreknnquery.go b/typedapi/esdsl/coreknnquery.go index bfb9748aad..73d8c44efc 100644 --- a/typedapi/esdsl/coreknnquery.go +++ b/typedapi/esdsl/coreknnquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _coreKnnQuery struct { v *types.CoreKnnQuery @@ -38,7 +38,6 @@ func NewCoreKnnQuery(k int, numcandidates int) *_coreKnnQuery { } -// The name of the vector field to search against func (s *_coreKnnQuery) Field(field string) *_coreKnnQuery { s.v.Field = field @@ -46,7 +45,6 @@ func (s *_coreKnnQuery) Field(field string) *_coreKnnQuery { return s } -// The final number of nearest neighbors to return as top hits func (s *_coreKnnQuery) K(k int) *_coreKnnQuery { s.v.K = k @@ -54,7 +52,6 @@ func (s *_coreKnnQuery) K(k int) *_coreKnnQuery { return s } -// The number of nearest neighbor candidates to consider per shard func (s *_coreKnnQuery) NumCandidates(numcandidates int) *_coreKnnQuery { s.v.NumCandidates = numcandidates @@ -62,7 +59,6 @@ func (s *_coreKnnQuery) NumCandidates(numcandidates int) *_coreKnnQuery { return s } -// The query vector func (s *_coreKnnQuery) QueryVector(queryvectors ...float32) *_coreKnnQuery { s.v.QueryVector = queryvectors diff --git a/typedapi/esdsl/countedkeywordproperty.go b/typedapi/esdsl/countedkeywordproperty.go index 4a6a0a6e22..c26c39f9d4 100644 --- a/typedapi/esdsl/countedkeywordproperty.go +++ b/typedapi/esdsl/countedkeywordproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _countedKeywordProperty struct { @@ -77,7 +77,6 @@ func (s *_countedKeywordProperty) Index(index bool) *_countedKeywordProperty { return s } -// Metadata about the field. func (s *_countedKeywordProperty) Meta(meta map[string]string) *_countedKeywordProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/createfrom.go b/typedapi/esdsl/createfrom.go index af56397174..6a9475d27f 100644 --- a/typedapi/esdsl/createfrom.go +++ b/typedapi/esdsl/createfrom.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _createFrom struct { v *types.CreateFrom @@ -32,7 +32,6 @@ func NewCreateFrom() *_createFrom { } -// Mappings overrides to be applied to the destination index (optional) func (s *_createFrom) MappingsOverride(mappingsoverride types.TypeMappingVariant) *_createFrom { s.v.MappingsOverride = mappingsoverride.TypeMappingCaster() @@ -40,7 +39,6 @@ func (s *_createFrom) MappingsOverride(mappingsoverride types.TypeMappingVariant return s } -// If index blocks should be removed when creating destination index (optional) func (s *_createFrom) RemoveIndexBlocks(removeindexblocks bool) *_createFrom { s.v.RemoveIndexBlocks = &removeindexblocks @@ -48,7 +46,6 @@ func (s *_createFrom) RemoveIndexBlocks(removeindexblocks bool) *_createFrom { return s } -// Settings overrides to be applied to the destination index (optional) func (s *_createFrom) SettingsOverride(settingsoverride types.IndexSettingsVariant) *_createFrom { s.v.SettingsOverride = settingsoverride.IndexSettingsCaster() diff --git a/typedapi/esdsl/createoperation.go b/typedapi/esdsl/createoperation.go index 9de5c7023b..c4055c5d7c 100644 --- a/typedapi/esdsl/createoperation.go +++ b/typedapi/esdsl/createoperation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) type _createOperation struct { @@ -37,12 +37,6 @@ func NewCreateOperation() *_createOperation { } -// A map from the full name of fields to the name of dynamic templates. -// It defaults to an empty map. -// If a name matches a dynamic template, that template will be applied -// regardless of other match predicates defined in the template. -// If a field is already defined in the mapping, then this parameter won't be -// used. func (s *_createOperation) DynamicTemplates(dynamictemplates map[string]string) *_createOperation { s.v.DynamicTemplates = dynamictemplates @@ -64,7 +58,6 @@ func (s *_createOperation) AddDynamicTemplate(key string, value string) *_create return s } -// The document ID. func (s *_createOperation) Id_(id string) *_createOperation { s.v.Id_ = &id @@ -86,7 +79,6 @@ func (s *_createOperation) IfSeqNo(sequencenumber int64) *_createOperation { return s } -// The name of the index or index alias to perform the action on. func (s *_createOperation) Index_(indexname string) *_createOperation { s.v.Index_ = &indexname @@ -94,11 +86,6 @@ func (s *_createOperation) Index_(indexname string) *_createOperation { return s } -// 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. -// If a final pipeline is configured, it will always run regardless of the value -// of this parameter. func (s *_createOperation) Pipeline(pipeline string) *_createOperation { s.v.Pipeline = &pipeline @@ -106,7 +93,6 @@ func (s *_createOperation) Pipeline(pipeline string) *_createOperation { return s } -// If `true`, the request's actions must target an index alias. func (s *_createOperation) RequireAlias(requirealias bool) *_createOperation { s.v.RequireAlias = &requirealias @@ -114,7 +100,6 @@ func (s *_createOperation) RequireAlias(requirealias bool) *_createOperation { return s } -// A custom value used to route operations to a specific shard. func (s *_createOperation) Routing(routing string) *_createOperation { s.v.Routing = &routing diff --git a/typedapi/esdsl/csvprocessor.go b/typedapi/esdsl/csvprocessor.go index 4bc9376781..a902ee208a 100644 --- a/typedapi/esdsl/csvprocessor.go +++ b/typedapi/esdsl/csvprocessor.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _csvProcessor struct { @@ -38,8 +38,6 @@ func NewCsvProcessor() *_csvProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_csvProcessor) Description(description string) *_csvProcessor { s.v.Description = &description @@ -47,10 +45,6 @@ func (s *_csvProcessor) Description(description string) *_csvProcessor { return s } -// Value used to fill empty fields. -// Empty fields are skipped if this is not provided. -// An empty field is one with no value (2 consecutive separators) or empty -// quotes (`""`). func (s *_csvProcessor) EmptyValue(emptyvalue json.RawMessage) *_csvProcessor { s.v.EmptyValue = emptyvalue @@ -58,7 +52,6 @@ func (s *_csvProcessor) EmptyValue(emptyvalue json.RawMessage) *_csvProcessor { return s } -// The field to extract data from. func (s *_csvProcessor) Field(field string) *_csvProcessor { s.v.Field = field @@ -66,7 +59,6 @@ func (s *_csvProcessor) Field(field string) *_csvProcessor { return s } -// Conditionally execute the processor. func (s *_csvProcessor) If(if_ types.ScriptVariant) *_csvProcessor { s.v.If = if_.ScriptCaster() @@ -74,7 +66,6 @@ func (s *_csvProcessor) If(if_ types.ScriptVariant) *_csvProcessor { return s } -// Ignore failures for the processor. func (s *_csvProcessor) IgnoreFailure(ignorefailure bool) *_csvProcessor { s.v.IgnoreFailure = &ignorefailure @@ -82,8 +73,6 @@ func (s *_csvProcessor) IgnoreFailure(ignorefailure bool) *_csvProcessor { return s } -// If `true` and `field` does not exist, the processor quietly exits without -// modifying the document. func (s *_csvProcessor) IgnoreMissing(ignoremissing bool) *_csvProcessor { s.v.IgnoreMissing = &ignoremissing @@ -91,7 +80,6 @@ func (s *_csvProcessor) IgnoreMissing(ignoremissing bool) *_csvProcessor { return s } -// Handle failures for the processor. func (s *_csvProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_csvProcessor { for _, v := range onfailures { @@ -102,7 +90,6 @@ func (s *_csvProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) return s } -// Quote used in CSV, has to be single character string. func (s *_csvProcessor) Quote(quote string) *_csvProcessor { s.v.Quote = "e @@ -110,7 +97,6 @@ func (s *_csvProcessor) Quote(quote string) *_csvProcessor { return s } -// Separator used in CSV, has to be single character string. func (s *_csvProcessor) Separator(separator string) *_csvProcessor { s.v.Separator = &separator @@ -118,8 +104,6 @@ func (s *_csvProcessor) Separator(separator string) *_csvProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_csvProcessor) Tag(tag string) *_csvProcessor { s.v.Tag = &tag @@ -127,7 +111,6 @@ func (s *_csvProcessor) Tag(tag string) *_csvProcessor { return s } -// The array of fields to assign extracted values to. func (s *_csvProcessor) TargetFields(fields ...string) *_csvProcessor { s.v.TargetFields = fields @@ -135,7 +118,6 @@ func (s *_csvProcessor) TargetFields(fields ...string) *_csvProcessor { return s } -// Trim whitespaces in unquoted fields. func (s *_csvProcessor) Trim(trim bool) *_csvProcessor { s.v.Trim = &trim diff --git a/typedapi/esdsl/cumulativecardinalityaggregation.go b/typedapi/esdsl/cumulativecardinalityaggregation.go index 0d38da64ca..fa8596fae3 100644 --- a/typedapi/esdsl/cumulativecardinalityaggregation.go +++ b/typedapi/esdsl/cumulativecardinalityaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _cumulativeCardinalityAggregation struct { @@ -37,7 +37,6 @@ func NewCumulativeCardinalityAggregation() *_cumulativeCardinalityAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_cumulativeCardinalityAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_cumulativeCardinalityAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_cumulativeCardinalityAggregation) BucketsPath(bucketspath types.Bucket return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_cumulativeCardinalityAggregation) Format(format string) *_cumulativeCardinalityAggregation { s.v.Format = &format @@ -55,7 +51,6 @@ func (s *_cumulativeCardinalityAggregation) Format(format string) *_cumulativeCa return s } -// Policy to apply when gaps are found in the data. func (s *_cumulativeCardinalityAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_cumulativeCardinalityAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/cumulativesumaggregation.go b/typedapi/esdsl/cumulativesumaggregation.go index 0978e719e9..8929fbb322 100644 --- a/typedapi/esdsl/cumulativesumaggregation.go +++ b/typedapi/esdsl/cumulativesumaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _cumulativeSumAggregation struct { @@ -37,7 +37,6 @@ func NewCumulativeSumAggregation() *_cumulativeSumAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_cumulativeSumAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_cumulativeSumAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_cumulativeSumAggregation) BucketsPath(bucketspath types.BucketsPathVar return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_cumulativeSumAggregation) Format(format string) *_cumulativeSumAggregation { s.v.Format = &format @@ -55,7 +51,6 @@ func (s *_cumulativeSumAggregation) Format(format string) *_cumulativeSumAggrega return s } -// Policy to apply when gaps are found in the data. func (s *_cumulativeSumAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_cumulativeSumAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/customanalyzer.go b/typedapi/esdsl/customanalyzer.go index cc053b7957..d87c67d3cd 100644 --- a/typedapi/esdsl/customanalyzer.go +++ b/typedapi/esdsl/customanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _customAnalyzer struct { v *types.CustomAnalyzer diff --git a/typedapi/esdsl/customcategorizetextanalyzer.go b/typedapi/esdsl/customcategorizetextanalyzer.go index 334ff4ab8f..9841fe7202 100644 --- a/typedapi/esdsl/customcategorizetextanalyzer.go +++ b/typedapi/esdsl/customcategorizetextanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _customCategorizeTextAnalyzer struct { v *types.CustomCategorizeTextAnalyzer diff --git a/typedapi/esdsl/customnormalizer.go b/typedapi/esdsl/customnormalizer.go index c39232f93a..3787abeab7 100644 --- a/typedapi/esdsl/customnormalizer.go +++ b/typedapi/esdsl/customnormalizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _customNormalizer struct { v *types.CustomNormalizer diff --git a/typedapi/esdsl/czechanalyzer.go b/typedapi/esdsl/czechanalyzer.go index f408168493..e4d3684ffd 100644 --- a/typedapi/esdsl/czechanalyzer.go +++ b/typedapi/esdsl/czechanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _czechAnalyzer struct { v *types.CzechAnalyzer diff --git a/typedapi/esdsl/dailyschedule.go b/typedapi/esdsl/dailyschedule.go index 62562f182b..1fbd1d19f1 100644 --- a/typedapi/esdsl/dailyschedule.go +++ b/typedapi/esdsl/dailyschedule.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dailySchedule struct { v *types.DailySchedule diff --git a/typedapi/esdsl/danishanalyzer.go b/typedapi/esdsl/danishanalyzer.go index 42a7874e2f..fce85ba806 100644 --- a/typedapi/esdsl/danishanalyzer.go +++ b/typedapi/esdsl/danishanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _danishAnalyzer struct { v *types.DanishAnalyzer diff --git a/typedapi/esdsl/databaseconfiguration.go b/typedapi/esdsl/databaseconfiguration.go index 2667da50a1..32f0a51aeb 100644 --- a/typedapi/esdsl/databaseconfiguration.go +++ b/typedapi/esdsl/databaseconfiguration.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _databaseConfiguration struct { @@ -60,7 +60,6 @@ func (s *_databaseConfiguration) Maxmind(maxmind types.MaxmindVariant) *_databas return s } -// The provider-assigned name of the IP geolocation database to download. func (s *_databaseConfiguration) Name(name string) *_databaseConfiguration { s.v.Name = name diff --git a/typedapi/esdsl/datadescription.go b/typedapi/esdsl/datadescription.go index 1442dbbf25..a2799d33d9 100644 --- a/typedapi/esdsl/datadescription.go +++ b/typedapi/esdsl/datadescription.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataDescription struct { v *types.DataDescription @@ -39,7 +39,6 @@ func (s *_dataDescription) FieldDelimiter(fielddelimiter string) *_dataDescripti return s } -// Only JSON format is supported at this time. func (s *_dataDescription) Format(format string) *_dataDescription { s.v.Format = &format @@ -47,7 +46,6 @@ func (s *_dataDescription) Format(format string) *_dataDescription { return s } -// The name of the field that contains the timestamp. func (s *_dataDescription) TimeField(field string) *_dataDescription { s.v.TimeField = &field @@ -55,15 +53,6 @@ func (s *_dataDescription) TimeField(field string) *_dataDescription { return s } -// The time format, which can be `epoch`, `epoch_ms`, or a custom pattern. The -// value `epoch` refers to UNIX or Epoch time (the number of seconds since 1 Jan -// 1970). The value `epoch_ms` indicates that time is measured in milliseconds -// since the epoch. The `epoch` and `epoch_ms` time formats accept either -// integer or real values. Custom patterns must conform to the Java -// DateTimeFormatter class. When you use date-time formatting patterns, it is -// recommended that you provide the full date, time and time zone. For example: -// `yyyy-MM-dd'T'HH:mm:ssX`. If the pattern that you specify is not sufficient -// to produce a complete timestamp, job creation fails. func (s *_dataDescription) TimeFormat(timeformat string) *_dataDescription { s.v.TimeFormat = &timeformat diff --git a/typedapi/esdsl/dataemailattachment.go b/typedapi/esdsl/dataemailattachment.go index 05d2724456..bb68c2b1cc 100644 --- a/typedapi/esdsl/dataemailattachment.go +++ b/typedapi/esdsl/dataemailattachment.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataattachmentformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dataattachmentformat" ) type _dataEmailAttachment struct { diff --git a/typedapi/esdsl/datafeedconfig.go b/typedapi/esdsl/datafeedconfig.go index 871be4b510..8923915038 100644 --- a/typedapi/esdsl/datafeedconfig.go +++ b/typedapi/esdsl/datafeedconfig.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _datafeedConfig struct { v *types.DatafeedConfig @@ -32,8 +32,6 @@ func NewDatafeedConfig() *_datafeedConfig { } -// If set, the datafeed performs aggregation searches. Support for aggregations -// is limited and should be used only with low cardinality data. func (s *_datafeedConfig) Aggregations(aggregations map[string]types.Aggregations) *_datafeedConfig { s.v.Aggregations = aggregations @@ -55,11 +53,6 @@ func (s *_datafeedConfig) AddAggregation(key string, value types.AggregationsVar return s } -// Datafeeds might be required to search over long time periods, for several -// months or years. This search is split into time chunks in order to ensure the -// load on Elasticsearch is managed. Chunking configuration controls how the -// size of these time chunks are calculated and is an advanced configuration -// option. func (s *_datafeedConfig) ChunkingConfig(chunkingconfig types.ChunkingConfigVariant) *_datafeedConfig { s.v.ChunkingConfig = chunkingconfig.ChunkingConfigCaster() @@ -67,10 +60,6 @@ func (s *_datafeedConfig) ChunkingConfig(chunkingconfig types.ChunkingConfigVari return s } -// A numerical character string that uniquely identifies the datafeed. This -// identifier can contain lowercase alphanumeric characters (a-z and 0-9), -// hyphens, and underscores. It must start and end with alphanumeric characters. -// The default value is the job identifier. func (s *_datafeedConfig) DatafeedId(id string) *_datafeedConfig { s.v.DatafeedId = &id @@ -78,13 +67,6 @@ func (s *_datafeedConfig) DatafeedId(id string) *_datafeedConfig { return s } -// Specifies whether the datafeed checks for missing data and the size of the -// window. The datafeed can optionally search over indices that have already -// been read in an effort to determine whether any data has subsequently been -// added to the index. If missing data is found, it is a good indication that -// the `query_delay` option is set too low and the data is being indexed after -// the datafeed has passed that moment in time. This check runs only on -// real-time datafeeds. func (s *_datafeedConfig) DelayedDataCheckConfig(delayeddatacheckconfig types.DelayedDataCheckConfigVariant) *_datafeedConfig { s.v.DelayedDataCheckConfig = delayeddatacheckconfig.DelayedDataCheckConfigCaster() @@ -92,14 +74,6 @@ func (s *_datafeedConfig) DelayedDataCheckConfig(delayeddatacheckconfig types.De return s } -// The interval at which scheduled queries are made while the datafeed runs in -// real time. The default value is either the bucket span for short bucket -// spans, or, for longer bucket spans, a sensible fraction of the bucket span. -// For example: `150s`. When `frequency` is shorter than the bucket span, -// interim results for the last (partial) bucket are written then eventually -// overwritten by the full bucket results. If the datafeed uses aggregations, -// this value must be divisible by the interval of the date histogram -// aggregation. func (s *_datafeedConfig) Frequency(duration types.DurationVariant) *_datafeedConfig { s.v.Frequency = *duration.DurationCaster() @@ -107,9 +81,6 @@ func (s *_datafeedConfig) Frequency(duration types.DurationVariant) *_datafeedCo return s } -// An array of index names. Wildcards are supported. If any indices are in -// remote clusters, the machine learning nodes must have the -// `remote_cluster_client` role. func (s *_datafeedConfig) Indices(indices ...string) *_datafeedConfig { s.v.Indices = indices @@ -117,7 +88,6 @@ func (s *_datafeedConfig) Indices(indices ...string) *_datafeedConfig { return s } -// Specifies index expansion options that are used during search. func (s *_datafeedConfig) IndicesOptions(indicesoptions types.IndicesOptionsVariant) *_datafeedConfig { s.v.IndicesOptions = indicesoptions.IndicesOptionsCaster() @@ -132,12 +102,6 @@ func (s *_datafeedConfig) JobId(id string) *_datafeedConfig { return s } -// If a real-time datafeed has never seen any data (including during any initial -// training period) then it will automatically stop itself and close its -// associated job after this many real-time searches that return no documents. -// In other words, it will stop after `frequency` times `max_empty_searches` of -// real-time operation. If not set then a datafeed with no end time that sees no -// data will remain started until it is explicitly stopped. func (s *_datafeedConfig) MaxEmptySearches(maxemptysearches int) *_datafeedConfig { s.v.MaxEmptySearches = &maxemptysearches @@ -145,10 +109,6 @@ func (s *_datafeedConfig) MaxEmptySearches(maxemptysearches int) *_datafeedConfi return s } -// The Elasticsearch query domain-specific language (DSL). This value -// corresponds to the query object in an Elasticsearch search POST body. All the -// options that are supported by Elasticsearch can be used, as this object is -// passed verbatim to Elasticsearch. func (s *_datafeedConfig) Query(query types.QueryVariant) *_datafeedConfig { s.v.Query = query.QueryCaster() @@ -156,11 +116,6 @@ func (s *_datafeedConfig) Query(query types.QueryVariant) *_datafeedConfig { return s } -// The number of seconds behind real time that data is queried. For example, if -// data from 10:04 a.m. might not be searchable in Elasticsearch until 10:06 -// a.m., set this property to 120 seconds. The default value is randomly -// selected between `60s` and `120s`. This randomness improves the query -// performance when there are multiple jobs running on the same node. func (s *_datafeedConfig) QueryDelay(duration types.DurationVariant) *_datafeedConfig { s.v.QueryDelay = *duration.DurationCaster() @@ -168,7 +123,6 @@ func (s *_datafeedConfig) QueryDelay(duration types.DurationVariant) *_datafeedC return s } -// Specifies runtime fields for the datafeed search. func (s *_datafeedConfig) RuntimeMappings(runtimefields types.RuntimeFieldsVariant) *_datafeedConfig { s.v.RuntimeMappings = *runtimefields.RuntimeFieldsCaster() @@ -176,9 +130,6 @@ func (s *_datafeedConfig) RuntimeMappings(runtimefields types.RuntimeFieldsVaria return s } -// Specifies scripts that evaluate custom expressions and returns script fields -// to the datafeed. The detector configuration objects in a job can contain -// functions that use these script fields. func (s *_datafeedConfig) ScriptFields(scriptfields map[string]types.ScriptField) *_datafeedConfig { s.v.ScriptFields = scriptfields @@ -200,9 +151,6 @@ func (s *_datafeedConfig) AddScriptField(key string, value types.ScriptFieldVari return s } -// The size parameter that is used in Elasticsearch searches when the datafeed -// does not use aggregations. The maximum value is the value of -// `index.max_result_window`, which is 10,000 by default. func (s *_datafeedConfig) ScrollSize(scrollsize int) *_datafeedConfig { s.v.ScrollSize = &scrollsize diff --git a/typedapi/esdsl/dataframeanalysisanalyzedfields.go b/typedapi/esdsl/dataframeanalysisanalyzedfields.go index 2e01a72b8b..4c62bf2b8b 100644 --- a/typedapi/esdsl/dataframeanalysisanalyzedfields.go +++ b/typedapi/esdsl/dataframeanalysisanalyzedfields.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeAnalysisAnalyzedFields struct { v *types.DataframeAnalysisAnalyzedFields @@ -32,8 +32,6 @@ func NewDataframeAnalysisAnalyzedFields() *_dataframeAnalysisAnalyzedFields { } -// An array of strings that defines the fields that will be included in the -// analysis. func (s *_dataframeAnalysisAnalyzedFields) Excludes(excludes ...string) *_dataframeAnalysisAnalyzedFields { for _, v := range excludes { @@ -44,9 +42,6 @@ func (s *_dataframeAnalysisAnalyzedFields) Excludes(excludes ...string) *_datafr return s } -// An array of strings that defines the fields that will be excluded from the -// analysis. You do not need to add fields with unsupported data types to -// excludes, these fields are excluded from the analysis automatically. func (s *_dataframeAnalysisAnalyzedFields) Includes(includes ...string) *_dataframeAnalysisAnalyzedFields { for _, v := range includes { diff --git a/typedapi/esdsl/dataframeanalysisclassification.go b/typedapi/esdsl/dataframeanalysisclassification.go index 22e9b988ee..276b0da413 100644 --- a/typedapi/esdsl/dataframeanalysisclassification.go +++ b/typedapi/esdsl/dataframeanalysisclassification.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeAnalysisClassification struct { v *types.DataframeAnalysisClassification @@ -37,12 +37,6 @@ func NewDataframeAnalysisClassification(dependentvariable string) *_dataframeAna } -// Advanced configuration option. Machine learning uses loss guided tree -// growing, which means that the decision trees grow where the regularized loss -// decreases most quickly. This parameter affects loss calculations by acting as -// a multiplier of the tree depth. Higher alpha values result in shallower trees -// and faster training times. By default, this value is calculated during -// hyperparameter optimization. It must be greater than or equal to zero. func (s *_dataframeAnalysisClassification) Alpha(alpha types.Float64) *_dataframeAnalysisClassification { s.v.Alpha = &alpha @@ -57,15 +51,6 @@ func (s *_dataframeAnalysisClassification) ClassAssignmentObjective(classassignm return s } -// Defines which field of the document is to be predicted. It must match one of -// the fields in the index being used to train. If this field is missing from a -// document, then that document will not be used for training, but a prediction -// with the trained model will be generated for it. It is also known as -// continuous target variable. -// For classification analysis, the data type of the field must be numeric -// (`integer`, `short`, `long`, `byte`), categorical (`ip` or `keyword`), or -// `boolean`. There must be no more than 30 different values in this field. -// For regression analysis, the data type of the field must be numeric. func (s *_dataframeAnalysisClassification) DependentVariable(dependentvariable string) *_dataframeAnalysisClassification { s.v.DependentVariable = dependentvariable @@ -73,13 +58,6 @@ func (s *_dataframeAnalysisClassification) DependentVariable(dependentvariable s return s } -// Advanced configuration option. Controls the fraction of data that is used to -// compute the derivatives of the loss function for tree training. A small value -// results in the use of a small fraction of the data. If this value is set to -// be less than 1, accuracy typically improves. However, too small a value may -// result in poor convergence for the ensemble and so require more trees. By -// default, this value is calculated during hyperparameter optimization. It must -// be greater than zero and less than or equal to 1. func (s *_dataframeAnalysisClassification) DownsampleFactor(downsamplefactor types.Float64) *_dataframeAnalysisClassification { s.v.DownsampleFactor = &downsamplefactor @@ -87,10 +65,6 @@ func (s *_dataframeAnalysisClassification) DownsampleFactor(downsamplefactor typ return s } -// Advanced configuration option. Specifies whether the training process should -// finish if it is not finding any better performing models. If disabled, the -// training process can take significantly longer and the chance of finding a -// better performing model is unremarkable. func (s *_dataframeAnalysisClassification) EarlyStoppingEnabled(earlystoppingenabled bool) *_dataframeAnalysisClassification { s.v.EarlyStoppingEnabled = &earlystoppingenabled @@ -98,11 +72,6 @@ func (s *_dataframeAnalysisClassification) EarlyStoppingEnabled(earlystoppingena return s } -// Advanced configuration option. The shrinkage applied to the weights. Smaller -// values result in larger forests which have a better generalization error. -// However, larger forests cause slower training. By default, this value is -// calculated during hyperparameter optimization. It must be a value between -// 0.001 and 1. func (s *_dataframeAnalysisClassification) Eta(eta types.Float64) *_dataframeAnalysisClassification { s.v.Eta = &eta @@ -110,10 +79,6 @@ func (s *_dataframeAnalysisClassification) Eta(eta types.Float64) *_dataframeAna return s } -// Advanced configuration option. Specifies the rate at which `eta` increases -// for each new tree that is added to the forest. For example, a rate of 1.05 -// increases `eta` by 5% for each extra tree. By default, this value is -// calculated during hyperparameter optimization. It must be between 0.5 and 2. func (s *_dataframeAnalysisClassification) EtaGrowthRatePerTree(etagrowthratepertree types.Float64) *_dataframeAnalysisClassification { s.v.EtaGrowthRatePerTree = &etagrowthratepertree @@ -121,9 +86,6 @@ func (s *_dataframeAnalysisClassification) EtaGrowthRatePerTree(etagrowthrateper return s } -// Advanced configuration option. Defines the fraction of features that will be -// used when selecting a random bag for each candidate split. By default, this -// value is calculated during hyperparameter optimization. func (s *_dataframeAnalysisClassification) FeatureBagFraction(featurebagfraction types.Float64) *_dataframeAnalysisClassification { s.v.FeatureBagFraction = &featurebagfraction @@ -131,15 +93,6 @@ func (s *_dataframeAnalysisClassification) FeatureBagFraction(featurebagfraction return s } -// Advanced configuration option. A collection of feature preprocessors that -// modify one or more included fields. The analysis uses the resulting one or -// more features instead of the original document field. However, these features -// are ephemeral; they are not stored in the destination index. Multiple -// `feature_processors` entries can refer to the same document fields. Automatic -// categorical feature encoding still occurs for the fields that are unprocessed -// by a custom processor or that have categorical values. Use this property only -// if you want to override the automatic feature encoding of the specified -// fields. func (s *_dataframeAnalysisClassification) FeatureProcessors(featureprocessors ...types.DataframeAnalysisFeatureProcessorVariant) *_dataframeAnalysisClassification { for _, v := range featureprocessors { @@ -150,12 +103,6 @@ func (s *_dataframeAnalysisClassification) FeatureProcessors(featureprocessors . return s } -// Advanced configuration option. Regularization parameter to prevent -// overfitting on the training data set. Multiplies a linear penalty associated -// with the size of individual trees in the forest. A high gamma value causes -// training to prefer small trees. A small gamma value results in larger -// individual trees and slower training. By default, this value is calculated -// during hyperparameter optimization. It must be a nonnegative value. func (s *_dataframeAnalysisClassification) Gamma(gamma types.Float64) *_dataframeAnalysisClassification { s.v.Gamma = &gamma @@ -163,15 +110,6 @@ func (s *_dataframeAnalysisClassification) Gamma(gamma types.Float64) *_datafram return s } -// Advanced configuration option. Regularization parameter to prevent -// overfitting on the training data set. Multiplies an L2 regularization term -// which applies to leaf weights of the individual trees in the forest. A high -// lambda value causes training to favor small leaf weights. This behavior makes -// the prediction function smoother at the expense of potentially not being able -// to capture relevant relationships between the features and the dependent -// variable. A small lambda value results in large individual trees and slower -// training. By default, this value is calculated during hyperparameter -// optimization. It must be a nonnegative value. func (s *_dataframeAnalysisClassification) Lambda(lambda types.Float64) *_dataframeAnalysisClassification { s.v.Lambda = &lambda @@ -179,12 +117,6 @@ func (s *_dataframeAnalysisClassification) Lambda(lambda types.Float64) *_datafr return s } -// Advanced configuration option. A multiplier responsible for determining the -// maximum number of hyperparameter optimization steps in the Bayesian -// optimization procedure. The maximum number of steps is determined based on -// the number of undefined hyperparameters times the maximum optimization rounds -// per hyperparameter. By default, this value is calculated during -// hyperparameter optimization. func (s *_dataframeAnalysisClassification) MaxOptimizationRoundsPerHyperparameter(maxoptimizationroundsperhyperparameter int) *_dataframeAnalysisClassification { s.v.MaxOptimizationRoundsPerHyperparameter = &maxoptimizationroundsperhyperparameter @@ -192,9 +124,6 @@ func (s *_dataframeAnalysisClassification) MaxOptimizationRoundsPerHyperparamete return s } -// Advanced configuration option. Defines the maximum number of decision trees -// in the forest. The maximum value is 2000. By default, this value is -// calculated during hyperparameter optimization. func (s *_dataframeAnalysisClassification) MaxTrees(maxtrees int) *_dataframeAnalysisClassification { s.v.MaxTrees = &maxtrees @@ -202,13 +131,6 @@ func (s *_dataframeAnalysisClassification) MaxTrees(maxtrees int) *_dataframeAna return s } -// Defines the number of categories for which the predicted probabilities are -// reported. It must be non-negative or -1. If it is -1 or greater than the -// total number of categories, probabilities are reported for all categories; if -// you have a large number of categories, there could be a significant effect on -// the size of your destination index. NOTE: To use the AUC ROC evaluation -// method, `num_top_classes` must be set to -1 or a value greater than or equal -// to the total number of categories. func (s *_dataframeAnalysisClassification) NumTopClasses(numtopclasses int) *_dataframeAnalysisClassification { s.v.NumTopClasses = &numtopclasses @@ -216,9 +138,6 @@ func (s *_dataframeAnalysisClassification) NumTopClasses(numtopclasses int) *_da return s } -// Advanced configuration option. Specifies the maximum number of feature -// importance values per document to return. By default, no feature importance -// calculation occurs. func (s *_dataframeAnalysisClassification) NumTopFeatureImportanceValues(numtopfeatureimportancevalues int) *_dataframeAnalysisClassification { s.v.NumTopFeatureImportanceValues = &numtopfeatureimportancevalues @@ -226,8 +145,6 @@ func (s *_dataframeAnalysisClassification) NumTopFeatureImportanceValues(numtopf return s } -// Defines the name of the prediction field in the results. Defaults to -// `_prediction`. func (s *_dataframeAnalysisClassification) PredictionFieldName(field string) *_dataframeAnalysisClassification { s.v.PredictionFieldName = &field @@ -235,10 +152,6 @@ func (s *_dataframeAnalysisClassification) PredictionFieldName(field string) *_d return s } -// Defines the seed for the random generator that is used to pick training data. -// By default, it is randomly generated. Set it to a specific value to use the -// same training data each time you start a job (assuming other related -// parameters such as `source` and `analyzed_fields` are the same). func (s *_dataframeAnalysisClassification) RandomizeSeed(randomizeseed types.Float64) *_dataframeAnalysisClassification { s.v.RandomizeSeed = &randomizeseed @@ -246,13 +159,6 @@ func (s *_dataframeAnalysisClassification) RandomizeSeed(randomizeseed types.Flo return s } -// Advanced configuration option. Machine learning uses loss guided tree -// growing, which means that the decision trees grow where the regularized loss -// decreases most quickly. This soft limit combines with the -// `soft_tree_depth_tolerance` to penalize trees that exceed the specified -// depth; the regularized loss increases quickly beyond this depth. By default, -// this value is calculated during hyperparameter optimization. It must be -// greater than or equal to 0. func (s *_dataframeAnalysisClassification) SoftTreeDepthLimit(softtreedepthlimit int) *_dataframeAnalysisClassification { s.v.SoftTreeDepthLimit = &softtreedepthlimit @@ -260,10 +166,6 @@ func (s *_dataframeAnalysisClassification) SoftTreeDepthLimit(softtreedepthlimit return s } -// Advanced configuration option. This option controls how quickly the -// regularized loss increases when the tree depth exceeds -// `soft_tree_depth_limit`. By default, this value is calculated during -// hyperparameter optimization. It must be greater than or equal to 0.01. func (s *_dataframeAnalysisClassification) SoftTreeDepthTolerance(softtreedepthtolerance types.Float64) *_dataframeAnalysisClassification { s.v.SoftTreeDepthTolerance = &softtreedepthtolerance @@ -271,10 +173,6 @@ func (s *_dataframeAnalysisClassification) SoftTreeDepthTolerance(softtreedeptht return s } -// Defines what percentage of the eligible documents that will be used for -// training. Documents that are ignored by the analysis (for example those that -// contain arrays with more than one value) won’t be included in the calculation -// for used percentage. func (s *_dataframeAnalysisClassification) TrainingPercent(percentage types.PercentageVariant) *_dataframeAnalysisClassification { s.v.TrainingPercent = *percentage.PercentageCaster() diff --git a/typedapi/esdsl/dataframeanalysiscontainer.go b/typedapi/esdsl/dataframeanalysiscontainer.go index 2c93274816..20454291d0 100644 --- a/typedapi/esdsl/dataframeanalysiscontainer.go +++ b/typedapi/esdsl/dataframeanalysiscontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _dataframeAnalysisContainer struct { @@ -46,7 +46,6 @@ func (s *_dataframeAnalysisContainer) AdditionalDataframeAnalysisContainerProper return s } -// The configuration information necessary to perform classification. func (s *_dataframeAnalysisContainer) Classification(classification types.DataframeAnalysisClassificationVariant) *_dataframeAnalysisContainer { s.v.Classification = classification.DataframeAnalysisClassificationCaster() @@ -54,11 +53,6 @@ func (s *_dataframeAnalysisContainer) Classification(classification types.Datafr return s } -// The configuration information necessary to perform outlier detection. NOTE: -// Advanced parameters are for fine-tuning classification analysis. They are set -// automatically by hyperparameter optimization to give the minimum validation -// error. It is highly recommended to use the default values unless you fully -// understand the function of these parameters. func (s *_dataframeAnalysisContainer) OutlierDetection(outlierdetection types.DataframeAnalysisOutlierDetectionVariant) *_dataframeAnalysisContainer { s.v.OutlierDetection = outlierdetection.DataframeAnalysisOutlierDetectionCaster() @@ -66,11 +60,6 @@ func (s *_dataframeAnalysisContainer) OutlierDetection(outlierdetection types.Da return s } -// The configuration information necessary to perform regression. NOTE: Advanced -// parameters are for fine-tuning regression analysis. They are set -// automatically by hyperparameter optimization to give the minimum validation -// error. It is highly recommended to use the default values unless you fully -// understand the function of these parameters. func (s *_dataframeAnalysisContainer) Regression(regression types.DataframeAnalysisRegressionVariant) *_dataframeAnalysisContainer { s.v.Regression = regression.DataframeAnalysisRegressionCaster() diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessor.go b/typedapi/esdsl/dataframeanalysisfeatureprocessor.go index e22ab2445b..794b87cf91 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessor.go +++ b/typedapi/esdsl/dataframeanalysisfeatureprocessor.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _dataframeAnalysisFeatureProcessor struct { @@ -46,7 +46,6 @@ func (s *_dataframeAnalysisFeatureProcessor) AdditionalDataframeAnalysisFeatureP return s } -// The configuration information necessary to perform frequency encoding. func (s *_dataframeAnalysisFeatureProcessor) FrequencyEncoding(frequencyencoding types.DataframeAnalysisFeatureProcessorFrequencyEncodingVariant) *_dataframeAnalysisFeatureProcessor { s.v.FrequencyEncoding = frequencyencoding.DataframeAnalysisFeatureProcessorFrequencyEncodingCaster() @@ -54,9 +53,6 @@ func (s *_dataframeAnalysisFeatureProcessor) FrequencyEncoding(frequencyencoding return s } -// The configuration information necessary to perform multi encoding. It allows -// multiple processors to be changed together. This way the output of a -// processor can then be passed to another as an input. func (s *_dataframeAnalysisFeatureProcessor) MultiEncoding(multiencoding types.DataframeAnalysisFeatureProcessorMultiEncodingVariant) *_dataframeAnalysisFeatureProcessor { s.v.MultiEncoding = multiencoding.DataframeAnalysisFeatureProcessorMultiEncodingCaster() @@ -64,10 +60,6 @@ func (s *_dataframeAnalysisFeatureProcessor) MultiEncoding(multiencoding types.D return s } -// The configuration information necessary to perform n-gram encoding. Features -// created by this encoder have the following name format: -// .. For example, if the feature_prefix -// is f, the feature name for the second unigram in a string is f.11. func (s *_dataframeAnalysisFeatureProcessor) NGramEncoding(ngramencoding types.DataframeAnalysisFeatureProcessorNGramEncodingVariant) *_dataframeAnalysisFeatureProcessor { s.v.NGramEncoding = ngramencoding.DataframeAnalysisFeatureProcessorNGramEncodingCaster() @@ -75,7 +67,6 @@ func (s *_dataframeAnalysisFeatureProcessor) NGramEncoding(ngramencoding types.D return s } -// The configuration information necessary to perform one hot encoding. func (s *_dataframeAnalysisFeatureProcessor) OneHotEncoding(onehotencoding types.DataframeAnalysisFeatureProcessorOneHotEncodingVariant) *_dataframeAnalysisFeatureProcessor { s.v.OneHotEncoding = onehotencoding.DataframeAnalysisFeatureProcessorOneHotEncodingCaster() @@ -83,7 +74,6 @@ func (s *_dataframeAnalysisFeatureProcessor) OneHotEncoding(onehotencoding types return s } -// The configuration information necessary to perform target mean encoding. func (s *_dataframeAnalysisFeatureProcessor) TargetMeanEncoding(targetmeanencoding types.DataframeAnalysisFeatureProcessorTargetMeanEncodingVariant) *_dataframeAnalysisFeatureProcessor { s.v.TargetMeanEncoding = targetmeanencoding.DataframeAnalysisFeatureProcessorTargetMeanEncodingCaster() diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessorfrequencyencoding.go b/typedapi/esdsl/dataframeanalysisfeatureprocessorfrequencyencoding.go index 72023f6a7b..798b33bb0e 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessorfrequencyencoding.go +++ b/typedapi/esdsl/dataframeanalysisfeatureprocessorfrequencyencoding.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeAnalysisFeatureProcessorFrequencyEncoding struct { v *types.DataframeAnalysisFeatureProcessorFrequencyEncoding @@ -33,7 +33,6 @@ func NewDataframeAnalysisFeatureProcessorFrequencyEncoding() *_dataframeAnalysis } -// The resulting feature name. func (s *_dataframeAnalysisFeatureProcessorFrequencyEncoding) FeatureName(name string) *_dataframeAnalysisFeatureProcessorFrequencyEncoding { s.v.FeatureName = name @@ -48,8 +47,6 @@ func (s *_dataframeAnalysisFeatureProcessorFrequencyEncoding) Field(field string return s } -// The resulting frequency map for the field value. If the field value is -// missing from the frequency_map, the resulting value is 0. func (s *_dataframeAnalysisFeatureProcessorFrequencyEncoding) FrequencyMap(frequencymap map[string]types.Float64) *_dataframeAnalysisFeatureProcessorFrequencyEncoding { s.v.FrequencyMap = frequencymap diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessormultiencoding.go b/typedapi/esdsl/dataframeanalysisfeatureprocessormultiencoding.go index fb38936706..3a12c3f4ec 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessormultiencoding.go +++ b/typedapi/esdsl/dataframeanalysisfeatureprocessormultiencoding.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeAnalysisFeatureProcessorMultiEncoding struct { v *types.DataframeAnalysisFeatureProcessorMultiEncoding @@ -35,7 +35,6 @@ func NewDataframeAnalysisFeatureProcessorMultiEncoding() *_dataframeAnalysisFeat } -// The ordered array of custom processors to execute. Must be more than 1. func (s *_dataframeAnalysisFeatureProcessorMultiEncoding) Processors(processors ...int) *_dataframeAnalysisFeatureProcessorMultiEncoding { for _, v := range processors { diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessorngramencoding.go b/typedapi/esdsl/dataframeanalysisfeatureprocessorngramencoding.go index f6b87b651b..d5334d7131 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessorngramencoding.go +++ b/typedapi/esdsl/dataframeanalysisfeatureprocessorngramencoding.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeAnalysisFeatureProcessorNGramEncoding struct { v *types.DataframeAnalysisFeatureProcessorNGramEncoding @@ -43,7 +43,6 @@ func (s *_dataframeAnalysisFeatureProcessorNGramEncoding) Custom(custom bool) *_ return s } -// The feature name prefix. Defaults to ngram__. func (s *_dataframeAnalysisFeatureProcessorNGramEncoding) FeaturePrefix(featureprefix string) *_dataframeAnalysisFeatureProcessorNGramEncoding { s.v.FeaturePrefix = &featureprefix @@ -51,7 +50,6 @@ func (s *_dataframeAnalysisFeatureProcessorNGramEncoding) FeaturePrefix(featurep return s } -// The name of the text field to encode. func (s *_dataframeAnalysisFeatureProcessorNGramEncoding) Field(field string) *_dataframeAnalysisFeatureProcessorNGramEncoding { s.v.Field = field @@ -59,8 +57,6 @@ func (s *_dataframeAnalysisFeatureProcessorNGramEncoding) Field(field string) *_ return s } -// Specifies the length of the n-gram substring. Defaults to 50. Must be greater -// than 0. func (s *_dataframeAnalysisFeatureProcessorNGramEncoding) Length(length int) *_dataframeAnalysisFeatureProcessorNGramEncoding { s.v.Length = &length @@ -68,8 +64,6 @@ func (s *_dataframeAnalysisFeatureProcessorNGramEncoding) Length(length int) *_d return s } -// Specifies which n-grams to gather. It’s an array of integer values where the -// minimum value is 1, and a maximum value is 5. func (s *_dataframeAnalysisFeatureProcessorNGramEncoding) NGrams(ngrams ...int) *_dataframeAnalysisFeatureProcessorNGramEncoding { for _, v := range ngrams { @@ -80,8 +74,6 @@ func (s *_dataframeAnalysisFeatureProcessorNGramEncoding) NGrams(ngrams ...int) return s } -// Specifies the zero-indexed start of the n-gram substring. Negative values are -// allowed for encoding n-grams of string suffixes. Defaults to 0. func (s *_dataframeAnalysisFeatureProcessorNGramEncoding) Start(start int) *_dataframeAnalysisFeatureProcessorNGramEncoding { s.v.Start = &start diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessoronehotencoding.go b/typedapi/esdsl/dataframeanalysisfeatureprocessoronehotencoding.go index 87396d7756..4e0c5e3afc 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessoronehotencoding.go +++ b/typedapi/esdsl/dataframeanalysisfeatureprocessoronehotencoding.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeAnalysisFeatureProcessorOneHotEncoding struct { v *types.DataframeAnalysisFeatureProcessorOneHotEncoding @@ -37,7 +37,6 @@ func NewDataframeAnalysisFeatureProcessorOneHotEncoding(hotmap string) *_datafra } -// The name of the field to encode. func (s *_dataframeAnalysisFeatureProcessorOneHotEncoding) Field(field string) *_dataframeAnalysisFeatureProcessorOneHotEncoding { s.v.Field = field @@ -45,7 +44,6 @@ func (s *_dataframeAnalysisFeatureProcessorOneHotEncoding) Field(field string) * return s } -// The one hot map mapping the field value with the column name. func (s *_dataframeAnalysisFeatureProcessorOneHotEncoding) HotMap(hotmap string) *_dataframeAnalysisFeatureProcessorOneHotEncoding { s.v.HotMap = hotmap diff --git a/typedapi/esdsl/dataframeanalysisfeatureprocessortargetmeanencoding.go b/typedapi/esdsl/dataframeanalysisfeatureprocessortargetmeanencoding.go index 3588be84fa..a48ca38a2f 100644 --- a/typedapi/esdsl/dataframeanalysisfeatureprocessortargetmeanencoding.go +++ b/typedapi/esdsl/dataframeanalysisfeatureprocessortargetmeanencoding.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _dataframeAnalysisFeatureProcessorTargetMeanEncoding struct { @@ -41,7 +41,6 @@ func NewDataframeAnalysisFeatureProcessorTargetMeanEncoding(defaultvalue int) *_ } -// The default value if field value is not found in the target_map. func (s *_dataframeAnalysisFeatureProcessorTargetMeanEncoding) DefaultValue(defaultvalue int) *_dataframeAnalysisFeatureProcessorTargetMeanEncoding { s.v.DefaultValue = defaultvalue @@ -49,7 +48,6 @@ func (s *_dataframeAnalysisFeatureProcessorTargetMeanEncoding) DefaultValue(defa return s } -// The resulting feature name. func (s *_dataframeAnalysisFeatureProcessorTargetMeanEncoding) FeatureName(name string) *_dataframeAnalysisFeatureProcessorTargetMeanEncoding { s.v.FeatureName = name @@ -57,7 +55,6 @@ func (s *_dataframeAnalysisFeatureProcessorTargetMeanEncoding) FeatureName(name return s } -// The name of the field to encode. func (s *_dataframeAnalysisFeatureProcessorTargetMeanEncoding) Field(field string) *_dataframeAnalysisFeatureProcessorTargetMeanEncoding { s.v.Field = field @@ -65,7 +62,6 @@ func (s *_dataframeAnalysisFeatureProcessorTargetMeanEncoding) Field(field strin return s } -// The field value to target mean transition map. func (s *_dataframeAnalysisFeatureProcessorTargetMeanEncoding) TargetMap(targetmap map[string]json.RawMessage) *_dataframeAnalysisFeatureProcessorTargetMeanEncoding { s.v.TargetMap = targetmap diff --git a/typedapi/esdsl/dataframeanalysisoutlierdetection.go b/typedapi/esdsl/dataframeanalysisoutlierdetection.go index 5a425e4f64..616e57445a 100644 --- a/typedapi/esdsl/dataframeanalysisoutlierdetection.go +++ b/typedapi/esdsl/dataframeanalysisoutlierdetection.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeAnalysisOutlierDetection struct { v *types.DataframeAnalysisOutlierDetection @@ -37,7 +37,6 @@ func NewDataframeAnalysisOutlierDetection() *_dataframeAnalysisOutlierDetection } -// Specifies whether the feature influence calculation is enabled. func (s *_dataframeAnalysisOutlierDetection) ComputeFeatureInfluence(computefeatureinfluence bool) *_dataframeAnalysisOutlierDetection { s.v.ComputeFeatureInfluence = &computefeatureinfluence @@ -45,8 +44,6 @@ func (s *_dataframeAnalysisOutlierDetection) ComputeFeatureInfluence(computefeat return s } -// The minimum outlier score that a document needs to have in order to calculate -// its feature influence score. Value range: 0-1. func (s *_dataframeAnalysisOutlierDetection) FeatureInfluenceThreshold(featureinfluencethreshold types.Float64) *_dataframeAnalysisOutlierDetection { s.v.FeatureInfluenceThreshold = &featureinfluencethreshold @@ -54,11 +51,6 @@ func (s *_dataframeAnalysisOutlierDetection) FeatureInfluenceThreshold(featurein return s } -// The method that outlier detection uses. Available methods are `lof`, `ldof`, -// `distance_kth_nn`, `distance_knn`, and `ensemble`. The default value is -// ensemble, which means that outlier detection uses an ensemble of different -// methods and normalises and combines their individual outlier scores to obtain -// the overall outlier score. func (s *_dataframeAnalysisOutlierDetection) Method(method string) *_dataframeAnalysisOutlierDetection { s.v.Method = &method @@ -66,11 +58,6 @@ func (s *_dataframeAnalysisOutlierDetection) Method(method string) *_dataframeAn return s } -// Defines the value for how many nearest neighbors each method of outlier -// detection uses to calculate its outlier score. When the value is not set, -// different values are used for different ensemble members. This default -// behavior helps improve the diversity in the ensemble; only override it if you -// are confident that the value you choose is appropriate for the data set. func (s *_dataframeAnalysisOutlierDetection) NNeighbors(nneighbors int) *_dataframeAnalysisOutlierDetection { s.v.NNeighbors = &nneighbors @@ -78,9 +65,6 @@ func (s *_dataframeAnalysisOutlierDetection) NNeighbors(nneighbors int) *_datafr return s } -// The proportion of the data set that is assumed to be outlying prior to -// outlier detection. For example, 0.05 means it is assumed that 5% of values -// are real outliers and 95% are inliers. func (s *_dataframeAnalysisOutlierDetection) OutlierFraction(outlierfraction types.Float64) *_dataframeAnalysisOutlierDetection { s.v.OutlierFraction = &outlierfraction @@ -88,8 +72,6 @@ func (s *_dataframeAnalysisOutlierDetection) OutlierFraction(outlierfraction typ return s } -// If true, the following operation is performed on the columns before computing -// outlier scores: `(x_i - mean(x_i)) / sd(x_i)`. func (s *_dataframeAnalysisOutlierDetection) StandardizationEnabled(standardizationenabled bool) *_dataframeAnalysisOutlierDetection { s.v.StandardizationEnabled = &standardizationenabled diff --git a/typedapi/esdsl/dataframeanalysisregression.go b/typedapi/esdsl/dataframeanalysisregression.go index efe6d718ae..a5f3f4b151 100644 --- a/typedapi/esdsl/dataframeanalysisregression.go +++ b/typedapi/esdsl/dataframeanalysisregression.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeAnalysisRegression struct { v *types.DataframeAnalysisRegression @@ -41,12 +41,6 @@ func NewDataframeAnalysisRegression(dependentvariable string) *_dataframeAnalysi } -// Advanced configuration option. Machine learning uses loss guided tree -// growing, which means that the decision trees grow where the regularized loss -// decreases most quickly. This parameter affects loss calculations by acting as -// a multiplier of the tree depth. Higher alpha values result in shallower trees -// and faster training times. By default, this value is calculated during -// hyperparameter optimization. It must be greater than or equal to zero. func (s *_dataframeAnalysisRegression) Alpha(alpha types.Float64) *_dataframeAnalysisRegression { s.v.Alpha = &alpha @@ -54,15 +48,6 @@ func (s *_dataframeAnalysisRegression) Alpha(alpha types.Float64) *_dataframeAna return s } -// Defines which field of the document is to be predicted. It must match one of -// the fields in the index being used to train. If this field is missing from a -// document, then that document will not be used for training, but a prediction -// with the trained model will be generated for it. It is also known as -// continuous target variable. -// For classification analysis, the data type of the field must be numeric -// (`integer`, `short`, `long`, `byte`), categorical (`ip` or `keyword`), or -// `boolean`. There must be no more than 30 different values in this field. -// For regression analysis, the data type of the field must be numeric. func (s *_dataframeAnalysisRegression) DependentVariable(dependentvariable string) *_dataframeAnalysisRegression { s.v.DependentVariable = dependentvariable @@ -70,13 +55,6 @@ func (s *_dataframeAnalysisRegression) DependentVariable(dependentvariable strin return s } -// Advanced configuration option. Controls the fraction of data that is used to -// compute the derivatives of the loss function for tree training. A small value -// results in the use of a small fraction of the data. If this value is set to -// be less than 1, accuracy typically improves. However, too small a value may -// result in poor convergence for the ensemble and so require more trees. By -// default, this value is calculated during hyperparameter optimization. It must -// be greater than zero and less than or equal to 1. func (s *_dataframeAnalysisRegression) DownsampleFactor(downsamplefactor types.Float64) *_dataframeAnalysisRegression { s.v.DownsampleFactor = &downsamplefactor @@ -84,10 +62,6 @@ func (s *_dataframeAnalysisRegression) DownsampleFactor(downsamplefactor types.F return s } -// Advanced configuration option. Specifies whether the training process should -// finish if it is not finding any better performing models. If disabled, the -// training process can take significantly longer and the chance of finding a -// better performing model is unremarkable. func (s *_dataframeAnalysisRegression) EarlyStoppingEnabled(earlystoppingenabled bool) *_dataframeAnalysisRegression { s.v.EarlyStoppingEnabled = &earlystoppingenabled @@ -95,11 +69,6 @@ func (s *_dataframeAnalysisRegression) EarlyStoppingEnabled(earlystoppingenabled return s } -// Advanced configuration option. The shrinkage applied to the weights. Smaller -// values result in larger forests which have a better generalization error. -// However, larger forests cause slower training. By default, this value is -// calculated during hyperparameter optimization. It must be a value between -// 0.001 and 1. func (s *_dataframeAnalysisRegression) Eta(eta types.Float64) *_dataframeAnalysisRegression { s.v.Eta = &eta @@ -107,10 +76,6 @@ func (s *_dataframeAnalysisRegression) Eta(eta types.Float64) *_dataframeAnalysi return s } -// Advanced configuration option. Specifies the rate at which `eta` increases -// for each new tree that is added to the forest. For example, a rate of 1.05 -// increases `eta` by 5% for each extra tree. By default, this value is -// calculated during hyperparameter optimization. It must be between 0.5 and 2. func (s *_dataframeAnalysisRegression) EtaGrowthRatePerTree(etagrowthratepertree types.Float64) *_dataframeAnalysisRegression { s.v.EtaGrowthRatePerTree = &etagrowthratepertree @@ -118,9 +83,6 @@ func (s *_dataframeAnalysisRegression) EtaGrowthRatePerTree(etagrowthratepertree return s } -// Advanced configuration option. Defines the fraction of features that will be -// used when selecting a random bag for each candidate split. By default, this -// value is calculated during hyperparameter optimization. func (s *_dataframeAnalysisRegression) FeatureBagFraction(featurebagfraction types.Float64) *_dataframeAnalysisRegression { s.v.FeatureBagFraction = &featurebagfraction @@ -128,15 +90,6 @@ func (s *_dataframeAnalysisRegression) FeatureBagFraction(featurebagfraction typ return s } -// Advanced configuration option. A collection of feature preprocessors that -// modify one or more included fields. The analysis uses the resulting one or -// more features instead of the original document field. However, these features -// are ephemeral; they are not stored in the destination index. Multiple -// `feature_processors` entries can refer to the same document fields. Automatic -// categorical feature encoding still occurs for the fields that are unprocessed -// by a custom processor or that have categorical values. Use this property only -// if you want to override the automatic feature encoding of the specified -// fields. func (s *_dataframeAnalysisRegression) FeatureProcessors(featureprocessors ...types.DataframeAnalysisFeatureProcessorVariant) *_dataframeAnalysisRegression { for _, v := range featureprocessors { @@ -147,12 +100,6 @@ func (s *_dataframeAnalysisRegression) FeatureProcessors(featureprocessors ...ty return s } -// Advanced configuration option. Regularization parameter to prevent -// overfitting on the training data set. Multiplies a linear penalty associated -// with the size of individual trees in the forest. A high gamma value causes -// training to prefer small trees. A small gamma value results in larger -// individual trees and slower training. By default, this value is calculated -// during hyperparameter optimization. It must be a nonnegative value. func (s *_dataframeAnalysisRegression) Gamma(gamma types.Float64) *_dataframeAnalysisRegression { s.v.Gamma = &gamma @@ -160,15 +107,6 @@ func (s *_dataframeAnalysisRegression) Gamma(gamma types.Float64) *_dataframeAna return s } -// Advanced configuration option. Regularization parameter to prevent -// overfitting on the training data set. Multiplies an L2 regularization term -// which applies to leaf weights of the individual trees in the forest. A high -// lambda value causes training to favor small leaf weights. This behavior makes -// the prediction function smoother at the expense of potentially not being able -// to capture relevant relationships between the features and the dependent -// variable. A small lambda value results in large individual trees and slower -// training. By default, this value is calculated during hyperparameter -// optimization. It must be a nonnegative value. func (s *_dataframeAnalysisRegression) Lambda(lambda types.Float64) *_dataframeAnalysisRegression { s.v.Lambda = &lambda @@ -176,9 +114,6 @@ func (s *_dataframeAnalysisRegression) Lambda(lambda types.Float64) *_dataframeA return s } -// The loss function used during regression. Available options are `mse` (mean -// squared error), `msle` (mean squared logarithmic error), `huber` -// (Pseudo-Huber loss). func (s *_dataframeAnalysisRegression) LossFunction(lossfunction string) *_dataframeAnalysisRegression { s.v.LossFunction = &lossfunction @@ -186,7 +121,6 @@ func (s *_dataframeAnalysisRegression) LossFunction(lossfunction string) *_dataf return s } -// A positive number that is used as a parameter to the `loss_function`. func (s *_dataframeAnalysisRegression) LossFunctionParameter(lossfunctionparameter types.Float64) *_dataframeAnalysisRegression { s.v.LossFunctionParameter = &lossfunctionparameter @@ -194,12 +128,6 @@ func (s *_dataframeAnalysisRegression) LossFunctionParameter(lossfunctionparamet return s } -// Advanced configuration option. A multiplier responsible for determining the -// maximum number of hyperparameter optimization steps in the Bayesian -// optimization procedure. The maximum number of steps is determined based on -// the number of undefined hyperparameters times the maximum optimization rounds -// per hyperparameter. By default, this value is calculated during -// hyperparameter optimization. func (s *_dataframeAnalysisRegression) MaxOptimizationRoundsPerHyperparameter(maxoptimizationroundsperhyperparameter int) *_dataframeAnalysisRegression { s.v.MaxOptimizationRoundsPerHyperparameter = &maxoptimizationroundsperhyperparameter @@ -207,9 +135,6 @@ func (s *_dataframeAnalysisRegression) MaxOptimizationRoundsPerHyperparameter(ma return s } -// Advanced configuration option. Defines the maximum number of decision trees -// in the forest. The maximum value is 2000. By default, this value is -// calculated during hyperparameter optimization. func (s *_dataframeAnalysisRegression) MaxTrees(maxtrees int) *_dataframeAnalysisRegression { s.v.MaxTrees = &maxtrees @@ -217,9 +142,6 @@ func (s *_dataframeAnalysisRegression) MaxTrees(maxtrees int) *_dataframeAnalysi return s } -// Advanced configuration option. Specifies the maximum number of feature -// importance values per document to return. By default, no feature importance -// calculation occurs. func (s *_dataframeAnalysisRegression) NumTopFeatureImportanceValues(numtopfeatureimportancevalues int) *_dataframeAnalysisRegression { s.v.NumTopFeatureImportanceValues = &numtopfeatureimportancevalues @@ -227,8 +149,6 @@ func (s *_dataframeAnalysisRegression) NumTopFeatureImportanceValues(numtopfeatu return s } -// Defines the name of the prediction field in the results. Defaults to -// `_prediction`. func (s *_dataframeAnalysisRegression) PredictionFieldName(field string) *_dataframeAnalysisRegression { s.v.PredictionFieldName = &field @@ -236,10 +156,6 @@ func (s *_dataframeAnalysisRegression) PredictionFieldName(field string) *_dataf return s } -// Defines the seed for the random generator that is used to pick training data. -// By default, it is randomly generated. Set it to a specific value to use the -// same training data each time you start a job (assuming other related -// parameters such as `source` and `analyzed_fields` are the same). func (s *_dataframeAnalysisRegression) RandomizeSeed(randomizeseed types.Float64) *_dataframeAnalysisRegression { s.v.RandomizeSeed = &randomizeseed @@ -247,13 +163,6 @@ func (s *_dataframeAnalysisRegression) RandomizeSeed(randomizeseed types.Float64 return s } -// Advanced configuration option. Machine learning uses loss guided tree -// growing, which means that the decision trees grow where the regularized loss -// decreases most quickly. This soft limit combines with the -// `soft_tree_depth_tolerance` to penalize trees that exceed the specified -// depth; the regularized loss increases quickly beyond this depth. By default, -// this value is calculated during hyperparameter optimization. It must be -// greater than or equal to 0. func (s *_dataframeAnalysisRegression) SoftTreeDepthLimit(softtreedepthlimit int) *_dataframeAnalysisRegression { s.v.SoftTreeDepthLimit = &softtreedepthlimit @@ -261,10 +170,6 @@ func (s *_dataframeAnalysisRegression) SoftTreeDepthLimit(softtreedepthlimit int return s } -// Advanced configuration option. This option controls how quickly the -// regularized loss increases when the tree depth exceeds -// `soft_tree_depth_limit`. By default, this value is calculated during -// hyperparameter optimization. It must be greater than or equal to 0.01. func (s *_dataframeAnalysisRegression) SoftTreeDepthTolerance(softtreedepthtolerance types.Float64) *_dataframeAnalysisRegression { s.v.SoftTreeDepthTolerance = &softtreedepthtolerance @@ -272,10 +177,6 @@ func (s *_dataframeAnalysisRegression) SoftTreeDepthTolerance(softtreedepthtoler return s } -// Defines what percentage of the eligible documents that will be used for -// training. Documents that are ignored by the analysis (for example those that -// contain arrays with more than one value) won’t be included in the calculation -// for used percentage. func (s *_dataframeAnalysisRegression) TrainingPercent(percentage types.PercentageVariant) *_dataframeAnalysisRegression { s.v.TrainingPercent = *percentage.PercentageCaster() diff --git a/typedapi/esdsl/dataframeanalyticsdestination.go b/typedapi/esdsl/dataframeanalyticsdestination.go index 8c5ba4738e..c6e7057138 100644 --- a/typedapi/esdsl/dataframeanalyticsdestination.go +++ b/typedapi/esdsl/dataframeanalyticsdestination.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeAnalyticsDestination struct { v *types.DataframeAnalyticsDestination @@ -32,8 +32,6 @@ func NewDataframeAnalyticsDestination() *_dataframeAnalyticsDestination { } -// Defines the destination index to store the results of the data frame -// analytics job. func (s *_dataframeAnalyticsDestination) Index(indexname string) *_dataframeAnalyticsDestination { s.v.Index = indexname @@ -41,8 +39,6 @@ func (s *_dataframeAnalyticsDestination) Index(indexname string) *_dataframeAnal return s } -// Defines the name of the field in which to store the results of the analysis. -// Defaults to `ml`. func (s *_dataframeAnalyticsDestination) ResultsField(field string) *_dataframeAnalyticsDestination { s.v.ResultsField = &field diff --git a/typedapi/esdsl/dataframeanalyticssource.go b/typedapi/esdsl/dataframeanalyticssource.go index 0d6972a65d..803ce01ae6 100644 --- a/typedapi/esdsl/dataframeanalyticssource.go +++ b/typedapi/esdsl/dataframeanalyticssource.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeAnalyticsSource struct { v *types.DataframeAnalyticsSource @@ -32,10 +32,6 @@ func NewDataframeAnalyticsSource() *_dataframeAnalyticsSource { } -// 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 -// source indices contain documents with the same IDs, only the document that is -// indexed last appears in the destination index. func (s *_dataframeAnalyticsSource) Index(indices ...string) *_dataframeAnalyticsSource { s.v.Index = indices @@ -43,11 +39,6 @@ func (s *_dataframeAnalyticsSource) Index(indices ...string) *_dataframeAnalytic return s } -// The Elasticsearch query domain-specific language (DSL). This value -// corresponds to the query object in an Elasticsearch search POST body. All the -// options that are supported by Elasticsearch can be used, as this object is -// passed verbatim to Elasticsearch. By default, this property has the following -// value: {"match_all": {}}. func (s *_dataframeAnalyticsSource) Query(query types.QueryVariant) *_dataframeAnalyticsSource { s.v.Query = query.QueryCaster() @@ -55,8 +46,6 @@ func (s *_dataframeAnalyticsSource) Query(query types.QueryVariant) *_dataframeA return s } -// Definitions of runtime fields that will become part of the mapping of the -// destination index. func (s *_dataframeAnalyticsSource) RuntimeMappings(runtimefields types.RuntimeFieldsVariant) *_dataframeAnalyticsSource { s.v.RuntimeMappings = *runtimefields.RuntimeFieldsCaster() @@ -64,9 +53,6 @@ func (s *_dataframeAnalyticsSource) RuntimeMappings(runtimefields types.RuntimeF return s } -// Specify `includes` and/or `excludes patterns to select which fields will be -// present in the destination. Fields that are excluded cannot be included in -// the analysis. func (s *_dataframeAnalyticsSource) Source_(source_ types.DataframeAnalysisAnalyzedFieldsVariant) *_dataframeAnalyticsSource { s.v.Source_ = source_.DataframeAnalysisAnalyzedFieldsCaster() diff --git a/typedapi/esdsl/dataframeevaluationclassification.go b/typedapi/esdsl/dataframeevaluationclassification.go index 3151b02e6b..8bd29df636 100644 --- a/typedapi/esdsl/dataframeevaluationclassification.go +++ b/typedapi/esdsl/dataframeevaluationclassification.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeEvaluationClassification struct { v *types.DataframeEvaluationClassification @@ -35,9 +35,6 @@ func NewDataframeEvaluationClassification() *_dataframeEvaluationClassification } -// 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 -// to be either 0 (false) or 1 (true). func (s *_dataframeEvaluationClassification) ActualField(field string) *_dataframeEvaluationClassification { s.v.ActualField = field @@ -45,7 +42,6 @@ func (s *_dataframeEvaluationClassification) ActualField(field string) *_datafra return s } -// Specifies the metrics that are used for the evaluation. func (s *_dataframeEvaluationClassification) Metrics(metrics types.DataframeEvaluationClassificationMetricsVariant) *_dataframeEvaluationClassification { s.v.Metrics = metrics.DataframeEvaluationClassificationMetricsCaster() @@ -53,8 +49,6 @@ func (s *_dataframeEvaluationClassification) Metrics(metrics types.DataframeEval return s } -// The field in the index which contains the predicted value, in other words the -// results of the classification analysis. func (s *_dataframeEvaluationClassification) PredictedField(field string) *_dataframeEvaluationClassification { s.v.PredictedField = &field @@ -62,9 +56,6 @@ func (s *_dataframeEvaluationClassification) PredictedField(field string) *_data return s } -// The field of the index which is an array of documents of the form { -// "class_name": XXX, "class_probability": YYY }. This field must be defined as -// nested in the mappings. func (s *_dataframeEvaluationClassification) TopClassesField(field string) *_dataframeEvaluationClassification { s.v.TopClassesField = &field diff --git a/typedapi/esdsl/dataframeevaluationclassificationmetrics.go b/typedapi/esdsl/dataframeevaluationclassificationmetrics.go index d3b711edeb..494543daba 100644 --- a/typedapi/esdsl/dataframeevaluationclassificationmetrics.go +++ b/typedapi/esdsl/dataframeevaluationclassificationmetrics.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _dataframeEvaluationClassificationMetrics struct { @@ -36,7 +36,6 @@ func NewDataframeEvaluationClassificationMetrics() *_dataframeEvaluationClassifi } -// Accuracy of predictions (per-class and overall). func (s *_dataframeEvaluationClassificationMetrics) Accuracy(accuracy map[string]json.RawMessage) *_dataframeEvaluationClassificationMetrics { s.v.Accuracy = accuracy @@ -58,9 +57,6 @@ func (s *_dataframeEvaluationClassificationMetrics) AddAccuracy(key string, valu return s } -// The AUC ROC (area under the curve of the receiver operating characteristic) -// score and optionally the curve. It is calculated for a specific class -// (provided as "class_name") treated as positive. func (s *_dataframeEvaluationClassificationMetrics) AucRoc(aucroc types.DataframeEvaluationClassificationMetricsAucRocVariant) *_dataframeEvaluationClassificationMetrics { s.v.AucRoc = aucroc.DataframeEvaluationClassificationMetricsAucRocCaster() @@ -68,7 +64,6 @@ func (s *_dataframeEvaluationClassificationMetrics) AucRoc(aucroc types.Datafram return s } -// Multiclass confusion matrix. func (s *_dataframeEvaluationClassificationMetrics) MulticlassConfusionMatrix(multiclassconfusionmatrix map[string]json.RawMessage) *_dataframeEvaluationClassificationMetrics { s.v.MulticlassConfusionMatrix = multiclassconfusionmatrix @@ -90,7 +85,6 @@ func (s *_dataframeEvaluationClassificationMetrics) AddMulticlassConfusionMatrix return s } -// Precision of predictions (per-class and average). func (s *_dataframeEvaluationClassificationMetrics) Precision(precision map[string]json.RawMessage) *_dataframeEvaluationClassificationMetrics { s.v.Precision = precision @@ -112,7 +106,6 @@ func (s *_dataframeEvaluationClassificationMetrics) AddPrecision(key string, val return s } -// Recall of predictions (per-class and average). func (s *_dataframeEvaluationClassificationMetrics) Recall(recall map[string]json.RawMessage) *_dataframeEvaluationClassificationMetrics { s.v.Recall = recall diff --git a/typedapi/esdsl/dataframeevaluationclassificationmetricsaucroc.go b/typedapi/esdsl/dataframeevaluationclassificationmetricsaucroc.go index d274a86371..fd7a9767e0 100644 --- a/typedapi/esdsl/dataframeevaluationclassificationmetricsaucroc.go +++ b/typedapi/esdsl/dataframeevaluationclassificationmetricsaucroc.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeEvaluationClassificationMetricsAucRoc struct { v *types.DataframeEvaluationClassificationMetricsAucRoc @@ -32,10 +32,6 @@ func NewDataframeEvaluationClassificationMetricsAucRoc() *_dataframeEvaluationCl } -// Name of the only class that is treated as positive during AUC ROC -// calculation. Other classes are treated as negative ("one-vs-all" strategy). -// All the evaluated documents must have class_name in the list of their top -// classes. func (s *_dataframeEvaluationClassificationMetricsAucRoc) ClassName(name string) *_dataframeEvaluationClassificationMetricsAucRoc { s.v.ClassName = &name @@ -43,8 +39,6 @@ func (s *_dataframeEvaluationClassificationMetricsAucRoc) ClassName(name string) return s } -// Whether or not the curve should be returned in addition to the score. Default -// value is false. func (s *_dataframeEvaluationClassificationMetricsAucRoc) IncludeCurve(includecurve bool) *_dataframeEvaluationClassificationMetricsAucRoc { s.v.IncludeCurve = &includecurve diff --git a/typedapi/esdsl/dataframeevaluationcontainer.go b/typedapi/esdsl/dataframeevaluationcontainer.go index aea0becbf5..8e16743a40 100644 --- a/typedapi/esdsl/dataframeevaluationcontainer.go +++ b/typedapi/esdsl/dataframeevaluationcontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _dataframeEvaluationContainer struct { @@ -46,9 +46,6 @@ func (s *_dataframeEvaluationContainer) AdditionalDataframeEvaluationContainerPr return s } -// Classification evaluation evaluates the results of a classification analysis -// which outputs a prediction that identifies to which of the classes each -// document belongs. func (s *_dataframeEvaluationContainer) Classification(classification types.DataframeEvaluationClassificationVariant) *_dataframeEvaluationContainer { s.v.Classification = classification.DataframeEvaluationClassificationCaster() @@ -56,8 +53,6 @@ func (s *_dataframeEvaluationContainer) Classification(classification types.Data return s } -// Outlier detection evaluates the results of an outlier detection analysis -// which outputs the probability that each document is an outlier. func (s *_dataframeEvaluationContainer) OutlierDetection(outlierdetection types.DataframeEvaluationOutlierDetectionVariant) *_dataframeEvaluationContainer { s.v.OutlierDetection = outlierdetection.DataframeEvaluationOutlierDetectionCaster() @@ -65,8 +60,6 @@ func (s *_dataframeEvaluationContainer) OutlierDetection(outlierdetection types. return s } -// Regression evaluation evaluates the results of a regression analysis which -// outputs a prediction of values. func (s *_dataframeEvaluationContainer) Regression(regression types.DataframeEvaluationRegressionVariant) *_dataframeEvaluationContainer { s.v.Regression = regression.DataframeEvaluationRegressionCaster() diff --git a/typedapi/esdsl/dataframeevaluationoutlierdetection.go b/typedapi/esdsl/dataframeevaluationoutlierdetection.go index 41cc8a22b3..1d8cf4c707 100644 --- a/typedapi/esdsl/dataframeevaluationoutlierdetection.go +++ b/typedapi/esdsl/dataframeevaluationoutlierdetection.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeEvaluationOutlierDetection struct { v *types.DataframeEvaluationOutlierDetection @@ -34,9 +34,6 @@ func NewDataframeEvaluationOutlierDetection() *_dataframeEvaluationOutlierDetect } -// 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 -// to be either 0 (false) or 1 (true). func (s *_dataframeEvaluationOutlierDetection) ActualField(field string) *_dataframeEvaluationOutlierDetection { s.v.ActualField = field @@ -44,7 +41,6 @@ func (s *_dataframeEvaluationOutlierDetection) ActualField(field string) *_dataf return s } -// Specifies the metrics that are used for the evaluation. func (s *_dataframeEvaluationOutlierDetection) Metrics(metrics types.DataframeEvaluationOutlierDetectionMetricsVariant) *_dataframeEvaluationOutlierDetection { s.v.Metrics = metrics.DataframeEvaluationOutlierDetectionMetricsCaster() @@ -52,9 +48,6 @@ func (s *_dataframeEvaluationOutlierDetection) Metrics(metrics types.DataframeEv return s } -// The field of the index that defines the probability of whether the item -// belongs to the class in question or not. It’s the field that contains the -// results of the analysis. func (s *_dataframeEvaluationOutlierDetection) PredictedProbabilityField(field string) *_dataframeEvaluationOutlierDetection { s.v.PredictedProbabilityField = field diff --git a/typedapi/esdsl/dataframeevaluationoutlierdetectionmetrics.go b/typedapi/esdsl/dataframeevaluationoutlierdetectionmetrics.go index 18ad63da38..954f8cd6d0 100644 --- a/typedapi/esdsl/dataframeevaluationoutlierdetectionmetrics.go +++ b/typedapi/esdsl/dataframeevaluationoutlierdetectionmetrics.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _dataframeEvaluationOutlierDetectionMetrics struct { @@ -36,9 +36,6 @@ func NewDataframeEvaluationOutlierDetectionMetrics() *_dataframeEvaluationOutlie } -// The AUC ROC (area under the curve of the receiver operating characteristic) -// score and optionally the curve. It is calculated for a specific class -// (provided as "class_name") treated as positive. func (s *_dataframeEvaluationOutlierDetectionMetrics) AucRoc(aucroc types.DataframeEvaluationClassificationMetricsAucRocVariant) *_dataframeEvaluationOutlierDetectionMetrics { s.v.AucRoc = aucroc.DataframeEvaluationClassificationMetricsAucRocCaster() @@ -46,7 +43,6 @@ func (s *_dataframeEvaluationOutlierDetectionMetrics) AucRoc(aucroc types.Datafr return s } -// Accuracy of predictions (per-class and overall). func (s *_dataframeEvaluationOutlierDetectionMetrics) ConfusionMatrix(confusionmatrix map[string]json.RawMessage) *_dataframeEvaluationOutlierDetectionMetrics { s.v.ConfusionMatrix = confusionmatrix @@ -68,7 +64,6 @@ func (s *_dataframeEvaluationOutlierDetectionMetrics) AddConfusionMatrix(key str return s } -// Precision of predictions (per-class and average). func (s *_dataframeEvaluationOutlierDetectionMetrics) Precision(precision map[string]json.RawMessage) *_dataframeEvaluationOutlierDetectionMetrics { s.v.Precision = precision @@ -90,7 +85,6 @@ func (s *_dataframeEvaluationOutlierDetectionMetrics) AddPrecision(key string, v return s } -// Recall of predictions (per-class and average). func (s *_dataframeEvaluationOutlierDetectionMetrics) Recall(recall map[string]json.RawMessage) *_dataframeEvaluationOutlierDetectionMetrics { s.v.Recall = recall diff --git a/typedapi/esdsl/dataframeevaluationregression.go b/typedapi/esdsl/dataframeevaluationregression.go index 7eb5647a42..fd94bda69c 100644 --- a/typedapi/esdsl/dataframeevaluationregression.go +++ b/typedapi/esdsl/dataframeevaluationregression.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeEvaluationRegression struct { v *types.DataframeEvaluationRegression @@ -34,8 +34,6 @@ func NewDataframeEvaluationRegression() *_dataframeEvaluationRegression { } -// The field of the index which contains the ground truth. The data type of this -// field must be numerical. func (s *_dataframeEvaluationRegression) ActualField(field string) *_dataframeEvaluationRegression { s.v.ActualField = field @@ -43,9 +41,6 @@ func (s *_dataframeEvaluationRegression) ActualField(field string) *_dataframeEv return s } -// Specifies the metrics that are used for the evaluation. For more information -// on mse, msle, and huber, consult the Jupyter notebook on regression loss -// functions. func (s *_dataframeEvaluationRegression) Metrics(metrics types.DataframeEvaluationRegressionMetricsVariant) *_dataframeEvaluationRegression { s.v.Metrics = metrics.DataframeEvaluationRegressionMetricsCaster() @@ -53,8 +48,6 @@ func (s *_dataframeEvaluationRegression) Metrics(metrics types.DataframeEvaluati return s } -// The field in the index that contains the predicted value, in other words the -// results of the regression analysis. func (s *_dataframeEvaluationRegression) PredictedField(field string) *_dataframeEvaluationRegression { s.v.PredictedField = field diff --git a/typedapi/esdsl/dataframeevaluationregressionmetrics.go b/typedapi/esdsl/dataframeevaluationregressionmetrics.go index 36f71740d1..b884b4ebe4 100644 --- a/typedapi/esdsl/dataframeevaluationregressionmetrics.go +++ b/typedapi/esdsl/dataframeevaluationregressionmetrics.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _dataframeEvaluationRegressionMetrics struct { @@ -36,7 +36,6 @@ func NewDataframeEvaluationRegressionMetrics() *_dataframeEvaluationRegressionMe } -// Pseudo Huber loss function. func (s *_dataframeEvaluationRegressionMetrics) Huber(huber types.DataframeEvaluationRegressionMetricsHuberVariant) *_dataframeEvaluationRegressionMetrics { s.v.Huber = huber.DataframeEvaluationRegressionMetricsHuberCaster() @@ -44,8 +43,6 @@ func (s *_dataframeEvaluationRegressionMetrics) Huber(huber types.DataframeEvalu return s } -// Average squared difference between the predicted values and the actual -// (ground truth) value. For more information, read this wiki article. func (s *_dataframeEvaluationRegressionMetrics) Mse(mse map[string]json.RawMessage) *_dataframeEvaluationRegressionMetrics { s.v.Mse = mse @@ -67,8 +64,6 @@ func (s *_dataframeEvaluationRegressionMetrics) AddMse(key string, value json.Ra return s } -// Average squared difference between the logarithm of the predicted values and -// the logarithm of the actual (ground truth) value. func (s *_dataframeEvaluationRegressionMetrics) Msle(msle types.DataframeEvaluationRegressionMetricsMsleVariant) *_dataframeEvaluationRegressionMetrics { s.v.Msle = msle.DataframeEvaluationRegressionMetricsMsleCaster() @@ -76,8 +71,6 @@ func (s *_dataframeEvaluationRegressionMetrics) Msle(msle types.DataframeEvaluat return s } -// Proportion of the variance in the dependent variable that is predictable from -// the independent variables. func (s *_dataframeEvaluationRegressionMetrics) RSquared(rsquared map[string]json.RawMessage) *_dataframeEvaluationRegressionMetrics { s.v.RSquared = rsquared diff --git a/typedapi/esdsl/dataframeevaluationregressionmetricshuber.go b/typedapi/esdsl/dataframeevaluationregressionmetricshuber.go index d1b43dac25..120d345dd5 100644 --- a/typedapi/esdsl/dataframeevaluationregressionmetricshuber.go +++ b/typedapi/esdsl/dataframeevaluationregressionmetricshuber.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeEvaluationRegressionMetricsHuber struct { v *types.DataframeEvaluationRegressionMetricsHuber @@ -32,9 +32,6 @@ func NewDataframeEvaluationRegressionMetricsHuber() *_dataframeEvaluationRegress } -// 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 -// delta. Defaults to 1. Delta needs to be greater than 0. func (s *_dataframeEvaluationRegressionMetricsHuber) Delta(delta types.Float64) *_dataframeEvaluationRegressionMetricsHuber { s.v.Delta = &delta diff --git a/typedapi/esdsl/dataframeevaluationregressionmetricsmsle.go b/typedapi/esdsl/dataframeevaluationregressionmetricsmsle.go index 085fae123d..8cb4ff32e6 100644 --- a/typedapi/esdsl/dataframeevaluationregressionmetricsmsle.go +++ b/typedapi/esdsl/dataframeevaluationregressionmetricsmsle.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframeEvaluationRegressionMetricsMsle struct { v *types.DataframeEvaluationRegressionMetricsMsle @@ -32,8 +32,6 @@ func NewDataframeEvaluationRegressionMetricsMsle() *_dataframeEvaluationRegressi } -// Defines the transition point at which you switch from minimizing quadratic -// error to minimizing quadratic log error. Defaults to 1. func (s *_dataframeEvaluationRegressionMetricsMsle) Offset(offset types.Float64) *_dataframeEvaluationRegressionMetricsMsle { s.v.Offset = &offset diff --git a/typedapi/esdsl/dataframepreviewconfig.go b/typedapi/esdsl/dataframepreviewconfig.go index 1130e4af74..4d5965c681 100644 --- a/typedapi/esdsl/dataframepreviewconfig.go +++ b/typedapi/esdsl/dataframepreviewconfig.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataframePreviewConfig struct { v *types.DataframePreviewConfig diff --git a/typedapi/esdsl/datastreamlifecycle.go b/typedapi/esdsl/datastreamlifecycle.go index a167f12a2f..b296a29817 100644 --- a/typedapi/esdsl/datastreamlifecycle.go +++ b/typedapi/esdsl/datastreamlifecycle.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataStreamLifecycle struct { v *types.DataStreamLifecycle @@ -32,10 +32,6 @@ func NewDataStreamLifecycle() *_dataStreamLifecycle { } -// If defined, every document added to this data stream will be stored at least -// for this time frame. -// Any time after this duration the document could be deleted. -// When empty, every document in this data stream will be stored indefinitely. func (s *_dataStreamLifecycle) DataRetention(duration types.DurationVariant) *_dataStreamLifecycle { s.v.DataRetention = *duration.DurationCaster() @@ -43,8 +39,6 @@ func (s *_dataStreamLifecycle) DataRetention(duration types.DurationVariant) *_d return s } -// The downsampling configuration to execute for the managed backing index after -// rollover. func (s *_dataStreamLifecycle) Downsampling(downsampling types.DataStreamLifecycleDownsamplingVariant) *_dataStreamLifecycle { s.v.Downsampling = downsampling.DataStreamLifecycleDownsamplingCaster() @@ -52,9 +46,6 @@ func (s *_dataStreamLifecycle) Downsampling(downsampling types.DataStreamLifecyc return s } -// If defined, it turns data stream lifecycle on/off (`true`/`false`) for this -// data stream. A data stream lifecycle -// that's disabled (enabled: `false`) will have no effect on the data stream. func (s *_dataStreamLifecycle) Enabled(enabled bool) *_dataStreamLifecycle { s.v.Enabled = &enabled diff --git a/typedapi/esdsl/datastreamlifecycledownsampling.go b/typedapi/esdsl/datastreamlifecycledownsampling.go index 5eaff59524..8cc2a9c188 100644 --- a/typedapi/esdsl/datastreamlifecycledownsampling.go +++ b/typedapi/esdsl/datastreamlifecycledownsampling.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataStreamLifecycleDownsampling struct { v *types.DataStreamLifecycleDownsampling @@ -32,8 +32,6 @@ func NewDataStreamLifecycleDownsampling() *_dataStreamLifecycleDownsampling { } -// The list of downsampling rounds to execute as part of this downsampling -// configuration func (s *_dataStreamLifecycleDownsampling) Rounds(rounds ...types.DownsamplingRoundVariant) *_dataStreamLifecycleDownsampling { for _, v := range rounds { diff --git a/typedapi/esdsl/datastreamlifecyclerolloverconditions.go b/typedapi/esdsl/datastreamlifecyclerolloverconditions.go index 330cbaa351..30ad55f8ba 100644 --- a/typedapi/esdsl/datastreamlifecyclerolloverconditions.go +++ b/typedapi/esdsl/datastreamlifecyclerolloverconditions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataStreamLifecycleRolloverConditions struct { v *types.DataStreamLifecycleRolloverConditions diff --git a/typedapi/esdsl/datastreamlifecyclewithrollover.go b/typedapi/esdsl/datastreamlifecyclewithrollover.go index 161c91b842..65c40b0b37 100644 --- a/typedapi/esdsl/datastreamlifecyclewithrollover.go +++ b/typedapi/esdsl/datastreamlifecyclewithrollover.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataStreamLifecycleWithRollover struct { v *types.DataStreamLifecycleWithRollover @@ -32,10 +32,6 @@ func NewDataStreamLifecycleWithRollover() *_dataStreamLifecycleWithRollover { } -// If defined, every document added to this data stream will be stored at least -// for this time frame. -// Any time after this duration the document could be deleted. -// When empty, every document in this data stream will be stored indefinitely. func (s *_dataStreamLifecycleWithRollover) DataRetention(duration types.DurationVariant) *_dataStreamLifecycleWithRollover { s.v.DataRetention = *duration.DurationCaster() @@ -43,8 +39,6 @@ func (s *_dataStreamLifecycleWithRollover) DataRetention(duration types.Duration return s } -// The downsampling configuration to execute for the managed backing index after -// rollover. func (s *_dataStreamLifecycleWithRollover) Downsampling(downsampling types.DataStreamLifecycleDownsamplingVariant) *_dataStreamLifecycleWithRollover { s.v.Downsampling = downsampling.DataStreamLifecycleDownsamplingCaster() @@ -52,9 +46,6 @@ func (s *_dataStreamLifecycleWithRollover) Downsampling(downsampling types.DataS return s } -// If defined, it turns data stream lifecycle on/off (`true`/`false`) for this -// data stream. A data stream lifecycle -// that's disabled (enabled: `false`) will have no effect on the data stream. func (s *_dataStreamLifecycleWithRollover) Enabled(enabled bool) *_dataStreamLifecycleWithRollover { s.v.Enabled = &enabled @@ -62,11 +53,6 @@ func (s *_dataStreamLifecycleWithRollover) Enabled(enabled bool) *_dataStreamLif return s } -// The conditions which will trigger the rollover of a backing index as -// configured by the cluster setting `cluster.lifecycle.default.rollover`. -// This property is an implementation detail and it will only be retrieved when -// the query param `include_defaults` is set to true. -// The contents of this field are subject to change. func (s *_dataStreamLifecycleWithRollover) Rollover(rollover types.DataStreamLifecycleRolloverConditionsVariant) *_dataStreamLifecycleWithRollover { s.v.Rollover = rollover.DataStreamLifecycleRolloverConditionsCaster() diff --git a/typedapi/esdsl/datastreamtimestamp.go b/typedapi/esdsl/datastreamtimestamp.go index 16f49c5c84..535a801b94 100644 --- a/typedapi/esdsl/datastreamtimestamp.go +++ b/typedapi/esdsl/datastreamtimestamp.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataStreamTimestamp struct { v *types.DataStreamTimestamp diff --git a/typedapi/esdsl/datastreamvisibility.go b/typedapi/esdsl/datastreamvisibility.go index 741a47e1d0..92c6247c9b 100644 --- a/typedapi/esdsl/datastreamvisibility.go +++ b/typedapi/esdsl/datastreamvisibility.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dataStreamVisibility struct { v *types.DataStreamVisibility diff --git a/typedapi/esdsl/datedecayfunction.go b/typedapi/esdsl/datedecayfunction.go index a6ddb790da..7c77326e9d 100644 --- a/typedapi/esdsl/datedecayfunction.go +++ b/typedapi/esdsl/datedecayfunction.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/multivaluemode" ) type _dateDecayFunction struct { @@ -58,8 +58,6 @@ func (s *_dateDecayFunction) AddDecayFunctionBaseDateMathDuration(key string, va return s } -// Determines how the distance is calculated when a field used for computing the -// decay contains multiple values. func (s *_dateDecayFunction) MultiValueMode(multivaluemode multivaluemode.MultiValueMode) *_dateDecayFunction { s.v.MultiValueMode = &multivaluemode diff --git a/typedapi/esdsl/datedistancefeaturequery.go b/typedapi/esdsl/datedistancefeaturequery.go index dbf6805f2c..fccc5bfb8c 100644 --- a/typedapi/esdsl/datedistancefeaturequery.go +++ b/typedapi/esdsl/datedistancefeaturequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dateDistanceFeatureQuery struct { v *types.DateDistanceFeatureQuery @@ -36,11 +36,6 @@ func NewDateDistanceFeatureQuery() *_dateDistanceFeatureQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_dateDistanceFeatureQuery) Boost(boost float32) *_dateDistanceFeatureQuery { s.v.Boost = &boost @@ -48,11 +43,6 @@ func (s *_dateDistanceFeatureQuery) Boost(boost float32) *_dateDistanceFeatureQu return s } -// Name of the field used to calculate distances. This field must meet the -// following criteria: -// be a `date`, `date_nanos` or `geo_point` field; -// have an `index` mapping parameter value of `true`, which is the default; -// have an `doc_values` mapping parameter value of `true`, which is the default. func (s *_dateDistanceFeatureQuery) Field(field string) *_dateDistanceFeatureQuery { s.v.Field = field @@ -60,12 +50,6 @@ func (s *_dateDistanceFeatureQuery) Field(field string) *_dateDistanceFeatureQue return s } -// Date or point of origin used to calculate distances. -// If the `field` value is a `date` or `date_nanos` field, the `origin` value -// must be a date. -// Date Math, such as `now-1h`, is supported. -// If the field value is a `geo_point` field, the `origin` value must be a -// geopoint. func (s *_dateDistanceFeatureQuery) Origin(datemath string) *_dateDistanceFeatureQuery { s.v.Origin = datemath @@ -73,12 +57,6 @@ func (s *_dateDistanceFeatureQuery) Origin(datemath string) *_dateDistanceFeatur return s } -// Distance from the `origin` at which relevance scores receive half of the -// `boost` value. -// If the `field` value is a `date` or `date_nanos` field, the `pivot` value -// must be a time unit, such as `1h` or `10d`. If the `field` value is a -// `geo_point` field, the `pivot` value must be a distance unit, such as `1km` -// or `12m`. func (s *_dateDistanceFeatureQuery) Pivot(duration types.DurationVariant) *_dateDistanceFeatureQuery { s.v.Pivot = *duration.DurationCaster() diff --git a/typedapi/esdsl/datehistogramaggregation.go b/typedapi/esdsl/datehistogramaggregation.go index 6fcd1db7fb..af8acc390e 100644 --- a/typedapi/esdsl/datehistogramaggregation.go +++ b/typedapi/esdsl/datehistogramaggregation.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/calendarinterval" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/calendarinterval" ) type _dateHistogramAggregation struct { @@ -40,16 +40,12 @@ func NewDateHistogramAggregation() *_dateHistogramAggregation { } -// Calendar-aware interval. -// Can be specified using the unit name, such as `month`, or as a single unit -// quantity, such as `1M`. func (s *_dateHistogramAggregation) CalendarInterval(calendarinterval calendarinterval.CalendarInterval) *_dateHistogramAggregation { s.v.CalendarInterval = &calendarinterval return s } -// Enables extending the bounds of the histogram beyond the data itself. func (s *_dateHistogramAggregation) ExtendedBounds(extendedbounds types.ExtendedBoundsFieldDateMathVariant) *_dateHistogramAggregation { s.v.ExtendedBounds = extendedbounds.ExtendedBoundsFieldDateMathCaster() @@ -57,7 +53,6 @@ func (s *_dateHistogramAggregation) ExtendedBounds(extendedbounds types.Extended return s } -// The date field whose values are use to build a histogram. func (s *_dateHistogramAggregation) Field(field string) *_dateHistogramAggregation { s.v.Field = &field @@ -65,8 +60,6 @@ func (s *_dateHistogramAggregation) Field(field string) *_dateHistogramAggregati return s } -// Fixed intervals: a fixed number of SI units and never deviate, regardless of -// where they fall on the calendar. func (s *_dateHistogramAggregation) FixedInterval(duration types.DurationVariant) *_dateHistogramAggregation { s.v.FixedInterval = *duration.DurationCaster() @@ -74,9 +67,6 @@ func (s *_dateHistogramAggregation) FixedInterval(duration types.DurationVariant return s } -// The date format used to format `key_as_string` in the response. -// If no `format` is specified, the first date format specified in the field -// mapping is used. func (s *_dateHistogramAggregation) Format(format string) *_dateHistogramAggregation { s.v.Format = &format @@ -84,7 +74,6 @@ func (s *_dateHistogramAggregation) Format(format string) *_dateHistogramAggrega return s } -// Limits the histogram to specified bounds. func (s *_dateHistogramAggregation) HardBounds(hardbounds types.ExtendedBoundsFieldDateMathVariant) *_dateHistogramAggregation { s.v.HardBounds = hardbounds.ExtendedBoundsFieldDateMathCaster() @@ -99,8 +88,6 @@ func (s *_dateHistogramAggregation) Interval(duration types.DurationVariant) *_d return s } -// Set to `true` to associate a unique string key with each bucket and return -// the ranges as a hash rather than an array. func (s *_dateHistogramAggregation) Keyed(keyed bool) *_dateHistogramAggregation { s.v.Keyed = &keyed @@ -108,9 +95,6 @@ func (s *_dateHistogramAggregation) Keyed(keyed bool) *_dateHistogramAggregation return s } -// Only returns buckets that have `min_doc_count` number of documents. -// By default, all buckets between the first bucket that matches documents and -// the last one are returned. func (s *_dateHistogramAggregation) MinDocCount(mindoccount int) *_dateHistogramAggregation { s.v.MinDocCount = &mindoccount @@ -118,8 +102,6 @@ func (s *_dateHistogramAggregation) MinDocCount(mindoccount int) *_dateHistogram return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_dateHistogramAggregation) Missing(datetime types.DateTimeVariant) *_dateHistogramAggregation { s.v.Missing = *datetime.DateTimeCaster() @@ -127,8 +109,6 @@ func (s *_dateHistogramAggregation) Missing(datetime types.DateTimeVariant) *_da return s } -// Changes the start value of each bucket by the specified positive (`+`) or -// negative offset (`-`) duration. func (s *_dateHistogramAggregation) Offset(duration types.DurationVariant) *_dateHistogramAggregation { s.v.Offset = *duration.DurationCaster() @@ -136,7 +116,6 @@ func (s *_dateHistogramAggregation) Offset(duration types.DurationVariant) *_dat return s } -// The sort order of the returned buckets. func (s *_dateHistogramAggregation) Order(aggregateorder types.AggregateOrderVariant) *_dateHistogramAggregation { s.v.Order = *aggregateorder.AggregateOrderCaster() @@ -172,8 +151,6 @@ func (s *_dateHistogramAggregation) Script(script types.ScriptVariant) *_dateHis return s } -// Time zone used for bucketing and rounding. -// Defaults to Coordinated Universal Time (UTC). func (s *_dateHistogramAggregation) TimeZone(timezone string) *_dateHistogramAggregation { s.v.TimeZone = &timezone diff --git a/typedapi/esdsl/datehistogramgrouping.go b/typedapi/esdsl/datehistogramgrouping.go index ab08bd4641..d6a8c955cb 100644 --- a/typedapi/esdsl/datehistogramgrouping.go +++ b/typedapi/esdsl/datehistogramgrouping.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dateHistogramGrouping struct { v *types.DateHistogramGrouping @@ -32,7 +32,6 @@ func NewDateHistogramGrouping() *_dateHistogramGrouping { } -// The interval of time buckets to be generated when rolling up. func (s *_dateHistogramGrouping) CalendarInterval(duration types.DurationVariant) *_dateHistogramGrouping { s.v.CalendarInterval = *duration.DurationCaster() @@ -40,13 +39,6 @@ func (s *_dateHistogramGrouping) CalendarInterval(duration types.DurationVariant return s } -// How long to wait before rolling up new documents. -// By default, the indexer attempts to roll up all data that is available. -// However, it is not uncommon for data to arrive out of order. -// The indexer is unable to deal with data that arrives after a time-span has -// been rolled up. -// You need to specify a delay that matches the longest period of time you -// expect out-of-order data to arrive. func (s *_dateHistogramGrouping) Delay(duration types.DurationVariant) *_dateHistogramGrouping { s.v.Delay = *duration.DurationCaster() @@ -54,7 +46,6 @@ func (s *_dateHistogramGrouping) Delay(duration types.DurationVariant) *_dateHis return s } -// The date field that is to be rolled up. func (s *_dateHistogramGrouping) Field(field string) *_dateHistogramGrouping { s.v.Field = field @@ -62,7 +53,6 @@ func (s *_dateHistogramGrouping) Field(field string) *_dateHistogramGrouping { return s } -// The interval of time buckets to be generated when rolling up. func (s *_dateHistogramGrouping) FixedInterval(duration types.DurationVariant) *_dateHistogramGrouping { s.v.FixedInterval = *duration.DurationCaster() @@ -84,10 +74,6 @@ func (s *_dateHistogramGrouping) Interval(duration types.DurationVariant) *_date return s } -// Defines what `time_zone` the rollup documents are stored as. -// Unlike raw data, which can shift timezones on the fly, rolled documents have -// to be stored with a specific timezone. -// By default, rollup documents are stored in `UTC`. func (s *_dateHistogramGrouping) TimeZone(timezone string) *_dateHistogramGrouping { s.v.TimeZone = &timezone diff --git a/typedapi/esdsl/dateindexnameprocessor.go b/typedapi/esdsl/dateindexnameprocessor.go index 39af6f74b8..2a9661892a 100644 --- a/typedapi/esdsl/dateindexnameprocessor.go +++ b/typedapi/esdsl/dateindexnameprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dateIndexNameProcessor struct { v *types.DateIndexNameProcessor @@ -39,10 +39,6 @@ func NewDateIndexNameProcessor(daterounding string) *_dateIndexNameProcessor { } -// An array of the expected date formats for parsing dates / timestamps in the -// document being preprocessed. -// Can be a java time pattern or one of the following formats: ISO8601, UNIX, -// UNIX_MS, or TAI64N. func (s *_dateIndexNameProcessor) DateFormats(dateformats ...string) *_dateIndexNameProcessor { for _, v := range dateformats { @@ -53,11 +49,6 @@ func (s *_dateIndexNameProcessor) DateFormats(dateformats ...string) *_dateIndex return s } -// How to round the date when formatting the date into the index name. Valid -// values are: -// `y` (year), `M` (month), `w` (week), `d` (day), `h` (hour), `m` (minute) and -// `s` (second). -// Supports template snippets. func (s *_dateIndexNameProcessor) DateRounding(daterounding string) *_dateIndexNameProcessor { s.v.DateRounding = daterounding @@ -65,8 +56,6 @@ func (s *_dateIndexNameProcessor) DateRounding(daterounding string) *_dateIndexN return s } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_dateIndexNameProcessor) Description(description string) *_dateIndexNameProcessor { s.v.Description = &description @@ -74,7 +63,6 @@ func (s *_dateIndexNameProcessor) Description(description string) *_dateIndexNam return s } -// The field to get the date or timestamp from. func (s *_dateIndexNameProcessor) Field(field string) *_dateIndexNameProcessor { s.v.Field = field @@ -82,7 +70,6 @@ func (s *_dateIndexNameProcessor) Field(field string) *_dateIndexNameProcessor { return s } -// Conditionally execute the processor. func (s *_dateIndexNameProcessor) If(if_ types.ScriptVariant) *_dateIndexNameProcessor { s.v.If = if_.ScriptCaster() @@ -90,7 +77,6 @@ func (s *_dateIndexNameProcessor) If(if_ types.ScriptVariant) *_dateIndexNamePro return s } -// Ignore failures for the processor. func (s *_dateIndexNameProcessor) IgnoreFailure(ignorefailure bool) *_dateIndexNameProcessor { s.v.IgnoreFailure = &ignorefailure @@ -98,9 +84,6 @@ func (s *_dateIndexNameProcessor) IgnoreFailure(ignorefailure bool) *_dateIndexN return s } -// The format to be used when printing the parsed date into the index name. -// A valid java time pattern is expected here. -// Supports template snippets. func (s *_dateIndexNameProcessor) IndexNameFormat(indexnameformat string) *_dateIndexNameProcessor { s.v.IndexNameFormat = &indexnameformat @@ -108,8 +91,6 @@ func (s *_dateIndexNameProcessor) IndexNameFormat(indexnameformat string) *_date return s } -// A prefix of the index name to be prepended before the printed date. -// Supports template snippets. func (s *_dateIndexNameProcessor) IndexNamePrefix(indexnameprefix string) *_dateIndexNameProcessor { s.v.IndexNamePrefix = &indexnameprefix @@ -117,8 +98,6 @@ func (s *_dateIndexNameProcessor) IndexNamePrefix(indexnameprefix string) *_date return s } -// The locale to use when parsing the date from the document being preprocessed, -// relevant when parsing month names or week days. func (s *_dateIndexNameProcessor) Locale(locale string) *_dateIndexNameProcessor { s.v.Locale = &locale @@ -126,7 +105,6 @@ func (s *_dateIndexNameProcessor) Locale(locale string) *_dateIndexNameProcessor return s } -// Handle failures for the processor. func (s *_dateIndexNameProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_dateIndexNameProcessor { for _, v := range onfailures { @@ -137,8 +115,6 @@ func (s *_dateIndexNameProcessor) OnFailure(onfailures ...types.ProcessorContain return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_dateIndexNameProcessor) Tag(tag string) *_dateIndexNameProcessor { s.v.Tag = &tag @@ -146,8 +122,6 @@ func (s *_dateIndexNameProcessor) Tag(tag string) *_dateIndexNameProcessor { return s } -// The timezone to use when parsing the date and when date math index supports -// resolves expressions into concrete index names. func (s *_dateIndexNameProcessor) Timezone(timezone string) *_dateIndexNameProcessor { s.v.Timezone = &timezone diff --git a/typedapi/esdsl/datenanosproperty.go b/typedapi/esdsl/datenanosproperty.go index 6130cde8cc..53b88c9392 100644 --- a/typedapi/esdsl/datenanosproperty.go +++ b/typedapi/esdsl/datenanosproperty.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _dateNanosProperty struct { @@ -113,7 +113,6 @@ func (s *_dateNanosProperty) Index(index bool) *_dateNanosProperty { return s } -// Metadata about the field. func (s *_dateNanosProperty) Meta(meta map[string]string) *_dateNanosProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/dateprocessor.go b/typedapi/esdsl/dateprocessor.go index ef71cdeae2..56eddab301 100644 --- a/typedapi/esdsl/dateprocessor.go +++ b/typedapi/esdsl/dateprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dateProcessor struct { v *types.DateProcessor @@ -34,8 +34,6 @@ func NewDateProcessor() *_dateProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_dateProcessor) Description(description string) *_dateProcessor { s.v.Description = &description @@ -43,7 +41,6 @@ func (s *_dateProcessor) Description(description string) *_dateProcessor { return s } -// The field to get the date from. func (s *_dateProcessor) Field(field string) *_dateProcessor { s.v.Field = field @@ -51,9 +48,6 @@ func (s *_dateProcessor) Field(field string) *_dateProcessor { return s } -// An array of the expected date formats. -// Can be a java time pattern or one of the following formats: ISO8601, UNIX, -// UNIX_MS, or TAI64N. func (s *_dateProcessor) Formats(formats ...string) *_dateProcessor { for _, v := range formats { @@ -64,7 +58,6 @@ func (s *_dateProcessor) Formats(formats ...string) *_dateProcessor { return s } -// Conditionally execute the processor. func (s *_dateProcessor) If(if_ types.ScriptVariant) *_dateProcessor { s.v.If = if_.ScriptCaster() @@ -72,7 +65,6 @@ func (s *_dateProcessor) If(if_ types.ScriptVariant) *_dateProcessor { return s } -// Ignore failures for the processor. func (s *_dateProcessor) IgnoreFailure(ignorefailure bool) *_dateProcessor { s.v.IgnoreFailure = &ignorefailure @@ -80,9 +72,6 @@ func (s *_dateProcessor) IgnoreFailure(ignorefailure bool) *_dateProcessor { return s } -// The locale to use when parsing the date, relevant when parsing month names or -// week days. -// Supports template snippets. func (s *_dateProcessor) Locale(locale string) *_dateProcessor { s.v.Locale = &locale @@ -90,7 +79,6 @@ func (s *_dateProcessor) Locale(locale string) *_dateProcessor { return s } -// Handle failures for the processor. func (s *_dateProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_dateProcessor { for _, v := range onfailures { @@ -101,8 +89,6 @@ func (s *_dateProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant return s } -// The format to use when writing the date to target_field. Must be a valid -// java time pattern. func (s *_dateProcessor) OutputFormat(outputformat string) *_dateProcessor { s.v.OutputFormat = &outputformat @@ -110,8 +96,6 @@ func (s *_dateProcessor) OutputFormat(outputformat string) *_dateProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_dateProcessor) Tag(tag string) *_dateProcessor { s.v.Tag = &tag @@ -119,7 +103,6 @@ func (s *_dateProcessor) Tag(tag string) *_dateProcessor { return s } -// The field that will hold the parsed date. func (s *_dateProcessor) TargetField(field string) *_dateProcessor { s.v.TargetField = &field @@ -127,8 +110,6 @@ func (s *_dateProcessor) TargetField(field string) *_dateProcessor { return s } -// The timezone to use when parsing the date. -// Supports template snippets. func (s *_dateProcessor) Timezone(timezone string) *_dateProcessor { s.v.Timezone = &timezone diff --git a/typedapi/esdsl/dateproperty.go b/typedapi/esdsl/dateproperty.go index 691dcf10e6..9ec005503b 100644 --- a/typedapi/esdsl/dateproperty.go +++ b/typedapi/esdsl/dateproperty.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _dateProperty struct { @@ -127,7 +127,6 @@ func (s *_dateProperty) Locale(locale string) *_dateProperty { return s } -// Metadata about the field. func (s *_dateProperty) Meta(meta map[string]string) *_dateProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/daterangeaggregation.go b/typedapi/esdsl/daterangeaggregation.go index eb2eacd5b3..f528193081 100644 --- a/typedapi/esdsl/daterangeaggregation.go +++ b/typedapi/esdsl/daterangeaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dateRangeAggregation struct { v *types.DateRangeAggregation @@ -34,7 +34,6 @@ func NewDateRangeAggregation() *_dateRangeAggregation { } -// The date field whose values are use to build ranges. func (s *_dateRangeAggregation) Field(field string) *_dateRangeAggregation { s.v.Field = &field @@ -42,7 +41,6 @@ func (s *_dateRangeAggregation) Field(field string) *_dateRangeAggregation { return s } -// The date format used to format `from` and `to` in the response. func (s *_dateRangeAggregation) Format(format string) *_dateRangeAggregation { s.v.Format = &format @@ -50,8 +48,6 @@ func (s *_dateRangeAggregation) Format(format string) *_dateRangeAggregation { return s } -// Set to `true` to associate a unique string key with each bucket and returns -// the ranges as a hash rather than an array. func (s *_dateRangeAggregation) Keyed(keyed bool) *_dateRangeAggregation { s.v.Keyed = &keyed @@ -59,8 +55,6 @@ func (s *_dateRangeAggregation) Keyed(keyed bool) *_dateRangeAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_dateRangeAggregation) Missing(missing types.MissingVariant) *_dateRangeAggregation { s.v.Missing = *missing.MissingCaster() @@ -68,7 +62,6 @@ func (s *_dateRangeAggregation) Missing(missing types.MissingVariant) *_dateRang return s } -// Array of date ranges. func (s *_dateRangeAggregation) Ranges(ranges ...types.DateRangeExpressionVariant) *_dateRangeAggregation { for _, v := range ranges { @@ -79,7 +72,6 @@ func (s *_dateRangeAggregation) Ranges(ranges ...types.DateRangeExpressionVarian return s } -// Time zone used to convert dates from another time zone to UTC. func (s *_dateRangeAggregation) TimeZone(timezone string) *_dateRangeAggregation { s.v.TimeZone = &timezone diff --git a/typedapi/esdsl/daterangeexpression.go b/typedapi/esdsl/daterangeexpression.go index cb8ab4c18e..cb7318a0d4 100644 --- a/typedapi/esdsl/daterangeexpression.go +++ b/typedapi/esdsl/daterangeexpression.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dateRangeExpression struct { v *types.DateRangeExpression @@ -32,7 +32,6 @@ func NewDateRangeExpression() *_dateRangeExpression { } -// Start of the range (inclusive). func (s *_dateRangeExpression) From(fielddatemath types.FieldDateMathVariant) *_dateRangeExpression { s.v.From = *fielddatemath.FieldDateMathCaster() @@ -40,7 +39,6 @@ func (s *_dateRangeExpression) From(fielddatemath types.FieldDateMathVariant) *_ return s } -// Custom key to return the range with. func (s *_dateRangeExpression) Key(key string) *_dateRangeExpression { s.v.Key = &key @@ -48,7 +46,6 @@ func (s *_dateRangeExpression) Key(key string) *_dateRangeExpression { return s } -// End of the range (exclusive). func (s *_dateRangeExpression) To(fielddatemath types.FieldDateMathVariant) *_dateRangeExpression { s.v.To = *fielddatemath.FieldDateMathCaster() diff --git a/typedapi/esdsl/daterangeproperty.go b/typedapi/esdsl/daterangeproperty.go index 71ad3187c4..3c44044955 100644 --- a/typedapi/esdsl/daterangeproperty.go +++ b/typedapi/esdsl/daterangeproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _dateRangeProperty struct { @@ -112,7 +112,6 @@ func (s *_dateRangeProperty) Index(index bool) *_dateRangeProperty { return s } -// Metadata about the field. func (s *_dateRangeProperty) Meta(meta map[string]string) *_dateRangeProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/daterangequery.go b/typedapi/esdsl/daterangequery.go index 321333862b..54d35509e1 100644 --- a/typedapi/esdsl/daterangequery.go +++ b/typedapi/esdsl/daterangequery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/rangerelation" ) type _dateRangeQuery struct { @@ -30,7 +30,7 @@ type _dateRangeQuery struct { v *types.DateRangeQuery } -// Returns users that contain terms within a provided range. +// Returns documents that contain terms within a provided range. func NewDateRangeQuery(key string) *_dateRangeQuery { return &_dateRangeQuery{ k: key, @@ -38,11 +38,6 @@ func NewDateRangeQuery(key string) *_dateRangeQuery { } } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_dateRangeQuery) Boost(boost float32) *_dateRangeQuery { s.v.Boost = &boost @@ -50,7 +45,6 @@ func (s *_dateRangeQuery) Boost(boost float32) *_dateRangeQuery { return s } -// Date format used to convert `date` values in the query. func (s *_dateRangeQuery) Format(dateformat string) *_dateRangeQuery { s.v.Format = &dateformat @@ -65,7 +59,6 @@ func (s *_dateRangeQuery) From(from string) *_dateRangeQuery { return s } -// Greater than. func (s *_dateRangeQuery) Gt(datemath string) *_dateRangeQuery { s.v.Gt = &datemath @@ -73,7 +66,6 @@ func (s *_dateRangeQuery) Gt(datemath string) *_dateRangeQuery { return s } -// Greater than or equal to. func (s *_dateRangeQuery) Gte(datemath string) *_dateRangeQuery { s.v.Gte = &datemath @@ -81,7 +73,6 @@ func (s *_dateRangeQuery) Gte(datemath string) *_dateRangeQuery { return s } -// Less than. func (s *_dateRangeQuery) Lt(datemath string) *_dateRangeQuery { s.v.Lt = &datemath @@ -89,7 +80,6 @@ func (s *_dateRangeQuery) Lt(datemath string) *_dateRangeQuery { return s } -// Less than or equal to. func (s *_dateRangeQuery) Lte(datemath string) *_dateRangeQuery { s.v.Lte = &datemath @@ -104,15 +94,12 @@ func (s *_dateRangeQuery) QueryName_(queryname_ string) *_dateRangeQuery { return s } -// Indicates how the range query matches values for `range` fields. func (s *_dateRangeQuery) Relation(relation rangerelation.RangeRelation) *_dateRangeQuery { s.v.Relation = &relation return s } -// Coordinated Universal Time (UTC) offset or IANA time zone used to convert -// `date` values in the query to UTC. func (s *_dateRangeQuery) TimeZone(timezone string) *_dateRangeQuery { s.v.TimeZone = &timezone diff --git a/typedapi/esdsl/datetime.go b/typedapi/esdsl/datetime.go index 6304ad06db..a94cc4791e 100644 --- a/typedapi/esdsl/datetime.go +++ b/typedapi/esdsl/datetime.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _dateTime struct { diff --git a/typedapi/esdsl/decayfunction.go b/typedapi/esdsl/decayfunction.go index a8a9e152c2..69a123fe58 100644 --- a/typedapi/esdsl/decayfunction.go +++ b/typedapi/esdsl/decayfunction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _decayFunction struct { diff --git a/typedapi/esdsl/decayplacement.go b/typedapi/esdsl/decayplacement.go index d70aadfe1e..b7ab3074d6 100644 --- a/typedapi/esdsl/decayplacement.go +++ b/typedapi/esdsl/decayplacement.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _decayPlacement struct { @@ -36,7 +36,6 @@ func NewDecayPlacement() *_decayPlacement { } -// Defines how documents are scored at the distance given at scale. func (s *_decayPlacement) Decay(decay types.Float64) *_decayPlacement { s.v.Decay = &decay @@ -44,8 +43,6 @@ func (s *_decayPlacement) Decay(decay types.Float64) *_decayPlacement { return s } -// If defined, the decay function will only compute the decay function for -// documents with a distance greater than the defined `offset`. func (s *_decayPlacement) Offset(offset json.RawMessage) *_decayPlacement { s.v.Offset = offset @@ -53,8 +50,6 @@ func (s *_decayPlacement) Offset(offset json.RawMessage) *_decayPlacement { return s } -// The point of origin used for calculating distance. Must be given as a number -// for numeric field, date for date fields and geo point for geo fields. func (s *_decayPlacement) Origin(origin json.RawMessage) *_decayPlacement { s.v.Origin = origin @@ -62,8 +57,6 @@ func (s *_decayPlacement) Origin(origin json.RawMessage) *_decayPlacement { return s } -// Defines the distance from origin + offset at which the computed score will -// equal `decay` parameter. func (s *_decayPlacement) Scale(scale json.RawMessage) *_decayPlacement { s.v.Scale = scale diff --git a/typedapi/esdsl/decayplacementdatemathduration.go b/typedapi/esdsl/decayplacementdatemathduration.go index 9b71b811b4..66d6ff8eb7 100644 --- a/typedapi/esdsl/decayplacementdatemathduration.go +++ b/typedapi/esdsl/decayplacementdatemathduration.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _decayPlacementDateMathDuration struct { v *types.DecayPlacementDateMathDuration @@ -32,7 +32,6 @@ func NewDecayPlacementDateMathDuration() *_decayPlacementDateMathDuration { } -// Defines how documents are scored at the distance given at scale. func (s *_decayPlacementDateMathDuration) Decay(decay types.Float64) *_decayPlacementDateMathDuration { s.v.Decay = &decay @@ -40,8 +39,6 @@ func (s *_decayPlacementDateMathDuration) Decay(decay types.Float64) *_decayPlac return s } -// If defined, the decay function will only compute the decay function for -// documents with a distance greater than the defined `offset`. func (s *_decayPlacementDateMathDuration) Offset(duration types.DurationVariant) *_decayPlacementDateMathDuration { s.v.Offset = *duration.DurationCaster() @@ -49,8 +46,6 @@ func (s *_decayPlacementDateMathDuration) Offset(duration types.DurationVariant) return s } -// The point of origin used for calculating distance. Must be given as a number -// for numeric field, date for date fields and geo point for geo fields. func (s *_decayPlacementDateMathDuration) Origin(datemath string) *_decayPlacementDateMathDuration { s.v.Origin = &datemath @@ -58,8 +53,6 @@ func (s *_decayPlacementDateMathDuration) Origin(datemath string) *_decayPlaceme return s } -// Defines the distance from origin + offset at which the computed score will -// equal `decay` parameter. func (s *_decayPlacementDateMathDuration) Scale(duration types.DurationVariant) *_decayPlacementDateMathDuration { s.v.Scale = *duration.DurationCaster() diff --git a/typedapi/esdsl/decayplacementdoubledouble.go b/typedapi/esdsl/decayplacementdoubledouble.go index bfd6092b42..3da9bc6e18 100644 --- a/typedapi/esdsl/decayplacementdoubledouble.go +++ b/typedapi/esdsl/decayplacementdoubledouble.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _decayPlacementdoubledouble struct { v *types.DecayPlacementdoubledouble @@ -32,7 +32,6 @@ func NewDecayPlacementdoubledouble() *_decayPlacementdoubledouble { } -// Defines how documents are scored at the distance given at scale. func (s *_decayPlacementdoubledouble) Decay(decay types.Float64) *_decayPlacementdoubledouble { s.v.Decay = &decay @@ -40,8 +39,6 @@ func (s *_decayPlacementdoubledouble) Decay(decay types.Float64) *_decayPlacemen return s } -// If defined, the decay function will only compute the decay function for -// documents with a distance greater than the defined `offset`. func (s *_decayPlacementdoubledouble) Offset(offset types.Float64) *_decayPlacementdoubledouble { s.v.Offset = &offset @@ -49,8 +46,6 @@ func (s *_decayPlacementdoubledouble) Offset(offset types.Float64) *_decayPlacem return s } -// The point of origin used for calculating distance. Must be given as a number -// for numeric field, date for date fields and geo point for geo fields. func (s *_decayPlacementdoubledouble) Origin(origin types.Float64) *_decayPlacementdoubledouble { s.v.Origin = &origin @@ -58,8 +53,6 @@ func (s *_decayPlacementdoubledouble) Origin(origin types.Float64) *_decayPlacem return s } -// Defines the distance from origin + offset at which the computed score will -// equal `decay` parameter. func (s *_decayPlacementdoubledouble) Scale(scale types.Float64) *_decayPlacementdoubledouble { s.v.Scale = &scale diff --git a/typedapi/esdsl/decayplacementgeolocationdistance.go b/typedapi/esdsl/decayplacementgeolocationdistance.go index 4a8603fd89..433cca2e0c 100644 --- a/typedapi/esdsl/decayplacementgeolocationdistance.go +++ b/typedapi/esdsl/decayplacementgeolocationdistance.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _decayPlacementGeoLocationDistance struct { v *types.DecayPlacementGeoLocationDistance @@ -32,7 +32,6 @@ func NewDecayPlacementGeoLocationDistance() *_decayPlacementGeoLocationDistance } -// Defines how documents are scored at the distance given at scale. func (s *_decayPlacementGeoLocationDistance) Decay(decay types.Float64) *_decayPlacementGeoLocationDistance { s.v.Decay = &decay @@ -40,8 +39,6 @@ func (s *_decayPlacementGeoLocationDistance) Decay(decay types.Float64) *_decayP return s } -// If defined, the decay function will only compute the decay function for -// documents with a distance greater than the defined `offset`. func (s *_decayPlacementGeoLocationDistance) Offset(distance string) *_decayPlacementGeoLocationDistance { s.v.Offset = &distance @@ -49,8 +46,6 @@ func (s *_decayPlacementGeoLocationDistance) Offset(distance string) *_decayPlac return s } -// The point of origin used for calculating distance. Must be given as a number -// for numeric field, date for date fields and geo point for geo fields. func (s *_decayPlacementGeoLocationDistance) Origin(geolocation types.GeoLocationVariant) *_decayPlacementGeoLocationDistance { s.v.Origin = *geolocation.GeoLocationCaster() @@ -58,8 +53,6 @@ func (s *_decayPlacementGeoLocationDistance) Origin(geolocation types.GeoLocatio return s } -// Defines the distance from origin + offset at which the computed score will -// equal `decay` parameter. func (s *_decayPlacementGeoLocationDistance) Scale(distance string) *_decayPlacementGeoLocationDistance { s.v.Scale = &distance diff --git a/typedapi/esdsl/definition.go b/typedapi/esdsl/definition.go index 800e747f12..f19aed7bfc 100644 --- a/typedapi/esdsl/definition.go +++ b/typedapi/esdsl/definition.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _definition struct { v *types.Definition @@ -36,7 +36,6 @@ func NewDefinition(trainedmodel types.TrainedModelVariant) *_definition { } -// Collection of preprocessors func (s *_definition) Preprocessors(preprocessors ...types.PreprocessorVariant) *_definition { for _, v := range preprocessors { @@ -47,7 +46,6 @@ func (s *_definition) Preprocessors(preprocessors ...types.PreprocessorVariant) return s } -// The definition of the trained model. func (s *_definition) TrainedModel(trainedmodel types.TrainedModelVariant) *_definition { s.v.TrainedModel = *trainedmodel.TrainedModelCaster() diff --git a/typedapi/esdsl/delayeddatacheckconfig.go b/typedapi/esdsl/delayeddatacheckconfig.go index 95ee3cafe9..b03c823c93 100644 --- a/typedapi/esdsl/delayeddatacheckconfig.go +++ b/typedapi/esdsl/delayeddatacheckconfig.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _delayedDataCheckConfig struct { v *types.DelayedDataCheckConfig @@ -36,12 +36,6 @@ func NewDelayedDataCheckConfig(enabled bool) *_delayedDataCheckConfig { } -// The window of time that is searched for late data. This window of time ends -// with the latest finalized bucket. -// It defaults to null, which causes an appropriate `check_window` to be -// calculated when the real-time datafeed runs. -// In particular, the default `check_window` span calculation is based on the -// maximum of `2h` or `8 * bucket_span`. func (s *_delayedDataCheckConfig) CheckWindow(duration types.DurationVariant) *_delayedDataCheckConfig { s.v.CheckWindow = *duration.DurationCaster() @@ -49,7 +43,6 @@ func (s *_delayedDataCheckConfig) CheckWindow(duration types.DurationVariant) *_ return s } -// Specifies whether the datafeed periodically checks for delayed data. func (s *_delayedDataCheckConfig) Enabled(enabled bool) *_delayedDataCheckConfig { s.v.Enabled = enabled diff --git a/typedapi/esdsl/deleteaction.go b/typedapi/esdsl/deleteaction.go index 10a1c415b2..d42433468e 100644 --- a/typedapi/esdsl/deleteaction.go +++ b/typedapi/esdsl/deleteaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _deleteAction struct { v *types.DeleteAction diff --git a/typedapi/esdsl/deleteoperation.go b/typedapi/esdsl/deleteoperation.go index 9e622c15cc..c9cce9d780 100644 --- a/typedapi/esdsl/deleteoperation.go +++ b/typedapi/esdsl/deleteoperation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) type _deleteOperation struct { @@ -36,7 +36,6 @@ func NewDeleteOperation() *_deleteOperation { } -// The document ID. func (s *_deleteOperation) Id_(id string) *_deleteOperation { s.v.Id_ = &id @@ -58,7 +57,6 @@ func (s *_deleteOperation) IfSeqNo(sequencenumber int64) *_deleteOperation { return s } -// The name of the index or index alias to perform the action on. func (s *_deleteOperation) Index_(indexname string) *_deleteOperation { s.v.Index_ = &indexname @@ -66,7 +64,6 @@ func (s *_deleteOperation) Index_(indexname string) *_deleteOperation { return s } -// A custom value used to route operations to a specific shard. func (s *_deleteOperation) Routing(routing string) *_deleteOperation { s.v.Routing = &routing diff --git a/typedapi/esdsl/delimitedpayloadtokenfilter.go b/typedapi/esdsl/delimitedpayloadtokenfilter.go index f638133436..94989c722f 100644 --- a/typedapi/esdsl/delimitedpayloadtokenfilter.go +++ b/typedapi/esdsl/delimitedpayloadtokenfilter.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/delimitedpayloadencoding" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/delimitedpayloadencoding" ) type _delimitedPayloadTokenFilter struct { diff --git a/typedapi/esdsl/densevectorindexoptions.go b/typedapi/esdsl/densevectorindexoptions.go index 994fdda587..fcc7813263 100644 --- a/typedapi/esdsl/densevectorindexoptions.go +++ b/typedapi/esdsl/densevectorindexoptions.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/densevectorindexoptionstype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/densevectorindexoptionstype" ) type _denseVectorIndexOptions struct { @@ -39,23 +39,6 @@ func NewDenseVectorIndexOptions(type_ densevectorindexoptionstype.DenseVectorInd } -// The confidence interval to use when quantizing the vectors. Can be any value -// between and including `0.90` and -// `1.0` or exactly `0`. When the value is `0`, this indicates that dynamic -// quantiles should be calculated for -// optimized quantization. When between `0.90` and `1.0`, this value restricts -// the values used when calculating -// the quantization thresholds. -// -// For example, a value of `0.95` will only use the middle `95%` of the values -// when calculating the quantization -// thresholds (e.g. the highest and lowest `2.5%` of values will be ignored). -// -// Defaults to `1/(dims + 1)` for `int8` quantized vectors and `0` for `int4` -// for dynamic quantile calculation. -// -// Only applicable to `int8_hnsw`, `int4_hnsw`, `int8_flat`, and `int4_flat` -// index types. func (s *_denseVectorIndexOptions) ConfidenceInterval(confidenceinterval float32) *_denseVectorIndexOptions { s.v.ConfidenceInterval = &confidenceinterval @@ -63,10 +46,6 @@ func (s *_denseVectorIndexOptions) ConfidenceInterval(confidenceinterval float32 return s } -// The number of candidates to track while assembling the list of nearest -// neighbors for each new node. -// -// Only applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types. func (s *_denseVectorIndexOptions) EfConstruction(efconstruction int) *_denseVectorIndexOptions { s.v.EfConstruction = &efconstruction @@ -74,9 +53,6 @@ func (s *_denseVectorIndexOptions) EfConstruction(efconstruction int) *_denseVec return s } -// The number of neighbors each node will be connected to in the HNSW graph. -// -// Only applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types. func (s *_denseVectorIndexOptions) M(m int) *_denseVectorIndexOptions { s.v.M = &m @@ -84,7 +60,13 @@ func (s *_denseVectorIndexOptions) M(m int) *_denseVectorIndexOptions { return s } -// The type of kNN algorithm to use. +func (s *_denseVectorIndexOptions) RescoreVector(rescorevector types.DenseVectorIndexOptionsRescoreVectorVariant) *_denseVectorIndexOptions { + + s.v.RescoreVector = rescorevector.DenseVectorIndexOptionsRescoreVectorCaster() + + return s +} + func (s *_denseVectorIndexOptions) Type(type_ densevectorindexoptionstype.DenseVectorIndexOptionsType) *_denseVectorIndexOptions { s.v.Type = type_ diff --git a/typedapi/esdsl/densevectorindexoptionsrescorevector.go b/typedapi/esdsl/densevectorindexoptionsrescorevector.go new file mode 100644 index 0000000000..69f3d0d099 --- /dev/null +++ b/typedapi/esdsl/densevectorindexoptionsrescorevector.go @@ -0,0 +1,48 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _denseVectorIndexOptionsRescoreVector struct { + v *types.DenseVectorIndexOptionsRescoreVector +} + +func NewDenseVectorIndexOptionsRescoreVector(oversample float32) *_denseVectorIndexOptionsRescoreVector { + + tmp := &_denseVectorIndexOptionsRescoreVector{v: types.NewDenseVectorIndexOptionsRescoreVector()} + + tmp.Oversample(oversample) + + return tmp + +} + +func (s *_denseVectorIndexOptionsRescoreVector) Oversample(oversample float32) *_denseVectorIndexOptionsRescoreVector { + + s.v.Oversample = oversample + + return s +} + +func (s *_denseVectorIndexOptionsRescoreVector) DenseVectorIndexOptionsRescoreVectorCaster() *types.DenseVectorIndexOptionsRescoreVector { + return s.v +} diff --git a/typedapi/esdsl/densevectorproperty.go b/typedapi/esdsl/densevectorproperty.go index 9be017a8f1..205f008408 100644 --- a/typedapi/esdsl/densevectorproperty.go +++ b/typedapi/esdsl/densevectorproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/densevectorelementtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/densevectorsimilarity" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/densevectorelementtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/densevectorsimilarity" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _denseVectorProperty struct { @@ -38,9 +38,6 @@ func NewDenseVectorProperty() *_denseVectorProperty { } -// Number of vector dimensions. Can't exceed `4096`. If `dims` is not specified, -// it will be set to the length of -// the first vector added to the field. func (s *_denseVectorProperty) Dims(dims int) *_denseVectorProperty { s.v.Dims = &dims @@ -54,8 +51,6 @@ func (s *_denseVectorProperty) Dynamic(dynamic dynamicmapping.DynamicMapping) *_ return s } -// The data type used to encode vectors. The supported data types are `float` -// (default), `byte`, and `bit`. func (s *_denseVectorProperty) ElementType(elementtype densevectorelementtype.DenseVectorElementType) *_denseVectorProperty { s.v.ElementType = &elementtype @@ -90,7 +85,6 @@ func (s *_denseVectorProperty) IgnoreAbove(ignoreabove int) *_denseVectorPropert return s } -// If `true`, you can search this field using the kNN search API. func (s *_denseVectorProperty) Index(index bool) *_denseVectorProperty { s.v.Index = &index @@ -98,13 +92,6 @@ func (s *_denseVectorProperty) Index(index bool) *_denseVectorProperty { return s } -// An optional section that configures the kNN indexing algorithm. The HNSW -// algorithm has two internal parameters -// that influence how the data structure is built. These can be adjusted to -// improve the accuracy of results, at the -// expense of slower indexing speed. -// -// This parameter can only be specified when `index` is `true`. func (s *_denseVectorProperty) IndexOptions(indexoptions types.DenseVectorIndexOptionsVariant) *_denseVectorProperty { s.v.IndexOptions = indexoptions.DenseVectorIndexOptionsCaster() @@ -112,7 +99,6 @@ func (s *_denseVectorProperty) IndexOptions(indexoptions types.DenseVectorIndexO return s } -// Metadata about the field. func (s *_denseVectorProperty) Meta(meta map[string]string) *_denseVectorProperty { s.v.Meta = meta @@ -155,20 +141,6 @@ func (s *_denseVectorProperty) AddProperty(key string, value types.PropertyVaria return s } -// The vector similarity metric to use in kNN search. -// -// Documents are ranked by their vector field's similarity to the query vector. -// The `_score` of each document will -// be derived from the similarity, in a way that ensures scores are positive and -// that a larger score corresponds -// to a higher ranking. -// -// Defaults to `l2_norm` when `element_type` is `bit` otherwise defaults to -// `cosine`. -// -// `bit` vectors only support `l2_norm` as their similarity metric. -// -// This parameter can only be specified when `index` is `true`. func (s *_denseVectorProperty) Similarity(similarity densevectorsimilarity.DenseVectorSimilarity) *_denseVectorProperty { s.v.Similarity = &similarity diff --git a/typedapi/esdsl/dependency.go b/typedapi/esdsl/dependency.go index 26f9ad255f..1cd7093fac 100644 --- a/typedapi/esdsl/dependency.go +++ b/typedapi/esdsl/dependency.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dependency struct { v *types.Dependency diff --git a/typedapi/esdsl/derivativeaggregation.go b/typedapi/esdsl/derivativeaggregation.go index 6736eaad7c..acd5c61d3b 100644 --- a/typedapi/esdsl/derivativeaggregation.go +++ b/typedapi/esdsl/derivativeaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _derivativeAggregation struct { @@ -37,7 +37,6 @@ func NewDerivativeAggregation() *_derivativeAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_derivativeAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_derivativeAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_derivativeAggregation) BucketsPath(bucketspath types.BucketsPathVarian return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_derivativeAggregation) Format(format string) *_derivativeAggregation { s.v.Format = &format @@ -55,7 +51,6 @@ func (s *_derivativeAggregation) Format(format string) *_derivativeAggregation { return s } -// Policy to apply when gaps are found in the data. func (s *_derivativeAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_derivativeAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/detectionrule.go b/typedapi/esdsl/detectionrule.go index d5164124a4..640ead6ddc 100644 --- a/typedapi/esdsl/detectionrule.go +++ b/typedapi/esdsl/detectionrule.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ruleaction" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ruleaction" ) type _detectionRule struct { @@ -35,8 +35,6 @@ func NewDetectionRule() *_detectionRule { } -// 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. func (s *_detectionRule) Actions(actions ...ruleaction.RuleAction) *_detectionRule { for _, v := range actions { @@ -47,9 +45,6 @@ func (s *_detectionRule) Actions(actions ...ruleaction.RuleAction) *_detectionRu return s } -// An array of numeric conditions when the rule applies. A rule must either have -// a non-empty scope or at least one condition. Multiple conditions are combined -// together with a logical AND. func (s *_detectionRule) Conditions(conditions ...types.RuleConditionVariant) *_detectionRule { for _, v := range conditions { @@ -60,10 +55,6 @@ func (s *_detectionRule) Conditions(conditions ...types.RuleConditionVariant) *_ return s } -// A scope of series where the rule applies. A rule must either have a non-empty -// scope or at least one condition. By default, the scope includes all series. -// Scoping is allowed for any of the fields that are also specified in -// `by_field_name`, `over_field_name`, or `partition_field_name`. func (s *_detectionRule) Scope(scope map[string]types.FilterRef) *_detectionRule { s.v.Scope = scope diff --git a/typedapi/esdsl/detector.go b/typedapi/esdsl/detector.go index 34ac5b0477..0afa9d2c80 100644 --- a/typedapi/esdsl/detector.go +++ b/typedapi/esdsl/detector.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/excludefrequent" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/excludefrequent" ) type _detector struct { @@ -35,9 +35,6 @@ func NewDetector() *_detector { } -// The field used to split the data. In particular, this property is used for -// analyzing the splits with respect to their own history. It is used for -// finding unusual values in the context of the split. func (s *_detector) ByFieldName(field string) *_detector { s.v.ByFieldName = &field @@ -45,9 +42,6 @@ func (s *_detector) ByFieldName(field string) *_detector { return s } -// Custom rules enable you to customize the way detectors operate. For example, -// a rule may dictate conditions under which results should be skipped. Kibana -// refers to custom rules as job rules. func (s *_detector) CustomRules(customrules ...types.DetectionRuleVariant) *_detector { for _, v := range customrules { @@ -58,7 +52,6 @@ func (s *_detector) CustomRules(customrules ...types.DetectionRuleVariant) *_det return s } -// A description of the detector. func (s *_detector) DetectorDescription(detectordescription string) *_detector { s.v.DetectorDescription = &detectordescription @@ -66,9 +59,6 @@ func (s *_detector) DetectorDescription(detectordescription string) *_detector { return s } -// A unique identifier for the detector. This identifier is based on the order -// of the detectors in the `analysis_config`, starting at zero. If you specify a -// value for this property, it is ignored. func (s *_detector) DetectorIndex(detectorindex int) *_detector { s.v.DetectorIndex = &detectorindex @@ -76,19 +66,12 @@ func (s *_detector) DetectorIndex(detectorindex int) *_detector { return s } -// If set, frequent entities are excluded from influencing the anomaly results. -// Entities can be considered frequent over time or frequent in a population. If -// you are working with both over and by fields, you can set `exclude_frequent` -// to `all` for both fields, or to `by` or `over` for those specific fields. func (s *_detector) ExcludeFrequent(excludefrequent excludefrequent.ExcludeFrequent) *_detector { s.v.ExcludeFrequent = &excludefrequent return s } -// The field that the detector uses in the function. If you use an event rate -// function such as count or rare, do not specify this field. The `field_name` -// cannot contain double quotes or backslashes. func (s *_detector) FieldName(field string) *_detector { s.v.FieldName = &field @@ -96,8 +79,6 @@ func (s *_detector) FieldName(field string) *_detector { return s } -// The analysis function that is used. For example, `count`, `rare`, `mean`, -// `min`, `max`, or `sum`. func (s *_detector) Function(function string) *_detector { s.v.Function = &function @@ -105,9 +86,6 @@ func (s *_detector) Function(function string) *_detector { return s } -// The field used to split the data. In particular, this property is used for -// analyzing the splits with respect to the history of all splits. It is used -// for finding unusual values in the population of all splits. func (s *_detector) OverFieldName(field string) *_detector { s.v.OverFieldName = &field @@ -115,8 +93,6 @@ func (s *_detector) OverFieldName(field string) *_detector { return s } -// The field used to segment the analysis. When you use this property, you have -// completely independent baselines for each value of this field. func (s *_detector) PartitionFieldName(field string) *_detector { s.v.PartitionFieldName = &field @@ -124,8 +100,6 @@ func (s *_detector) PartitionFieldName(field string) *_detector { return s } -// Defines whether a new series is used as the null series when there is no -// value for the by or partition fields. func (s *_detector) UseNull(usenull bool) *_detector { s.v.UseNull = &usenull diff --git a/typedapi/esdsl/detectorupdate.go b/typedapi/esdsl/detectorupdate.go index 1485130141..c5b6d73b97 100644 --- a/typedapi/esdsl/detectorupdate.go +++ b/typedapi/esdsl/detectorupdate.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _detectorUpdate struct { v *types.DetectorUpdate @@ -36,11 +36,6 @@ func NewDetectorUpdate(detectorindex int) *_detectorUpdate { } -// An array of custom rule objects, which enable you to customize the way -// detectors operate. -// For example, a rule may dictate to the detector conditions under which -// results should be skipped. -// Kibana refers to custom rules as job rules. func (s *_detectorUpdate) CustomRules(customrules ...types.DetectionRuleVariant) *_detectorUpdate { for _, v := range customrules { @@ -51,7 +46,6 @@ func (s *_detectorUpdate) CustomRules(customrules ...types.DetectionRuleVariant) return s } -// A description of the detector. func (s *_detectorUpdate) Description(description string) *_detectorUpdate { s.v.Description = &description @@ -59,9 +53,6 @@ func (s *_detectorUpdate) Description(description string) *_detectorUpdate { return s } -// A unique identifier for the detector. -// This identifier is based on the order of the detectors in the -// `analysis_config`, starting at zero. func (s *_detectorUpdate) DetectorIndex(detectorindex int) *_detectorUpdate { s.v.DetectorIndex = detectorindex diff --git a/typedapi/esdsl/dictionarydecompoundertokenfilter.go b/typedapi/esdsl/dictionarydecompoundertokenfilter.go index 184e3addde..bae3abc33f 100644 --- a/typedapi/esdsl/dictionarydecompoundertokenfilter.go +++ b/typedapi/esdsl/dictionarydecompoundertokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dictionaryDecompounderTokenFilter struct { v *types.DictionaryDecompounderTokenFilter diff --git a/typedapi/esdsl/directgenerator.go b/typedapi/esdsl/directgenerator.go index dbf120722e..cb5f506389 100644 --- a/typedapi/esdsl/directgenerator.go +++ b/typedapi/esdsl/directgenerator.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/suggestmode" ) type _directGenerator struct { @@ -35,8 +35,6 @@ func NewDirectGenerator() *_directGenerator { } -// The field to fetch the candidate suggestions from. -// Needs to be set globally or per suggestion. func (s *_directGenerator) Field(field string) *_directGenerator { s.v.Field = field @@ -44,9 +42,6 @@ func (s *_directGenerator) Field(field string) *_directGenerator { return s } -// The maximum edit distance candidate suggestions can have in order to be -// considered as a suggestion. -// Can only be `1` or `2`. func (s *_directGenerator) MaxEdits(maxedits int) *_directGenerator { s.v.MaxEdits = &maxedits @@ -54,9 +49,6 @@ func (s *_directGenerator) MaxEdits(maxedits int) *_directGenerator { return s } -// A factor that is used to multiply with the shard_size in order to inspect -// more candidate spelling corrections on the shard level. -// Can improve accuracy at the cost of performance. func (s *_directGenerator) MaxInspections(maxinspections float32) *_directGenerator { s.v.MaxInspections = &maxinspections @@ -64,13 +56,6 @@ func (s *_directGenerator) MaxInspections(maxinspections float32) *_directGenera return s } -// The maximum threshold in number of documents in which a suggest text token -// can exist in order to be included. -// This can be used to exclude high frequency terms — which are usually spelled -// correctly — from being spellchecked. -// Can be a relative percentage number (for example `0.4`) or an absolute number -// to represent document frequencies. -// If a value higher than 1 is specified, then fractional can not be specified. func (s *_directGenerator) MaxTermFreq(maxtermfreq float32) *_directGenerator { s.v.MaxTermFreq = &maxtermfreq @@ -78,11 +63,6 @@ func (s *_directGenerator) MaxTermFreq(maxtermfreq float32) *_directGenerator { return s } -// The minimal threshold in number of documents a suggestion should appear in. -// This can improve quality by only suggesting high frequency terms. -// Can be specified as an absolute number or as a relative percentage of number -// of documents. -// If a value higher than 1 is specified, the number cannot be fractional. func (s *_directGenerator) MinDocFreq(mindocfreq float32) *_directGenerator { s.v.MinDocFreq = &mindocfreq @@ -90,7 +70,6 @@ func (s *_directGenerator) MinDocFreq(mindocfreq float32) *_directGenerator { return s } -// The minimum length a suggest text term must have in order to be included. func (s *_directGenerator) MinWordLength(minwordlength int) *_directGenerator { s.v.MinWordLength = &minwordlength @@ -98,8 +77,6 @@ func (s *_directGenerator) MinWordLength(minwordlength int) *_directGenerator { return s } -// A filter (analyzer) that is applied to each of the generated tokens before -// they are passed to the actual phrase scorer. func (s *_directGenerator) PostFilter(postfilter string) *_directGenerator { s.v.PostFilter = &postfilter @@ -107,9 +84,6 @@ func (s *_directGenerator) PostFilter(postfilter string) *_directGenerator { return s } -// A filter (analyzer) that is applied to each of the tokens passed to this -// candidate generator. -// This filter is applied to the original token before candidates are generated. func (s *_directGenerator) PreFilter(prefilter string) *_directGenerator { s.v.PreFilter = &prefilter @@ -117,9 +91,6 @@ func (s *_directGenerator) PreFilter(prefilter string) *_directGenerator { return s } -// The number of minimal prefix characters that must match in order be a -// candidate suggestions. -// Increasing this number improves spellcheck performance. func (s *_directGenerator) PrefixLength(prefixlength int) *_directGenerator { s.v.PrefixLength = &prefixlength @@ -127,7 +98,6 @@ func (s *_directGenerator) PrefixLength(prefixlength int) *_directGenerator { return s } -// The maximum corrections to be returned per suggest text token. func (s *_directGenerator) Size(size int) *_directGenerator { s.v.Size = &size @@ -135,8 +105,6 @@ func (s *_directGenerator) Size(size int) *_directGenerator { return s } -// Controls what suggestions are included on the suggestions generated on each -// shard. func (s *_directGenerator) SuggestMode(suggestmode suggestmode.SuggestMode) *_directGenerator { s.v.SuggestMode = &suggestmode diff --git a/typedapi/esdsl/dismaxquery.go b/typedapi/esdsl/dismaxquery.go index f4cd5f8b69..58caef6cae 100644 --- a/typedapi/esdsl/dismaxquery.go +++ b/typedapi/esdsl/dismaxquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _disMaxQuery struct { v *types.DisMaxQuery @@ -37,11 +37,6 @@ func NewDisMaxQuery() *_disMaxQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_disMaxQuery) Boost(boost float32) *_disMaxQuery { s.v.Boost = &boost @@ -49,10 +44,6 @@ func (s *_disMaxQuery) Boost(boost float32) *_disMaxQuery { return s } -// One or more query clauses. -// Returned documents must match one or more of these queries. -// If a document matches multiple queries, Elasticsearch uses the highest -// relevance score. func (s *_disMaxQuery) Queries(queries ...types.QueryVariant) *_disMaxQuery { for _, v := range queries { @@ -70,8 +61,6 @@ func (s *_disMaxQuery) QueryName_(queryname_ string) *_disMaxQuery { return s } -// Floating point number between 0 and 1.0 used to increase the relevance scores -// of documents matching multiple query clauses. func (s *_disMaxQuery) TieBreaker(tiebreaker types.Float64) *_disMaxQuery { s.v.TieBreaker = &tiebreaker diff --git a/typedapi/esdsl/dissectprocessor.go b/typedapi/esdsl/dissectprocessor.go index ddbadab472..2fa9afa505 100644 --- a/typedapi/esdsl/dissectprocessor.go +++ b/typedapi/esdsl/dissectprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dissectProcessor struct { v *types.DissectProcessor @@ -38,7 +38,6 @@ func NewDissectProcessor(pattern string) *_dissectProcessor { } -// The character(s) that separate the appended fields. func (s *_dissectProcessor) AppendSeparator(appendseparator string) *_dissectProcessor { s.v.AppendSeparator = &appendseparator @@ -46,8 +45,6 @@ func (s *_dissectProcessor) AppendSeparator(appendseparator string) *_dissectPro return s } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_dissectProcessor) Description(description string) *_dissectProcessor { s.v.Description = &description @@ -55,7 +52,6 @@ func (s *_dissectProcessor) Description(description string) *_dissectProcessor { return s } -// The field to dissect. func (s *_dissectProcessor) Field(field string) *_dissectProcessor { s.v.Field = field @@ -63,7 +59,6 @@ func (s *_dissectProcessor) Field(field string) *_dissectProcessor { return s } -// Conditionally execute the processor. func (s *_dissectProcessor) If(if_ types.ScriptVariant) *_dissectProcessor { s.v.If = if_.ScriptCaster() @@ -71,7 +66,6 @@ func (s *_dissectProcessor) If(if_ types.ScriptVariant) *_dissectProcessor { return s } -// Ignore failures for the processor. func (s *_dissectProcessor) IgnoreFailure(ignorefailure bool) *_dissectProcessor { s.v.IgnoreFailure = &ignorefailure @@ -79,8 +73,6 @@ func (s *_dissectProcessor) IgnoreFailure(ignorefailure bool) *_dissectProcessor return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document. func (s *_dissectProcessor) IgnoreMissing(ignoremissing bool) *_dissectProcessor { s.v.IgnoreMissing = &ignoremissing @@ -88,7 +80,6 @@ func (s *_dissectProcessor) IgnoreMissing(ignoremissing bool) *_dissectProcessor return s } -// Handle failures for the processor. func (s *_dissectProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_dissectProcessor { for _, v := range onfailures { @@ -99,7 +90,6 @@ func (s *_dissectProcessor) OnFailure(onfailures ...types.ProcessorContainerVari return s } -// The pattern to apply to the field. func (s *_dissectProcessor) Pattern(pattern string) *_dissectProcessor { s.v.Pattern = pattern @@ -107,8 +97,6 @@ func (s *_dissectProcessor) Pattern(pattern string) *_dissectProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_dissectProcessor) Tag(tag string) *_dissectProcessor { s.v.Tag = &tag diff --git a/typedapi/esdsl/distancefeaturequery.go b/typedapi/esdsl/distancefeaturequery.go index 2ffeabab2d..0b20a10b86 100644 --- a/typedapi/esdsl/distancefeaturequery.go +++ b/typedapi/esdsl/distancefeaturequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _distanceFeatureQuery struct { diff --git a/typedapi/esdsl/diversifiedsampleraggregation.go b/typedapi/esdsl/diversifiedsampleraggregation.go index f39fdf0991..3f0ee1695f 100644 --- a/typedapi/esdsl/diversifiedsampleraggregation.go +++ b/typedapi/esdsl/diversifiedsampleraggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sampleraggregationexecutionhint" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sampleraggregationexecutionhint" ) type _diversifiedSamplerAggregation struct { @@ -39,14 +39,12 @@ func NewDiversifiedSamplerAggregation() *_diversifiedSamplerAggregation { } -// The type of value used for de-duplication. func (s *_diversifiedSamplerAggregation) ExecutionHint(executionhint sampleraggregationexecutionhint.SamplerAggregationExecutionHint) *_diversifiedSamplerAggregation { s.v.ExecutionHint = &executionhint return s } -// The field used to provide values used for de-duplication. func (s *_diversifiedSamplerAggregation) Field(field string) *_diversifiedSamplerAggregation { s.v.Field = &field @@ -54,7 +52,6 @@ func (s *_diversifiedSamplerAggregation) Field(field string) *_diversifiedSample return s } -// Limits how many documents are permitted per choice of de-duplicating value. func (s *_diversifiedSamplerAggregation) MaxDocsPerValue(maxdocspervalue int) *_diversifiedSamplerAggregation { s.v.MaxDocsPerValue = &maxdocspervalue @@ -69,8 +66,6 @@ func (s *_diversifiedSamplerAggregation) Script(script types.ScriptVariant) *_di return s } -// Limits how many top-scoring documents are collected in the sample processed -// on each shard. func (s *_diversifiedSamplerAggregation) ShardSize(shardsize int) *_diversifiedSamplerAggregation { s.v.ShardSize = &shardsize diff --git a/typedapi/esdsl/document.go b/typedapi/esdsl/document.go index 5ce215eaa1..777b1bd521 100644 --- a/typedapi/esdsl/document.go +++ b/typedapi/esdsl/document.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _document struct { @@ -40,8 +40,6 @@ func NewDocument(source_ json.RawMessage) *_document { } -// Unique identifier for the document. -// This ID must be unique within the `_index`. func (s *_document) Id_(id string) *_document { s.v.Id_ = &id @@ -49,7 +47,6 @@ func (s *_document) Id_(id string) *_document { return s } -// Name of the index containing the document. func (s *_document) Index_(indexname string) *_document { s.v.Index_ = &indexname @@ -57,7 +54,6 @@ func (s *_document) Index_(indexname string) *_document { return s } -// JSON body for the document. func (s *_document) Source_(source_ json.RawMessage) *_document { s.v.Source_ = source_ diff --git a/typedapi/esdsl/documentrating.go b/typedapi/esdsl/documentrating.go index fb54707bcd..2301c149ef 100644 --- a/typedapi/esdsl/documentrating.go +++ b/typedapi/esdsl/documentrating.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _documentRating struct { v *types.DocumentRating @@ -36,7 +36,6 @@ func NewDocumentRating(rating int) *_documentRating { } -// The document ID. func (s *_documentRating) Id_(id string) *_documentRating { s.v.Id_ = id @@ -44,8 +43,6 @@ func (s *_documentRating) Id_(id string) *_documentRating { return s } -// The document’s index. For data streams, this should be the document’s backing -// index. func (s *_documentRating) Index_(indexname string) *_documentRating { s.v.Index_ = indexname @@ -53,7 +50,6 @@ func (s *_documentRating) Index_(indexname string) *_documentRating { return s } -// The document’s relevance with regard to this search request. func (s *_documentRating) Rating(rating int) *_documentRating { s.v.Rating = rating diff --git a/typedapi/esdsl/dotexpanderprocessor.go b/typedapi/esdsl/dotexpanderprocessor.go index 3e640fa913..a137ddd9e0 100644 --- a/typedapi/esdsl/dotexpanderprocessor.go +++ b/typedapi/esdsl/dotexpanderprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dotExpanderProcessor struct { v *types.DotExpanderProcessor @@ -36,8 +36,6 @@ func NewDotExpanderProcessor() *_dotExpanderProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_dotExpanderProcessor) Description(description string) *_dotExpanderProcessor { s.v.Description = &description @@ -45,8 +43,6 @@ func (s *_dotExpanderProcessor) Description(description string) *_dotExpanderPro return s } -// The field to expand into an object field. -// If set to `*`, all top-level fields will be expanded. func (s *_dotExpanderProcessor) Field(field string) *_dotExpanderProcessor { s.v.Field = field @@ -54,7 +50,6 @@ func (s *_dotExpanderProcessor) Field(field string) *_dotExpanderProcessor { return s } -// Conditionally execute the processor. func (s *_dotExpanderProcessor) If(if_ types.ScriptVariant) *_dotExpanderProcessor { s.v.If = if_.ScriptCaster() @@ -62,7 +57,6 @@ func (s *_dotExpanderProcessor) If(if_ types.ScriptVariant) *_dotExpanderProcess return s } -// Ignore failures for the processor. func (s *_dotExpanderProcessor) IgnoreFailure(ignorefailure bool) *_dotExpanderProcessor { s.v.IgnoreFailure = &ignorefailure @@ -70,7 +64,6 @@ func (s *_dotExpanderProcessor) IgnoreFailure(ignorefailure bool) *_dotExpanderP return s } -// Handle failures for the processor. func (s *_dotExpanderProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_dotExpanderProcessor { for _, v := range onfailures { @@ -81,12 +74,6 @@ func (s *_dotExpanderProcessor) OnFailure(onfailures ...types.ProcessorContainer return s } -// Controls the behavior when there is already an existing nested object that -// conflicts with the expanded field. -// When `false`, the processor will merge conflicts by combining the old and the -// new values into an array. -// When `true`, the value from the expanded field will overwrite the existing -// value. func (s *_dotExpanderProcessor) Override(override bool) *_dotExpanderProcessor { s.v.Override = &override @@ -94,9 +81,6 @@ func (s *_dotExpanderProcessor) Override(override bool) *_dotExpanderProcessor { return s } -// The field that contains the field to expand. -// Only required if the field to expand is part another object field, because -// the `field` option can only understand leaf fields. func (s *_dotExpanderProcessor) Path(path string) *_dotExpanderProcessor { s.v.Path = &path @@ -104,8 +88,6 @@ func (s *_dotExpanderProcessor) Path(path string) *_dotExpanderProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_dotExpanderProcessor) Tag(tag string) *_dotExpanderProcessor { s.v.Tag = &tag diff --git a/typedapi/esdsl/doublenumberproperty.go b/typedapi/esdsl/doublenumberproperty.go index 3a269cc2aa..f327954668 100644 --- a/typedapi/esdsl/doublenumberproperty.go +++ b/typedapi/esdsl/doublenumberproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) type _doubleNumberProperty struct { @@ -114,7 +114,6 @@ func (s *_doubleNumberProperty) Index(index bool) *_doubleNumberProperty { return s } -// Metadata about the field. func (s *_doubleNumberProperty) Meta(meta map[string]string) *_doubleNumberProperty { s.v.Meta = meta @@ -190,8 +189,6 @@ func (s *_doubleNumberProperty) SyntheticSourceKeep(syntheticsourcekeep syntheti return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_doubleNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_doubleNumberProperty { s.v.TimeSeriesDimension = ×eriesdimension @@ -199,8 +196,6 @@ func (s *_doubleNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_ return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_doubleNumberProperty) TimeSeriesMetric(timeseriesmetric timeseriesmetrictype.TimeSeriesMetricType) *_doubleNumberProperty { s.v.TimeSeriesMetric = ×eriesmetric diff --git a/typedapi/esdsl/doublerangeproperty.go b/typedapi/esdsl/doublerangeproperty.go index 2d4276c581..177aa9db12 100644 --- a/typedapi/esdsl/doublerangeproperty.go +++ b/typedapi/esdsl/doublerangeproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _doubleRangeProperty struct { @@ -105,7 +105,6 @@ func (s *_doubleRangeProperty) Index(index bool) *_doubleRangeProperty { return s } -// Metadata about the field. func (s *_doubleRangeProperty) Meta(meta map[string]string) *_doubleRangeProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/downsampleaction.go b/typedapi/esdsl/downsampleaction.go index 36842bd2f7..54f2ce5277 100644 --- a/typedapi/esdsl/downsampleaction.go +++ b/typedapi/esdsl/downsampleaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _downsampleAction struct { v *types.DownsampleAction diff --git a/typedapi/esdsl/downsampleconfig.go b/typedapi/esdsl/downsampleconfig.go index d5b2b11bd0..1e4465fbc8 100644 --- a/typedapi/esdsl/downsampleconfig.go +++ b/typedapi/esdsl/downsampleconfig.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _downsampleConfig struct { v *types.DownsampleConfig @@ -32,7 +32,6 @@ func NewDownsampleConfig() *_downsampleConfig { } -// The interval at which to aggregate the original time series index. func (s *_downsampleConfig) FixedInterval(durationlarge string) *_downsampleConfig { s.v.FixedInterval = durationlarge diff --git a/typedapi/esdsl/downsamplinground.go b/typedapi/esdsl/downsamplinground.go index 83f839bdea..5fc40f3864 100644 --- a/typedapi/esdsl/downsamplinground.go +++ b/typedapi/esdsl/downsamplinground.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _downsamplingRound struct { v *types.DownsamplingRound @@ -36,7 +36,6 @@ func NewDownsamplingRound(config types.DownsampleConfigVariant) *_downsamplingRo } -// The duration since rollover when this downsampling round should execute func (s *_downsamplingRound) After(duration types.DurationVariant) *_downsamplingRound { s.v.After = *duration.DurationCaster() @@ -44,7 +43,6 @@ func (s *_downsamplingRound) After(duration types.DurationVariant) *_downsamplin return s } -// The downsample configuration to execute. func (s *_downsamplingRound) Config(config types.DownsampleConfigVariant) *_downsamplingRound { s.v.Config = *config.DownsampleConfigCaster() diff --git a/typedapi/esdsl/dropprocessor.go b/typedapi/esdsl/dropprocessor.go index 156d3c1279..2be5cb1ac2 100644 --- a/typedapi/esdsl/dropprocessor.go +++ b/typedapi/esdsl/dropprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dropProcessor struct { v *types.DropProcessor @@ -35,8 +35,6 @@ func NewDropProcessor() *_dropProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_dropProcessor) Description(description string) *_dropProcessor { s.v.Description = &description @@ -44,7 +42,6 @@ func (s *_dropProcessor) Description(description string) *_dropProcessor { return s } -// Conditionally execute the processor. func (s *_dropProcessor) If(if_ types.ScriptVariant) *_dropProcessor { s.v.If = if_.ScriptCaster() @@ -52,7 +49,6 @@ func (s *_dropProcessor) If(if_ types.ScriptVariant) *_dropProcessor { return s } -// Ignore failures for the processor. func (s *_dropProcessor) IgnoreFailure(ignorefailure bool) *_dropProcessor { s.v.IgnoreFailure = &ignorefailure @@ -60,7 +56,6 @@ func (s *_dropProcessor) IgnoreFailure(ignorefailure bool) *_dropProcessor { return s } -// Handle failures for the processor. func (s *_dropProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_dropProcessor { for _, v := range onfailures { @@ -71,8 +66,6 @@ func (s *_dropProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_dropProcessor) Tag(tag string) *_dropProcessor { s.v.Tag = &tag diff --git a/typedapi/esdsl/duration.go b/typedapi/esdsl/duration.go index 9027e813ef..74d2c3c308 100644 --- a/typedapi/esdsl/duration.go +++ b/typedapi/esdsl/duration.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _duration struct { diff --git a/typedapi/esdsl/durationvalueunitmillis.go b/typedapi/esdsl/durationvalueunitmillis.go index 41573de0a3..d09441d373 100644 --- a/typedapi/esdsl/durationvalueunitmillis.go +++ b/typedapi/esdsl/durationvalueunitmillis.go @@ -16,21 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _durationValueUnitMillis struct { v types.DurationValueUnitMillis } func NewDurationValueUnitMillis(durationvalueunitmillis int64) *_durationValueUnitMillis { - return &_durationValueUnitMillis{v: types.DurationValueUnitMillis(durationvalueunitmillis)} - } func (u *_durationValueUnitMillis) DurationValueUnitMillisCaster() *types.DurationValueUnitMillis { diff --git a/typedapi/esdsl/dutchanalyzer.go b/typedapi/esdsl/dutchanalyzer.go index b807608dd9..130f2fc413 100644 --- a/typedapi/esdsl/dutchanalyzer.go +++ b/typedapi/esdsl/dutchanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _dutchAnalyzer struct { v *types.DutchAnalyzer diff --git a/typedapi/esdsl/dynamicproperty.go b/typedapi/esdsl/dynamicproperty.go index 94351d5f4e..bda4b1bdda 100644 --- a/typedapi/esdsl/dynamicproperty.go +++ b/typedapi/esdsl/dynamicproperty.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termvectoroption" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "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/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termvectoroption" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) type _dynamicProperty struct { @@ -171,7 +171,6 @@ func (s *_dynamicProperty) Locale(locale string) *_dynamicProperty { return s } -// Metadata about the field. func (s *_dynamicProperty) Meta(meta map[string]string) *_dynamicProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/dynamictemplate.go b/typedapi/esdsl/dynamictemplate.go index 2529082451..d8aebd31e5 100644 --- a/typedapi/esdsl/dynamictemplate.go +++ b/typedapi/esdsl/dynamictemplate.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/matchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/matchtype" ) type _dynamicTemplate struct { diff --git a/typedapi/esdsl/edgengramtokenfilter.go b/typedapi/esdsl/edgengramtokenfilter.go index 8012f99598..aec7f78f9f 100644 --- a/typedapi/esdsl/edgengramtokenfilter.go +++ b/typedapi/esdsl/edgengramtokenfilter.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/edgengramside" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/edgengramside" ) type _edgeNGramTokenFilter struct { diff --git a/typedapi/esdsl/edgengramtokenizer.go b/typedapi/esdsl/edgengramtokenizer.go index 603f2da6bd..c641de84df 100644 --- a/typedapi/esdsl/edgengramtokenizer.go +++ b/typedapi/esdsl/edgengramtokenizer.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenchar" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenchar" ) type _edgeNGramTokenizer struct { diff --git a/typedapi/esdsl/elasticsearchservicesettings.go b/typedapi/esdsl/elasticsearchservicesettings.go new file mode 100644 index 0000000000..b0c36a4bc9 --- /dev/null +++ b/typedapi/esdsl/elasticsearchservicesettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _elasticsearchServiceSettings struct { + v *types.ElasticsearchServiceSettings +} + +func NewElasticsearchServiceSettings(modelid string, numthreads int) *_elasticsearchServiceSettings { + + tmp := &_elasticsearchServiceSettings{v: types.NewElasticsearchServiceSettings()} + + tmp.ModelId(modelid) + + tmp.NumThreads(numthreads) + + return tmp + +} + +func (s *_elasticsearchServiceSettings) AdaptiveAllocations(adaptiveallocations types.AdaptiveAllocationsVariant) *_elasticsearchServiceSettings { + + s.v.AdaptiveAllocations = adaptiveallocations.AdaptiveAllocationsCaster() + + return s +} + +func (s *_elasticsearchServiceSettings) DeploymentId(deploymentid string) *_elasticsearchServiceSettings { + + s.v.DeploymentId = &deploymentid + + return s +} + +func (s *_elasticsearchServiceSettings) ModelId(modelid string) *_elasticsearchServiceSettings { + + s.v.ModelId = modelid + + return s +} + +func (s *_elasticsearchServiceSettings) NumAllocations(numallocations int) *_elasticsearchServiceSettings { + + s.v.NumAllocations = &numallocations + + return s +} + +func (s *_elasticsearchServiceSettings) NumThreads(numthreads int) *_elasticsearchServiceSettings { + + s.v.NumThreads = numthreads + + return s +} + +func (s *_elasticsearchServiceSettings) ElasticsearchServiceSettingsCaster() *types.ElasticsearchServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/elasticsearchtasksettings.go b/typedapi/esdsl/elasticsearchtasksettings.go new file mode 100644 index 0000000000..38f9d72caa --- /dev/null +++ b/typedapi/esdsl/elasticsearchtasksettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _elasticsearchTaskSettings struct { + v *types.ElasticsearchTaskSettings +} + +func NewElasticsearchTaskSettings() *_elasticsearchTaskSettings { + + return &_elasticsearchTaskSettings{v: types.NewElasticsearchTaskSettings()} + +} + +func (s *_elasticsearchTaskSettings) ReturnDocuments(returndocuments bool) *_elasticsearchTaskSettings { + + s.v.ReturnDocuments = &returndocuments + + return s +} + +func (s *_elasticsearchTaskSettings) ElasticsearchTaskSettingsCaster() *types.ElasticsearchTaskSettings { + return s.v +} diff --git a/typedapi/esdsl/elisiontokenfilter.go b/typedapi/esdsl/elisiontokenfilter.go index 6906644da0..95df852da1 100644 --- a/typedapi/esdsl/elisiontokenfilter.go +++ b/typedapi/esdsl/elisiontokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _elisionTokenFilter struct { v *types.ElisionTokenFilter diff --git a/typedapi/esdsl/elserservicesettings.go b/typedapi/esdsl/elserservicesettings.go new file mode 100644 index 0000000000..9f6cb1a61f --- /dev/null +++ b/typedapi/esdsl/elserservicesettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _elserServiceSettings struct { + v *types.ElserServiceSettings +} + +func NewElserServiceSettings(numallocations int, numthreads int) *_elserServiceSettings { + + tmp := &_elserServiceSettings{v: types.NewElserServiceSettings()} + + tmp.NumAllocations(numallocations) + + tmp.NumThreads(numthreads) + + return tmp + +} + +func (s *_elserServiceSettings) AdaptiveAllocations(adaptiveallocations types.AdaptiveAllocationsVariant) *_elserServiceSettings { + + s.v.AdaptiveAllocations = adaptiveallocations.AdaptiveAllocationsCaster() + + return s +} + +func (s *_elserServiceSettings) NumAllocations(numallocations int) *_elserServiceSettings { + + s.v.NumAllocations = numallocations + + return s +} + +func (s *_elserServiceSettings) NumThreads(numthreads int) *_elserServiceSettings { + + s.v.NumThreads = numthreads + + return s +} + +func (s *_elserServiceSettings) ElserServiceSettingsCaster() *types.ElserServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/emailaction.go b/typedapi/esdsl/emailaction.go index e2b2efafa6..730b5a8a17 100644 --- a/typedapi/esdsl/emailaction.go +++ b/typedapi/esdsl/emailaction.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/emailpriority" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/emailpriority" ) type _emailAction struct { diff --git a/typedapi/esdsl/emailattachmentcontainer.go b/typedapi/esdsl/emailattachmentcontainer.go index ad30087652..21d7ab0c52 100644 --- a/typedapi/esdsl/emailattachmentcontainer.go +++ b/typedapi/esdsl/emailattachmentcontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _emailAttachmentContainer struct { diff --git a/typedapi/esdsl/emailbody.go b/typedapi/esdsl/emailbody.go index 14c1cac095..ee5b364e2c 100644 --- a/typedapi/esdsl/emailbody.go +++ b/typedapi/esdsl/emailbody.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _emailBody struct { v *types.EmailBody diff --git a/typedapi/esdsl/emptyobject.go b/typedapi/esdsl/emptyobject.go index 0bb77b477e..1a126e8592 100644 --- a/typedapi/esdsl/emptyobject.go +++ b/typedapi/esdsl/emptyobject.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _emptyObject struct { v *types.EmptyObject diff --git a/typedapi/esdsl/englishanalyzer.go b/typedapi/esdsl/englishanalyzer.go index 907e6cca43..fcfff68bab 100644 --- a/typedapi/esdsl/englishanalyzer.go +++ b/typedapi/esdsl/englishanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _englishAnalyzer struct { v *types.EnglishAnalyzer diff --git a/typedapi/esdsl/enrichpolicy.go b/typedapi/esdsl/enrichpolicy.go index d37e283dca..0a36e51508 100644 --- a/typedapi/esdsl/enrichpolicy.go +++ b/typedapi/esdsl/enrichpolicy.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _enrichPolicy struct { v *types.EnrichPolicy diff --git a/typedapi/esdsl/enrichprocessor.go b/typedapi/esdsl/enrichprocessor.go index c5ab0373dd..5754c3cb29 100644 --- a/typedapi/esdsl/enrichprocessor.go +++ b/typedapi/esdsl/enrichprocessor.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoshaperelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geoshaperelation" ) type _enrichProcessor struct { @@ -40,8 +40,6 @@ func NewEnrichProcessor(policyname string) *_enrichProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_enrichProcessor) Description(description string) *_enrichProcessor { s.v.Description = &description @@ -49,9 +47,6 @@ func (s *_enrichProcessor) Description(description string) *_enrichProcessor { return s } -// The field in the input document that matches the policies match_field used to -// retrieve the enrichment data. -// Supports template snippets. func (s *_enrichProcessor) Field(field string) *_enrichProcessor { s.v.Field = field @@ -59,7 +54,6 @@ func (s *_enrichProcessor) Field(field string) *_enrichProcessor { return s } -// Conditionally execute the processor. func (s *_enrichProcessor) If(if_ types.ScriptVariant) *_enrichProcessor { s.v.If = if_.ScriptCaster() @@ -67,7 +61,6 @@ func (s *_enrichProcessor) If(if_ types.ScriptVariant) *_enrichProcessor { return s } -// Ignore failures for the processor. func (s *_enrichProcessor) IgnoreFailure(ignorefailure bool) *_enrichProcessor { s.v.IgnoreFailure = &ignorefailure @@ -75,8 +68,6 @@ func (s *_enrichProcessor) IgnoreFailure(ignorefailure bool) *_enrichProcessor { return s } -// If `true` and `field` does not exist, the processor quietly exits without -// modifying the document. func (s *_enrichProcessor) IgnoreMissing(ignoremissing bool) *_enrichProcessor { s.v.IgnoreMissing = &ignoremissing @@ -84,12 +75,6 @@ func (s *_enrichProcessor) IgnoreMissing(ignoremissing bool) *_enrichProcessor { return s } -// The maximum number of matched documents to include under the configured -// target field. -// The `target_field` will be turned into a json array if `max_matches` is -// higher than 1, otherwise `target_field` will become a json object. -// In order to avoid documents getting too large, the maximum allowed value is -// 128. func (s *_enrichProcessor) MaxMatches(maxmatches int) *_enrichProcessor { s.v.MaxMatches = &maxmatches @@ -97,7 +82,6 @@ func (s *_enrichProcessor) MaxMatches(maxmatches int) *_enrichProcessor { return s } -// Handle failures for the processor. func (s *_enrichProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_enrichProcessor { for _, v := range onfailures { @@ -108,8 +92,6 @@ func (s *_enrichProcessor) OnFailure(onfailures ...types.ProcessorContainerVaria return s } -// If processor will update fields with pre-existing non-null-valued field. -// When set to `false`, such fields will not be touched. func (s *_enrichProcessor) Override(override bool) *_enrichProcessor { s.v.Override = &override @@ -117,7 +99,6 @@ func (s *_enrichProcessor) Override(override bool) *_enrichProcessor { return s } -// The name of the enrich policy to use. func (s *_enrichProcessor) PolicyName(policyname string) *_enrichProcessor { s.v.PolicyName = policyname @@ -125,17 +106,12 @@ func (s *_enrichProcessor) PolicyName(policyname string) *_enrichProcessor { return s } -// A spatial relation operator used to match the geoshape of incoming documents -// to documents in the enrich index. -// This option is only used for `geo_match` enrich policy types. func (s *_enrichProcessor) ShapeRelation(shaperelation geoshaperelation.GeoShapeRelation) *_enrichProcessor { s.v.ShapeRelation = &shaperelation return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_enrichProcessor) Tag(tag string) *_enrichProcessor { s.v.Tag = &tag @@ -143,9 +119,6 @@ func (s *_enrichProcessor) Tag(tag string) *_enrichProcessor { return s } -// Field added to incoming documents to contain enrich data. This field contains -// both the `match_field` and `enrich_fields` specified in the enrich policy. -// Supports template snippets. func (s *_enrichProcessor) TargetField(field string) *_enrichProcessor { s.v.TargetField = field diff --git a/typedapi/esdsl/ensemble.go b/typedapi/esdsl/ensemble.go index 8181fe1d10..28ec40819c 100644 --- a/typedapi/esdsl/ensemble.go +++ b/typedapi/esdsl/ensemble.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _ensemble struct { v *types.Ensemble diff --git a/typedapi/esdsl/epochtimeunitmillis.go b/typedapi/esdsl/epochtimeunitmillis.go index 2e31fa3709..95e071277c 100644 --- a/typedapi/esdsl/epochtimeunitmillis.go +++ b/typedapi/esdsl/epochtimeunitmillis.go @@ -16,21 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _epochTimeUnitMillis struct { v types.EpochTimeUnitMillis } func NewEpochTimeUnitMillis(epochtimeunitmillis int64) *_epochTimeUnitMillis { - return &_epochTimeUnitMillis{v: types.EpochTimeUnitMillis(epochtimeunitmillis)} - } func (u *_epochTimeUnitMillis) EpochTimeUnitMillisCaster() *types.EpochTimeUnitMillis { diff --git a/typedapi/esdsl/epochtimeunitseconds.go b/typedapi/esdsl/epochtimeunitseconds.go index c776a7da41..f0d41b7e56 100644 --- a/typedapi/esdsl/epochtimeunitseconds.go +++ b/typedapi/esdsl/epochtimeunitseconds.go @@ -16,21 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _epochTimeUnitSeconds struct { v types.EpochTimeUnitSeconds } func NewEpochTimeUnitSeconds(epochtimeunitseconds int64) *_epochTimeUnitSeconds { - return &_epochTimeUnitSeconds{v: types.EpochTimeUnitSeconds(epochtimeunitseconds)} - } func (u *_epochTimeUnitSeconds) EpochTimeUnitSecondsCaster() *types.EpochTimeUnitSeconds { diff --git a/typedapi/esdsl/estoniananalyzer.go b/typedapi/esdsl/estoniananalyzer.go index 9f82546fee..f7427cbe69 100644 --- a/typedapi/esdsl/estoniananalyzer.go +++ b/typedapi/esdsl/estoniananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _estonianAnalyzer struct { v *types.EstonianAnalyzer diff --git a/typedapi/esdsl/ewmamodelsettings.go b/typedapi/esdsl/ewmamodelsettings.go index f39f4664ba..dde564b35a 100644 --- a/typedapi/esdsl/ewmamodelsettings.go +++ b/typedapi/esdsl/ewmamodelsettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _ewmaModelSettings struct { v *types.EwmaModelSettings diff --git a/typedapi/esdsl/ewmamovingaverageaggregation.go b/typedapi/esdsl/ewmamovingaverageaggregation.go index ae86b77e96..4a7b7f5135 100644 --- a/typedapi/esdsl/ewmamovingaverageaggregation.go +++ b/typedapi/esdsl/ewmamovingaverageaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _ewmaMovingAverageAggregation struct { @@ -39,7 +39,6 @@ func NewEwmaMovingAverageAggregation(settings types.EwmaModelSettingsVariant) *_ } -// Path to the buckets that contain one set of values to correlate. func (s *_ewmaMovingAverageAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_ewmaMovingAverageAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -47,9 +46,6 @@ func (s *_ewmaMovingAverageAggregation) BucketsPath(bucketspath types.BucketsPat return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_ewmaMovingAverageAggregation) Format(format string) *_ewmaMovingAverageAggregation { s.v.Format = &format @@ -57,7 +53,6 @@ func (s *_ewmaMovingAverageAggregation) Format(format string) *_ewmaMovingAverag return s } -// Policy to apply when gaps are found in the data. func (s *_ewmaMovingAverageAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_ewmaMovingAverageAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/executionstate.go b/typedapi/esdsl/executionstate.go index 6ab1981623..e9b998b38c 100644 --- a/typedapi/esdsl/executionstate.go +++ b/typedapi/esdsl/executionstate.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _executionState struct { v *types.ExecutionState diff --git a/typedapi/esdsl/existsquery.go b/typedapi/esdsl/existsquery.go index f955e2598c..a9e56276fb 100644 --- a/typedapi/esdsl/existsquery.go +++ b/typedapi/esdsl/existsquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _existsQuery struct { v *types.ExistsQuery @@ -33,11 +33,6 @@ func NewExistsQuery() *_existsQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_existsQuery) Boost(boost float32) *_existsQuery { s.v.Boost = &boost @@ -45,7 +40,6 @@ func (s *_existsQuery) Boost(boost float32) *_existsQuery { return s } -// Name of the field you wish to search. func (s *_existsQuery) Field(field string) *_existsQuery { s.v.Field = field diff --git a/typedapi/esdsl/expandwildcards.go b/typedapi/esdsl/expandwildcards.go index b8cc6f2d78..72518ae158 100644 --- a/typedapi/esdsl/expandwildcards.go +++ b/typedapi/esdsl/expandwildcards.go @@ -16,16 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) -// This is provide an API for type alias. type _expandWildcards struct { v types.ExpandWildcards } diff --git a/typedapi/esdsl/explorecontrols.go b/typedapi/esdsl/explorecontrols.go index 800be33749..d2f561d5ef 100644 --- a/typedapi/esdsl/explorecontrols.go +++ b/typedapi/esdsl/explorecontrols.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _exploreControls struct { v *types.ExploreControls @@ -36,10 +36,6 @@ func NewExploreControls(usesignificance bool) *_exploreControls { } -// 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. -// You can do this by selecting a single-value field and setting a maximum -// number of documents per value for that field. func (s *_exploreControls) SampleDiversity(samplediversity types.SampleDiversityVariant) *_exploreControls { s.v.SampleDiversity = samplediversity.SampleDiversityCaster() @@ -47,13 +43,6 @@ func (s *_exploreControls) SampleDiversity(samplediversity types.SampleDiversity return s } -// Each hop considers a sample of the best-matching documents on each shard. -// Using samples improves the speed of execution and keeps exploration focused -// on meaningfully-connected terms. -// Very small values (less than 50) might not provide sufficient -// weight-of-evidence to identify significant connections between terms. -// Very large sample sizes can dilute the quality of the results and increase -// execution times. func (s *_exploreControls) SampleSize(samplesize int) *_exploreControls { s.v.SampleSize = &samplesize @@ -61,11 +50,6 @@ func (s *_exploreControls) SampleSize(samplesize int) *_exploreControls { return s } -// The length of time in milliseconds after which exploration will be halted and -// the results gathered so far are returned. -// This timeout is honored on a best-effort basis. -// Execution might overrun this timeout if, for example, a long pause is -// encountered while FieldData is loaded for a field. func (s *_exploreControls) Timeout(duration types.DurationVariant) *_exploreControls { s.v.Timeout = *duration.DurationCaster() @@ -73,8 +57,6 @@ func (s *_exploreControls) Timeout(duration types.DurationVariant) *_exploreCont return s } -// Filters associated terms so only those that are significantly associated with -// your query are included. func (s *_exploreControls) UseSignificance(usesignificance bool) *_exploreControls { s.v.UseSignificance = usesignificance diff --git a/typedapi/esdsl/extendedboundsdouble.go b/typedapi/esdsl/extendedboundsdouble.go index 78639aff0a..4262d6cf5a 100644 --- a/typedapi/esdsl/extendedboundsdouble.go +++ b/typedapi/esdsl/extendedboundsdouble.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _extendedBoundsdouble struct { v *types.ExtendedBoundsdouble @@ -32,7 +32,6 @@ func NewExtendedBoundsdouble() *_extendedBoundsdouble { } -// Maximum value for the bound. func (s *_extendedBoundsdouble) Max(max types.Float64) *_extendedBoundsdouble { s.v.Max = &max @@ -40,7 +39,6 @@ func (s *_extendedBoundsdouble) Max(max types.Float64) *_extendedBoundsdouble { return s } -// Minimum value for the bound. func (s *_extendedBoundsdouble) Min(min types.Float64) *_extendedBoundsdouble { s.v.Min = &min diff --git a/typedapi/esdsl/extendedboundsfielddatemath.go b/typedapi/esdsl/extendedboundsfielddatemath.go index e608242092..28c2bdf7b8 100644 --- a/typedapi/esdsl/extendedboundsfielddatemath.go +++ b/typedapi/esdsl/extendedboundsfielddatemath.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _extendedBoundsFieldDateMath struct { v *types.ExtendedBoundsFieldDateMath @@ -32,7 +32,6 @@ func NewExtendedBoundsFieldDateMath() *_extendedBoundsFieldDateMath { } -// Maximum value for the bound. func (s *_extendedBoundsFieldDateMath) Max(fielddatemath types.FieldDateMathVariant) *_extendedBoundsFieldDateMath { s.v.Max = *fielddatemath.FieldDateMathCaster() @@ -40,7 +39,6 @@ func (s *_extendedBoundsFieldDateMath) Max(fielddatemath types.FieldDateMathVari return s } -// Minimum value for the bound. func (s *_extendedBoundsFieldDateMath) Min(fielddatemath types.FieldDateMathVariant) *_extendedBoundsFieldDateMath { s.v.Min = *fielddatemath.FieldDateMathCaster() diff --git a/typedapi/esdsl/extendedstatsaggregation.go b/typedapi/esdsl/extendedstatsaggregation.go index 3037b75625..28bdd4e0e0 100644 --- a/typedapi/esdsl/extendedstatsaggregation.go +++ b/typedapi/esdsl/extendedstatsaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _extendedStatsAggregation struct { v *types.ExtendedStatsAggregation @@ -34,7 +34,6 @@ func NewExtendedStatsAggregation() *_extendedStatsAggregation { } -// The field on which to run the aggregation. func (s *_extendedStatsAggregation) Field(field string) *_extendedStatsAggregation { s.v.Field = &field @@ -49,8 +48,6 @@ func (s *_extendedStatsAggregation) Format(format string) *_extendedStatsAggrega return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_extendedStatsAggregation) Missing(missing types.MissingVariant) *_extendedStatsAggregation { s.v.Missing = *missing.MissingCaster() @@ -65,7 +62,6 @@ func (s *_extendedStatsAggregation) Script(script types.ScriptVariant) *_extende return s } -// The number of standard deviations above/below the mean to display. func (s *_extendedStatsAggregation) Sigma(sigma types.Float64) *_extendedStatsAggregation { s.v.Sigma = &sigma diff --git a/typedapi/esdsl/extendedstatsbucketaggregation.go b/typedapi/esdsl/extendedstatsbucketaggregation.go index 93b3d613c6..3aebaedaab 100644 --- a/typedapi/esdsl/extendedstatsbucketaggregation.go +++ b/typedapi/esdsl/extendedstatsbucketaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _extendedStatsBucketAggregation struct { @@ -37,7 +37,6 @@ func NewExtendedStatsBucketAggregation() *_extendedStatsBucketAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_extendedStatsBucketAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_extendedStatsBucketAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_extendedStatsBucketAggregation) BucketsPath(bucketspath types.BucketsP return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_extendedStatsBucketAggregation) Format(format string) *_extendedStatsBucketAggregation { s.v.Format = &format @@ -55,14 +51,12 @@ func (s *_extendedStatsBucketAggregation) Format(format string) *_extendedStatsB return s } -// Policy to apply when gaps are found in the data. func (s *_extendedStatsBucketAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_extendedStatsBucketAggregation { s.v.GapPolicy = &gappolicy return s } -// The number of standard deviations above/below the mean to display. func (s *_extendedStatsBucketAggregation) Sigma(sigma types.Float64) *_extendedStatsBucketAggregation { s.v.Sigma = &sigma diff --git a/typedapi/esdsl/failprocessor.go b/typedapi/esdsl/failprocessor.go index a691495c1a..902355d883 100644 --- a/typedapi/esdsl/failprocessor.go +++ b/typedapi/esdsl/failprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _failProcessor struct { v *types.FailProcessor @@ -39,8 +39,6 @@ func NewFailProcessor(message string) *_failProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_failProcessor) Description(description string) *_failProcessor { s.v.Description = &description @@ -48,7 +46,6 @@ func (s *_failProcessor) Description(description string) *_failProcessor { return s } -// Conditionally execute the processor. func (s *_failProcessor) If(if_ types.ScriptVariant) *_failProcessor { s.v.If = if_.ScriptCaster() @@ -56,7 +53,6 @@ func (s *_failProcessor) If(if_ types.ScriptVariant) *_failProcessor { return s } -// Ignore failures for the processor. func (s *_failProcessor) IgnoreFailure(ignorefailure bool) *_failProcessor { s.v.IgnoreFailure = &ignorefailure @@ -64,8 +60,6 @@ func (s *_failProcessor) IgnoreFailure(ignorefailure bool) *_failProcessor { return s } -// The error message thrown by the processor. -// Supports template snippets. func (s *_failProcessor) Message(message string) *_failProcessor { s.v.Message = message @@ -73,7 +67,6 @@ func (s *_failProcessor) Message(message string) *_failProcessor { return s } -// Handle failures for the processor. func (s *_failProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_failProcessor { for _, v := range onfailures { @@ -84,8 +77,6 @@ func (s *_failProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_failProcessor) Tag(tag string) *_failProcessor { s.v.Tag = &tag diff --git a/typedapi/esdsl/featureenabled.go b/typedapi/esdsl/featureenabled.go index d6cc390f48..17c6d98407 100644 --- a/typedapi/esdsl/featureenabled.go +++ b/typedapi/esdsl/featureenabled.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _featureEnabled struct { v *types.FeatureEnabled diff --git a/typedapi/esdsl/featureextractor.go b/typedapi/esdsl/featureextractor.go new file mode 100644 index 0000000000..9f361095ac --- /dev/null +++ b/typedapi/esdsl/featureextractor.go @@ -0,0 +1,35 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _featureExtractor struct { + v types.FeatureExtractor +} + +func NewFeatureExtractor(featureextractor types.QueryFeatureExtractor) *_featureExtractor { + return &_featureExtractor{v: types.FeatureExtractor(featureextractor)} +} + +func (u *_featureExtractor) FeatureExtractorCaster() *types.FeatureExtractor { + return &u.v +} diff --git a/typedapi/esdsl/fieldaliasproperty.go b/typedapi/esdsl/fieldaliasproperty.go index feb9e2315f..a7d345dc02 100644 --- a/typedapi/esdsl/fieldaliasproperty.go +++ b/typedapi/esdsl/fieldaliasproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _fieldAliasProperty struct { @@ -70,7 +70,6 @@ func (s *_fieldAliasProperty) IgnoreAbove(ignoreabove int) *_fieldAliasProperty return s } -// Metadata about the field. func (s *_fieldAliasProperty) Meta(meta map[string]string) *_fieldAliasProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/fieldandformat.go b/typedapi/esdsl/fieldandformat.go index 8638f4336e..28590ba0cc 100644 --- a/typedapi/esdsl/fieldandformat.go +++ b/typedapi/esdsl/fieldandformat.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _fieldAndFormat struct { v *types.FieldAndFormat @@ -32,8 +32,6 @@ func NewFieldAndFormat() *_fieldAndFormat { } -// A wildcard pattern. The request returns values for field names matching this -// pattern. func (s *_fieldAndFormat) Field(field string) *_fieldAndFormat { s.v.Field = field @@ -41,7 +39,6 @@ func (s *_fieldAndFormat) Field(field string) *_fieldAndFormat { return s } -// The format in which the values are returned. func (s *_fieldAndFormat) Format(format string) *_fieldAndFormat { s.v.Format = &format diff --git a/typedapi/esdsl/fieldcollapse.go b/typedapi/esdsl/fieldcollapse.go index daadcaa4a4..3c7c22eebf 100644 --- a/typedapi/esdsl/fieldcollapse.go +++ b/typedapi/esdsl/fieldcollapse.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _fieldCollapse struct { v *types.FieldCollapse @@ -39,7 +39,6 @@ func (s *_fieldCollapse) Collapse(collapse types.FieldCollapseVariant) *_fieldCo return s } -// The field to collapse the result set on func (s *_fieldCollapse) Field(field string) *_fieldCollapse { s.v.Field = field @@ -47,7 +46,6 @@ func (s *_fieldCollapse) Field(field string) *_fieldCollapse { return s } -// The number of inner hits and their sort order func (s *_fieldCollapse) InnerHits(innerhits ...types.InnerHitsVariant) *_fieldCollapse { s.v.InnerHits = make([]types.InnerHits, len(innerhits)) @@ -58,8 +56,6 @@ func (s *_fieldCollapse) InnerHits(innerhits ...types.InnerHitsVariant) *_fieldC return s } -// The number of concurrent requests allowed to retrieve the inner_hits per -// group func (s *_fieldCollapse) MaxConcurrentGroupSearches(maxconcurrentgroupsearches int) *_fieldCollapse { s.v.MaxConcurrentGroupSearches = &maxconcurrentgroupsearches diff --git a/typedapi/esdsl/fielddatafrequencyfilter.go b/typedapi/esdsl/fielddatafrequencyfilter.go index b63575eda6..314ad4ddbc 100644 --- a/typedapi/esdsl/fielddatafrequencyfilter.go +++ b/typedapi/esdsl/fielddatafrequencyfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _fielddataFrequencyFilter struct { v *types.FielddataFrequencyFilter diff --git a/typedapi/esdsl/fielddatemath.go b/typedapi/esdsl/fielddatemath.go index f576fb1ccd..146b33d098 100644 --- a/typedapi/esdsl/fielddatemath.go +++ b/typedapi/esdsl/fielddatemath.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _fieldDateMath struct { diff --git a/typedapi/esdsl/fieldlookup.go b/typedapi/esdsl/fieldlookup.go index 44150d9e53..aa5d72b7b0 100644 --- a/typedapi/esdsl/fieldlookup.go +++ b/typedapi/esdsl/fieldlookup.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _fieldLookup struct { v *types.FieldLookup @@ -32,7 +32,6 @@ func NewFieldLookup() *_fieldLookup { } -// `id` of the document. func (s *_fieldLookup) Id(id string) *_fieldLookup { s.v.Id = id @@ -40,7 +39,6 @@ func (s *_fieldLookup) Id(id string) *_fieldLookup { return s } -// Index from which to retrieve the document. func (s *_fieldLookup) Index(indexname string) *_fieldLookup { s.v.Index = &indexname @@ -48,7 +46,6 @@ func (s *_fieldLookup) Index(indexname string) *_fieldLookup { return s } -// Name of the field. func (s *_fieldLookup) Path(field string) *_fieldLookup { s.v.Path = &field @@ -56,7 +53,6 @@ func (s *_fieldLookup) Path(field string) *_fieldLookup { return s } -// Custom routing value. func (s *_fieldLookup) Routing(routing string) *_fieldLookup { s.v.Routing = &routing diff --git a/typedapi/esdsl/fieldmetric.go b/typedapi/esdsl/fieldmetric.go index 5ea624dc35..8d49dc5988 100644 --- a/typedapi/esdsl/fieldmetric.go +++ b/typedapi/esdsl/fieldmetric.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/metric" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/metric" ) type _fieldMetric struct { @@ -35,7 +35,6 @@ func NewFieldMetric() *_fieldMetric { } -// The field to collect metrics for. This must be a numeric of some kind. func (s *_fieldMetric) Field(field string) *_fieldMetric { s.v.Field = field @@ -43,8 +42,6 @@ func (s *_fieldMetric) Field(field string) *_fieldMetric { return s } -// An array of metrics to collect for the field. At least one metric must be -// configured. func (s *_fieldMetric) Metrics(metrics ...metric.Metric) *_fieldMetric { for _, v := range metrics { diff --git a/typedapi/esdsl/fieldnamesfield.go b/typedapi/esdsl/fieldnamesfield.go index 830db9966f..46f2f2868d 100644 --- a/typedapi/esdsl/fieldnamesfield.go +++ b/typedapi/esdsl/fieldnamesfield.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _fieldNamesField struct { v *types.FieldNamesField diff --git a/typedapi/esdsl/fields.go b/typedapi/esdsl/fields.go index c4409765a5..7c56f4c5fc 100644 --- a/typedapi/esdsl/fields.go +++ b/typedapi/esdsl/fields.go @@ -16,13 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _fields struct { v types.Fields } diff --git a/typedapi/esdsl/fieldsecurity.go b/typedapi/esdsl/fieldsecurity.go index a40b7e70fc..02b1e6d6d0 100644 --- a/typedapi/esdsl/fieldsecurity.go +++ b/typedapi/esdsl/fieldsecurity.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _fieldSecurity struct { v *types.FieldSecurity diff --git a/typedapi/esdsl/fieldsort.go b/typedapi/esdsl/fieldsort.go index fab83bb4be..6a088bd9b4 100644 --- a/typedapi/esdsl/fieldsort.go +++ b/typedapi/esdsl/fieldsort.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldsortnumerictype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/fieldsortnumerictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/fieldtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) type _fieldSort struct { diff --git a/typedapi/esdsl/fieldsuggester.go b/typedapi/esdsl/fieldsuggester.go index 3298e5922f..29e3e523f8 100644 --- a/typedapi/esdsl/fieldsuggester.go +++ b/typedapi/esdsl/fieldsuggester.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _fieldSuggester struct { @@ -46,7 +46,6 @@ func (s *_fieldSuggester) AdditionalFieldSuggesterProperty(key string, value jso return s } -// Provides auto-complete/search-as-you-type functionality. func (s *_fieldSuggester) Completion(completion types.CompletionSuggesterVariant) *_fieldSuggester { s.v.Completion = completion.CompletionSuggesterCaster() @@ -54,8 +53,6 @@ func (s *_fieldSuggester) Completion(completion types.CompletionSuggesterVariant return s } -// Provides access to word alternatives on a per token basis within a certain -// string distance. func (s *_fieldSuggester) Phrase(phrase types.PhraseSuggesterVariant) *_fieldSuggester { s.v.Phrase = phrase.PhraseSuggesterCaster() @@ -63,7 +60,6 @@ func (s *_fieldSuggester) Phrase(phrase types.PhraseSuggesterVariant) *_fieldSug return s } -// Prefix used to search for suggestions. func (s *_fieldSuggester) Prefix(prefix string) *_fieldSuggester { s.v.Prefix = &prefix @@ -71,7 +67,6 @@ func (s *_fieldSuggester) Prefix(prefix string) *_fieldSuggester { return s } -// A prefix expressed as a regular expression. func (s *_fieldSuggester) Regex(regex string) *_fieldSuggester { s.v.Regex = ®ex @@ -79,7 +74,6 @@ func (s *_fieldSuggester) Regex(regex string) *_fieldSuggester { return s } -// Suggests terms based on edit distance. func (s *_fieldSuggester) Term(term types.TermSuggesterVariant) *_fieldSuggester { s.v.Term = term.TermSuggesterCaster() @@ -87,8 +81,6 @@ func (s *_fieldSuggester) Term(term types.TermSuggesterVariant) *_fieldSuggester return s } -// The text to use as input for the suggester. -// Needs to be set globally or per suggestion. func (s *_fieldSuggester) Text(text string) *_fieldSuggester { s.v.Text = &text diff --git a/typedapi/esdsl/fieldvalue.go b/typedapi/esdsl/fieldvalue.go index 0e346f559b..9681d6fd2a 100644 --- a/typedapi/esdsl/fieldvalue.go +++ b/typedapi/esdsl/fieldvalue.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _fieldValue struct { diff --git a/typedapi/esdsl/fieldvaluefactorscorefunction.go b/typedapi/esdsl/fieldvaluefactorscorefunction.go index 6abbf72df4..411aa3cc4c 100644 --- a/typedapi/esdsl/fieldvaluefactorscorefunction.go +++ b/typedapi/esdsl/fieldvaluefactorscorefunction.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldvaluefactormodifier" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/fieldvaluefactormodifier" ) type _fieldValueFactorScoreFunction struct { @@ -38,7 +38,6 @@ func NewFieldValueFactorScoreFunction() *_fieldValueFactorScoreFunction { } -// Optional factor to multiply the field value with. func (s *_fieldValueFactorScoreFunction) Factor(factor types.Float64) *_fieldValueFactorScoreFunction { s.v.Factor = &factor @@ -46,7 +45,6 @@ func (s *_fieldValueFactorScoreFunction) Factor(factor types.Float64) *_fieldVal return s } -// Field to be extracted from the document. func (s *_fieldValueFactorScoreFunction) Field(field string) *_fieldValueFactorScoreFunction { s.v.Field = field @@ -54,9 +52,6 @@ func (s *_fieldValueFactorScoreFunction) Field(field string) *_fieldValueFactorS return s } -// Value used if the document doesn’t have that field. -// The modifier and factor are still applied to it as though it were read from -// the document. func (s *_fieldValueFactorScoreFunction) Missing(missing types.Float64) *_fieldValueFactorScoreFunction { s.v.Missing = &missing @@ -64,7 +59,6 @@ func (s *_fieldValueFactorScoreFunction) Missing(missing types.Float64) *_fieldV return s } -// Modifier to apply to the field value. func (s *_fieldValueFactorScoreFunction) Modifier(modifier fieldvaluefactormodifier.FieldValueFactorModifier) *_fieldValueFactorScoreFunction { s.v.Modifier = &modifier diff --git a/typedapi/esdsl/fillmaskinferenceoptions.go b/typedapi/esdsl/fillmaskinferenceoptions.go index e7db284f70..10b41cd902 100644 --- a/typedapi/esdsl/fillmaskinferenceoptions.go +++ b/typedapi/esdsl/fillmaskinferenceoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _fillMaskInferenceOptions struct { v *types.FillMaskInferenceOptions @@ -37,15 +37,6 @@ func NewFillMaskInferenceOptions(vocabulary types.VocabularyVariant) *_fillMaskI } -// The string/token which will be removed from incoming documents and replaced -// with the inference prediction(s). -// In a response, this field contains the mask token for the specified -// model/tokenizer. Each model and tokenizer -// has a predefined mask token which cannot be changed. Thus, it is recommended -// not to set this value in requests. -// However, if this field is present in a request, its value must match the -// predefined value for that model/tokenizer, -// otherwise the request will fail. func (s *_fillMaskInferenceOptions) MaskToken(masktoken string) *_fillMaskInferenceOptions { s.v.MaskToken = &masktoken @@ -53,7 +44,6 @@ func (s *_fillMaskInferenceOptions) MaskToken(masktoken string) *_fillMaskInfere return s } -// Specifies the number of top class predictions to return. Defaults to 0. func (s *_fillMaskInferenceOptions) NumTopClasses(numtopclasses int) *_fillMaskInferenceOptions { s.v.NumTopClasses = &numtopclasses @@ -61,8 +51,6 @@ func (s *_fillMaskInferenceOptions) NumTopClasses(numtopclasses int) *_fillMaskI return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_fillMaskInferenceOptions) ResultsField(resultsfield string) *_fillMaskInferenceOptions { s.v.ResultsField = &resultsfield @@ -70,7 +58,6 @@ func (s *_fillMaskInferenceOptions) ResultsField(resultsfield string) *_fillMask return s } -// The tokenization options to update when inferring func (s *_fillMaskInferenceOptions) Tokenization(tokenization types.TokenizationConfigContainerVariant) *_fillMaskInferenceOptions { s.v.Tokenization = tokenization.TokenizationConfigContainerCaster() diff --git a/typedapi/esdsl/fillmaskinferenceupdateoptions.go b/typedapi/esdsl/fillmaskinferenceupdateoptions.go index 95e7b0599a..1e79e30e8b 100644 --- a/typedapi/esdsl/fillmaskinferenceupdateoptions.go +++ b/typedapi/esdsl/fillmaskinferenceupdateoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _fillMaskInferenceUpdateOptions struct { v *types.FillMaskInferenceUpdateOptions @@ -33,7 +33,6 @@ func NewFillMaskInferenceUpdateOptions() *_fillMaskInferenceUpdateOptions { } -// Specifies the number of top class predictions to return. Defaults to 0. func (s *_fillMaskInferenceUpdateOptions) NumTopClasses(numtopclasses int) *_fillMaskInferenceUpdateOptions { s.v.NumTopClasses = &numtopclasses @@ -41,8 +40,6 @@ func (s *_fillMaskInferenceUpdateOptions) NumTopClasses(numtopclasses int) *_fil return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_fillMaskInferenceUpdateOptions) ResultsField(resultsfield string) *_fillMaskInferenceUpdateOptions { s.v.ResultsField = &resultsfield @@ -50,7 +47,6 @@ func (s *_fillMaskInferenceUpdateOptions) ResultsField(resultsfield string) *_fi return s } -// The tokenization options to update when inferring func (s *_fillMaskInferenceUpdateOptions) Tokenization(tokenization types.NlpTokenizationUpdateOptionsVariant) *_fillMaskInferenceUpdateOptions { s.v.Tokenization = tokenization.NlpTokenizationUpdateOptionsCaster() diff --git a/typedapi/esdsl/filteringadvancedsnippet.go b/typedapi/esdsl/filteringadvancedsnippet.go index f05e193f4f..27a1d86c71 100644 --- a/typedapi/esdsl/filteringadvancedsnippet.go +++ b/typedapi/esdsl/filteringadvancedsnippet.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _filteringAdvancedSnippet struct { diff --git a/typedapi/esdsl/filteringconfig.go b/typedapi/esdsl/filteringconfig.go index c83197142d..dd0697b7e9 100644 --- a/typedapi/esdsl/filteringconfig.go +++ b/typedapi/esdsl/filteringconfig.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _filteringConfig struct { v *types.FilteringConfig diff --git a/typedapi/esdsl/filteringrule.go b/typedapi/esdsl/filteringrule.go index 1a8440f763..869768e57b 100644 --- a/typedapi/esdsl/filteringrule.go +++ b/typedapi/esdsl/filteringrule.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringpolicy" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringrulerule" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/filteringpolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/filteringrulerule" ) type _filteringRule struct { diff --git a/typedapi/esdsl/filteringrules.go b/typedapi/esdsl/filteringrules.go index c4ba52cdf0..694d716a96 100644 --- a/typedapi/esdsl/filteringrules.go +++ b/typedapi/esdsl/filteringrules.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _filteringRules struct { v *types.FilteringRules diff --git a/typedapi/esdsl/filteringrulesvalidation.go b/typedapi/esdsl/filteringrulesvalidation.go index 69f9c19cb7..9b7fc59792 100644 --- a/typedapi/esdsl/filteringrulesvalidation.go +++ b/typedapi/esdsl/filteringrulesvalidation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringvalidationstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/filteringvalidationstate" ) type _filteringRulesValidation struct { diff --git a/typedapi/esdsl/filteringvalidation.go b/typedapi/esdsl/filteringvalidation.go index 2e4422e0ce..4b07e62e25 100644 --- a/typedapi/esdsl/filteringvalidation.go +++ b/typedapi/esdsl/filteringvalidation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _filteringValidation struct { v *types.FilteringValidation diff --git a/typedapi/esdsl/filterref.go b/typedapi/esdsl/filterref.go index f3b7eef57a..942d4e6180 100644 --- a/typedapi/esdsl/filterref.go +++ b/typedapi/esdsl/filterref.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filtertype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/filtertype" ) type _filterRef struct { @@ -35,7 +35,6 @@ func NewFilterRef() *_filterRef { } -// The identifier for the filter. func (s *_filterRef) FilterId(id string) *_filterRef { s.v.FilterId = id @@ -43,8 +42,6 @@ func (s *_filterRef) FilterId(id string) *_filterRef { return s } -// If set to `include`, the rule applies for values in the filter. If set to -// `exclude`, the rule applies for values not in the filter. func (s *_filterRef) FilterType(filtertype filtertype.FilterType) *_filterRef { s.v.FilterType = &filtertype diff --git a/typedapi/esdsl/filtersaggregation.go b/typedapi/esdsl/filtersaggregation.go index 875fc03c3b..1183bdbef1 100644 --- a/typedapi/esdsl/filtersaggregation.go +++ b/typedapi/esdsl/filtersaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _filtersAggregation struct { v *types.FiltersAggregation @@ -34,7 +34,6 @@ func NewFiltersAggregation() *_filtersAggregation { } -// Collection of queries from which to build buckets. func (s *_filtersAggregation) Filters(bucketsquery types.BucketsQueryVariant) *_filtersAggregation { s.v.Filters = *bucketsquery.BucketsQueryCaster() @@ -42,8 +41,6 @@ func (s *_filtersAggregation) Filters(bucketsquery types.BucketsQueryVariant) *_ return s } -// By default, the named filters aggregation returns the buckets as an object. -// Set to `false` to return the buckets as an array of objects. func (s *_filtersAggregation) Keyed(keyed bool) *_filtersAggregation { s.v.Keyed = &keyed @@ -51,8 +48,6 @@ func (s *_filtersAggregation) Keyed(keyed bool) *_filtersAggregation { return s } -// Set to `true` to add a bucket to the response which will contain all -// documents that do not match any of the given filters. func (s *_filtersAggregation) OtherBucket(otherbucket bool) *_filtersAggregation { s.v.OtherBucket = &otherbucket @@ -60,7 +55,6 @@ func (s *_filtersAggregation) OtherBucket(otherbucket bool) *_filtersAggregation return s } -// The key with which the other bucket is returned. func (s *_filtersAggregation) OtherBucketKey(otherbucketkey string) *_filtersAggregation { s.v.OtherBucketKey = &otherbucketkey diff --git a/typedapi/esdsl/fingerprintanalyzer.go b/typedapi/esdsl/fingerprintanalyzer.go index 3c4d4b3ef6..4faae5206d 100644 --- a/typedapi/esdsl/fingerprintanalyzer.go +++ b/typedapi/esdsl/fingerprintanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _fingerprintAnalyzer struct { v *types.FingerprintAnalyzer @@ -32,9 +32,6 @@ func NewFingerprintAnalyzer() *_fingerprintAnalyzer { } -// The maximum token size to emit. Tokens larger than this size will be -// discarded. -// Defaults to `255` func (s *_fingerprintAnalyzer) MaxOutputSize(maxoutputsize int) *_fingerprintAnalyzer { s.v.MaxOutputSize = &maxoutputsize @@ -42,8 +39,6 @@ func (s *_fingerprintAnalyzer) MaxOutputSize(maxoutputsize int) *_fingerprintAna return s } -// The character to use to concatenate the terms. -// Defaults to a space. func (s *_fingerprintAnalyzer) Separator(separator string) *_fingerprintAnalyzer { s.v.Separator = &separator @@ -51,9 +46,6 @@ func (s *_fingerprintAnalyzer) Separator(separator string) *_fingerprintAnalyzer return s } -// A pre-defined stop words list like `_english_` or an array containing a list -// of stop words. -// Defaults to `_none_`. func (s *_fingerprintAnalyzer) Stopwords(stopwords ...string) *_fingerprintAnalyzer { s.v.Stopwords = stopwords @@ -61,7 +53,6 @@ func (s *_fingerprintAnalyzer) Stopwords(stopwords ...string) *_fingerprintAnaly return s } -// The path to a file containing stop words. func (s *_fingerprintAnalyzer) StopwordsPath(stopwordspath string) *_fingerprintAnalyzer { s.v.StopwordsPath = &stopwordspath diff --git a/typedapi/esdsl/fingerprintprocessor.go b/typedapi/esdsl/fingerprintprocessor.go index 6e203fb6e5..8e08abd095 100644 --- a/typedapi/esdsl/fingerprintprocessor.go +++ b/typedapi/esdsl/fingerprintprocessor.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fingerprintdigest" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/fingerprintdigest" ) type _fingerprintProcessor struct { @@ -37,8 +37,6 @@ func NewFingerprintProcessor() *_fingerprintProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_fingerprintProcessor) Description(description string) *_fingerprintProcessor { s.v.Description = &description @@ -46,9 +44,6 @@ func (s *_fingerprintProcessor) Description(description string) *_fingerprintPro return s } -// Array of fields to include in the fingerprint. For objects, the processor -// hashes both the field key and value. For other fields, the processor hashes -// only the field value. func (s *_fingerprintProcessor) Fields(fields ...string) *_fingerprintProcessor { s.v.Fields = fields @@ -56,7 +51,6 @@ func (s *_fingerprintProcessor) Fields(fields ...string) *_fingerprintProcessor return s } -// Conditionally execute the processor. func (s *_fingerprintProcessor) If(if_ types.ScriptVariant) *_fingerprintProcessor { s.v.If = if_.ScriptCaster() @@ -64,7 +58,6 @@ func (s *_fingerprintProcessor) If(if_ types.ScriptVariant) *_fingerprintProcess return s } -// Ignore failures for the processor. func (s *_fingerprintProcessor) IgnoreFailure(ignorefailure bool) *_fingerprintProcessor { s.v.IgnoreFailure = &ignorefailure @@ -72,8 +65,6 @@ func (s *_fingerprintProcessor) IgnoreFailure(ignorefailure bool) *_fingerprintP return s } -// If true, the processor ignores any missing fields. If all fields are -// missing, the processor silently exits without modifying the document. func (s *_fingerprintProcessor) IgnoreMissing(ignoremissing bool) *_fingerprintProcessor { s.v.IgnoreMissing = &ignoremissing @@ -81,15 +72,12 @@ func (s *_fingerprintProcessor) IgnoreMissing(ignoremissing bool) *_fingerprintP return s } -// The hash method used to compute the fingerprint. Must be one of MD5, SHA-1, -// SHA-256, SHA-512, or MurmurHash3. func (s *_fingerprintProcessor) Method(method fingerprintdigest.FingerprintDigest) *_fingerprintProcessor { s.v.Method = &method return s } -// Handle failures for the processor. func (s *_fingerprintProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_fingerprintProcessor { for _, v := range onfailures { @@ -100,7 +88,6 @@ func (s *_fingerprintProcessor) OnFailure(onfailures ...types.ProcessorContainer return s } -// Salt value for the hash function. func (s *_fingerprintProcessor) Salt(salt string) *_fingerprintProcessor { s.v.Salt = &salt @@ -108,8 +95,6 @@ func (s *_fingerprintProcessor) Salt(salt string) *_fingerprintProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_fingerprintProcessor) Tag(tag string) *_fingerprintProcessor { s.v.Tag = &tag @@ -117,7 +102,6 @@ func (s *_fingerprintProcessor) Tag(tag string) *_fingerprintProcessor { return s } -// Output field for the fingerprint. func (s *_fingerprintProcessor) TargetField(field string) *_fingerprintProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/fingerprinttokenfilter.go b/typedapi/esdsl/fingerprinttokenfilter.go index 67cafe8f1d..5fdf0174f7 100644 --- a/typedapi/esdsl/fingerprinttokenfilter.go +++ b/typedapi/esdsl/fingerprinttokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _fingerprintTokenFilter struct { v *types.FingerprintTokenFilter diff --git a/typedapi/esdsl/finnishanalyzer.go b/typedapi/esdsl/finnishanalyzer.go index cd73c8a35e..d474e971c2 100644 --- a/typedapi/esdsl/finnishanalyzer.go +++ b/typedapi/esdsl/finnishanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _finnishAnalyzer struct { v *types.FinnishAnalyzer diff --git a/typedapi/esdsl/flattenedproperty.go b/typedapi/esdsl/flattenedproperty.go index dd8c7193df..d39652293c 100644 --- a/typedapi/esdsl/flattenedproperty.go +++ b/typedapi/esdsl/flattenedproperty.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _flattenedProperty struct { @@ -112,7 +112,6 @@ func (s *_flattenedProperty) IndexOptions(indexoptions indexoptions.IndexOptions return s } -// Metadata about the field. func (s *_flattenedProperty) Meta(meta map[string]string) *_flattenedProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/floatnumberproperty.go b/typedapi/esdsl/floatnumberproperty.go index e954b75bd0..51c29980b6 100644 --- a/typedapi/esdsl/floatnumberproperty.go +++ b/typedapi/esdsl/floatnumberproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) type _floatNumberProperty struct { @@ -114,7 +114,6 @@ func (s *_floatNumberProperty) Index(index bool) *_floatNumberProperty { return s } -// Metadata about the field. func (s *_floatNumberProperty) Meta(meta map[string]string) *_floatNumberProperty { s.v.Meta = meta @@ -190,8 +189,6 @@ func (s *_floatNumberProperty) SyntheticSourceKeep(syntheticsourcekeep synthetic return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_floatNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_floatNumberProperty { s.v.TimeSeriesDimension = ×eriesdimension @@ -199,8 +196,6 @@ func (s *_floatNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_f return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_floatNumberProperty) TimeSeriesMetric(timeseriesmetric timeseriesmetrictype.TimeSeriesMetricType) *_floatNumberProperty { s.v.TimeSeriesMetric = ×eriesmetric diff --git a/typedapi/esdsl/floatrangeproperty.go b/typedapi/esdsl/floatrangeproperty.go index 7fc4541108..773b60e667 100644 --- a/typedapi/esdsl/floatrangeproperty.go +++ b/typedapi/esdsl/floatrangeproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _floatRangeProperty struct { @@ -105,7 +105,6 @@ func (s *_floatRangeProperty) Index(index bool) *_floatRangeProperty { return s } -// Metadata about the field. func (s *_floatRangeProperty) Meta(meta map[string]string) *_floatRangeProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/forcemergeaction.go b/typedapi/esdsl/forcemergeaction.go index a86011a4ad..87ec8b24a0 100644 --- a/typedapi/esdsl/forcemergeaction.go +++ b/typedapi/esdsl/forcemergeaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _forceMergeAction struct { v *types.ForceMergeAction diff --git a/typedapi/esdsl/foreachprocessor.go b/typedapi/esdsl/foreachprocessor.go index 2711f6c4a3..6429b15052 100644 --- a/typedapi/esdsl/foreachprocessor.go +++ b/typedapi/esdsl/foreachprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _foreachProcessor struct { v *types.ForeachProcessor @@ -37,8 +37,6 @@ func NewForeachProcessor(processor types.ProcessorContainerVariant) *_foreachPro } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_foreachProcessor) Description(description string) *_foreachProcessor { s.v.Description = &description @@ -46,7 +44,6 @@ func (s *_foreachProcessor) Description(description string) *_foreachProcessor { return s } -// Field containing array or object values. func (s *_foreachProcessor) Field(field string) *_foreachProcessor { s.v.Field = field @@ -54,7 +51,6 @@ func (s *_foreachProcessor) Field(field string) *_foreachProcessor { return s } -// Conditionally execute the processor. func (s *_foreachProcessor) If(if_ types.ScriptVariant) *_foreachProcessor { s.v.If = if_.ScriptCaster() @@ -62,7 +58,6 @@ func (s *_foreachProcessor) If(if_ types.ScriptVariant) *_foreachProcessor { return s } -// Ignore failures for the processor. func (s *_foreachProcessor) IgnoreFailure(ignorefailure bool) *_foreachProcessor { s.v.IgnoreFailure = &ignorefailure @@ -70,8 +65,6 @@ func (s *_foreachProcessor) IgnoreFailure(ignorefailure bool) *_foreachProcessor return s } -// If `true`, the processor silently exits without changing the document if the -// `field` is `null` or missing. func (s *_foreachProcessor) IgnoreMissing(ignoremissing bool) *_foreachProcessor { s.v.IgnoreMissing = &ignoremissing @@ -79,7 +72,6 @@ func (s *_foreachProcessor) IgnoreMissing(ignoremissing bool) *_foreachProcessor return s } -// Handle failures for the processor. func (s *_foreachProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_foreachProcessor { for _, v := range onfailures { @@ -90,7 +82,6 @@ func (s *_foreachProcessor) OnFailure(onfailures ...types.ProcessorContainerVari return s } -// Ingest processor to run on each element. func (s *_foreachProcessor) Processor(processor types.ProcessorContainerVariant) *_foreachProcessor { s.v.Processor = *processor.ProcessorContainerCaster() @@ -98,8 +89,6 @@ func (s *_foreachProcessor) Processor(processor types.ProcessorContainerVariant) return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_foreachProcessor) Tag(tag string) *_foreachProcessor { s.v.Tag = &tag diff --git a/typedapi/esdsl/frenchanalyzer.go b/typedapi/esdsl/frenchanalyzer.go index 81fc71d413..e97a9ef032 100644 --- a/typedapi/esdsl/frenchanalyzer.go +++ b/typedapi/esdsl/frenchanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _frenchAnalyzer struct { v *types.FrenchAnalyzer diff --git a/typedapi/esdsl/frequencyencodingpreprocessor.go b/typedapi/esdsl/frequencyencodingpreprocessor.go index 1256dd9497..69cd75207a 100644 --- a/typedapi/esdsl/frequencyencodingpreprocessor.go +++ b/typedapi/esdsl/frequencyencodingpreprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _frequencyEncodingPreprocessor struct { v *types.FrequencyEncodingPreprocessor diff --git a/typedapi/esdsl/frequentitemsetsaggregation.go b/typedapi/esdsl/frequentitemsetsaggregation.go index 57e9f36514..25094c9eb3 100644 --- a/typedapi/esdsl/frequentitemsetsaggregation.go +++ b/typedapi/esdsl/frequentitemsetsaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _frequentItemSetsAggregation struct { v *types.FrequentItemSetsAggregation @@ -34,7 +34,6 @@ func NewFrequentItemSetsAggregation() *_frequentItemSetsAggregation { } -// Fields to analyze. func (s *_frequentItemSetsAggregation) Fields(fields ...types.FrequentItemSetsFieldVariant) *_frequentItemSetsAggregation { for _, v := range fields { @@ -45,7 +44,6 @@ func (s *_frequentItemSetsAggregation) Fields(fields ...types.FrequentItemSetsFi return s } -// Query that filters documents from analysis. func (s *_frequentItemSetsAggregation) Filter(filter types.QueryVariant) *_frequentItemSetsAggregation { s.v.Filter = filter.QueryCaster() @@ -53,7 +51,6 @@ func (s *_frequentItemSetsAggregation) Filter(filter types.QueryVariant) *_frequ return s } -// The minimum size of one item set. func (s *_frequentItemSetsAggregation) MinimumSetSize(minimumsetsize int) *_frequentItemSetsAggregation { s.v.MinimumSetSize = &minimumsetsize @@ -61,7 +58,6 @@ func (s *_frequentItemSetsAggregation) MinimumSetSize(minimumsetsize int) *_freq return s } -// The minimum support of one item set. func (s *_frequentItemSetsAggregation) MinimumSupport(minimumsupport types.Float64) *_frequentItemSetsAggregation { s.v.MinimumSupport = &minimumsupport @@ -69,7 +65,6 @@ func (s *_frequentItemSetsAggregation) MinimumSupport(minimumsupport types.Float return s } -// The number of top item sets to return. func (s *_frequentItemSetsAggregation) Size(size int) *_frequentItemSetsAggregation { s.v.Size = &size diff --git a/typedapi/esdsl/frequentitemsetsfield.go b/typedapi/esdsl/frequentitemsetsfield.go index 4a523fb58f..00c9657a8d 100644 --- a/typedapi/esdsl/frequentitemsetsfield.go +++ b/typedapi/esdsl/frequentitemsetsfield.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _frequentItemSetsField struct { v *types.FrequentItemSetsField @@ -32,8 +32,6 @@ func NewFrequentItemSetsField() *_frequentItemSetsField { } -// Values to exclude. -// Can be regular expression strings or arrays of strings of exact terms. func (s *_frequentItemSetsField) Exclude(termsexcludes ...string) *_frequentItemSetsField { s.v.Exclude = termsexcludes @@ -48,8 +46,6 @@ func (s *_frequentItemSetsField) Field(field string) *_frequentItemSetsField { return s } -// Values to include. -// Can be regular expression strings or arrays of strings of exact terms. func (s *_frequentItemSetsField) Include(termsinclude types.TermsIncludeVariant) *_frequentItemSetsField { s.v.Include = *termsinclude.TermsIncludeCaster() diff --git a/typedapi/esdsl/functionscore.go b/typedapi/esdsl/functionscore.go index b181437339..2087f6b5c0 100644 --- a/typedapi/esdsl/functionscore.go +++ b/typedapi/esdsl/functionscore.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _functionScore struct { @@ -46,8 +46,6 @@ func (s *_functionScore) AdditionalFunctionScoreProperty(key string, value json. return s } -// Function that scores a document with a exponential decay, depending on the -// distance of a numeric field value of the document from an origin. func (s *_functionScore) Exp(decayfunction types.DecayFunctionVariant) *_functionScore { s.v.Exp = *decayfunction.DecayFunctionCaster() @@ -55,9 +53,6 @@ func (s *_functionScore) Exp(decayfunction types.DecayFunctionVariant) *_functio return s } -// Function allows you to use a field from a document to influence the score. -// It’s similar to using the script_score function, however, it avoids the -// overhead of scripting. func (s *_functionScore) FieldValueFactor(fieldvaluefactor types.FieldValueFactorScoreFunctionVariant) *_functionScore { s.v.FieldValueFactor = fieldvaluefactor.FieldValueFactorScoreFunctionCaster() @@ -72,8 +67,6 @@ func (s *_functionScore) Filter(filter types.QueryVariant) *_functionScore { return s } -// Function that scores a document with a normal decay, depending on the -// distance of a numeric field value of the document from an origin. func (s *_functionScore) Gauss(decayfunction types.DecayFunctionVariant) *_functionScore { s.v.Gauss = *decayfunction.DecayFunctionCaster() @@ -81,8 +74,6 @@ func (s *_functionScore) Gauss(decayfunction types.DecayFunctionVariant) *_funct return s } -// Function that scores a document with a linear decay, depending on the -// distance of a numeric field value of the document from an origin. func (s *_functionScore) Linear(decayfunction types.DecayFunctionVariant) *_functionScore { s.v.Linear = *decayfunction.DecayFunctionCaster() @@ -90,10 +81,6 @@ func (s *_functionScore) Linear(decayfunction types.DecayFunctionVariant) *_func return s } -// Generates scores that are uniformly distributed from 0 up to but not -// including 1. -// In case you want scores to be reproducible, it is possible to provide a -// `seed` and `field`. func (s *_functionScore) RandomScore(randomscore types.RandomScoreFunctionVariant) *_functionScore { s.v.RandomScore = randomscore.RandomScoreFunctionCaster() @@ -101,9 +88,6 @@ func (s *_functionScore) RandomScore(randomscore types.RandomScoreFunctionVarian return s } -// Enables you to wrap another query and customize the scoring of it optionally -// with a computation derived from other numeric field values in the doc using a -// script expression. func (s *_functionScore) ScriptScore(scriptscore types.ScriptScoreFunctionVariant) *_functionScore { s.v.ScriptScore = scriptscore.ScriptScoreFunctionCaster() diff --git a/typedapi/esdsl/functionscorequery.go b/typedapi/esdsl/functionscorequery.go index c3f402c929..8de5dcb7f6 100644 --- a/typedapi/esdsl/functionscorequery.go +++ b/typedapi/esdsl/functionscorequery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionboostmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionscoremode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/functionboostmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/functionscoremode" ) type _functionScoreQuery struct { @@ -38,11 +38,6 @@ func NewFunctionScoreQuery() *_functionScoreQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_functionScoreQuery) Boost(boost float32) *_functionScoreQuery { s.v.Boost = &boost @@ -50,15 +45,12 @@ func (s *_functionScoreQuery) Boost(boost float32) *_functionScoreQuery { return s } -// Defines how he newly computed score is combined with the score of the query func (s *_functionScoreQuery) BoostMode(boostmode functionboostmode.FunctionBoostMode) *_functionScoreQuery { s.v.BoostMode = &boostmode return s } -// One or more functions that compute a new score for each document returned by -// the query. func (s *_functionScoreQuery) Functions(functions ...types.FunctionScoreVariant) *_functionScoreQuery { for _, v := range functions { @@ -69,7 +61,6 @@ func (s *_functionScoreQuery) Functions(functions ...types.FunctionScoreVariant) return s } -// Restricts the new score to not exceed the provided limit. func (s *_functionScoreQuery) MaxBoost(maxboost types.Float64) *_functionScoreQuery { s.v.MaxBoost = &maxboost @@ -77,7 +68,6 @@ func (s *_functionScoreQuery) MaxBoost(maxboost types.Float64) *_functionScoreQu return s } -// Excludes documents that do not meet the provided score threshold. func (s *_functionScoreQuery) MinScore(minscore types.Float64) *_functionScoreQuery { s.v.MinScore = &minscore @@ -85,7 +75,6 @@ func (s *_functionScoreQuery) MinScore(minscore types.Float64) *_functionScoreQu return s } -// A query that determines the documents for which a new score is computed. func (s *_functionScoreQuery) Query(query types.QueryVariant) *_functionScoreQuery { s.v.Query = query.QueryCaster() @@ -100,7 +89,6 @@ func (s *_functionScoreQuery) QueryName_(queryname_ string) *_functionScoreQuery return s } -// Specifies how the computed scores are combined func (s *_functionScoreQuery) ScoreMode(scoremode functionscoremode.FunctionScoreMode) *_functionScoreQuery { s.v.ScoreMode = &scoremode diff --git a/typedapi/esdsl/fuzziness.go b/typedapi/esdsl/fuzziness.go index e02a0985ad..1d105ecb42 100644 --- a/typedapi/esdsl/fuzziness.go +++ b/typedapi/esdsl/fuzziness.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _fuzziness struct { diff --git a/typedapi/esdsl/fuzzyquery.go b/typedapi/esdsl/fuzzyquery.go index 97bb3ea645..7afa288bca 100644 --- a/typedapi/esdsl/fuzzyquery.go +++ b/typedapi/esdsl/fuzzyquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _fuzzyQuery struct { k string @@ -39,11 +39,6 @@ func NewFuzzyQuery(field string, value string) *_fuzzyQuery { return tmp } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_fuzzyQuery) Boost(boost float32) *_fuzzyQuery { s.v.Boost = &boost @@ -51,7 +46,6 @@ func (s *_fuzzyQuery) Boost(boost float32) *_fuzzyQuery { return s } -// Maximum edit distance allowed for matching. func (s *_fuzzyQuery) Fuzziness(fuzziness types.FuzzinessVariant) *_fuzzyQuery { s.v.Fuzziness = *fuzziness.FuzzinessCaster() @@ -59,7 +53,6 @@ func (s *_fuzzyQuery) Fuzziness(fuzziness types.FuzzinessVariant) *_fuzzyQuery { return s } -// Maximum number of variations created. func (s *_fuzzyQuery) MaxExpansions(maxexpansions int) *_fuzzyQuery { s.v.MaxExpansions = &maxexpansions @@ -67,7 +60,6 @@ func (s *_fuzzyQuery) MaxExpansions(maxexpansions int) *_fuzzyQuery { return s } -// Number of beginning characters left unchanged when creating expansions. func (s *_fuzzyQuery) PrefixLength(prefixlength int) *_fuzzyQuery { s.v.PrefixLength = &prefixlength @@ -82,7 +74,6 @@ func (s *_fuzzyQuery) QueryName_(queryname_ string) *_fuzzyQuery { return s } -// Number of beginning characters left unchanged when creating expansions. func (s *_fuzzyQuery) Rewrite(multitermqueryrewrite string) *_fuzzyQuery { s.v.Rewrite = &multitermqueryrewrite @@ -90,8 +81,6 @@ func (s *_fuzzyQuery) Rewrite(multitermqueryrewrite string) *_fuzzyQuery { return s } -// Indicates whether edits include transpositions of two adjacent characters -// (for example `ab` to `ba`). func (s *_fuzzyQuery) Transpositions(transpositions bool) *_fuzzyQuery { s.v.Transpositions = &transpositions @@ -99,7 +88,6 @@ func (s *_fuzzyQuery) Transpositions(transpositions bool) *_fuzzyQuery { return s } -// Term you wish to find in the provided field. func (s *_fuzzyQuery) Value(value string) *_fuzzyQuery { s.v.Value = value diff --git a/typedapi/esdsl/galiciananalyzer.go b/typedapi/esdsl/galiciananalyzer.go index 9195fe2824..bcd9577a13 100644 --- a/typedapi/esdsl/galiciananalyzer.go +++ b/typedapi/esdsl/galiciananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _galicianAnalyzer struct { v *types.GalicianAnalyzer diff --git a/typedapi/esdsl/gcsrepository.go b/typedapi/esdsl/gcsrepository.go index 2789bf6831..5a05a599d1 100644 --- a/typedapi/esdsl/gcsrepository.go +++ b/typedapi/esdsl/gcsrepository.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _gcsRepository struct { v *types.GcsRepository @@ -36,7 +36,6 @@ func NewGcsRepository(settings types.GcsRepositorySettingsVariant) *_gcsReposito } -// The repository settings. func (s *_gcsRepository) Settings(settings types.GcsRepositorySettingsVariant) *_gcsRepository { s.v.Settings = *settings.GcsRepositorySettingsCaster() diff --git a/typedapi/esdsl/gcsrepositorysettings.go b/typedapi/esdsl/gcsrepositorysettings.go index 5eb281760e..6b9c4426bd 100644 --- a/typedapi/esdsl/gcsrepositorysettings.go +++ b/typedapi/esdsl/gcsrepositorysettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _gcsRepositorySettings struct { v *types.GcsRepositorySettings @@ -36,7 +36,6 @@ func NewGcsRepositorySettings(bucket string) *_gcsRepositorySettings { } -// The name used by the client when it uses the Google Cloud Storage service. func (s *_gcsRepositorySettings) ApplicationName(applicationname string) *_gcsRepositorySettings { s.v.ApplicationName = &applicationname @@ -44,13 +43,6 @@ func (s *_gcsRepositorySettings) ApplicationName(applicationname string) *_gcsRe return s } -// The path to the repository data within the bucket. -// It defaults to the root of the bucket. -// -// NOTE: Don't set `base_path` when configuring a snapshot repository for -// Elastic Cloud Enterprise. -// Elastic Cloud Enterprise automatically generates the `base_path` for each -// deployment so that multiple deployments can share the same bucket. func (s *_gcsRepositorySettings) BasePath(basepath string) *_gcsRepositorySettings { s.v.BasePath = &basepath @@ -58,7 +50,6 @@ func (s *_gcsRepositorySettings) BasePath(basepath string) *_gcsRepositorySettin return s } -// The name of the bucket to be used for snapshots. func (s *_gcsRepositorySettings) Bucket(bucket string) *_gcsRepositorySettings { s.v.Bucket = bucket @@ -66,16 +57,6 @@ func (s *_gcsRepositorySettings) Bucket(bucket string) *_gcsRepositorySettings { return s } -// Big files can be broken down into multiple smaller blobs in the blob store -// during snapshotting. -// It is not recommended to change this value from its default unless there is -// an explicit reason for limiting the size of blobs in the repository. -// Setting a value lower than the default can result in an increased number of -// API calls to the blob store during snapshot create and restore operations -// compared to using the default value and thus make both operations slower and -// more costly. -// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B. -// The default varies by repository type. func (s *_gcsRepositorySettings) ChunkSize(bytesize types.ByteSizeVariant) *_gcsRepositorySettings { s.v.ChunkSize = *bytesize.ByteSizeCaster() @@ -83,7 +64,6 @@ func (s *_gcsRepositorySettings) ChunkSize(bytesize types.ByteSizeVariant) *_gcs return s } -// The name of the client to use to connect to Google Cloud Storage. func (s *_gcsRepositorySettings) Client(client string) *_gcsRepositorySettings { s.v.Client = &client @@ -91,9 +71,6 @@ func (s *_gcsRepositorySettings) Client(client string) *_gcsRepositorySettings { return s } -// When set to `true`, metadata files are stored in compressed format. -// This setting doesn't affect index files that are already compressed by -// default. func (s *_gcsRepositorySettings) Compress(compress bool) *_gcsRepositorySettings { s.v.Compress = &compress @@ -101,9 +78,6 @@ func (s *_gcsRepositorySettings) Compress(compress bool) *_gcsRepositorySettings return s } -// The maximum snapshot restore rate per node. -// It defaults to unlimited. -// Note that restores are also throttled through recovery settings. func (s *_gcsRepositorySettings) MaxRestoreBytesPerSec(bytesize types.ByteSizeVariant) *_gcsRepositorySettings { s.v.MaxRestoreBytesPerSec = *bytesize.ByteSizeCaster() @@ -111,11 +85,6 @@ func (s *_gcsRepositorySettings) MaxRestoreBytesPerSec(bytesize types.ByteSizeVa return s } -// The maximum snapshot creation rate per node. -// It defaults to 40mb per second. -// Note that if the recovery settings for managed services are set, then it -// defaults to unlimited, and the rate is additionally throttled through -// recovery settings. func (s *_gcsRepositorySettings) MaxSnapshotBytesPerSec(bytesize types.ByteSizeVariant) *_gcsRepositorySettings { s.v.MaxSnapshotBytesPerSec = *bytesize.ByteSizeCaster() @@ -123,21 +92,6 @@ func (s *_gcsRepositorySettings) MaxSnapshotBytesPerSec(bytesize types.ByteSizeV return s } -// If `true`, the repository is read-only. -// The cluster can retrieve and restore snapshots from the repository but not -// write to the repository or create snapshots in it. -// -// Only a cluster with write access can create snapshots in the repository. -// All other clusters connected to the repository should have the `readonly` -// parameter set to `true`. -// -// If `false`, the cluster can write to the repository and create snapshots in -// it. -// -// IMPORTANT: If you register the same snapshot repository with multiple -// clusters, only one cluster should have write access to the repository. -// Having multiple clusters write to the repository at the same time risks -// corrupting the contents of the repository. func (s *_gcsRepositorySettings) Readonly(readonly bool) *_gcsRepositorySettings { s.v.Readonly = &readonly diff --git a/typedapi/esdsl/geoboundingboxquery.go b/typedapi/esdsl/geoboundingboxquery.go index 1cd853e7f9..cd8729736f 100644 --- a/typedapi/esdsl/geoboundingboxquery.go +++ b/typedapi/esdsl/geoboundingboxquery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoexecution" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geovalidationmethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geoexecution" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geovalidationmethod" ) type _geoBoundingBoxQuery struct { @@ -37,11 +37,6 @@ func NewGeoBoundingBoxQuery() *_geoBoundingBoxQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_geoBoundingBoxQuery) Boost(boost float32) *_geoBoundingBoxQuery { s.v.Boost = &boost @@ -70,9 +65,6 @@ func (s *_geoBoundingBoxQuery) AddGeoBoundingBoxQuery(key string, value types.Ge return s } -// Set to `true` to ignore an unmapped field and not match any documents for -// this query. -// Set to `false` to throw an exception if the field is not mapped. func (s *_geoBoundingBoxQuery) IgnoreUnmapped(ignoreunmapped bool) *_geoBoundingBoxQuery { s.v.IgnoreUnmapped = &ignoreunmapped @@ -93,9 +85,6 @@ func (s *_geoBoundingBoxQuery) Type(type_ geoexecution.GeoExecution) *_geoBoundi return s } -// Set to `IGNORE_MALFORMED` to accept geo points with invalid latitude or -// longitude. -// Set to `COERCE` to also try to infer correct latitude or longitude. func (s *_geoBoundingBoxQuery) ValidationMethod(validationmethod geovalidationmethod.GeoValidationMethod) *_geoBoundingBoxQuery { s.v.ValidationMethod = &validationmethod diff --git a/typedapi/esdsl/geobounds.go b/typedapi/esdsl/geobounds.go index b549b9c241..5e1d84a0ba 100644 --- a/typedapi/esdsl/geobounds.go +++ b/typedapi/esdsl/geobounds.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _geoBounds struct { diff --git a/typedapi/esdsl/geoboundsaggregation.go b/typedapi/esdsl/geoboundsaggregation.go index 2a432393e7..b0e8e71103 100644 --- a/typedapi/esdsl/geoboundsaggregation.go +++ b/typedapi/esdsl/geoboundsaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geoBoundsAggregation struct { v *types.GeoBoundsAggregation @@ -34,7 +34,6 @@ func NewGeoBoundsAggregation() *_geoBoundsAggregation { } -// The field on which to run the aggregation. func (s *_geoBoundsAggregation) Field(field string) *_geoBoundsAggregation { s.v.Field = &field @@ -42,8 +41,6 @@ func (s *_geoBoundsAggregation) Field(field string) *_geoBoundsAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_geoBoundsAggregation) Missing(missing types.MissingVariant) *_geoBoundsAggregation { s.v.Missing = *missing.MissingCaster() @@ -58,8 +55,6 @@ func (s *_geoBoundsAggregation) Script(script types.ScriptVariant) *_geoBoundsAg return s } -// Specifies whether the bounding box should be allowed to overlap the -// international date line. func (s *_geoBoundsAggregation) WrapLongitude(wraplongitude bool) *_geoBoundsAggregation { s.v.WrapLongitude = &wraplongitude diff --git a/typedapi/esdsl/geocentroidaggregation.go b/typedapi/esdsl/geocentroidaggregation.go index a912d46828..91281816df 100644 --- a/typedapi/esdsl/geocentroidaggregation.go +++ b/typedapi/esdsl/geocentroidaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geoCentroidAggregation struct { v *types.GeoCentroidAggregation @@ -41,7 +41,6 @@ func (s *_geoCentroidAggregation) Count(count int64) *_geoCentroidAggregation { return s } -// The field on which to run the aggregation. func (s *_geoCentroidAggregation) Field(field string) *_geoCentroidAggregation { s.v.Field = &field @@ -56,8 +55,6 @@ func (s *_geoCentroidAggregation) Location(geolocation types.GeoLocationVariant) return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_geoCentroidAggregation) Missing(missing types.MissingVariant) *_geoCentroidAggregation { s.v.Missing = *missing.MissingCaster() diff --git a/typedapi/esdsl/geodecayfunction.go b/typedapi/esdsl/geodecayfunction.go index 51dd898ce9..95eba5c03e 100644 --- a/typedapi/esdsl/geodecayfunction.go +++ b/typedapi/esdsl/geodecayfunction.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/multivaluemode" ) type _geoDecayFunction struct { @@ -58,8 +58,6 @@ func (s *_geoDecayFunction) AddDecayFunctionBaseGeoLocationDistance(key string, return s } -// Determines how the distance is calculated when a field used for computing the -// decay contains multiple values. func (s *_geoDecayFunction) MultiValueMode(multivaluemode multivaluemode.MultiValueMode) *_geoDecayFunction { s.v.MultiValueMode = &multivaluemode diff --git a/typedapi/esdsl/geodistanceaggregation.go b/typedapi/esdsl/geodistanceaggregation.go index a885c11f81..b170240a6c 100644 --- a/typedapi/esdsl/geodistanceaggregation.go +++ b/typedapi/esdsl/geodistanceaggregation.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/distanceunit" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/distanceunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geodistancetype" ) type _geoDistanceAggregation struct { @@ -39,14 +39,12 @@ func NewGeoDistanceAggregation() *_geoDistanceAggregation { } -// The distance calculation type. func (s *_geoDistanceAggregation) DistanceType(distancetype geodistancetype.GeoDistanceType) *_geoDistanceAggregation { s.v.DistanceType = &distancetype return s } -// A field of type `geo_point` used to evaluate the distance. func (s *_geoDistanceAggregation) Field(field string) *_geoDistanceAggregation { s.v.Field = &field @@ -54,7 +52,6 @@ func (s *_geoDistanceAggregation) Field(field string) *_geoDistanceAggregation { return s } -// The origin used to evaluate the distance. func (s *_geoDistanceAggregation) Origin(geolocation types.GeoLocationVariant) *_geoDistanceAggregation { s.v.Origin = *geolocation.GeoLocationCaster() @@ -62,7 +59,6 @@ func (s *_geoDistanceAggregation) Origin(geolocation types.GeoLocationVariant) * return s } -// An array of ranges used to bucket documents. func (s *_geoDistanceAggregation) Ranges(ranges ...types.AggregationRangeVariant) *_geoDistanceAggregation { for _, v := range ranges { @@ -73,7 +69,6 @@ func (s *_geoDistanceAggregation) Ranges(ranges ...types.AggregationRangeVariant return s } -// The distance unit. func (s *_geoDistanceAggregation) Unit(unit distanceunit.DistanceUnit) *_geoDistanceAggregation { s.v.Unit = &unit diff --git a/typedapi/esdsl/geodistancefeaturequery.go b/typedapi/esdsl/geodistancefeaturequery.go index 1e039a9684..7cf3de869b 100644 --- a/typedapi/esdsl/geodistancefeaturequery.go +++ b/typedapi/esdsl/geodistancefeaturequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geoDistanceFeatureQuery struct { v *types.GeoDistanceFeatureQuery @@ -36,11 +36,6 @@ func NewGeoDistanceFeatureQuery() *_geoDistanceFeatureQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_geoDistanceFeatureQuery) Boost(boost float32) *_geoDistanceFeatureQuery { s.v.Boost = &boost @@ -48,11 +43,6 @@ func (s *_geoDistanceFeatureQuery) Boost(boost float32) *_geoDistanceFeatureQuer return s } -// Name of the field used to calculate distances. This field must meet the -// following criteria: -// be a `date`, `date_nanos` or `geo_point` field; -// have an `index` mapping parameter value of `true`, which is the default; -// have an `doc_values` mapping parameter value of `true`, which is the default. func (s *_geoDistanceFeatureQuery) Field(field string) *_geoDistanceFeatureQuery { s.v.Field = field @@ -60,12 +50,6 @@ func (s *_geoDistanceFeatureQuery) Field(field string) *_geoDistanceFeatureQuery return s } -// Date or point of origin used to calculate distances. -// If the `field` value is a `date` or `date_nanos` field, the `origin` value -// must be a date. -// Date Math, such as `now-1h`, is supported. -// If the field value is a `geo_point` field, the `origin` value must be a -// geopoint. func (s *_geoDistanceFeatureQuery) Origin(geolocation types.GeoLocationVariant) *_geoDistanceFeatureQuery { s.v.Origin = *geolocation.GeoLocationCaster() @@ -73,12 +57,6 @@ func (s *_geoDistanceFeatureQuery) Origin(geolocation types.GeoLocationVariant) return s } -// Distance from the `origin` at which relevance scores receive half of the -// `boost` value. -// If the `field` value is a `date` or `date_nanos` field, the `pivot` value -// must be a time unit, such as `1h` or `10d`. If the `field` value is a -// `geo_point` field, the `pivot` value must be a distance unit, such as `1km` -// or `12m`. func (s *_geoDistanceFeatureQuery) Pivot(distance string) *_geoDistanceFeatureQuery { s.v.Pivot = distance diff --git a/typedapi/esdsl/geodistancequery.go b/typedapi/esdsl/geodistancequery.go index 478f56fe06..092e3e476d 100644 --- a/typedapi/esdsl/geodistancequery.go +++ b/typedapi/esdsl/geodistancequery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geovalidationmethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geodistancetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geovalidationmethod" ) type _geoDistanceQuery struct { @@ -38,11 +38,6 @@ func NewGeoDistanceQuery() *_geoDistanceQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_geoDistanceQuery) Boost(boost float32) *_geoDistanceQuery { s.v.Boost = &boost @@ -50,8 +45,6 @@ func (s *_geoDistanceQuery) Boost(boost float32) *_geoDistanceQuery { return s } -// The radius of the circle centred on the specified location. -// Points which fall into this circle are considered to be matches. func (s *_geoDistanceQuery) Distance(distance string) *_geoDistanceQuery { s.v.Distance = distance @@ -59,9 +52,6 @@ func (s *_geoDistanceQuery) Distance(distance string) *_geoDistanceQuery { return s } -// How to compute the distance. -// Set to `plane` for a faster calculation that's inaccurate on long distances -// and close to the poles. func (s *_geoDistanceQuery) DistanceType(distancetype geodistancetype.GeoDistanceType) *_geoDistanceQuery { s.v.DistanceType = &distancetype @@ -89,9 +79,6 @@ func (s *_geoDistanceQuery) AddGeoDistanceQuery(key string, value types.GeoLocat return s } -// Set to `true` to ignore an unmapped field and not match any documents for -// this query. -// Set to `false` to throw an exception if the field is not mapped. func (s *_geoDistanceQuery) IgnoreUnmapped(ignoreunmapped bool) *_geoDistanceQuery { s.v.IgnoreUnmapped = &ignoreunmapped @@ -106,9 +93,6 @@ func (s *_geoDistanceQuery) QueryName_(queryname_ string) *_geoDistanceQuery { return s } -// Set to `IGNORE_MALFORMED` to accept geo points with invalid latitude or -// longitude. -// Set to `COERCE` to also try to infer correct latitude or longitude. func (s *_geoDistanceQuery) ValidationMethod(validationmethod geovalidationmethod.GeoValidationMethod) *_geoDistanceQuery { s.v.ValidationMethod = &validationmethod diff --git a/typedapi/esdsl/geodistancesort.go b/typedapi/esdsl/geodistancesort.go index 03355587ac..479586e59f 100644 --- a/typedapi/esdsl/geodistancesort.go +++ b/typedapi/esdsl/geodistancesort.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/distanceunit" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/distanceunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geodistancetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) type _geoDistanceSort struct { diff --git a/typedapi/esdsl/geogridprocessor.go b/typedapi/esdsl/geogridprocessor.go index 9601494575..1bde8b04af 100644 --- a/typedapi/esdsl/geogridprocessor.go +++ b/typedapi/esdsl/geogridprocessor.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtargetformat" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtiletype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geogridtargetformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geogridtiletype" ) type _geoGridProcessor struct { @@ -46,8 +46,6 @@ func NewGeoGridProcessor(field string, tiletype geogridtiletype.GeoGridTileType) } -// If specified and children tiles exist, save those tile addresses to this -// field as an array of strings. func (s *_geoGridProcessor) ChildrenField(field string) *_geoGridProcessor { s.v.ChildrenField = &field @@ -55,8 +53,6 @@ func (s *_geoGridProcessor) ChildrenField(field string) *_geoGridProcessor { return s } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_geoGridProcessor) Description(description string) *_geoGridProcessor { s.v.Description = &description @@ -64,8 +60,6 @@ func (s *_geoGridProcessor) Description(description string) *_geoGridProcessor { return s } -// The field to interpret as a geo-tile.= -// The field format is determined by the `tile_type`. func (s *_geoGridProcessor) Field(field string) *_geoGridProcessor { s.v.Field = field @@ -73,7 +67,6 @@ func (s *_geoGridProcessor) Field(field string) *_geoGridProcessor { return s } -// Conditionally execute the processor. func (s *_geoGridProcessor) If(if_ types.ScriptVariant) *_geoGridProcessor { s.v.If = if_.ScriptCaster() @@ -81,7 +74,6 @@ func (s *_geoGridProcessor) If(if_ types.ScriptVariant) *_geoGridProcessor { return s } -// Ignore failures for the processor. func (s *_geoGridProcessor) IgnoreFailure(ignorefailure bool) *_geoGridProcessor { s.v.IgnoreFailure = &ignorefailure @@ -89,8 +81,6 @@ func (s *_geoGridProcessor) IgnoreFailure(ignorefailure bool) *_geoGridProcessor return s } -// If `true` and `field` does not exist, the processor quietly exits without -// modifying the document. func (s *_geoGridProcessor) IgnoreMissing(ignoremissing bool) *_geoGridProcessor { s.v.IgnoreMissing = &ignoremissing @@ -98,8 +88,6 @@ func (s *_geoGridProcessor) IgnoreMissing(ignoremissing bool) *_geoGridProcessor return s } -// If specified and intersecting non-child tiles exist, save their addresses to -// this field as an array of strings. func (s *_geoGridProcessor) NonChildrenField(field string) *_geoGridProcessor { s.v.NonChildrenField = &field @@ -107,7 +95,6 @@ func (s *_geoGridProcessor) NonChildrenField(field string) *_geoGridProcessor { return s } -// Handle failures for the processor. func (s *_geoGridProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_geoGridProcessor { for _, v := range onfailures { @@ -118,7 +105,6 @@ func (s *_geoGridProcessor) OnFailure(onfailures ...types.ProcessorContainerVari return s } -// If specified and a parent tile exists, save that tile address to this field. func (s *_geoGridProcessor) ParentField(field string) *_geoGridProcessor { s.v.ParentField = &field @@ -126,7 +112,6 @@ func (s *_geoGridProcessor) ParentField(field string) *_geoGridProcessor { return s } -// If specified, save the tile precision (zoom) as an integer to this field. func (s *_geoGridProcessor) PrecisionField(field string) *_geoGridProcessor { s.v.PrecisionField = &field @@ -134,8 +119,6 @@ func (s *_geoGridProcessor) PrecisionField(field string) *_geoGridProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_geoGridProcessor) Tag(tag string) *_geoGridProcessor { s.v.Tag = &tag @@ -143,8 +126,6 @@ func (s *_geoGridProcessor) Tag(tag string) *_geoGridProcessor { return s } -// The field to assign the polygon shape to, by default, the `field` is updated -// in-place. func (s *_geoGridProcessor) TargetField(field string) *_geoGridProcessor { s.v.TargetField = &field @@ -152,14 +133,12 @@ func (s *_geoGridProcessor) TargetField(field string) *_geoGridProcessor { return s } -// Which format to save the generated polygon in. func (s *_geoGridProcessor) TargetFormat(targetformat geogridtargetformat.GeoGridTargetFormat) *_geoGridProcessor { s.v.TargetFormat = &targetformat return s } -// Three tile formats are understood: geohash, geotile and geohex. func (s *_geoGridProcessor) TileType(tiletype geogridtiletype.GeoGridTileType) *_geoGridProcessor { s.v.TileType = tiletype diff --git a/typedapi/esdsl/geogridquery.go b/typedapi/esdsl/geogridquery.go index 9c6d50a51e..34b9a8baab 100644 --- a/typedapi/esdsl/geogridquery.go +++ b/typedapi/esdsl/geogridquery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _geoGridQuery struct { @@ -46,11 +46,6 @@ func (s *_geoGridQuery) AdditionalGeoGridQueryProperty(key string, value json.Ra return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_geoGridQuery) Boost(boost float32) *_geoGridQuery { s.v.Boost = &boost diff --git a/typedapi/esdsl/geohashgridaggregation.go b/typedapi/esdsl/geohashgridaggregation.go index 50a7447151..3f18dfe8fd 100644 --- a/typedapi/esdsl/geohashgridaggregation.go +++ b/typedapi/esdsl/geohashgridaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geoHashGridAggregation struct { v *types.GeoHashGridAggregation @@ -35,7 +35,6 @@ func NewGeoHashGridAggregation() *_geoHashGridAggregation { } -// The bounding box to filter the points in each bucket. func (s *_geoHashGridAggregation) Bounds(geobounds types.GeoBoundsVariant) *_geoHashGridAggregation { s.v.Bounds = *geobounds.GeoBoundsCaster() @@ -43,8 +42,6 @@ func (s *_geoHashGridAggregation) Bounds(geobounds types.GeoBoundsVariant) *_geo return s } -// Field containing indexed `geo_point` or `geo_shape` values. -// If the field contains an array, `geohash_grid` aggregates all array values. func (s *_geoHashGridAggregation) Field(field string) *_geoHashGridAggregation { s.v.Field = &field @@ -52,8 +49,6 @@ func (s *_geoHashGridAggregation) Field(field string) *_geoHashGridAggregation { return s } -// The string length of the geohashes used to define cells/buckets in the -// results. func (s *_geoHashGridAggregation) Precision(geohashprecision types.GeoHashPrecisionVariant) *_geoHashGridAggregation { s.v.Precision = *geohashprecision.GeoHashPrecisionCaster() @@ -61,10 +56,6 @@ func (s *_geoHashGridAggregation) Precision(geohashprecision types.GeoHashPrecis return s } -// Allows for more accurate counting of the top cells returned in the final -// result the aggregation. -// Defaults to returning `max(10,(size x number-of-shards))` buckets from each -// shard. func (s *_geoHashGridAggregation) ShardSize(shardsize int) *_geoHashGridAggregation { s.v.ShardSize = &shardsize @@ -72,7 +63,6 @@ func (s *_geoHashGridAggregation) ShardSize(shardsize int) *_geoHashGridAggregat return s } -// The maximum number of geohash buckets to return. func (s *_geoHashGridAggregation) Size(size int) *_geoHashGridAggregation { s.v.Size = &size diff --git a/typedapi/esdsl/geohashlocation.go b/typedapi/esdsl/geohashlocation.go index c7e43238da..01f2043827 100644 --- a/typedapi/esdsl/geohashlocation.go +++ b/typedapi/esdsl/geohashlocation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geoHashLocation struct { v *types.GeoHashLocation diff --git a/typedapi/esdsl/geohashprecision.go b/typedapi/esdsl/geohashprecision.go index 8d2ef57488..c442e96b55 100644 --- a/typedapi/esdsl/geohashprecision.go +++ b/typedapi/esdsl/geohashprecision.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _geoHashPrecision struct { diff --git a/typedapi/esdsl/geohexgridaggregation.go b/typedapi/esdsl/geohexgridaggregation.go index 500c802922..e8ed4829c5 100644 --- a/typedapi/esdsl/geohexgridaggregation.go +++ b/typedapi/esdsl/geohexgridaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geohexGridAggregation struct { v *types.GeohexGridAggregation @@ -36,7 +36,6 @@ func NewGeohexGridAggregation() *_geohexGridAggregation { } -// Bounding box used to filter the geo-points in each bucket. func (s *_geohexGridAggregation) Bounds(geobounds types.GeoBoundsVariant) *_geohexGridAggregation { s.v.Bounds = *geobounds.GeoBoundsCaster() @@ -44,8 +43,6 @@ func (s *_geohexGridAggregation) Bounds(geobounds types.GeoBoundsVariant) *_geoh return s } -// Field containing indexed `geo_point` or `geo_shape` values. -// If the field contains an array, `geohex_grid` aggregates all array values. func (s *_geohexGridAggregation) Field(field string) *_geohexGridAggregation { s.v.Field = field @@ -53,8 +50,6 @@ func (s *_geohexGridAggregation) Field(field string) *_geohexGridAggregation { return s } -// Integer zoom of the key used to defined cells or buckets -// in the results. Value should be between 0-15. func (s *_geohexGridAggregation) Precision(precision int) *_geohexGridAggregation { s.v.Precision = &precision @@ -62,7 +57,6 @@ func (s *_geohexGridAggregation) Precision(precision int) *_geohexGridAggregatio return s } -// Number of buckets returned from each shard. func (s *_geohexGridAggregation) ShardSize(shardsize int) *_geohexGridAggregation { s.v.ShardSize = &shardsize @@ -70,7 +64,6 @@ func (s *_geohexGridAggregation) ShardSize(shardsize int) *_geohexGridAggregatio return s } -// Maximum number of buckets to return. func (s *_geohexGridAggregation) Size(size int) *_geohexGridAggregation { s.v.Size = &size diff --git a/typedapi/esdsl/geoipprocessor.go b/typedapi/esdsl/geoipprocessor.go index 5f73e7041a..f6cd30ac07 100644 --- a/typedapi/esdsl/geoipprocessor.go +++ b/typedapi/esdsl/geoipprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geoIpProcessor struct { v *types.GeoIpProcessor @@ -34,9 +34,6 @@ func NewGeoIpProcessor() *_geoIpProcessor { } -// The database filename referring to a database the module ships with -// (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom -// database in the ingest-geoip config directory. func (s *_geoIpProcessor) DatabaseFile(databasefile string) *_geoIpProcessor { s.v.DatabaseFile = &databasefile @@ -44,8 +41,6 @@ func (s *_geoIpProcessor) DatabaseFile(databasefile string) *_geoIpProcessor { return s } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_geoIpProcessor) Description(description string) *_geoIpProcessor { s.v.Description = &description @@ -53,10 +48,6 @@ func (s *_geoIpProcessor) Description(description string) *_geoIpProcessor { return s } -// If `true` (and if `ingest.geoip.downloader.eager.download` is `false`), the -// missing database is downloaded when the pipeline is created. -// Else, the download is triggered by when the pipeline is used as the -// `default_pipeline` or `final_pipeline` in an index. func (s *_geoIpProcessor) DownloadDatabaseOnPipelineCreation(downloaddatabaseonpipelinecreation bool) *_geoIpProcessor { s.v.DownloadDatabaseOnPipelineCreation = &downloaddatabaseonpipelinecreation @@ -64,7 +55,6 @@ func (s *_geoIpProcessor) DownloadDatabaseOnPipelineCreation(downloaddatabaseonp return s } -// The field to get the ip address from for the geographical lookup. func (s *_geoIpProcessor) Field(field string) *_geoIpProcessor { s.v.Field = field @@ -72,8 +62,6 @@ func (s *_geoIpProcessor) Field(field string) *_geoIpProcessor { return s } -// If `true`, only the first found geoip data will be returned, even if the -// field contains an array. func (s *_geoIpProcessor) FirstOnly(firstonly bool) *_geoIpProcessor { s.v.FirstOnly = &firstonly @@ -81,7 +69,6 @@ func (s *_geoIpProcessor) FirstOnly(firstonly bool) *_geoIpProcessor { return s } -// Conditionally execute the processor. func (s *_geoIpProcessor) If(if_ types.ScriptVariant) *_geoIpProcessor { s.v.If = if_.ScriptCaster() @@ -89,7 +76,6 @@ func (s *_geoIpProcessor) If(if_ types.ScriptVariant) *_geoIpProcessor { return s } -// Ignore failures for the processor. func (s *_geoIpProcessor) IgnoreFailure(ignorefailure bool) *_geoIpProcessor { s.v.IgnoreFailure = &ignorefailure @@ -97,8 +83,6 @@ func (s *_geoIpProcessor) IgnoreFailure(ignorefailure bool) *_geoIpProcessor { return s } -// If `true` and `field` does not exist, the processor quietly exits without -// modifying the document. func (s *_geoIpProcessor) IgnoreMissing(ignoremissing bool) *_geoIpProcessor { s.v.IgnoreMissing = &ignoremissing @@ -106,7 +90,6 @@ func (s *_geoIpProcessor) IgnoreMissing(ignoremissing bool) *_geoIpProcessor { return s } -// Handle failures for the processor. func (s *_geoIpProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_geoIpProcessor { for _, v := range onfailures { @@ -117,8 +100,6 @@ func (s *_geoIpProcessor) OnFailure(onfailures ...types.ProcessorContainerVarian return s } -// Controls what properties are added to the `target_field` based on the geoip -// lookup. func (s *_geoIpProcessor) Properties(properties ...string) *_geoIpProcessor { for _, v := range properties { @@ -129,8 +110,6 @@ func (s *_geoIpProcessor) Properties(properties ...string) *_geoIpProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_geoIpProcessor) Tag(tag string) *_geoIpProcessor { s.v.Tag = &tag @@ -138,8 +117,6 @@ func (s *_geoIpProcessor) Tag(tag string) *_geoIpProcessor { return s } -// The field that will hold the geographical information looked up from the -// MaxMind database. func (s *_geoIpProcessor) TargetField(field string) *_geoIpProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/geolineaggregation.go b/typedapi/esdsl/geolineaggregation.go index d8bbd8659c..76c64ba662 100644 --- a/typedapi/esdsl/geolineaggregation.go +++ b/typedapi/esdsl/geolineaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) type _geoLineAggregation struct { @@ -41,8 +41,6 @@ func NewGeoLineAggregation(point types.GeoLinePointVariant, sort types.GeoLineSo } -// When `true`, returns an additional array of the sort values in the feature -// properties. func (s *_geoLineAggregation) IncludeSort(includesort bool) *_geoLineAggregation { s.v.IncludeSort = &includesort @@ -50,7 +48,6 @@ func (s *_geoLineAggregation) IncludeSort(includesort bool) *_geoLineAggregation return s } -// The name of the geo_point field. func (s *_geoLineAggregation) Point(point types.GeoLinePointVariant) *_geoLineAggregation { s.v.Point = *point.GeoLinePointCaster() @@ -58,8 +55,6 @@ func (s *_geoLineAggregation) Point(point types.GeoLinePointVariant) *_geoLineAg return s } -// The maximum length of the line represented in the aggregation. -// Valid sizes are between 1 and 10000. func (s *_geoLineAggregation) Size(size int) *_geoLineAggregation { s.v.Size = &size @@ -67,10 +62,6 @@ func (s *_geoLineAggregation) Size(size int) *_geoLineAggregation { return s } -// The name of the numeric field to use as the sort key for ordering the points. -// When the `geo_line` aggregation is nested inside a `time_series` aggregation, -// this field defaults to `@timestamp`, and any other value will result in -// error. func (s *_geoLineAggregation) Sort(sort types.GeoLineSortVariant) *_geoLineAggregation { s.v.Sort = *sort.GeoLineSortCaster() @@ -78,7 +69,6 @@ func (s *_geoLineAggregation) Sort(sort types.GeoLineSortVariant) *_geoLineAggre return s } -// The order in which the line is sorted (ascending or descending). func (s *_geoLineAggregation) SortOrder(sortorder sortorder.SortOrder) *_geoLineAggregation { s.v.SortOrder = &sortorder diff --git a/typedapi/esdsl/geolinepoint.go b/typedapi/esdsl/geolinepoint.go index 278e203cb8..d45cf0c584 100644 --- a/typedapi/esdsl/geolinepoint.go +++ b/typedapi/esdsl/geolinepoint.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geoLinePoint struct { v *types.GeoLinePoint @@ -32,7 +32,6 @@ func NewGeoLinePoint() *_geoLinePoint { } -// The name of the geo_point field. func (s *_geoLinePoint) Field(field string) *_geoLinePoint { s.v.Field = field diff --git a/typedapi/esdsl/geolinesort.go b/typedapi/esdsl/geolinesort.go index 823131e4ab..9e15b45177 100644 --- a/typedapi/esdsl/geolinesort.go +++ b/typedapi/esdsl/geolinesort.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geoLineSort struct { v *types.GeoLineSort @@ -32,7 +32,6 @@ func NewGeoLineSort() *_geoLineSort { } -// The name of the numeric field to use as the sort key for ordering the points. func (s *_geoLineSort) Field(field string) *_geoLineSort { s.v.Field = field diff --git a/typedapi/esdsl/geolocation.go b/typedapi/esdsl/geolocation.go index e21a413305..ceefa03018 100644 --- a/typedapi/esdsl/geolocation.go +++ b/typedapi/esdsl/geolocation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _geoLocation struct { diff --git a/typedapi/esdsl/geopointproperty.go b/typedapi/esdsl/geopointproperty.go index 6b05ccb4ec..44bcdca38d 100644 --- a/typedapi/esdsl/geopointproperty.go +++ b/typedapi/esdsl/geopointproperty.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _geoPointProperty struct { @@ -106,7 +106,6 @@ func (s *_geoPointProperty) Index(index bool) *_geoPointProperty { return s } -// Metadata about the field. func (s *_geoPointProperty) Meta(meta map[string]string) *_geoPointProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/geopolygonpoints.go b/typedapi/esdsl/geopolygonpoints.go index a8533cf6af..08590da824 100644 --- a/typedapi/esdsl/geopolygonpoints.go +++ b/typedapi/esdsl/geopolygonpoints.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geoPolygonPoints struct { v *types.GeoPolygonPoints diff --git a/typedapi/esdsl/geopolygonquery.go b/typedapi/esdsl/geopolygonquery.go index adb1eb8121..8667270b54 100644 --- a/typedapi/esdsl/geopolygonquery.go +++ b/typedapi/esdsl/geopolygonquery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geovalidationmethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geovalidationmethod" ) type _geoPolygonQuery struct { @@ -35,11 +35,6 @@ func NewGeoPolygonQuery() *_geoPolygonQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_geoPolygonQuery) Boost(boost float32) *_geoPolygonQuery { s.v.Boost = &boost diff --git a/typedapi/esdsl/geoshapefieldquery.go b/typedapi/esdsl/geoshapefieldquery.go index f1984e1a44..7b81c50e45 100644 --- a/typedapi/esdsl/geoshapefieldquery.go +++ b/typedapi/esdsl/geoshapefieldquery.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoshaperelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geoshaperelation" ) type _geoShapeFieldQuery struct { @@ -37,8 +37,6 @@ func NewGeoShapeFieldQuery() *_geoShapeFieldQuery { } -// Query using an indexed shape retrieved from the the specified document and -// path. func (s *_geoShapeFieldQuery) IndexedShape(indexedshape types.FieldLookupVariant) *_geoShapeFieldQuery { s.v.IndexedShape = indexedshape.FieldLookupCaster() @@ -46,7 +44,6 @@ func (s *_geoShapeFieldQuery) IndexedShape(indexedshape types.FieldLookupVariant return s } -// Spatial relation operator used to search a geo field. func (s *_geoShapeFieldQuery) Relation(relation geoshaperelation.GeoShapeRelation) *_geoShapeFieldQuery { s.v.Relation = &relation diff --git a/typedapi/esdsl/geoshapeproperty.go b/typedapi/esdsl/geoshapeproperty.go index 1f07b81959..7cab21a228 100644 --- a/typedapi/esdsl/geoshapeproperty.go +++ b/typedapi/esdsl/geoshapeproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoorientation" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geostrategy" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/geoorientation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geostrategy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _geoShapeProperty struct { @@ -114,7 +114,6 @@ func (s *_geoShapeProperty) Index(index bool) *_geoShapeProperty { return s } -// Metadata about the field. func (s *_geoShapeProperty) Meta(meta map[string]string) *_geoShapeProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/geoshapequery.go b/typedapi/esdsl/geoshapequery.go index 4a4bbc9728..88d9c14a7b 100644 --- a/typedapi/esdsl/geoshapequery.go +++ b/typedapi/esdsl/geoshapequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geoShapeQuery struct { v *types.GeoShapeQuery @@ -34,11 +34,6 @@ func NewGeoShapeQuery() *_geoShapeQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_geoShapeQuery) Boost(boost float32) *_geoShapeQuery { s.v.Boost = &boost @@ -67,9 +62,6 @@ func (s *_geoShapeQuery) AddGeoShapeQuery(key string, value types.GeoShapeFieldQ return s } -// Set to `true` to ignore an unmapped field and not match any documents for -// this query. -// Set to `false` to throw an exception if the field is not mapped. func (s *_geoShapeQuery) IgnoreUnmapped(ignoreunmapped bool) *_geoShapeQuery { s.v.IgnoreUnmapped = &ignoreunmapped diff --git a/typedapi/esdsl/geotilegridaggregation.go b/typedapi/esdsl/geotilegridaggregation.go index 441dba1958..7fa74f67fd 100644 --- a/typedapi/esdsl/geotilegridaggregation.go +++ b/typedapi/esdsl/geotilegridaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _geoTileGridAggregation struct { v *types.GeoTileGridAggregation @@ -35,7 +35,6 @@ func NewGeoTileGridAggregation() *_geoTileGridAggregation { } -// A bounding box to filter the geo-points or geo-shapes in each bucket. func (s *_geoTileGridAggregation) Bounds(geobounds types.GeoBoundsVariant) *_geoTileGridAggregation { s.v.Bounds = *geobounds.GeoBoundsCaster() @@ -43,8 +42,6 @@ func (s *_geoTileGridAggregation) Bounds(geobounds types.GeoBoundsVariant) *_geo return s } -// Field containing indexed `geo_point` or `geo_shape` values. -// If the field contains an array, `geotile_grid` aggregates all array values. func (s *_geoTileGridAggregation) Field(field string) *_geoTileGridAggregation { s.v.Field = &field @@ -52,8 +49,6 @@ func (s *_geoTileGridAggregation) Field(field string) *_geoTileGridAggregation { return s } -// Integer zoom of the key used to define cells/buckets in the results. -// Values outside of the range [0,29] will be rejected. func (s *_geoTileGridAggregation) Precision(geotileprecision int) *_geoTileGridAggregation { s.v.Precision = &geotileprecision @@ -61,10 +56,6 @@ func (s *_geoTileGridAggregation) Precision(geotileprecision int) *_geoTileGridA return s } -// Allows for more accurate counting of the top cells returned in the final -// result the aggregation. -// Defaults to returning `max(10,(size x number-of-shards))` buckets from each -// shard. func (s *_geoTileGridAggregation) ShardSize(shardsize int) *_geoTileGridAggregation { s.v.ShardSize = &shardsize @@ -72,7 +63,6 @@ func (s *_geoTileGridAggregation) ShardSize(shardsize int) *_geoTileGridAggregat return s } -// The maximum number of buckets to return. func (s *_geoTileGridAggregation) Size(size int) *_geoTileGridAggregation { s.v.Size = &size diff --git a/typedapi/esdsl/germananalyzer.go b/typedapi/esdsl/germananalyzer.go index 7ef1c6e9f5..8d841d05d0 100644 --- a/typedapi/esdsl/germananalyzer.go +++ b/typedapi/esdsl/germananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _germanAnalyzer struct { v *types.GermanAnalyzer diff --git a/typedapi/esdsl/globalaggregation.go b/typedapi/esdsl/globalaggregation.go index 49afd2c99c..7cda937539 100644 --- a/typedapi/esdsl/globalaggregation.go +++ b/typedapi/esdsl/globalaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _globalAggregation struct { v *types.GlobalAggregation diff --git a/typedapi/esdsl/globalprivilege.go b/typedapi/esdsl/globalprivilege.go index b4d6aa5e40..673004ec52 100644 --- a/typedapi/esdsl/globalprivilege.go +++ b/typedapi/esdsl/globalprivilege.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _globalPrivilege struct { v *types.GlobalPrivilege diff --git a/typedapi/esdsl/googleaistudioservicesettings.go b/typedapi/esdsl/googleaistudioservicesettings.go new file mode 100644 index 0000000000..f51e66b679 --- /dev/null +++ b/typedapi/esdsl/googleaistudioservicesettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _googleAiStudioServiceSettings struct { + v *types.GoogleAiStudioServiceSettings +} + +func NewGoogleAiStudioServiceSettings(apikey string, modelid string) *_googleAiStudioServiceSettings { + + tmp := &_googleAiStudioServiceSettings{v: types.NewGoogleAiStudioServiceSettings()} + + tmp.ApiKey(apikey) + + tmp.ModelId(modelid) + + return tmp + +} + +func (s *_googleAiStudioServiceSettings) ApiKey(apikey string) *_googleAiStudioServiceSettings { + + s.v.ApiKey = apikey + + return s +} + +func (s *_googleAiStudioServiceSettings) ModelId(modelid string) *_googleAiStudioServiceSettings { + + s.v.ModelId = modelid + + return s +} + +func (s *_googleAiStudioServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_googleAiStudioServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_googleAiStudioServiceSettings) GoogleAiStudioServiceSettingsCaster() *types.GoogleAiStudioServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/googlenormalizeddistanceheuristic.go b/typedapi/esdsl/googlenormalizeddistanceheuristic.go index bd35ff15b0..4af34b2244 100644 --- a/typedapi/esdsl/googlenormalizeddistanceheuristic.go +++ b/typedapi/esdsl/googlenormalizeddistanceheuristic.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _googleNormalizedDistanceHeuristic struct { v *types.GoogleNormalizedDistanceHeuristic @@ -32,8 +32,6 @@ func NewGoogleNormalizedDistanceHeuristic() *_googleNormalizedDistanceHeuristic } -// Set to `false` if you defined a custom background filter that represents a -// different set of documents that you want to compare to. func (s *_googleNormalizedDistanceHeuristic) BackgroundIsSuperset(backgroundissuperset bool) *_googleNormalizedDistanceHeuristic { s.v.BackgroundIsSuperset = &backgroundissuperset diff --git a/typedapi/esdsl/googlevertexaiservicesettings.go b/typedapi/esdsl/googlevertexaiservicesettings.go new file mode 100644 index 0000000000..2c54437c46 --- /dev/null +++ b/typedapi/esdsl/googlevertexaiservicesettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _googleVertexAIServiceSettings struct { + v *types.GoogleVertexAIServiceSettings +} + +func NewGoogleVertexAIServiceSettings(location string, modelid string, projectid string, serviceaccountjson string) *_googleVertexAIServiceSettings { + + tmp := &_googleVertexAIServiceSettings{v: types.NewGoogleVertexAIServiceSettings()} + + tmp.Location(location) + + tmp.ModelId(modelid) + + tmp.ProjectId(projectid) + + tmp.ServiceAccountJson(serviceaccountjson) + + return tmp + +} + +func (s *_googleVertexAIServiceSettings) Location(location string) *_googleVertexAIServiceSettings { + + s.v.Location = location + + return s +} + +func (s *_googleVertexAIServiceSettings) ModelId(modelid string) *_googleVertexAIServiceSettings { + + s.v.ModelId = modelid + + return s +} + +func (s *_googleVertexAIServiceSettings) ProjectId(projectid string) *_googleVertexAIServiceSettings { + + s.v.ProjectId = projectid + + return s +} + +func (s *_googleVertexAIServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_googleVertexAIServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_googleVertexAIServiceSettings) ServiceAccountJson(serviceaccountjson string) *_googleVertexAIServiceSettings { + + s.v.ServiceAccountJson = serviceaccountjson + + return s +} + +func (s *_googleVertexAIServiceSettings) GoogleVertexAIServiceSettingsCaster() *types.GoogleVertexAIServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/googlevertexaitasksettings.go b/typedapi/esdsl/googlevertexaitasksettings.go new file mode 100644 index 0000000000..acf497db9d --- /dev/null +++ b/typedapi/esdsl/googlevertexaitasksettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _googleVertexAITaskSettings struct { + v *types.GoogleVertexAITaskSettings +} + +func NewGoogleVertexAITaskSettings() *_googleVertexAITaskSettings { + + return &_googleVertexAITaskSettings{v: types.NewGoogleVertexAITaskSettings()} + +} + +func (s *_googleVertexAITaskSettings) AutoTruncate(autotruncate bool) *_googleVertexAITaskSettings { + + s.v.AutoTruncate = &autotruncate + + return s +} + +func (s *_googleVertexAITaskSettings) TopN(topn int) *_googleVertexAITaskSettings { + + s.v.TopN = &topn + + return s +} + +func (s *_googleVertexAITaskSettings) GoogleVertexAITaskSettingsCaster() *types.GoogleVertexAITaskSettings { + return s.v +} diff --git a/typedapi/esdsl/grantapikey.go b/typedapi/esdsl/grantapikey.go index 91e317ba6a..c04124b897 100644 --- a/typedapi/esdsl/grantapikey.go +++ b/typedapi/esdsl/grantapikey.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _grantApiKey struct { v *types.GrantApiKey @@ -32,7 +32,6 @@ func NewGrantApiKey() *_grantApiKey { } -// Expiration time for the API key. By default, API keys never expire. func (s *_grantApiKey) Expiration(durationlarge string) *_grantApiKey { s.v.Expiration = &durationlarge @@ -40,10 +39,6 @@ func (s *_grantApiKey) Expiration(durationlarge string) *_grantApiKey { return s } -// Arbitrary metadata that you want to associate with the API key. -// It supports nested data structure. -// Within the `metadata` object, keys beginning with `_` are reserved for system -// usage. func (s *_grantApiKey) Metadata(metadata types.MetadataVariant) *_grantApiKey { s.v.Metadata = *metadata.MetadataCaster() @@ -58,11 +53,6 @@ func (s *_grantApiKey) Name(name string) *_grantApiKey { return s } -// The role descriptors for this API key. -// When it is not specified or is an empty array, the API key has a point in -// time snapshot of permissions of the specified user or access token. -// If you supply role descriptors, the resultant permissions are an intersection -// of API keys permissions and the permissions of the user or access token. func (s *_grantApiKey) RoleDescriptors(roledescriptors []map[string]types.RoleDescriptor) *_grantApiKey { s.v.RoleDescriptors = roledescriptors diff --git a/typedapi/esdsl/greaterthanvalidation.go b/typedapi/esdsl/greaterthanvalidation.go index 349df923b4..f6a0551693 100644 --- a/typedapi/esdsl/greaterthanvalidation.go +++ b/typedapi/esdsl/greaterthanvalidation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _greaterThanValidation struct { v *types.GreaterThanValidation diff --git a/typedapi/esdsl/greekanalyzer.go b/typedapi/esdsl/greekanalyzer.go index 38153dea69..efa98179c5 100644 --- a/typedapi/esdsl/greekanalyzer.go +++ b/typedapi/esdsl/greekanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _greekAnalyzer struct { v *types.GreekAnalyzer diff --git a/typedapi/esdsl/grokprocessor.go b/typedapi/esdsl/grokprocessor.go index 84a1551b83..590ea4dd7c 100644 --- a/typedapi/esdsl/grokprocessor.go +++ b/typedapi/esdsl/grokprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _grokProcessor struct { v *types.GrokProcessor @@ -37,8 +37,6 @@ func NewGrokProcessor() *_grokProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_grokProcessor) Description(description string) *_grokProcessor { s.v.Description = &description @@ -46,8 +44,6 @@ func (s *_grokProcessor) Description(description string) *_grokProcessor { return s } -// Must be disabled or v1. If v1, the processor uses patterns with Elastic -// Common Schema (ECS) field names. func (s *_grokProcessor) EcsCompatibility(ecscompatibility string) *_grokProcessor { s.v.EcsCompatibility = &ecscompatibility @@ -55,7 +51,6 @@ func (s *_grokProcessor) EcsCompatibility(ecscompatibility string) *_grokProcess return s } -// The field to use for grok expression parsing. func (s *_grokProcessor) Field(field string) *_grokProcessor { s.v.Field = field @@ -63,7 +58,6 @@ func (s *_grokProcessor) Field(field string) *_grokProcessor { return s } -// Conditionally execute the processor. func (s *_grokProcessor) If(if_ types.ScriptVariant) *_grokProcessor { s.v.If = if_.ScriptCaster() @@ -71,7 +65,6 @@ func (s *_grokProcessor) If(if_ types.ScriptVariant) *_grokProcessor { return s } -// Ignore failures for the processor. func (s *_grokProcessor) IgnoreFailure(ignorefailure bool) *_grokProcessor { s.v.IgnoreFailure = &ignorefailure @@ -79,8 +72,6 @@ func (s *_grokProcessor) IgnoreFailure(ignorefailure bool) *_grokProcessor { return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document. func (s *_grokProcessor) IgnoreMissing(ignoremissing bool) *_grokProcessor { s.v.IgnoreMissing = &ignoremissing @@ -88,7 +79,6 @@ func (s *_grokProcessor) IgnoreMissing(ignoremissing bool) *_grokProcessor { return s } -// Handle failures for the processor. func (s *_grokProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_grokProcessor { for _, v := range onfailures { @@ -99,9 +89,6 @@ func (s *_grokProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant return s } -// A map of pattern-name and pattern tuples defining custom patterns to be used -// by the current processor. -// Patterns matching existing names will override the pre-existing definition. func (s *_grokProcessor) PatternDefinitions(patterndefinitions map[string]string) *_grokProcessor { s.v.PatternDefinitions = patterndefinitions @@ -123,8 +110,6 @@ func (s *_grokProcessor) AddPatternDefinition(key string, value string) *_grokPr return s } -// An ordered list of grok expression to match and extract named captures with. -// Returns on the first expression in the list that matches. func (s *_grokProcessor) Patterns(patterns ...string) *_grokProcessor { for _, v := range patterns { @@ -135,8 +120,6 @@ func (s *_grokProcessor) Patterns(patterns ...string) *_grokProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_grokProcessor) Tag(tag string) *_grokProcessor { s.v.Tag = &tag @@ -144,9 +127,6 @@ func (s *_grokProcessor) Tag(tag string) *_grokProcessor { return s } -// When `true`, `_ingest._grok_match_index` will be inserted into your matched -// document’s metadata with the index into the pattern found in `patterns` that -// matched. func (s *_grokProcessor) TraceMatch(tracematch bool) *_grokProcessor { s.v.TraceMatch = &tracematch diff --git a/typedapi/esdsl/groupings.go b/typedapi/esdsl/groupings.go index b4983aa02e..717ec3f385 100644 --- a/typedapi/esdsl/groupings.go +++ b/typedapi/esdsl/groupings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _groupings struct { v *types.Groupings @@ -32,9 +32,6 @@ func NewGroupings() *_groupings { } -// A date histogram group aggregates a date field into time-based buckets. -// This group is mandatory; you currently cannot roll up documents without a -// timestamp and a `date_histogram` group. func (s *_groupings) DateHistogram(datehistogram types.DateHistogramGroupingVariant) *_groupings { s.v.DateHistogram = datehistogram.DateHistogramGroupingCaster() @@ -42,8 +39,6 @@ func (s *_groupings) DateHistogram(datehistogram types.DateHistogramGroupingVari return s } -// The histogram group aggregates one or more numeric fields into numeric -// histogram intervals. func (s *_groupings) Histogram(histogram types.HistogramGroupingVariant) *_groupings { s.v.Histogram = histogram.HistogramGroupingCaster() @@ -51,11 +46,6 @@ func (s *_groupings) Histogram(histogram types.HistogramGroupingVariant) *_group return s } -// The terms group can be used on keyword or numeric fields to allow bucketing -// via the terms aggregation at a later point. -// The indexer enumerates and stores all values of a field for each time-period. -// This can be potentially costly for high-cardinality groups such as IP -// addresses, especially if the time-bucket is particularly sparse. func (s *_groupings) Terms(terms types.TermsGroupingVariant) *_groupings { s.v.Terms = terms.TermsGroupingCaster() diff --git a/typedapi/esdsl/gsubprocessor.go b/typedapi/esdsl/gsubprocessor.go index 42c8018843..160ec7ff09 100644 --- a/typedapi/esdsl/gsubprocessor.go +++ b/typedapi/esdsl/gsubprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _gsubProcessor struct { v *types.GsubProcessor @@ -43,8 +43,6 @@ func NewGsubProcessor(pattern string, replacement string) *_gsubProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_gsubProcessor) Description(description string) *_gsubProcessor { s.v.Description = &description @@ -52,7 +50,6 @@ func (s *_gsubProcessor) Description(description string) *_gsubProcessor { return s } -// The field to apply the replacement to. func (s *_gsubProcessor) Field(field string) *_gsubProcessor { s.v.Field = field @@ -60,7 +57,6 @@ func (s *_gsubProcessor) Field(field string) *_gsubProcessor { return s } -// Conditionally execute the processor. func (s *_gsubProcessor) If(if_ types.ScriptVariant) *_gsubProcessor { s.v.If = if_.ScriptCaster() @@ -68,7 +64,6 @@ func (s *_gsubProcessor) If(if_ types.ScriptVariant) *_gsubProcessor { return s } -// Ignore failures for the processor. func (s *_gsubProcessor) IgnoreFailure(ignorefailure bool) *_gsubProcessor { s.v.IgnoreFailure = &ignorefailure @@ -76,8 +71,6 @@ func (s *_gsubProcessor) IgnoreFailure(ignorefailure bool) *_gsubProcessor { return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document. func (s *_gsubProcessor) IgnoreMissing(ignoremissing bool) *_gsubProcessor { s.v.IgnoreMissing = &ignoremissing @@ -85,7 +78,6 @@ func (s *_gsubProcessor) IgnoreMissing(ignoremissing bool) *_gsubProcessor { return s } -// Handle failures for the processor. func (s *_gsubProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_gsubProcessor { for _, v := range onfailures { @@ -96,7 +88,6 @@ func (s *_gsubProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant return s } -// The pattern to be replaced. func (s *_gsubProcessor) Pattern(pattern string) *_gsubProcessor { s.v.Pattern = pattern @@ -104,7 +95,6 @@ func (s *_gsubProcessor) Pattern(pattern string) *_gsubProcessor { return s } -// The string to replace the matching patterns with. func (s *_gsubProcessor) Replacement(replacement string) *_gsubProcessor { s.v.Replacement = replacement @@ -112,8 +102,6 @@ func (s *_gsubProcessor) Replacement(replacement string) *_gsubProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_gsubProcessor) Tag(tag string) *_gsubProcessor { s.v.Tag = &tag @@ -121,8 +109,6 @@ func (s *_gsubProcessor) Tag(tag string) *_gsubProcessor { return s } -// The field to assign the converted value to -// By default, the `field` is updated in-place. func (s *_gsubProcessor) TargetField(field string) *_gsubProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/halffloatnumberproperty.go b/typedapi/esdsl/halffloatnumberproperty.go index 26b23574bb..d105b5c53a 100644 --- a/typedapi/esdsl/halffloatnumberproperty.go +++ b/typedapi/esdsl/halffloatnumberproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) type _halfFloatNumberProperty struct { @@ -114,7 +114,6 @@ func (s *_halfFloatNumberProperty) Index(index bool) *_halfFloatNumberProperty { return s } -// Metadata about the field. func (s *_halfFloatNumberProperty) Meta(meta map[string]string) *_halfFloatNumberProperty { s.v.Meta = meta @@ -190,8 +189,6 @@ func (s *_halfFloatNumberProperty) SyntheticSourceKeep(syntheticsourcekeep synth return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_halfFloatNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_halfFloatNumberProperty { s.v.TimeSeriesDimension = ×eriesdimension @@ -199,8 +196,6 @@ func (s *_halfFloatNumberProperty) TimeSeriesDimension(timeseriesdimension bool) return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_halfFloatNumberProperty) TimeSeriesMetric(timeseriesmetric timeseriesmetrictype.TimeSeriesMetricType) *_halfFloatNumberProperty { s.v.TimeSeriesMetric = ×eriesmetric diff --git a/typedapi/esdsl/haschildquery.go b/typedapi/esdsl/haschildquery.go index cb29cc5832..83913faf1c 100644 --- a/typedapi/esdsl/haschildquery.go +++ b/typedapi/esdsl/haschildquery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/childscoremode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/childscoremode" ) type _hasChildQuery struct { @@ -40,11 +40,6 @@ func NewHasChildQuery(query types.QueryVariant) *_hasChildQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_hasChildQuery) Boost(boost float32) *_hasChildQuery { s.v.Boost = &boost @@ -52,8 +47,6 @@ func (s *_hasChildQuery) Boost(boost float32) *_hasChildQuery { return s } -// Indicates whether to ignore an unmapped `type` and not return any documents -// instead of an error. func (s *_hasChildQuery) IgnoreUnmapped(ignoreunmapped bool) *_hasChildQuery { s.v.IgnoreUnmapped = &ignoreunmapped @@ -61,7 +54,6 @@ func (s *_hasChildQuery) IgnoreUnmapped(ignoreunmapped bool) *_hasChildQuery { return s } -// If defined, each search hit will contain inner hits. func (s *_hasChildQuery) InnerHits(innerhits types.InnerHitsVariant) *_hasChildQuery { s.v.InnerHits = innerhits.InnerHitsCaster() @@ -69,10 +61,6 @@ func (s *_hasChildQuery) InnerHits(innerhits types.InnerHitsVariant) *_hasChildQ return s } -// Maximum number of child documents that match the query allowed for a returned -// parent document. -// If the parent document exceeds this limit, it is excluded from the search -// results. func (s *_hasChildQuery) MaxChildren(maxchildren int) *_hasChildQuery { s.v.MaxChildren = &maxchildren @@ -80,10 +68,6 @@ func (s *_hasChildQuery) MaxChildren(maxchildren int) *_hasChildQuery { return s } -// Minimum number of child documents that match the query required to match the -// query for a returned parent document. -// If the parent document does not meet this limit, it is excluded from the -// search results. func (s *_hasChildQuery) MinChildren(minchildren int) *_hasChildQuery { s.v.MinChildren = &minchildren @@ -91,9 +75,6 @@ func (s *_hasChildQuery) MinChildren(minchildren int) *_hasChildQuery { return s } -// Query you wish to run on child documents of the `type` field. -// If a child document matches the search, the query returns the parent -// document. func (s *_hasChildQuery) Query(query types.QueryVariant) *_hasChildQuery { s.v.Query = *query.QueryCaster() @@ -108,15 +89,12 @@ func (s *_hasChildQuery) QueryName_(queryname_ string) *_hasChildQuery { return s } -// Indicates how scores for matching child documents affect the root parent -// document’s relevance score. func (s *_hasChildQuery) ScoreMode(scoremode childscoremode.ChildScoreMode) *_hasChildQuery { s.v.ScoreMode = &scoremode return s } -// Name of the child relationship mapped for the `join` field. func (s *_hasChildQuery) Type(relationname string) *_hasChildQuery { s.v.Type = relationname diff --git a/typedapi/esdsl/hasparentquery.go b/typedapi/esdsl/hasparentquery.go index f7ee9f8a91..0ae01a7e64 100644 --- a/typedapi/esdsl/hasparentquery.go +++ b/typedapi/esdsl/hasparentquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _hasParentQuery struct { v *types.HasParentQuery @@ -38,11 +38,6 @@ func NewHasParentQuery(query types.QueryVariant) *_hasParentQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_hasParentQuery) Boost(boost float32) *_hasParentQuery { s.v.Boost = &boost @@ -50,10 +45,6 @@ func (s *_hasParentQuery) Boost(boost float32) *_hasParentQuery { return s } -// Indicates whether to ignore an unmapped `parent_type` and not return any -// documents instead of an error. -// You can use this parameter to query multiple indices that may not contain the -// `parent_type`. func (s *_hasParentQuery) IgnoreUnmapped(ignoreunmapped bool) *_hasParentQuery { s.v.IgnoreUnmapped = &ignoreunmapped @@ -61,7 +52,6 @@ func (s *_hasParentQuery) IgnoreUnmapped(ignoreunmapped bool) *_hasParentQuery { return s } -// If defined, each search hit will contain inner hits. func (s *_hasParentQuery) InnerHits(innerhits types.InnerHitsVariant) *_hasParentQuery { s.v.InnerHits = innerhits.InnerHitsCaster() @@ -69,7 +59,6 @@ func (s *_hasParentQuery) InnerHits(innerhits types.InnerHitsVariant) *_hasParen return s } -// Name of the parent relationship mapped for the `join` field. func (s *_hasParentQuery) ParentType(relationname string) *_hasParentQuery { s.v.ParentType = relationname @@ -77,9 +66,6 @@ func (s *_hasParentQuery) ParentType(relationname string) *_hasParentQuery { return s } -// Query you wish to run on parent documents of the `parent_type` field. -// If a parent document matches the search, the query returns its child -// documents. func (s *_hasParentQuery) Query(query types.QueryVariant) *_hasParentQuery { s.v.Query = *query.QueryCaster() @@ -94,8 +80,6 @@ func (s *_hasParentQuery) QueryName_(queryname_ string) *_hasParentQuery { return s } -// Indicates whether the relevance score of a matching parent document is -// aggregated into its child documents. func (s *_hasParentQuery) Score(score bool) *_hasParentQuery { s.v.Score = &score diff --git a/typedapi/esdsl/hdrmethod.go b/typedapi/esdsl/hdrmethod.go index 7a2b0f1100..3e8ff417e9 100644 --- a/typedapi/esdsl/hdrmethod.go +++ b/typedapi/esdsl/hdrmethod.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _hdrMethod struct { v *types.HdrMethod @@ -32,8 +32,6 @@ func NewHdrMethod() *_hdrMethod { } -// Specifies the resolution of values for the histogram in number of significant -// digits. func (s *_hdrMethod) NumberOfSignificantValueDigits(numberofsignificantvaluedigits int) *_hdrMethod { s.v.NumberOfSignificantValueDigits = &numberofsignificantvaluedigits diff --git a/typedapi/esdsl/highlight.go b/typedapi/esdsl/highlight.go index 6355243df9..62955cf38e 100644 --- a/typedapi/esdsl/highlight.go +++ b/typedapi/esdsl/highlight.go @@ -16,20 +16,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/boundaryscanner" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterencoder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterfragmenter" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertagsschema" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/boundaryscanner" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlighterencoder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlighterfragmenter" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlighterorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlightertagsschema" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlightertype" ) type _highlight struct { @@ -42,7 +42,6 @@ func NewHighlight() *_highlight { } -// A string that contains each boundary character. func (s *_highlight) BoundaryChars(boundarychars string) *_highlight { s.v.BoundaryChars = &boundarychars @@ -50,7 +49,6 @@ func (s *_highlight) BoundaryChars(boundarychars string) *_highlight { return s } -// How far to scan for boundary characters. func (s *_highlight) BoundaryMaxScan(boundarymaxscan int) *_highlight { s.v.BoundaryMaxScan = &boundarymaxscan @@ -58,19 +56,12 @@ func (s *_highlight) BoundaryMaxScan(boundarymaxscan int) *_highlight { return s } -// Specifies how to break the highlighted fragments: chars, sentence, or word. -// Only valid for the unified and fvh highlighters. -// Defaults to `sentence` for the `unified` highlighter. Defaults to `chars` for -// the `fvh` highlighter. func (s *_highlight) BoundaryScanner(boundaryscanner boundaryscanner.BoundaryScanner) *_highlight { s.v.BoundaryScanner = &boundaryscanner return s } -// Controls which locale is used to search for sentence and word boundaries. -// This parameter takes a form of a language tag, for example: `"en-US"`, -// `"fr-FR"`, `"ja-JP"`. func (s *_highlight) BoundaryScannerLocale(boundaryscannerlocale string) *_highlight { s.v.BoundaryScannerLocale = &boundaryscannerlocale @@ -112,7 +103,6 @@ func (s *_highlight) ForceSource(forcesource bool) *_highlight { return s } -// The size of the highlighted fragment in characters. func (s *_highlight) FragmentSize(fragmentsize int) *_highlight { s.v.FragmentSize = &fragmentsize @@ -120,9 +110,6 @@ func (s *_highlight) FragmentSize(fragmentsize int) *_highlight { return s } -// Specifies how text should be broken up in highlight snippets: `simple` or -// `span`. -// Only valid for the `plain` highlighter. func (s *_highlight) Fragmenter(fragmenter highlighterfragmenter.HighlighterFragmenter) *_highlight { s.v.Fragmenter = &fragmenter @@ -136,9 +123,6 @@ func (s *_highlight) HighlightFilter(highlightfilter bool) *_highlight { return s } -// Highlight matches for a query other than the search query. -// This is especially useful if you use a rescore query because those are not -// taken into account by highlighting by default. func (s *_highlight) HighlightQuery(highlightquery types.QueryVariant) *_highlight { s.v.HighlightQuery = highlightquery.QueryCaster() @@ -146,13 +130,6 @@ func (s *_highlight) HighlightQuery(highlightquery types.QueryVariant) *_highlig return s } -// If set to a non-negative value, highlighting stops at this defined maximum -// limit. -// The rest of the text is not processed, thus not highlighted and no error is -// returned -// The `max_analyzed_offset` query setting does not override the -// `index.highlight.max_analyzed_offset` setting, which prevails when it’s set -// to lower value than the query setting. func (s *_highlight) MaxAnalyzedOffset(maxanalyzedoffset int) *_highlight { s.v.MaxAnalyzedOffset = &maxanalyzedoffset @@ -167,8 +144,6 @@ func (s *_highlight) MaxFragmentLength(maxfragmentlength int) *_highlight { return s } -// The amount of text you want to return from the beginning of the field if -// there are no matching fragments to highlight. func (s *_highlight) NoMatchSize(nomatchsize int) *_highlight { s.v.NoMatchSize = &nomatchsize @@ -176,12 +151,6 @@ func (s *_highlight) NoMatchSize(nomatchsize int) *_highlight { return s } -// The maximum number of fragments to return. -// If the number of fragments is set to `0`, no fragments are returned. -// Instead, the entire field contents are highlighted and returned. -// This can be handy when you need to highlight short texts such as a title or -// address, but fragmentation is not required. -// If `number_of_fragments` is `0`, `fragment_size` is ignored. func (s *_highlight) NumberOfFragments(numberoffragments int) *_highlight { s.v.NumberOfFragments = &numberoffragments @@ -210,23 +179,12 @@ func (s *_highlight) AddOption(key string, value json.RawMessage) *_highlight { return s } -// Sorts highlighted fragments by score when set to `score`. -// By default, fragments will be output in the order they appear in the field -// (order: `none`). -// Setting this option to `score` will output the most relevant fragments first. -// Each highlighter applies its own logic to compute relevancy scores. func (s *_highlight) Order(order highlighterorder.HighlighterOrder) *_highlight { s.v.Order = &order return s } -// Controls the number of matching phrases in a document that are considered. -// Prevents the `fvh` highlighter from analyzing too many phrases and consuming -// too much memory. -// When using `matched_fields`, `phrase_limit` phrases per matched field are -// considered. Raising the limit increases query time and consumes more memory. -// Only supported by the `fvh` highlighter. func (s *_highlight) PhraseLimit(phraselimit int) *_highlight { s.v.PhraseLimit = &phraselimit @@ -234,9 +192,6 @@ func (s *_highlight) PhraseLimit(phraselimit int) *_highlight { return s } -// Use in conjunction with `pre_tags` to define the HTML tags to use for the -// highlighted text. -// By default, highlighted text is wrapped in `` and `` tags. func (s *_highlight) PostTags(posttags ...string) *_highlight { for _, v := range posttags { @@ -247,9 +202,6 @@ func (s *_highlight) PostTags(posttags ...string) *_highlight { return s } -// Use in conjunction with `post_tags` to define the HTML tags to use for the -// highlighted text. -// By default, highlighted text is wrapped in `` and `` tags. func (s *_highlight) PreTags(pretags ...string) *_highlight { for _, v := range pretags { @@ -260,8 +212,6 @@ func (s *_highlight) PreTags(pretags ...string) *_highlight { return s } -// By default, only fields that contains a query match are highlighted. -// Set to `false` to highlight all fields. func (s *_highlight) RequireFieldMatch(requirefieldmatch bool) *_highlight { s.v.RequireFieldMatch = &requirefieldmatch @@ -269,7 +219,6 @@ func (s *_highlight) RequireFieldMatch(requirefieldmatch bool) *_highlight { return s } -// Set to `styled` to use the built-in tag schema. func (s *_highlight) TagsSchema(tagsschema highlightertagsschema.HighlighterTagsSchema) *_highlight { s.v.TagsSchema = &tagsschema diff --git a/typedapi/esdsl/highlightfield.go b/typedapi/esdsl/highlightfield.go index 307a88d0d8..c1c8e0debf 100644 --- a/typedapi/esdsl/highlightfield.go +++ b/typedapi/esdsl/highlightfield.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/boundaryscanner" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterfragmenter" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertagsschema" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/boundaryscanner" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlighterfragmenter" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlighterorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlightertagsschema" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlightertype" ) type _highlightField struct { @@ -41,7 +41,6 @@ func NewHighlightField() *_highlightField { } -// A string that contains each boundary character. func (s *_highlightField) BoundaryChars(boundarychars string) *_highlightField { s.v.BoundaryChars = &boundarychars @@ -49,7 +48,6 @@ func (s *_highlightField) BoundaryChars(boundarychars string) *_highlightField { return s } -// How far to scan for boundary characters. func (s *_highlightField) BoundaryMaxScan(boundarymaxscan int) *_highlightField { s.v.BoundaryMaxScan = &boundarymaxscan @@ -57,19 +55,12 @@ func (s *_highlightField) BoundaryMaxScan(boundarymaxscan int) *_highlightField return s } -// Specifies how to break the highlighted fragments: chars, sentence, or word. -// Only valid for the unified and fvh highlighters. -// Defaults to `sentence` for the `unified` highlighter. Defaults to `chars` for -// the `fvh` highlighter. func (s *_highlightField) BoundaryScanner(boundaryscanner boundaryscanner.BoundaryScanner) *_highlightField { s.v.BoundaryScanner = &boundaryscanner return s } -// Controls which locale is used to search for sentence and word boundaries. -// This parameter takes a form of a language tag, for example: `"en-US"`, -// `"fr-FR"`, `"ja-JP"`. func (s *_highlightField) BoundaryScannerLocale(boundaryscannerlocale string) *_highlightField { s.v.BoundaryScannerLocale = &boundaryscannerlocale @@ -91,7 +82,6 @@ func (s *_highlightField) FragmentOffset(fragmentoffset int) *_highlightField { return s } -// The size of the highlighted fragment in characters. func (s *_highlightField) FragmentSize(fragmentsize int) *_highlightField { s.v.FragmentSize = &fragmentsize @@ -99,9 +89,6 @@ func (s *_highlightField) FragmentSize(fragmentsize int) *_highlightField { return s } -// Specifies how text should be broken up in highlight snippets: `simple` or -// `span`. -// Only valid for the `plain` highlighter. func (s *_highlightField) Fragmenter(fragmenter highlighterfragmenter.HighlighterFragmenter) *_highlightField { s.v.Fragmenter = &fragmenter @@ -115,9 +102,6 @@ func (s *_highlightField) HighlightFilter(highlightfilter bool) *_highlightField return s } -// Highlight matches for a query other than the search query. -// This is especially useful if you use a rescore query because those are not -// taken into account by highlighting by default. func (s *_highlightField) HighlightQuery(highlightquery types.QueryVariant) *_highlightField { s.v.HighlightQuery = highlightquery.QueryCaster() @@ -132,13 +116,6 @@ func (s *_highlightField) MatchedFields(fields ...string) *_highlightField { return s } -// If set to a non-negative value, highlighting stops at this defined maximum -// limit. -// The rest of the text is not processed, thus not highlighted and no error is -// returned -// The `max_analyzed_offset` query setting does not override the -// `index.highlight.max_analyzed_offset` setting, which prevails when it’s set -// to lower value than the query setting. func (s *_highlightField) MaxAnalyzedOffset(maxanalyzedoffset int) *_highlightField { s.v.MaxAnalyzedOffset = &maxanalyzedoffset @@ -153,8 +130,6 @@ func (s *_highlightField) MaxFragmentLength(maxfragmentlength int) *_highlightFi return s } -// The amount of text you want to return from the beginning of the field if -// there are no matching fragments to highlight. func (s *_highlightField) NoMatchSize(nomatchsize int) *_highlightField { s.v.NoMatchSize = &nomatchsize @@ -162,12 +137,6 @@ func (s *_highlightField) NoMatchSize(nomatchsize int) *_highlightField { return s } -// The maximum number of fragments to return. -// If the number of fragments is set to `0`, no fragments are returned. -// Instead, the entire field contents are highlighted and returned. -// This can be handy when you need to highlight short texts such as a title or -// address, but fragmentation is not required. -// If `number_of_fragments` is `0`, `fragment_size` is ignored. func (s *_highlightField) NumberOfFragments(numberoffragments int) *_highlightField { s.v.NumberOfFragments = &numberoffragments @@ -196,23 +165,12 @@ func (s *_highlightField) AddOption(key string, value json.RawMessage) *_highlig return s } -// Sorts highlighted fragments by score when set to `score`. -// By default, fragments will be output in the order they appear in the field -// (order: `none`). -// Setting this option to `score` will output the most relevant fragments first. -// Each highlighter applies its own logic to compute relevancy scores. func (s *_highlightField) Order(order highlighterorder.HighlighterOrder) *_highlightField { s.v.Order = &order return s } -// Controls the number of matching phrases in a document that are considered. -// Prevents the `fvh` highlighter from analyzing too many phrases and consuming -// too much memory. -// When using `matched_fields`, `phrase_limit` phrases per matched field are -// considered. Raising the limit increases query time and consumes more memory. -// Only supported by the `fvh` highlighter. func (s *_highlightField) PhraseLimit(phraselimit int) *_highlightField { s.v.PhraseLimit = &phraselimit @@ -220,9 +178,6 @@ func (s *_highlightField) PhraseLimit(phraselimit int) *_highlightField { return s } -// Use in conjunction with `pre_tags` to define the HTML tags to use for the -// highlighted text. -// By default, highlighted text is wrapped in `` and `` tags. func (s *_highlightField) PostTags(posttags ...string) *_highlightField { for _, v := range posttags { @@ -233,9 +188,6 @@ func (s *_highlightField) PostTags(posttags ...string) *_highlightField { return s } -// Use in conjunction with `post_tags` to define the HTML tags to use for the -// highlighted text. -// By default, highlighted text is wrapped in `` and `` tags. func (s *_highlightField) PreTags(pretags ...string) *_highlightField { for _, v := range pretags { @@ -246,8 +198,6 @@ func (s *_highlightField) PreTags(pretags ...string) *_highlightField { return s } -// By default, only fields that contains a query match are highlighted. -// Set to `false` to highlight all fields. func (s *_highlightField) RequireFieldMatch(requirefieldmatch bool) *_highlightField { s.v.RequireFieldMatch = &requirefieldmatch @@ -255,7 +205,6 @@ func (s *_highlightField) RequireFieldMatch(requirefieldmatch bool) *_highlightF return s } -// Set to `styled` to use the built-in tag schema. func (s *_highlightField) TagsSchema(tagsschema highlightertagsschema.HighlighterTagsSchema) *_highlightField { s.v.TagsSchema = &tagsschema diff --git a/typedapi/esdsl/hindianalyzer.go b/typedapi/esdsl/hindianalyzer.go index c6f6cbe1b7..b1636c9d34 100644 --- a/typedapi/esdsl/hindianalyzer.go +++ b/typedapi/esdsl/hindianalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _hindiAnalyzer struct { v *types.HindiAnalyzer diff --git a/typedapi/esdsl/hint.go b/typedapi/esdsl/hint.go index dc92291c3f..88051e0282 100644 --- a/typedapi/esdsl/hint.go +++ b/typedapi/esdsl/hint.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _hint struct { v *types.Hint @@ -32,16 +32,12 @@ func NewHint() *_hint { } -// A single key-value pair to match against the labels section -// of a profile. A profile is considered matching if it matches -// at least one of the strings. func (s *_hint) Labels(labels map[string][]string) *_hint { s.v.Labels = labels return s } -// A list of profile UIDs to match against. func (s *_hint) Uids(uids ...string) *_hint { for _, v := range uids { diff --git a/typedapi/esdsl/histogramaggregation.go b/typedapi/esdsl/histogramaggregation.go index 754eabc872..abea7d3c4c 100644 --- a/typedapi/esdsl/histogramaggregation.go +++ b/typedapi/esdsl/histogramaggregation.go @@ -16,26 +16,22 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _histogramAggregation struct { v *types.HistogramAggregation } -// A multi-bucket values source based aggregation that can be applied on numeric -// values or numeric range values extracted from the documents. -// It dynamically builds fixed size (interval) buckets over the values. func NewHistogramAggregation() *_histogramAggregation { return &_histogramAggregation{v: types.NewHistogramAggregation()} } -// Enables extending the bounds of the histogram beyond the data itself. func (s *_histogramAggregation) ExtendedBounds(extendedbounds types.ExtendedBoundsdoubleVariant) *_histogramAggregation { s.v.ExtendedBounds = extendedbounds.ExtendedBoundsdoubleCaster() @@ -43,7 +39,6 @@ func (s *_histogramAggregation) ExtendedBounds(extendedbounds types.ExtendedBoun return s } -// The name of the field to aggregate on. func (s *_histogramAggregation) Field(field string) *_histogramAggregation { s.v.Field = &field @@ -58,9 +53,6 @@ func (s *_histogramAggregation) Format(format string) *_histogramAggregation { return s } -// Limits the range of buckets in the histogram. -// It is particularly useful in the case of open data ranges that can result in -// a very large number of buckets. func (s *_histogramAggregation) HardBounds(hardbounds types.ExtendedBoundsdoubleVariant) *_histogramAggregation { s.v.HardBounds = hardbounds.ExtendedBoundsdoubleCaster() @@ -68,8 +60,6 @@ func (s *_histogramAggregation) HardBounds(hardbounds types.ExtendedBoundsdouble return s } -// The interval for the buckets. -// Must be a positive decimal. func (s *_histogramAggregation) Interval(interval types.Float64) *_histogramAggregation { s.v.Interval = &interval @@ -77,8 +67,6 @@ func (s *_histogramAggregation) Interval(interval types.Float64) *_histogramAggr return s } -// If `true`, returns buckets as a hash instead of an array, keyed by the bucket -// keys. func (s *_histogramAggregation) Keyed(keyed bool) *_histogramAggregation { s.v.Keyed = &keyed @@ -86,8 +74,6 @@ func (s *_histogramAggregation) Keyed(keyed bool) *_histogramAggregation { return s } -// Only returns buckets that have `min_doc_count` number of documents. -// By default, the response will fill gaps in the histogram with empty buckets. func (s *_histogramAggregation) MinDocCount(mindoccount int) *_histogramAggregation { s.v.MinDocCount = &mindoccount @@ -95,8 +81,6 @@ func (s *_histogramAggregation) MinDocCount(mindoccount int) *_histogramAggregat return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_histogramAggregation) Missing(missing types.Float64) *_histogramAggregation { s.v.Missing = &missing @@ -104,9 +88,6 @@ func (s *_histogramAggregation) Missing(missing types.Float64) *_histogramAggreg return s } -// By default, the bucket keys start with 0 and then continue in even spaced -// steps of `interval`. -// The bucket boundaries can be shifted by using the `offset` option. func (s *_histogramAggregation) Offset(offset types.Float64) *_histogramAggregation { s.v.Offset = &offset @@ -114,8 +95,6 @@ func (s *_histogramAggregation) Offset(offset types.Float64) *_histogramAggregat return s } -// The sort order of the returned buckets. -// By default, the returned buckets are sorted by their key ascending. func (s *_histogramAggregation) Order(aggregateorder types.AggregateOrderVariant) *_histogramAggregation { s.v.Order = *aggregateorder.AggregateOrderCaster() diff --git a/typedapi/esdsl/histogramgrouping.go b/typedapi/esdsl/histogramgrouping.go index dfce5a21b0..d4947853d5 100644 --- a/typedapi/esdsl/histogramgrouping.go +++ b/typedapi/esdsl/histogramgrouping.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _histogramGrouping struct { v *types.HistogramGrouping @@ -36,9 +36,6 @@ func NewHistogramGrouping(interval int64) *_histogramGrouping { } -// The set of fields that you wish to build histograms for. -// All fields specified must be some kind of numeric. -// Order does not matter. func (s *_histogramGrouping) Fields(fields ...string) *_histogramGrouping { s.v.Fields = fields @@ -46,11 +43,6 @@ func (s *_histogramGrouping) Fields(fields ...string) *_histogramGrouping { return s } -// The interval of histogram buckets to be generated when rolling up. -// For example, a value of `5` creates buckets that are five units wide (`0-5`, -// `5-10`, etc). -// Note that only one interval can be specified in the histogram group, meaning -// that all fields being grouped via the histogram must share the same interval. func (s *_histogramGrouping) Interval(interval int64) *_histogramGrouping { s.v.Interval = interval diff --git a/typedapi/esdsl/histogramproperty.go b/typedapi/esdsl/histogramproperty.go index 11e1192938..341fdb097f 100644 --- a/typedapi/esdsl/histogramproperty.go +++ b/typedapi/esdsl/histogramproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _histogramProperty struct { @@ -77,7 +77,6 @@ func (s *_histogramProperty) IgnoreMalformed(ignoremalformed bool) *_histogramPr return s } -// Metadata about the field. func (s *_histogramProperty) Meta(meta map[string]string) *_histogramProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/holtlinearmodelsettings.go b/typedapi/esdsl/holtlinearmodelsettings.go index 660ded58de..02c0b4e725 100644 --- a/typedapi/esdsl/holtlinearmodelsettings.go +++ b/typedapi/esdsl/holtlinearmodelsettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _holtLinearModelSettings struct { v *types.HoltLinearModelSettings diff --git a/typedapi/esdsl/holtmovingaverageaggregation.go b/typedapi/esdsl/holtmovingaverageaggregation.go index 8a13a42fe8..3305f46c15 100644 --- a/typedapi/esdsl/holtmovingaverageaggregation.go +++ b/typedapi/esdsl/holtmovingaverageaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _holtMovingAverageAggregation struct { @@ -39,7 +39,6 @@ func NewHoltMovingAverageAggregation(settings types.HoltLinearModelSettingsVaria } -// Path to the buckets that contain one set of values to correlate. func (s *_holtMovingAverageAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_holtMovingAverageAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -47,9 +46,6 @@ func (s *_holtMovingAverageAggregation) BucketsPath(bucketspath types.BucketsPat return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_holtMovingAverageAggregation) Format(format string) *_holtMovingAverageAggregation { s.v.Format = &format @@ -57,7 +53,6 @@ func (s *_holtMovingAverageAggregation) Format(format string) *_holtMovingAverag return s } -// Policy to apply when gaps are found in the data. func (s *_holtMovingAverageAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_holtMovingAverageAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/holtwintersmodelsettings.go b/typedapi/esdsl/holtwintersmodelsettings.go index 8aa826e5cd..11cd3e9c59 100644 --- a/typedapi/esdsl/holtwintersmodelsettings.go +++ b/typedapi/esdsl/holtwintersmodelsettings.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/holtwinterstype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/holtwinterstype" ) type _holtWintersModelSettings struct { diff --git a/typedapi/esdsl/holtwintersmovingaverageaggregation.go b/typedapi/esdsl/holtwintersmovingaverageaggregation.go index dfdeedeb98..d900365417 100644 --- a/typedapi/esdsl/holtwintersmovingaverageaggregation.go +++ b/typedapi/esdsl/holtwintersmovingaverageaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _holtWintersMovingAverageAggregation struct { @@ -39,7 +39,6 @@ func NewHoltWintersMovingAverageAggregation(settings types.HoltWintersModelSetti } -// Path to the buckets that contain one set of values to correlate. func (s *_holtWintersMovingAverageAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_holtWintersMovingAverageAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -47,9 +46,6 @@ func (s *_holtWintersMovingAverageAggregation) BucketsPath(bucketspath types.Buc return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_holtWintersMovingAverageAggregation) Format(format string) *_holtWintersMovingAverageAggregation { s.v.Format = &format @@ -57,7 +53,6 @@ func (s *_holtWintersMovingAverageAggregation) Format(format string) *_holtWinte return s } -// Policy to apply when gaps are found in the data. func (s *_holtWintersMovingAverageAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_holtWintersMovingAverageAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/hop.go b/typedapi/esdsl/hop.go index 955415a585..a328a90e7b 100644 --- a/typedapi/esdsl/hop.go +++ b/typedapi/esdsl/hop.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _hop struct { v *types.Hop @@ -32,8 +32,6 @@ func NewHop() *_hop { } -// Specifies one or more fields from which you want to extract terms that are -// associated with the specified vertices. func (s *_hop) Connections(connections types.HopVariant) *_hop { s.v.Connections = connections.HopCaster() @@ -41,8 +39,6 @@ func (s *_hop) Connections(connections types.HopVariant) *_hop { return s } -// An optional guiding query that constrains the Graph API as it explores -// connected terms. func (s *_hop) Query(query types.QueryVariant) *_hop { s.v.Query = query.QueryCaster() @@ -50,7 +46,6 @@ func (s *_hop) Query(query types.QueryVariant) *_hop { return s } -// Contains the fields you are interested in. func (s *_hop) Vertices(vertices ...types.VertexDefinitionVariant) *_hop { for _, v := range vertices { diff --git a/typedapi/esdsl/hourandminute.go b/typedapi/esdsl/hourandminute.go index 6fd5fc5011..7d008404a4 100644 --- a/typedapi/esdsl/hourandminute.go +++ b/typedapi/esdsl/hourandminute.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _hourAndMinute struct { v *types.HourAndMinute diff --git a/typedapi/esdsl/hourlyschedule.go b/typedapi/esdsl/hourlyschedule.go index 21e09a1b16..12dc0cbf6a 100644 --- a/typedapi/esdsl/hourlyschedule.go +++ b/typedapi/esdsl/hourlyschedule.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _hourlySchedule struct { v *types.HourlySchedule diff --git a/typedapi/esdsl/htmlstripcharfilter.go b/typedapi/esdsl/htmlstripcharfilter.go index 8e263420a6..ab7bb4c33b 100644 --- a/typedapi/esdsl/htmlstripcharfilter.go +++ b/typedapi/esdsl/htmlstripcharfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _htmlStripCharFilter struct { v *types.HtmlStripCharFilter diff --git a/typedapi/esdsl/htmlstripprocessor.go b/typedapi/esdsl/htmlstripprocessor.go index 243e9cc97b..89645c9e9d 100644 --- a/typedapi/esdsl/htmlstripprocessor.go +++ b/typedapi/esdsl/htmlstripprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _htmlStripProcessor struct { v *types.HtmlStripProcessor @@ -35,8 +35,6 @@ func NewHtmlStripProcessor() *_htmlStripProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_htmlStripProcessor) Description(description string) *_htmlStripProcessor { s.v.Description = &description @@ -44,7 +42,6 @@ func (s *_htmlStripProcessor) Description(description string) *_htmlStripProcess return s } -// The string-valued field to remove HTML tags from. func (s *_htmlStripProcessor) Field(field string) *_htmlStripProcessor { s.v.Field = field @@ -52,7 +49,6 @@ func (s *_htmlStripProcessor) Field(field string) *_htmlStripProcessor { return s } -// Conditionally execute the processor. func (s *_htmlStripProcessor) If(if_ types.ScriptVariant) *_htmlStripProcessor { s.v.If = if_.ScriptCaster() @@ -60,7 +56,6 @@ func (s *_htmlStripProcessor) If(if_ types.ScriptVariant) *_htmlStripProcessor { return s } -// Ignore failures for the processor. func (s *_htmlStripProcessor) IgnoreFailure(ignorefailure bool) *_htmlStripProcessor { s.v.IgnoreFailure = &ignorefailure @@ -68,8 +63,6 @@ func (s *_htmlStripProcessor) IgnoreFailure(ignorefailure bool) *_htmlStripProce return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document, func (s *_htmlStripProcessor) IgnoreMissing(ignoremissing bool) *_htmlStripProcessor { s.v.IgnoreMissing = &ignoremissing @@ -77,7 +70,6 @@ func (s *_htmlStripProcessor) IgnoreMissing(ignoremissing bool) *_htmlStripProce return s } -// Handle failures for the processor. func (s *_htmlStripProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_htmlStripProcessor { for _, v := range onfailures { @@ -88,8 +80,6 @@ func (s *_htmlStripProcessor) OnFailure(onfailures ...types.ProcessorContainerVa return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_htmlStripProcessor) Tag(tag string) *_htmlStripProcessor { s.v.Tag = &tag @@ -97,8 +87,6 @@ func (s *_htmlStripProcessor) Tag(tag string) *_htmlStripProcessor { return s } -// The field to assign the converted value to -// By default, the `field` is updated in-place. func (s *_htmlStripProcessor) TargetField(field string) *_htmlStripProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/httpemailattachment.go b/typedapi/esdsl/httpemailattachment.go index fe4b07ab05..438eb166e6 100644 --- a/typedapi/esdsl/httpemailattachment.go +++ b/typedapi/esdsl/httpemailattachment.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _httpEmailAttachment struct { v *types.HttpEmailAttachment diff --git a/typedapi/esdsl/httpheaders.go b/typedapi/esdsl/httpheaders.go index 8cec807c10..9427ecfa7b 100644 --- a/typedapi/esdsl/httpheaders.go +++ b/typedapi/esdsl/httpheaders.go @@ -16,19 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _httpHeaders struct { v types.HttpHeaders } func NewHttpHeaders(httpheaders map[string][]string) *_httpHeaders { - return &_httpHeaders{v: make(map[string][]string, 0)} + return &_httpHeaders{v: httpheaders} } func (u *_httpHeaders) HttpHeadersCaster() *types.HttpHeaders { diff --git a/typedapi/esdsl/httpinput.go b/typedapi/esdsl/httpinput.go index ea5a158670..2011a7093d 100644 --- a/typedapi/esdsl/httpinput.go +++ b/typedapi/esdsl/httpinput.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/responsecontenttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/responsecontenttype" ) type _httpInput struct { diff --git a/typedapi/esdsl/httpinputauthentication.go b/typedapi/esdsl/httpinputauthentication.go index ee8b1f0b04..9b256906c1 100644 --- a/typedapi/esdsl/httpinputauthentication.go +++ b/typedapi/esdsl/httpinputauthentication.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _httpInputAuthentication struct { v *types.HttpInputAuthentication diff --git a/typedapi/esdsl/httpinputbasicauthentication.go b/typedapi/esdsl/httpinputbasicauthentication.go index f8289cc6f1..0b6c01013b 100644 --- a/typedapi/esdsl/httpinputbasicauthentication.go +++ b/typedapi/esdsl/httpinputbasicauthentication.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _httpInputBasicAuthentication struct { v *types.HttpInputBasicAuthentication diff --git a/typedapi/esdsl/httpinputproxy.go b/typedapi/esdsl/httpinputproxy.go index e6539aa97f..9a515e4eed 100644 --- a/typedapi/esdsl/httpinputproxy.go +++ b/typedapi/esdsl/httpinputproxy.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _httpInputProxy struct { v *types.HttpInputProxy diff --git a/typedapi/esdsl/httpinputrequestdefinition.go b/typedapi/esdsl/httpinputrequestdefinition.go index 6f65a9a2fe..0cd41ef926 100644 --- a/typedapi/esdsl/httpinputrequestdefinition.go +++ b/typedapi/esdsl/httpinputrequestdefinition.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/httpinputmethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/connectionscheme" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/httpinputmethod" ) type _httpInputRequestDefinition struct { diff --git a/typedapi/esdsl/huggingfaceservicesettings.go b/typedapi/esdsl/huggingfaceservicesettings.go new file mode 100644 index 0000000000..3ea66d56ec --- /dev/null +++ b/typedapi/esdsl/huggingfaceservicesettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _huggingFaceServiceSettings struct { + v *types.HuggingFaceServiceSettings +} + +func NewHuggingFaceServiceSettings(apikey string, url string) *_huggingFaceServiceSettings { + + tmp := &_huggingFaceServiceSettings{v: types.NewHuggingFaceServiceSettings()} + + tmp.ApiKey(apikey) + + tmp.Url(url) + + return tmp + +} + +func (s *_huggingFaceServiceSettings) ApiKey(apikey string) *_huggingFaceServiceSettings { + + s.v.ApiKey = apikey + + return s +} + +func (s *_huggingFaceServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_huggingFaceServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_huggingFaceServiceSettings) Url(url string) *_huggingFaceServiceSettings { + + s.v.Url = url + + return s +} + +func (s *_huggingFaceServiceSettings) HuggingFaceServiceSettingsCaster() *types.HuggingFaceServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/hungariananalyzer.go b/typedapi/esdsl/hungariananalyzer.go index 5f763dbb95..5a4be73119 100644 --- a/typedapi/esdsl/hungariananalyzer.go +++ b/typedapi/esdsl/hungariananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _hungarianAnalyzer struct { v *types.HungarianAnalyzer diff --git a/typedapi/esdsl/hunspelltokenfilter.go b/typedapi/esdsl/hunspelltokenfilter.go index 13425f0408..e1f51632b7 100644 --- a/typedapi/esdsl/hunspelltokenfilter.go +++ b/typedapi/esdsl/hunspelltokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _hunspellTokenFilter struct { v *types.HunspellTokenFilter diff --git a/typedapi/esdsl/hyphenationdecompoundertokenfilter.go b/typedapi/esdsl/hyphenationdecompoundertokenfilter.go index c9ab663845..8efa9362fb 100644 --- a/typedapi/esdsl/hyphenationdecompoundertokenfilter.go +++ b/typedapi/esdsl/hyphenationdecompoundertokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _hyphenationDecompounderTokenFilter struct { v *types.HyphenationDecompounderTokenFilter diff --git a/typedapi/esdsl/icuanalyzer.go b/typedapi/esdsl/icuanalyzer.go index 628267adf9..04d74f36a8 100644 --- a/typedapi/esdsl/icuanalyzer.go +++ b/typedapi/esdsl/icuanalyzer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationtype" ) type _icuAnalyzer struct { diff --git a/typedapi/esdsl/icucollationproperty.go b/typedapi/esdsl/icucollationproperty.go index f438687014..63983daf6c 100644 --- a/typedapi/esdsl/icucollationproperty.go +++ b/typedapi/esdsl/icucollationproperty.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationalternate" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationcasefirst" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationdecomposition" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationstrength" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/icucollationalternate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationcasefirst" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationdecomposition" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationstrength" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _icuCollationProperty struct { @@ -128,7 +128,6 @@ func (s *_icuCollationProperty) IgnoreAbove(ignoreabove int) *_icuCollationPrope return s } -// Should the field be searchable? func (s *_icuCollationProperty) Index(index bool) *_icuCollationProperty { s.v.Index = &index @@ -149,7 +148,6 @@ func (s *_icuCollationProperty) Language(language string) *_icuCollationProperty return s } -// Metadata about the field. func (s *_icuCollationProperty) Meta(meta map[string]string) *_icuCollationProperty { s.v.Meta = meta @@ -178,8 +176,6 @@ func (s *_icuCollationProperty) Norms(norms bool) *_icuCollationProperty { return s } -// Accepts a string value which is substituted for any explicit null values. -// Defaults to null, which means the field is treated as missing. func (s *_icuCollationProperty) NullValue(nullvalue string) *_icuCollationProperty { s.v.NullValue = &nullvalue diff --git a/typedapi/esdsl/icucollationtokenfilter.go b/typedapi/esdsl/icucollationtokenfilter.go index c8d86e151e..68df3062c8 100644 --- a/typedapi/esdsl/icucollationtokenfilter.go +++ b/typedapi/esdsl/icucollationtokenfilter.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationalternate" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationcasefirst" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationdecomposition" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationstrength" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationalternate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationcasefirst" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationdecomposition" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationstrength" ) type _icuCollationTokenFilter struct { diff --git a/typedapi/esdsl/icufoldingtokenfilter.go b/typedapi/esdsl/icufoldingtokenfilter.go index fbbc136395..afc1482078 100644 --- a/typedapi/esdsl/icufoldingtokenfilter.go +++ b/typedapi/esdsl/icufoldingtokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _icuFoldingTokenFilter struct { v *types.IcuFoldingTokenFilter diff --git a/typedapi/esdsl/icunormalizationcharfilter.go b/typedapi/esdsl/icunormalizationcharfilter.go index 98bcd69d8b..cae867d05f 100644 --- a/typedapi/esdsl/icunormalizationcharfilter.go +++ b/typedapi/esdsl/icunormalizationcharfilter.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationtype" ) type _icuNormalizationCharFilter struct { diff --git a/typedapi/esdsl/icunormalizationtokenfilter.go b/typedapi/esdsl/icunormalizationtokenfilter.go index a08f941936..0fe80e4188 100644 --- a/typedapi/esdsl/icunormalizationtokenfilter.go +++ b/typedapi/esdsl/icunormalizationtokenfilter.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationtype" ) type _icuNormalizationTokenFilter struct { diff --git a/typedapi/esdsl/icutokenizer.go b/typedapi/esdsl/icutokenizer.go index b8f413ef61..5bf09a3981 100644 --- a/typedapi/esdsl/icutokenizer.go +++ b/typedapi/esdsl/icutokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _icuTokenizer struct { v *types.IcuTokenizer diff --git a/typedapi/esdsl/icutransformtokenfilter.go b/typedapi/esdsl/icutransformtokenfilter.go index e3726fc622..90aada37a6 100644 --- a/typedapi/esdsl/icutransformtokenfilter.go +++ b/typedapi/esdsl/icutransformtokenfilter.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icutransformdirection" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icutransformdirection" ) type _icuTransformTokenFilter struct { diff --git a/typedapi/esdsl/ids.go b/typedapi/esdsl/ids.go index 4b3315a087..eca6ab5ebf 100644 --- a/typedapi/esdsl/ids.go +++ b/typedapi/esdsl/ids.go @@ -16,13 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _ids struct { v types.Ids } diff --git a/typedapi/esdsl/idsquery.go b/typedapi/esdsl/idsquery.go index d3f0839e8c..43488bc4f5 100644 --- a/typedapi/esdsl/idsquery.go +++ b/typedapi/esdsl/idsquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _idsQuery struct { v *types.IdsQuery @@ -34,11 +34,6 @@ func NewIdsQuery() *_idsQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_idsQuery) Boost(boost float32) *_idsQuery { s.v.Boost = &boost @@ -53,7 +48,6 @@ func (s *_idsQuery) QueryName_(queryname_ string) *_idsQuery { return s } -// An array of document IDs. func (s *_idsQuery) Values(ids ...string) *_idsQuery { s.v.Values = ids diff --git a/typedapi/esdsl/ilmactions.go b/typedapi/esdsl/ilmactions.go index 77ad73c22b..5d8729be1b 100644 --- a/typedapi/esdsl/ilmactions.go +++ b/typedapi/esdsl/ilmactions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _ilmActions struct { v *types.IlmActions @@ -32,7 +32,6 @@ func NewIlmActions() *_ilmActions { } -// Phases allowed: warm, cold. func (s *_ilmActions) Allocate(allocate types.AllocateActionVariant) *_ilmActions { s.v.Allocate = allocate.AllocateActionCaster() @@ -40,7 +39,6 @@ func (s *_ilmActions) Allocate(allocate types.AllocateActionVariant) *_ilmAction return s } -// Phases allowed: delete. func (s *_ilmActions) Delete(delete types.DeleteActionVariant) *_ilmActions { s.v.Delete = delete.DeleteActionCaster() @@ -48,7 +46,6 @@ func (s *_ilmActions) Delete(delete types.DeleteActionVariant) *_ilmActions { return s } -// Phases allowed: hot, warm, cold. func (s *_ilmActions) Downsample(downsample types.DownsampleActionVariant) *_ilmActions { s.v.Downsample = downsample.DownsampleActionCaster() @@ -56,7 +53,6 @@ func (s *_ilmActions) Downsample(downsample types.DownsampleActionVariant) *_ilm return s } -// Phases allowed: hot, warm. func (s *_ilmActions) Forcemerge(forcemerge types.ForceMergeActionVariant) *_ilmActions { s.v.Forcemerge = forcemerge.ForceMergeActionCaster() @@ -64,7 +60,6 @@ func (s *_ilmActions) Forcemerge(forcemerge types.ForceMergeActionVariant) *_ilm return s } -// The freeze action is a noop in 8.x func (s *_ilmActions) Freeze(freeze types.EmptyObjectVariant) *_ilmActions { s.v.Freeze = freeze.EmptyObjectCaster() @@ -72,7 +67,6 @@ func (s *_ilmActions) Freeze(freeze types.EmptyObjectVariant) *_ilmActions { return s } -// Phases allowed: warm, cold. func (s *_ilmActions) Migrate(migrate types.MigrateActionVariant) *_ilmActions { s.v.Migrate = migrate.MigrateActionCaster() @@ -80,7 +74,6 @@ func (s *_ilmActions) Migrate(migrate types.MigrateActionVariant) *_ilmActions { return s } -// Phases allowed: hot, warm, cold. func (s *_ilmActions) Readonly(readonly types.EmptyObjectVariant) *_ilmActions { s.v.Readonly = readonly.EmptyObjectCaster() @@ -88,7 +81,6 @@ func (s *_ilmActions) Readonly(readonly types.EmptyObjectVariant) *_ilmActions { return s } -// Phases allowed: hot. func (s *_ilmActions) Rollover(rollover types.RolloverActionVariant) *_ilmActions { s.v.Rollover = rollover.RolloverActionCaster() @@ -96,7 +88,6 @@ func (s *_ilmActions) Rollover(rollover types.RolloverActionVariant) *_ilmAction return s } -// Phases allowed: hot, cold, frozen. func (s *_ilmActions) SearchableSnapshot(searchablesnapshot types.SearchableSnapshotActionVariant) *_ilmActions { s.v.SearchableSnapshot = searchablesnapshot.SearchableSnapshotActionCaster() @@ -104,7 +95,6 @@ func (s *_ilmActions) SearchableSnapshot(searchablesnapshot types.SearchableSnap return s } -// Phases allowed: hot, warm, cold. func (s *_ilmActions) SetPriority(setpriority types.SetPriorityActionVariant) *_ilmActions { s.v.SetPriority = setpriority.SetPriorityActionCaster() @@ -112,7 +102,6 @@ func (s *_ilmActions) SetPriority(setpriority types.SetPriorityActionVariant) *_ return s } -// Phases allowed: hot, warm. func (s *_ilmActions) Shrink(shrink types.ShrinkActionVariant) *_ilmActions { s.v.Shrink = shrink.ShrinkActionCaster() @@ -120,7 +109,6 @@ func (s *_ilmActions) Shrink(shrink types.ShrinkActionVariant) *_ilmActions { return s } -// Phases allowed: hot, warm, cold, frozen. func (s *_ilmActions) Unfollow(unfollow types.EmptyObjectVariant) *_ilmActions { s.v.Unfollow = unfollow.EmptyObjectCaster() @@ -128,7 +116,6 @@ func (s *_ilmActions) Unfollow(unfollow types.EmptyObjectVariant) *_ilmActions { return s } -// Phases allowed: delete. func (s *_ilmActions) WaitForSnapshot(waitforsnapshot types.WaitForSnapshotActionVariant) *_ilmActions { s.v.WaitForSnapshot = waitforsnapshot.WaitForSnapshotActionCaster() diff --git a/typedapi/esdsl/ilmpolicy.go b/typedapi/esdsl/ilmpolicy.go index 50ce45303f..ba37fa2816 100644 --- a/typedapi/esdsl/ilmpolicy.go +++ b/typedapi/esdsl/ilmpolicy.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _ilmPolicy struct { v *types.IlmPolicy @@ -36,8 +36,6 @@ func NewIlmPolicy(phases types.PhasesVariant) *_ilmPolicy { } -// Arbitrary metadata that is not automatically generated or used by -// Elasticsearch. func (s *_ilmPolicy) Meta_(metadata types.MetadataVariant) *_ilmPolicy { s.v.Meta_ = *metadata.MetadataCaster() diff --git a/typedapi/esdsl/includedinvalidation.go b/typedapi/esdsl/includedinvalidation.go index 4abd763c78..925d5a4535 100644 --- a/typedapi/esdsl/includedinvalidation.go +++ b/typedapi/esdsl/includedinvalidation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _includedInValidation struct { v *types.IncludedInValidation diff --git a/typedapi/esdsl/indexaction.go b/typedapi/esdsl/indexaction.go index 3da70cc3d8..966dc3bee9 100644 --- a/typedapi/esdsl/indexaction.go +++ b/typedapi/esdsl/indexaction.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/optype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "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" ) type _indexAction struct { diff --git a/typedapi/esdsl/indexanddatastreamaction.go b/typedapi/esdsl/indexanddatastreamaction.go index e60bce8395..7d3fc052da 100644 --- a/typedapi/esdsl/indexanddatastreamaction.go +++ b/typedapi/esdsl/indexanddatastreamaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexAndDataStreamAction struct { v *types.IndexAndDataStreamAction @@ -35,7 +35,6 @@ func NewIndexAndDataStreamAction() *_indexAndDataStreamAction { } -// Data stream targeted by the action. func (s *_indexAndDataStreamAction) DataStream(datastreamname string) *_indexAndDataStreamAction { s.v.DataStream = datastreamname @@ -43,7 +42,6 @@ func (s *_indexAndDataStreamAction) DataStream(datastreamname string) *_indexAnd return s } -// Index for the action. func (s *_indexAndDataStreamAction) Index(indexname string) *_indexAndDataStreamAction { s.v.Index = indexname diff --git a/typedapi/esdsl/indexfield.go b/typedapi/esdsl/indexfield.go index fa3ba1ede5..64702e8539 100644 --- a/typedapi/esdsl/indexfield.go +++ b/typedapi/esdsl/indexfield.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexField struct { v *types.IndexField diff --git a/typedapi/esdsl/indexingslowlogsettings.go b/typedapi/esdsl/indexingslowlogsettings.go index bae4140d0d..a0273a935b 100644 --- a/typedapi/esdsl/indexingslowlogsettings.go +++ b/typedapi/esdsl/indexingslowlogsettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexingSlowlogSettings struct { v *types.IndexingSlowlogSettings diff --git a/typedapi/esdsl/indexingslowlogtresholds.go b/typedapi/esdsl/indexingslowlogtresholds.go index 0be1908852..62b51a5ec0 100644 --- a/typedapi/esdsl/indexingslowlogtresholds.go +++ b/typedapi/esdsl/indexingslowlogtresholds.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexingSlowlogTresholds struct { v *types.IndexingSlowlogTresholds @@ -32,9 +32,6 @@ func NewIndexingSlowlogTresholds() *_indexingSlowlogTresholds { } -// The indexing slow log, similar in functionality to the search slow log. The -// log file name ends with `_index_indexing_slowlog.json`. -// Log and the thresholds are configured in the same way as the search slowlog. func (s *_indexingSlowlogTresholds) Index(index types.SlowlogTresholdLevelsVariant) *_indexingSlowlogTresholds { s.v.Index = index.SlowlogTresholdLevelsCaster() diff --git a/typedapi/esdsl/indexoperation.go b/typedapi/esdsl/indexoperation.go index 45dd19053f..6324c936e2 100644 --- a/typedapi/esdsl/indexoperation.go +++ b/typedapi/esdsl/indexoperation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) type _indexOperation struct { @@ -38,12 +38,6 @@ func NewIndexOperation() *_indexOperation { } -// A map from the full name of fields to the name of dynamic templates. -// It defaults to an empty map. -// If a name matches a dynamic template, that template will be applied -// regardless of other match predicates defined in the template. -// If a field is already defined in the mapping, then this parameter won't be -// used. func (s *_indexOperation) DynamicTemplates(dynamictemplates map[string]string) *_indexOperation { s.v.DynamicTemplates = dynamictemplates @@ -65,7 +59,6 @@ func (s *_indexOperation) AddDynamicTemplate(key string, value string) *_indexOp return s } -// The document ID. func (s *_indexOperation) Id_(id string) *_indexOperation { s.v.Id_ = &id @@ -87,7 +80,6 @@ func (s *_indexOperation) IfSeqNo(sequencenumber int64) *_indexOperation { return s } -// The name of the index or index alias to perform the action on. func (s *_indexOperation) Index_(indexname string) *_indexOperation { s.v.Index_ = &indexname @@ -95,11 +87,6 @@ func (s *_indexOperation) Index_(indexname string) *_indexOperation { return s } -// 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. -// If a final pipeline is configured, it will always run regardless of the value -// of this parameter. func (s *_indexOperation) Pipeline(pipeline string) *_indexOperation { s.v.Pipeline = &pipeline @@ -107,7 +94,6 @@ func (s *_indexOperation) Pipeline(pipeline string) *_indexOperation { return s } -// If `true`, the request's actions must target an index alias. func (s *_indexOperation) RequireAlias(requirealias bool) *_indexOperation { s.v.RequireAlias = &requirealias @@ -115,7 +101,6 @@ func (s *_indexOperation) RequireAlias(requirealias bool) *_indexOperation { return s } -// A custom value used to route operations to a specific shard. func (s *_indexOperation) Routing(routing string) *_indexOperation { s.v.Routing = &routing diff --git a/typedapi/esdsl/indexprivilegescheck.go b/typedapi/esdsl/indexprivilegescheck.go index 6b0544f8f5..9744c07236 100644 --- a/typedapi/esdsl/indexprivilegescheck.go +++ b/typedapi/esdsl/indexprivilegescheck.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexprivilege" ) type _indexPrivilegesCheck struct { @@ -35,14 +35,6 @@ func NewIndexPrivilegesCheck() *_indexPrivilegesCheck { } -// This needs to be set to `true` (default is `false`) if using wildcards or -// regexps for patterns that cover restricted indices. -// Implicitly, restricted indices do not match index patterns because restricted -// indices usually have limited privileges and including them in pattern tests -// would render most such tests false. -// If restricted indices are explicitly included in the names list, privileges -// will be checked against them regardless of the value of -// `allow_restricted_indices`. func (s *_indexPrivilegesCheck) AllowRestrictedIndices(allowrestrictedindices bool) *_indexPrivilegesCheck { s.v.AllowRestrictedIndices = &allowrestrictedindices @@ -50,7 +42,6 @@ func (s *_indexPrivilegesCheck) AllowRestrictedIndices(allowrestrictedindices bo return s } -// A list of indices. func (s *_indexPrivilegesCheck) Names(indices ...string) *_indexPrivilegesCheck { s.v.Names = indices @@ -58,7 +49,6 @@ func (s *_indexPrivilegesCheck) Names(indices ...string) *_indexPrivilegesCheck return s } -// A list of the privileges that you want to check for the specified indices. func (s *_indexPrivilegesCheck) Privileges(privileges ...indexprivilege.IndexPrivilege) *_indexPrivilegesCheck { for _, v := range privileges { diff --git a/typedapi/esdsl/indexrouting.go b/typedapi/esdsl/indexrouting.go index ed0657a293..385dbcd084 100644 --- a/typedapi/esdsl/indexrouting.go +++ b/typedapi/esdsl/indexrouting.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexRouting struct { v *types.IndexRouting diff --git a/typedapi/esdsl/indexroutingallocation.go b/typedapi/esdsl/indexroutingallocation.go index bff1eb90c7..c9471014b7 100644 --- a/typedapi/esdsl/indexroutingallocation.go +++ b/typedapi/esdsl/indexroutingallocation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingallocationoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexroutingallocationoptions" ) type _indexRoutingAllocation struct { diff --git a/typedapi/esdsl/indexroutingallocationdisk.go b/typedapi/esdsl/indexroutingallocationdisk.go index 9c3bf96d39..b25099598a 100644 --- a/typedapi/esdsl/indexroutingallocationdisk.go +++ b/typedapi/esdsl/indexroutingallocationdisk.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexRoutingAllocationDisk struct { v *types.IndexRoutingAllocationDisk diff --git a/typedapi/esdsl/indexroutingallocationinclude.go b/typedapi/esdsl/indexroutingallocationinclude.go index df43a0b314..9a7318f0b0 100644 --- a/typedapi/esdsl/indexroutingallocationinclude.go +++ b/typedapi/esdsl/indexroutingallocationinclude.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexRoutingAllocationInclude struct { v *types.IndexRoutingAllocationInclude diff --git a/typedapi/esdsl/indexroutingallocationinitialrecovery.go b/typedapi/esdsl/indexroutingallocationinitialrecovery.go index 7aeb9b56e3..5ccdc37bd1 100644 --- a/typedapi/esdsl/indexroutingallocationinitialrecovery.go +++ b/typedapi/esdsl/indexroutingallocationinitialrecovery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexRoutingAllocationInitialRecovery struct { v *types.IndexRoutingAllocationInitialRecovery diff --git a/typedapi/esdsl/indexroutingrebalance.go b/typedapi/esdsl/indexroutingrebalance.go index 37f02544ad..fcf9fe3511 100644 --- a/typedapi/esdsl/indexroutingrebalance.go +++ b/typedapi/esdsl/indexroutingrebalance.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingrebalanceoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexroutingrebalanceoptions" ) type _indexRoutingRebalance struct { diff --git a/typedapi/esdsl/indexsegmentsort.go b/typedapi/esdsl/indexsegmentsort.go index 774aea59bc..3deb6d7d0d 100644 --- a/typedapi/esdsl/indexsegmentsort.go +++ b/typedapi/esdsl/indexsegmentsort.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmissing" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/segmentsortmissing" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/segmentsortmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/segmentsortorder" ) type _indexSegmentSort struct { diff --git a/typedapi/esdsl/indexsettingblocks.go b/typedapi/esdsl/indexsettingblocks.go index 2fb63d2841..bbc9afb2db 100644 --- a/typedapi/esdsl/indexsettingblocks.go +++ b/typedapi/esdsl/indexsettingblocks.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexSettingBlocks struct { v *types.IndexSettingBlocks diff --git a/typedapi/esdsl/indexsettings.go b/typedapi/esdsl/indexsettings.go index bddd22905e..c7839cc6f6 100644 --- a/typedapi/esdsl/indexsettings.go +++ b/typedapi/esdsl/indexsettings.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexcheckonstartup" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexcheckonstartup" ) type _indexSettings struct { @@ -44,8 +44,6 @@ func (s *_indexSettings) Analysis(analysis types.IndexSettingsAnalysisVariant) * return s } -// Settings to define analyzers, tokenizers, token filters and character -// filters. func (s *_indexSettings) Analyze(analyze types.SettingsAnalyzeVariant) *_indexSettings { s.v.Analyze = analyze.SettingsAnalyzeCaster() @@ -164,7 +162,6 @@ func (s *_indexSettings) AddIndexSetting(key string, value json.RawMessage) *_in return s } -// Configure indexing back pressure limits. func (s *_indexSettings) IndexingPressure(indexingpressure types.IndicesIndexingPressureVariant) *_indexSettings { s.v.IndexingPressure = indexingpressure.IndicesIndexingPressureCaster() @@ -193,7 +190,6 @@ func (s *_indexSettings) LoadFixedBitsetFiltersEagerly(loadfixedbitsetfilterseag return s } -// Enable or disable dynamic mapping for an index. func (s *_indexSettings) Mapping(mapping types.MappingLimitSettingsVariant) *_indexSettings { s.v.Mapping = mapping.MappingLimitSettingsCaster() @@ -384,8 +380,6 @@ func (s *_indexSettings) Settings(settings types.IndexSettingsVariant) *_indexSe return s } -// Configure custom similarity settings to customize how search results are -// scored. func (s *_indexSettings) Similarity(similarity map[string]types.SettingsSimilarity) *_indexSettings { s.v.Similarity = similarity @@ -421,8 +415,6 @@ func (s *_indexSettings) Sort(sort types.IndexSegmentSortVariant) *_indexSetting return s } -// The store module allows you to control how index data is stored and accessed -// on disk. func (s *_indexSettings) Store(store types.StorageVariant) *_indexSettings { s.v.Store = store.StorageCaster() diff --git a/typedapi/esdsl/indexsettingsanalysis.go b/typedapi/esdsl/indexsettingsanalysis.go index b2cb411c7f..ecd8cafa6d 100644 --- a/typedapi/esdsl/indexsettingsanalysis.go +++ b/typedapi/esdsl/indexsettingsanalysis.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexSettingsAnalysis struct { v *types.IndexSettingsAnalysis diff --git a/typedapi/esdsl/indexsettingslifecycle.go b/typedapi/esdsl/indexsettingslifecycle.go index 8316e1babb..77066fa5d0 100644 --- a/typedapi/esdsl/indexsettingslifecycle.go +++ b/typedapi/esdsl/indexsettingslifecycle.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexSettingsLifecycle struct { v *types.IndexSettingsLifecycle @@ -32,9 +32,6 @@ func NewIndexSettingsLifecycle() *_indexSettingsLifecycle { } -// Indicates whether or not the index has been rolled over. Automatically set to -// true when ILM completes the rollover action. -// You can explicitly set it to skip rollover. func (s *_indexSettingsLifecycle) IndexingComplete(stringifiedboolean types.StringifiedbooleanVariant) *_indexSettingsLifecycle { s.v.IndexingComplete = *stringifiedboolean.StringifiedbooleanCaster() @@ -42,8 +39,6 @@ func (s *_indexSettingsLifecycle) IndexingComplete(stringifiedboolean types.Stri return s } -// The name of the policy to use to manage the index. For information about how -// Elasticsearch applies policy changes, see Policy updates. func (s *_indexSettingsLifecycle) Name(name string) *_indexSettingsLifecycle { s.v.Name = &name @@ -51,11 +46,6 @@ func (s *_indexSettingsLifecycle) Name(name string) *_indexSettingsLifecycle { return s } -// If specified, this is the timestamp used to calculate the index age for its -// phase transitions. Use this setting -// if you create a new index that contains old data and want to use the original -// creation date to calculate the index -// age. Specified as a Unix epoch value in milliseconds. func (s *_indexSettingsLifecycle) OriginationDate(originationdate int64) *_indexSettingsLifecycle { s.v.OriginationDate = &originationdate @@ -63,14 +53,6 @@ func (s *_indexSettingsLifecycle) OriginationDate(originationdate int64) *_index return s } -// Set to true to parse the origination date from the index name. This -// origination date is used to calculate the index age -// for its phase transitions. The index name must match the pattern -// ^.*-{date_format}-\\d+, where the date_format is -// yyyy.MM.dd and the trailing digits are optional. An index that was rolled -// over would normally match the full format, -// for example logs-2016.10.31-000002). If the index name doesn’t match the -// pattern, index creation fails. func (s *_indexSettingsLifecycle) ParseOriginationDate(parseoriginationdate bool) *_indexSettingsLifecycle { s.v.ParseOriginationDate = &parseoriginationdate @@ -78,9 +60,6 @@ func (s *_indexSettingsLifecycle) ParseOriginationDate(parseoriginationdate bool return s } -// Preference for the system that manages a data stream backing index -// (preferring ILM when both ILM and DLM are -// applicable for an index). func (s *_indexSettingsLifecycle) PreferIlm(preferilm string) *_indexSettingsLifecycle { s.v.PreferIlm = preferilm @@ -88,11 +67,6 @@ func (s *_indexSettingsLifecycle) PreferIlm(preferilm string) *_indexSettingsLif return s } -// 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 -// no longer the write index. For more -// information about rolling indices, see Rollover. func (s *_indexSettingsLifecycle) RolloverAlias(rolloveralias string) *_indexSettingsLifecycle { s.v.RolloverAlias = &rolloveralias diff --git a/typedapi/esdsl/indexsettingslifecyclestep.go b/typedapi/esdsl/indexsettingslifecyclestep.go index a8eb687269..d3bddff1d7 100644 --- a/typedapi/esdsl/indexsettingslifecyclestep.go +++ b/typedapi/esdsl/indexsettingslifecyclestep.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexSettingsLifecycleStep struct { v *types.IndexSettingsLifecycleStep @@ -32,9 +32,6 @@ func NewIndexSettingsLifecycleStep() *_indexSettingsLifecycleStep { } -// Time to wait for the cluster to resolve allocation issues during an ILM -// shrink action. Must be greater than 1h (1 hour). -// See Shard allocation for shrink. func (s *_indexSettingsLifecycleStep) WaitTimeThreshold(duration types.DurationVariant) *_indexSettingsLifecycleStep { s.v.WaitTimeThreshold = *duration.DurationCaster() diff --git a/typedapi/esdsl/indexsettingstimeseries.go b/typedapi/esdsl/indexsettingstimeseries.go index 08fe61f9b6..b2fa9258c4 100644 --- a/typedapi/esdsl/indexsettingstimeseries.go +++ b/typedapi/esdsl/indexsettingstimeseries.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexSettingsTimeSeries struct { v *types.IndexSettingsTimeSeries diff --git a/typedapi/esdsl/indexstate.go b/typedapi/esdsl/indexstate.go index a00705fc53..447e2e0505 100644 --- a/typedapi/esdsl/indexstate.go +++ b/typedapi/esdsl/indexstate.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexState struct { v *types.IndexState @@ -60,7 +60,6 @@ func (s *_indexState) DataStream(datastreamname string) *_indexState { return s } -// Default settings, included when the request's `include_default` is `true`. func (s *_indexState) Defaults(defaults types.IndexSettingsVariant) *_indexState { s.v.Defaults = defaults.IndexSettingsCaster() @@ -68,7 +67,6 @@ func (s *_indexState) Defaults(defaults types.IndexSettingsVariant) *_indexState return s } -// Data stream lifecycle applicable if this is a data stream. func (s *_indexState) Lifecycle(lifecycle types.DataStreamLifecycleVariant) *_indexState { s.v.Lifecycle = lifecycle.DataStreamLifecycleCaster() diff --git a/typedapi/esdsl/indextemplate.go b/typedapi/esdsl/indextemplate.go index 0c4630906d..3d00fa3d80 100644 --- a/typedapi/esdsl/indextemplate.go +++ b/typedapi/esdsl/indextemplate.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexTemplate struct { v *types.IndexTemplate @@ -39,9 +39,6 @@ func (s *_indexTemplate) AllowAutoCreate(allowautocreate bool) *_indexTemplate { return s } -// An ordered list of component template names. -// Component templates are merged in the order specified, meaning that the last -// component template specified has the highest precedence. func (s *_indexTemplate) ComposedOf(composedofs ...string) *_indexTemplate { for _, v := range composedofs { @@ -52,10 +49,6 @@ func (s *_indexTemplate) ComposedOf(composedofs ...string) *_indexTemplate { return s } -// If this object is included, the template is used to create data streams and -// their backing indices. -// Supports an empty object. -// Data streams require a matching index template with a `data_stream` object. func (s *_indexTemplate) DataStream(datastream types.IndexTemplateDataStreamConfigurationVariant) *_indexTemplate { s.v.DataStream = datastream.IndexTemplateDataStreamConfigurationCaster() @@ -63,10 +56,6 @@ func (s *_indexTemplate) DataStream(datastream types.IndexTemplateDataStreamConf return s } -// Marks this index template as deprecated. -// When creating or updating a non-deprecated index template that uses -// deprecated components, -// Elasticsearch will emit a deprecation warning. func (s *_indexTemplate) Deprecated(deprecated bool) *_indexTemplate { s.v.Deprecated = &deprecated @@ -74,7 +63,6 @@ func (s *_indexTemplate) Deprecated(deprecated bool) *_indexTemplate { return s } -// A list of component template names that are allowed to be absent. func (s *_indexTemplate) IgnoreMissingComponentTemplates(names ...string) *_indexTemplate { s.v.IgnoreMissingComponentTemplates = names @@ -82,7 +70,6 @@ func (s *_indexTemplate) IgnoreMissingComponentTemplates(names ...string) *_inde return s } -// Name of the index template. func (s *_indexTemplate) IndexPatterns(names ...string) *_indexTemplate { s.v.IndexPatterns = names @@ -90,8 +77,6 @@ func (s *_indexTemplate) IndexPatterns(names ...string) *_indexTemplate { return s } -// Optional user metadata about the index template. May have any contents. -// This map is not automatically generated by Elasticsearch. func (s *_indexTemplate) Meta_(metadata types.MetadataVariant) *_indexTemplate { s.v.Meta_ = *metadata.MetadataCaster() @@ -99,12 +84,6 @@ func (s *_indexTemplate) Meta_(metadata types.MetadataVariant) *_indexTemplate { return s } -// Priority to determine index template precedence when a new data stream or -// index is created. -// The index template with the highest priority is chosen. -// If no priority is specified the template is treated as though it is of -// priority 0 (lowest priority). -// This number is not automatically generated by Elasticsearch. func (s *_indexTemplate) Priority(priority int64) *_indexTemplate { s.v.Priority = &priority @@ -112,9 +91,6 @@ func (s *_indexTemplate) Priority(priority int64) *_indexTemplate { return s } -// Template to be applied. -// It may optionally include an `aliases`, `mappings`, or `settings` -// configuration. func (s *_indexTemplate) Template(template types.IndexTemplateSummaryVariant) *_indexTemplate { s.v.Template = template.IndexTemplateSummaryCaster() @@ -122,8 +98,6 @@ func (s *_indexTemplate) Template(template types.IndexTemplateSummaryVariant) *_ return s } -// Version number used to manage index templates externally. -// This number is not automatically generated by Elasticsearch. func (s *_indexTemplate) Version(versionnumber int64) *_indexTemplate { s.v.Version = &versionnumber diff --git a/typedapi/esdsl/indextemplatedatastreamconfiguration.go b/typedapi/esdsl/indextemplatedatastreamconfiguration.go index 72de9daf28..46133c2169 100644 --- a/typedapi/esdsl/indextemplatedatastreamconfiguration.go +++ b/typedapi/esdsl/indextemplatedatastreamconfiguration.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexTemplateDataStreamConfiguration struct { v *types.IndexTemplateDataStreamConfiguration @@ -32,7 +32,6 @@ func NewIndexTemplateDataStreamConfiguration() *_indexTemplateDataStreamConfigur } -// If true, the data stream supports custom routing. func (s *_indexTemplateDataStreamConfiguration) AllowCustomRouting(allowcustomrouting bool) *_indexTemplateDataStreamConfiguration { s.v.AllowCustomRouting = &allowcustomrouting @@ -40,7 +39,6 @@ func (s *_indexTemplateDataStreamConfiguration) AllowCustomRouting(allowcustomro return s } -// If true, the data stream is hidden. func (s *_indexTemplateDataStreamConfiguration) Hidden(hidden bool) *_indexTemplateDataStreamConfiguration { s.v.Hidden = &hidden diff --git a/typedapi/esdsl/indextemplatemapping.go b/typedapi/esdsl/indextemplatemapping.go index 3c84952889..d34200f621 100644 --- a/typedapi/esdsl/indextemplatemapping.go +++ b/typedapi/esdsl/indextemplatemapping.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexTemplateMapping struct { v *types.IndexTemplateMapping @@ -32,12 +32,6 @@ func NewIndexTemplateMapping() *_indexTemplateMapping { } -// Aliases to add. -// If the index template includes a `data_stream` object, these are data stream -// aliases. -// Otherwise, these are index aliases. -// Data stream aliases ignore the `index_routing`, `routing`, and -// `search_routing` options. func (s *_indexTemplateMapping) Aliases(aliases map[string]types.Alias) *_indexTemplateMapping { s.v.Aliases = aliases @@ -66,9 +60,6 @@ func (s *_indexTemplateMapping) Lifecycle(lifecycle types.DataStreamLifecycleVar return s } -// Mapping for fields in the index. -// If specified, this mapping can include field names, field data types, and -// mapping parameters. func (s *_indexTemplateMapping) Mappings(mappings types.TypeMappingVariant) *_indexTemplateMapping { s.v.Mappings = mappings.TypeMappingCaster() @@ -76,7 +67,6 @@ func (s *_indexTemplateMapping) Mappings(mappings types.TypeMappingVariant) *_in return s } -// Configuration options for the index. func (s *_indexTemplateMapping) Settings(settings types.IndexSettingsVariant) *_indexTemplateMapping { s.v.Settings = settings.IndexSettingsCaster() diff --git a/typedapi/esdsl/indextemplatesummary.go b/typedapi/esdsl/indextemplatesummary.go index af52d3e6b3..ed3f215573 100644 --- a/typedapi/esdsl/indextemplatesummary.go +++ b/typedapi/esdsl/indextemplatesummary.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexTemplateSummary struct { v *types.IndexTemplateSummary @@ -32,12 +32,6 @@ func NewIndexTemplateSummary() *_indexTemplateSummary { } -// Aliases to add. -// If the index template includes a `data_stream` object, these are data stream -// aliases. -// Otherwise, these are index aliases. -// Data stream aliases ignore the `index_routing`, `routing`, and -// `search_routing` options. func (s *_indexTemplateSummary) Aliases(aliases map[string]types.Alias) *_indexTemplateSummary { s.v.Aliases = aliases @@ -66,9 +60,6 @@ func (s *_indexTemplateSummary) Lifecycle(lifecycle types.DataStreamLifecycleWit return s } -// Mapping for fields in the index. -// If specified, this mapping can include field names, field data types, and -// mapping parameters. func (s *_indexTemplateSummary) Mappings(mappings types.TypeMappingVariant) *_indexTemplateSummary { s.v.Mappings = mappings.TypeMappingCaster() @@ -76,7 +67,6 @@ func (s *_indexTemplateSummary) Mappings(mappings types.TypeMappingVariant) *_in return s } -// Configuration options for the index. func (s *_indexTemplateSummary) Settings(settings types.IndexSettingsVariant) *_indexTemplateSummary { s.v.Settings = settings.IndexSettingsCaster() diff --git a/typedapi/esdsl/indexversioning.go b/typedapi/esdsl/indexversioning.go index 9a34efad08..79bd8afed4 100644 --- a/typedapi/esdsl/indexversioning.go +++ b/typedapi/esdsl/indexversioning.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indexVersioning struct { v *types.IndexVersioning diff --git a/typedapi/esdsl/indices.go b/typedapi/esdsl/indices.go index 182afa005b..6c6449ea81 100644 --- a/typedapi/esdsl/indices.go +++ b/typedapi/esdsl/indices.go @@ -16,13 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _indices struct { v types.Indices } diff --git a/typedapi/esdsl/indicesaction.go b/typedapi/esdsl/indicesaction.go index 6a4133daf9..f98c5c102b 100644 --- a/typedapi/esdsl/indicesaction.go +++ b/typedapi/esdsl/indicesaction.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _indicesAction struct { @@ -34,8 +34,6 @@ func NewIndicesAction() *_indicesAction { return &_indicesAction{v: types.NewIndicesAction()} } -// Adds a data stream or index to an alias. -// If the alias doesn’t exist, the `add` action creates it. func (s *_indicesAction) Add(add types.AddActionVariant) *_indicesAction { s.v.Add = add.AddActionCaster() @@ -55,7 +53,6 @@ func (s *_indicesAction) AdditionalIndicesActionProperty(key string, value json. return s } -// Removes a data stream or index from an alias. func (s *_indicesAction) Remove(remove types.RemoveActionVariant) *_indicesAction { s.v.Remove = remove.RemoveActionCaster() @@ -63,8 +60,6 @@ func (s *_indicesAction) Remove(remove types.RemoveActionVariant) *_indicesActio return s } -// Deletes an index. -// You cannot use this action on aliases or data streams. func (s *_indicesAction) RemoveIndex(removeindex types.RemoveIndexActionVariant) *_indicesAction { s.v.RemoveIndex = removeindex.RemoveIndexActionCaster() diff --git a/typedapi/esdsl/indicesindexingpressure.go b/typedapi/esdsl/indicesindexingpressure.go index 8563e18525..954be244f4 100644 --- a/typedapi/esdsl/indicesindexingpressure.go +++ b/typedapi/esdsl/indicesindexingpressure.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indicesIndexingPressure struct { v *types.IndicesIndexingPressure diff --git a/typedapi/esdsl/indicesindexingpressurememory.go b/typedapi/esdsl/indicesindexingpressurememory.go index dcd2d0d848..62e28bb2b0 100644 --- a/typedapi/esdsl/indicesindexingpressurememory.go +++ b/typedapi/esdsl/indicesindexingpressurememory.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indicesIndexingPressureMemory struct { v *types.IndicesIndexingPressureMemory @@ -32,11 +32,6 @@ func NewIndicesIndexingPressureMemory() *_indicesIndexingPressureMemory { } -// Number of outstanding bytes that may be consumed by indexing requests. When -// this limit is reached or exceeded, -// the node will reject new coordinating and primary operations. When replica -// operations consume 1.5x this limit, -// the node will reject new replica operations. Defaults to 10% of the heap. func (s *_indicesIndexingPressureMemory) Limit(limit int) *_indicesIndexingPressureMemory { s.v.Limit = &limit diff --git a/typedapi/esdsl/indicesmodifyaction.go b/typedapi/esdsl/indicesmodifyaction.go index 6a250fdaea..414f908e86 100644 --- a/typedapi/esdsl/indicesmodifyaction.go +++ b/typedapi/esdsl/indicesmodifyaction.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _indicesModifyAction struct { @@ -34,11 +34,6 @@ func NewIndicesModifyAction() *_indicesModifyAction { return &_indicesModifyAction{v: types.NewIndicesModifyAction()} } -// Adds an existing index as a backing index for a data stream. -// The index is hidden as part of this operation. -// WARNING: Adding indices with the `add_backing_index` action can potentially -// result in improper data stream behavior. -// This should be considered an expert level API. func (s *_indicesModifyAction) AddBackingIndex(addbackingindex types.IndexAndDataStreamActionVariant) *_indicesModifyAction { s.v.AddBackingIndex = addbackingindex.IndexAndDataStreamActionCaster() @@ -58,9 +53,6 @@ func (s *_indicesModifyAction) AdditionalIndicesModifyActionProperty(key string, return s } -// Removes a backing index from a data stream. -// The index is unhidden as part of this operation. -// A data stream’s write index cannot be removed. func (s *_indicesModifyAction) RemoveBackingIndex(removebackingindex types.IndexAndDataStreamActionVariant) *_indicesModifyAction { s.v.RemoveBackingIndex = removebackingindex.IndexAndDataStreamActionCaster() diff --git a/typedapi/esdsl/indicesoptions.go b/typedapi/esdsl/indicesoptions.go index 77fea3de3a..3c29fff503 100644 --- a/typedapi/esdsl/indicesoptions.go +++ b/typedapi/esdsl/indicesoptions.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) type _indicesOptions struct { @@ -35,12 +35,6 @@ func NewIndicesOptions() *_indicesOptions { } -// If false, the request returns an error if any wildcard expression, index -// alias, or `_all` value targets only -// missing or closed indices. This behavior applies even if the request targets -// other open indices. For example, -// a request targeting `foo*,bar*` returns an error if an index starts with -// `foo` but no index starts with `bar`. func (s *_indicesOptions) AllowNoIndices(allownoindices bool) *_indicesOptions { s.v.AllowNoIndices = &allownoindices @@ -48,11 +42,6 @@ func (s *_indicesOptions) AllowNoIndices(allownoindices bool) *_indicesOptions { return s } -// 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`. func (s *_indicesOptions) ExpandWildcards(expandwildcards ...expandwildcard.ExpandWildcard) *_indicesOptions { s.v.ExpandWildcards = expandwildcards @@ -60,7 +49,6 @@ func (s *_indicesOptions) ExpandWildcards(expandwildcards ...expandwildcard.Expa return s } -// If true, concrete, expanded or aliased indices are ignored when frozen. func (s *_indicesOptions) IgnoreThrottled(ignorethrottled bool) *_indicesOptions { s.v.IgnoreThrottled = &ignorethrottled @@ -68,7 +56,6 @@ func (s *_indicesOptions) IgnoreThrottled(ignorethrottled bool) *_indicesOptions return s } -// If true, missing or closed indices are not included in the response. func (s *_indicesOptions) IgnoreUnavailable(ignoreunavailable bool) *_indicesOptions { s.v.IgnoreUnavailable = &ignoreunavailable diff --git a/typedapi/esdsl/indicesprivileges.go b/typedapi/esdsl/indicesprivileges.go index 30322e0544..572af77651 100644 --- a/typedapi/esdsl/indicesprivileges.go +++ b/typedapi/esdsl/indicesprivileges.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexprivilege" ) type _indicesPrivileges struct { @@ -35,12 +35,6 @@ func NewIndicesPrivileges() *_indicesPrivileges { } -// Set to `true` if using wildcard or regular expressions for patterns that -// cover restricted indices. Implicitly, restricted indices have limited -// privileges that can cause pattern tests to fail. If restricted indices are -// explicitly included in the `names` list, Elasticsearch checks privileges -// against these indices regardless of the value set for -// `allow_restricted_indices`. func (s *_indicesPrivileges) AllowRestrictedIndices(allowrestrictedindices bool) *_indicesPrivileges { s.v.AllowRestrictedIndices = &allowrestrictedindices @@ -48,7 +42,6 @@ func (s *_indicesPrivileges) AllowRestrictedIndices(allowrestrictedindices bool) return s } -// The document fields that the owners of the role have read access to. func (s *_indicesPrivileges) FieldSecurity(fieldsecurity types.FieldSecurityVariant) *_indicesPrivileges { s.v.FieldSecurity = fieldsecurity.FieldSecurityCaster() @@ -56,8 +49,6 @@ func (s *_indicesPrivileges) FieldSecurity(fieldsecurity types.FieldSecurityVari return s } -// A list of indices (or index name patterns) to which the permissions in this -// entry apply. func (s *_indicesPrivileges) Names(names ...string) *_indicesPrivileges { s.v.Names = make([]string, len(names)) @@ -66,8 +57,6 @@ func (s *_indicesPrivileges) Names(names ...string) *_indicesPrivileges { return s } -// The index level privileges that owners of the role have on the specified -// indices. func (s *_indicesPrivileges) Privileges(privileges ...indexprivilege.IndexPrivilege) *_indicesPrivileges { for _, v := range privileges { @@ -78,9 +67,6 @@ func (s *_indicesPrivileges) Privileges(privileges ...indexprivilege.IndexPrivil return s } -// A search query that defines the documents the owners of the role have access -// to. A document within the specified indices must match this query for it to -// be accessible by the owners of the role. func (s *_indicesPrivileges) Query(indicesprivilegesquery types.IndicesPrivilegesQueryVariant) *_indicesPrivileges { s.v.Query = *indicesprivilegesquery.IndicesPrivilegesQueryCaster() diff --git a/typedapi/esdsl/indicesprivilegesquery.go b/typedapi/esdsl/indicesprivilegesquery.go index 39a1b9c11e..f93297c356 100644 --- a/typedapi/esdsl/indicesprivilegesquery.go +++ b/typedapi/esdsl/indicesprivilegesquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _indicesPrivilegesQuery struct { diff --git a/typedapi/esdsl/indonesiananalyzer.go b/typedapi/esdsl/indonesiananalyzer.go index 61c221c26e..c12c9c60e2 100644 --- a/typedapi/esdsl/indonesiananalyzer.go +++ b/typedapi/esdsl/indonesiananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _indonesianAnalyzer struct { v *types.IndonesianAnalyzer diff --git a/typedapi/esdsl/inferenceaggregation.go b/typedapi/esdsl/inferenceaggregation.go index 88a0d929d8..77b2162798 100644 --- a/typedapi/esdsl/inferenceaggregation.go +++ b/typedapi/esdsl/inferenceaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _inferenceAggregation struct { @@ -37,7 +37,6 @@ func NewInferenceAggregation() *_inferenceAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_inferenceAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_inferenceAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_inferenceAggregation) BucketsPath(bucketspath types.BucketsPathVariant return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_inferenceAggregation) Format(format string) *_inferenceAggregation { s.v.Format = &format @@ -55,14 +51,12 @@ func (s *_inferenceAggregation) Format(format string) *_inferenceAggregation { return s } -// Policy to apply when gaps are found in the data. func (s *_inferenceAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_inferenceAggregation { s.v.GapPolicy = &gappolicy return s } -// Contains the inference type and its options. func (s *_inferenceAggregation) InferenceConfig(inferenceconfig types.InferenceConfigContainerVariant) *_inferenceAggregation { s.v.InferenceConfig = inferenceconfig.InferenceConfigContainerCaster() @@ -70,7 +64,6 @@ func (s *_inferenceAggregation) InferenceConfig(inferenceconfig types.InferenceC return s } -// The ID or alias for the trained model. func (s *_inferenceAggregation) ModelId(name string) *_inferenceAggregation { s.v.ModelId = name diff --git a/typedapi/esdsl/inferencechunkingsettings.go b/typedapi/esdsl/inferencechunkingsettings.go index 1dbbf451d4..556a0224c0 100644 --- a/typedapi/esdsl/inferencechunkingsettings.go +++ b/typedapi/esdsl/inferencechunkingsettings.go @@ -16,41 +16,22 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import ( - "encoding/json" - - "github.com/elastic/go-elasticsearch/v8/typedapi/types" -) +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _inferenceChunkingSettings struct { v *types.InferenceChunkingSettings } -func NewInferenceChunkingSettings(service string) *_inferenceChunkingSettings { - - tmp := &_inferenceChunkingSettings{v: types.NewInferenceChunkingSettings()} - - tmp.Service(service) - - return tmp - -} - -// Chunking configuration object -func (s *_inferenceChunkingSettings) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *_inferenceChunkingSettings { +func NewInferenceChunkingSettings() *_inferenceChunkingSettings { - s.v.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + return &_inferenceChunkingSettings{v: types.NewInferenceChunkingSettings()} - return s } -// The maximum size of a chunk in words. -// This value cannot be higher than `300` or lower than `20` (for `sentence` -// strategy) or `10` (for `word` strategy). func (s *_inferenceChunkingSettings) MaxChunkSize(maxchunksize int) *_inferenceChunkingSettings { s.v.MaxChunkSize = &maxchunksize @@ -58,9 +39,6 @@ func (s *_inferenceChunkingSettings) MaxChunkSize(maxchunksize int) *_inferenceC return s } -// The number of overlapping words for chunks. -// It is applicable only to a `word` chunking strategy. -// This value cannot be higher than half the `max_chunk_size` value. func (s *_inferenceChunkingSettings) Overlap(overlap int) *_inferenceChunkingSettings { s.v.Overlap = &overlap @@ -68,9 +46,6 @@ func (s *_inferenceChunkingSettings) Overlap(overlap int) *_inferenceChunkingSet return s } -// The number of overlapping sentences for chunks. -// It is applicable only for a `sentence` chunking strategy. -// It can be either `1` or `0`. func (s *_inferenceChunkingSettings) SentenceOverlap(sentenceoverlap int) *_inferenceChunkingSettings { s.v.SentenceOverlap = &sentenceoverlap @@ -78,23 +53,6 @@ func (s *_inferenceChunkingSettings) SentenceOverlap(sentenceoverlap int) *_infe return s } -// The service type -func (s *_inferenceChunkingSettings) Service(service string) *_inferenceChunkingSettings { - - s.v.Service = service - - return s -} - -// Settings specific to the service -func (s *_inferenceChunkingSettings) ServiceSettings(servicesettings json.RawMessage) *_inferenceChunkingSettings { - - s.v.ServiceSettings = servicesettings - - return s -} - -// The chunking strategy: `sentence` or `word`. func (s *_inferenceChunkingSettings) Strategy(strategy string) *_inferenceChunkingSettings { s.v.Strategy = &strategy @@ -102,14 +60,6 @@ func (s *_inferenceChunkingSettings) Strategy(strategy string) *_inferenceChunki return s } -// Task settings specific to the service and task type -func (s *_inferenceChunkingSettings) TaskSettings(tasksettings json.RawMessage) *_inferenceChunkingSettings { - - s.v.TaskSettings = tasksettings - - return s -} - func (s *_inferenceChunkingSettings) InferenceChunkingSettingsCaster() *types.InferenceChunkingSettings { return s.v } diff --git a/typedapi/esdsl/inferenceconfig.go b/typedapi/esdsl/inferenceconfig.go index 4f689f7d18..1c976e4028 100644 --- a/typedapi/esdsl/inferenceconfig.go +++ b/typedapi/esdsl/inferenceconfig.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _inferenceConfig struct { @@ -46,7 +46,6 @@ func (s *_inferenceConfig) AdditionalInferenceConfigProperty(key string, value j return s } -// Classification configuration for inference. func (s *_inferenceConfig) Classification(classification types.InferenceConfigClassificationVariant) *_inferenceConfig { s.v.Classification = classification.InferenceConfigClassificationCaster() @@ -54,7 +53,6 @@ func (s *_inferenceConfig) Classification(classification types.InferenceConfigCl return s } -// Regression configuration for inference. func (s *_inferenceConfig) Regression(regression types.InferenceConfigRegressionVariant) *_inferenceConfig { s.v.Regression = regression.InferenceConfigRegressionCaster() diff --git a/typedapi/esdsl/inferenceconfigclassification.go b/typedapi/esdsl/inferenceconfigclassification.go index 61fb634f31..6a33773c49 100644 --- a/typedapi/esdsl/inferenceconfigclassification.go +++ b/typedapi/esdsl/inferenceconfigclassification.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _inferenceConfigClassification struct { v *types.InferenceConfigClassification @@ -33,7 +33,6 @@ func NewInferenceConfigClassification() *_inferenceConfigClassification { } -// Specifies the number of top class predictions to return. func (s *_inferenceConfigClassification) NumTopClasses(numtopclasses int) *_inferenceConfigClassification { s.v.NumTopClasses = &numtopclasses @@ -41,7 +40,6 @@ func (s *_inferenceConfigClassification) NumTopClasses(numtopclasses int) *_infe return s } -// Specifies the maximum number of feature importance values per document. func (s *_inferenceConfigClassification) NumTopFeatureImportanceValues(numtopfeatureimportancevalues int) *_inferenceConfigClassification { s.v.NumTopFeatureImportanceValues = &numtopfeatureimportancevalues @@ -49,8 +47,6 @@ func (s *_inferenceConfigClassification) NumTopFeatureImportanceValues(numtopfea return s } -// Specifies the type of the predicted field to write. -// Valid values are: `string`, `number`, `boolean`. func (s *_inferenceConfigClassification) PredictionFieldType(predictionfieldtype string) *_inferenceConfigClassification { s.v.PredictionFieldType = &predictionfieldtype @@ -58,8 +54,6 @@ func (s *_inferenceConfigClassification) PredictionFieldType(predictionfieldtype return s } -// The field that is added to incoming documents to contain the inference -// prediction. func (s *_inferenceConfigClassification) ResultsField(field string) *_inferenceConfigClassification { s.v.ResultsField = &field @@ -67,7 +61,6 @@ func (s *_inferenceConfigClassification) ResultsField(field string) *_inferenceC return s } -// Specifies the field to which the top classes are written. func (s *_inferenceConfigClassification) TopClassesResultsField(field string) *_inferenceConfigClassification { s.v.TopClassesResultsField = &field diff --git a/typedapi/esdsl/inferenceconfigcontainer.go b/typedapi/esdsl/inferenceconfigcontainer.go index c282792258..ade8e91da5 100644 --- a/typedapi/esdsl/inferenceconfigcontainer.go +++ b/typedapi/esdsl/inferenceconfigcontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _inferenceConfigContainer struct { @@ -46,7 +46,6 @@ func (s *_inferenceConfigContainer) AdditionalInferenceConfigContainerProperty(k return s } -// Classification configuration for inference. func (s *_inferenceConfigContainer) Classification(classification types.ClassificationInferenceOptionsVariant) *_inferenceConfigContainer { s.v.Classification = classification.ClassificationInferenceOptionsCaster() @@ -54,7 +53,6 @@ func (s *_inferenceConfigContainer) Classification(classification types.Classifi return s } -// Regression configuration for inference. func (s *_inferenceConfigContainer) Regression(regression types.RegressionInferenceOptionsVariant) *_inferenceConfigContainer { s.v.Regression = regression.RegressionInferenceOptionsCaster() diff --git a/typedapi/esdsl/inferenceconfigcreatecontainer.go b/typedapi/esdsl/inferenceconfigcreatecontainer.go index 0db95a0899..484eee348e 100644 --- a/typedapi/esdsl/inferenceconfigcreatecontainer.go +++ b/typedapi/esdsl/inferenceconfigcreatecontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _inferenceConfigCreateContainer struct { @@ -46,7 +46,6 @@ func (s *_inferenceConfigCreateContainer) AdditionalInferenceConfigCreateContain return s } -// Classification configuration for inference. func (s *_inferenceConfigCreateContainer) Classification(classification types.ClassificationInferenceOptionsVariant) *_inferenceConfigCreateContainer { s.v.Classification = classification.ClassificationInferenceOptionsCaster() @@ -54,7 +53,6 @@ func (s *_inferenceConfigCreateContainer) Classification(classification types.Cl return s } -// Fill mask configuration for inference. func (s *_inferenceConfigCreateContainer) FillMask(fillmask types.FillMaskInferenceOptionsVariant) *_inferenceConfigCreateContainer { s.v.FillMask = fillmask.FillMaskInferenceOptionsCaster() @@ -62,7 +60,13 @@ func (s *_inferenceConfigCreateContainer) FillMask(fillmask types.FillMaskInfere return s } -// Named entity recognition configuration for inference. +func (s *_inferenceConfigCreateContainer) LearningToRank(learningtorank types.LearningToRankConfigVariant) *_inferenceConfigCreateContainer { + + s.v.LearningToRank = learningtorank.LearningToRankConfigCaster() + + return s +} + func (s *_inferenceConfigCreateContainer) Ner(ner types.NerInferenceOptionsVariant) *_inferenceConfigCreateContainer { s.v.Ner = ner.NerInferenceOptionsCaster() @@ -70,7 +74,6 @@ func (s *_inferenceConfigCreateContainer) Ner(ner types.NerInferenceOptionsVaria return s } -// Pass through configuration for inference. func (s *_inferenceConfigCreateContainer) PassThrough(passthrough types.PassThroughInferenceOptionsVariant) *_inferenceConfigCreateContainer { s.v.PassThrough = passthrough.PassThroughInferenceOptionsCaster() @@ -78,7 +81,6 @@ func (s *_inferenceConfigCreateContainer) PassThrough(passthrough types.PassThro return s } -// Question answering configuration for inference. func (s *_inferenceConfigCreateContainer) QuestionAnswering(questionanswering types.QuestionAnsweringInferenceOptionsVariant) *_inferenceConfigCreateContainer { s.v.QuestionAnswering = questionanswering.QuestionAnsweringInferenceOptionsCaster() @@ -86,7 +88,6 @@ func (s *_inferenceConfigCreateContainer) QuestionAnswering(questionanswering ty return s } -// Regression configuration for inference. func (s *_inferenceConfigCreateContainer) Regression(regression types.RegressionInferenceOptionsVariant) *_inferenceConfigCreateContainer { s.v.Regression = regression.RegressionInferenceOptionsCaster() @@ -94,7 +95,6 @@ func (s *_inferenceConfigCreateContainer) Regression(regression types.Regression return s } -// Text classification configuration for inference. func (s *_inferenceConfigCreateContainer) TextClassification(textclassification types.TextClassificationInferenceOptionsVariant) *_inferenceConfigCreateContainer { s.v.TextClassification = textclassification.TextClassificationInferenceOptionsCaster() @@ -102,7 +102,6 @@ func (s *_inferenceConfigCreateContainer) TextClassification(textclassification return s } -// Text embedding configuration for inference. func (s *_inferenceConfigCreateContainer) TextEmbedding(textembedding types.TextEmbeddingInferenceOptionsVariant) *_inferenceConfigCreateContainer { s.v.TextEmbedding = textembedding.TextEmbeddingInferenceOptionsCaster() @@ -110,7 +109,6 @@ func (s *_inferenceConfigCreateContainer) TextEmbedding(textembedding types.Text return s } -// Text expansion configuration for inference. func (s *_inferenceConfigCreateContainer) TextExpansion(textexpansion types.TextExpansionInferenceOptionsVariant) *_inferenceConfigCreateContainer { s.v.TextExpansion = textexpansion.TextExpansionInferenceOptionsCaster() @@ -118,7 +116,6 @@ func (s *_inferenceConfigCreateContainer) TextExpansion(textexpansion types.Text return s } -// Zeroshot classification configuration for inference. func (s *_inferenceConfigCreateContainer) ZeroShotClassification(zeroshotclassification types.ZeroShotClassificationInferenceOptionsVariant) *_inferenceConfigCreateContainer { s.v.ZeroShotClassification = zeroshotclassification.ZeroShotClassificationInferenceOptionsCaster() diff --git a/typedapi/esdsl/inferenceconfigregression.go b/typedapi/esdsl/inferenceconfigregression.go index 0c8762bf2c..5d49e59116 100644 --- a/typedapi/esdsl/inferenceconfigregression.go +++ b/typedapi/esdsl/inferenceconfigregression.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _inferenceConfigRegression struct { v *types.InferenceConfigRegression @@ -33,7 +33,6 @@ func NewInferenceConfigRegression() *_inferenceConfigRegression { } -// Specifies the maximum number of feature importance values per document. func (s *_inferenceConfigRegression) NumTopFeatureImportanceValues(numtopfeatureimportancevalues int) *_inferenceConfigRegression { s.v.NumTopFeatureImportanceValues = &numtopfeatureimportancevalues @@ -41,8 +40,6 @@ func (s *_inferenceConfigRegression) NumTopFeatureImportanceValues(numtopfeature return s } -// The field that is added to incoming documents to contain the inference -// prediction. func (s *_inferenceConfigRegression) ResultsField(field string) *_inferenceConfigRegression { s.v.ResultsField = &field diff --git a/typedapi/esdsl/inferenceconfigupdatecontainer.go b/typedapi/esdsl/inferenceconfigupdatecontainer.go index 6b7f57fe67..5aeeaee3a7 100644 --- a/typedapi/esdsl/inferenceconfigupdatecontainer.go +++ b/typedapi/esdsl/inferenceconfigupdatecontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _inferenceConfigUpdateContainer struct { @@ -46,7 +46,6 @@ func (s *_inferenceConfigUpdateContainer) AdditionalInferenceConfigUpdateContain return s } -// Classification configuration for inference. func (s *_inferenceConfigUpdateContainer) Classification(classification types.ClassificationInferenceOptionsVariant) *_inferenceConfigUpdateContainer { s.v.Classification = classification.ClassificationInferenceOptionsCaster() @@ -54,7 +53,6 @@ func (s *_inferenceConfigUpdateContainer) Classification(classification types.Cl return s } -// Fill mask configuration for inference. func (s *_inferenceConfigUpdateContainer) FillMask(fillmask types.FillMaskInferenceUpdateOptionsVariant) *_inferenceConfigUpdateContainer { s.v.FillMask = fillmask.FillMaskInferenceUpdateOptionsCaster() @@ -62,7 +60,6 @@ func (s *_inferenceConfigUpdateContainer) FillMask(fillmask types.FillMaskInfere return s } -// Named entity recognition configuration for inference. func (s *_inferenceConfigUpdateContainer) Ner(ner types.NerInferenceUpdateOptionsVariant) *_inferenceConfigUpdateContainer { s.v.Ner = ner.NerInferenceUpdateOptionsCaster() @@ -70,7 +67,6 @@ func (s *_inferenceConfigUpdateContainer) Ner(ner types.NerInferenceUpdateOption return s } -// Pass through configuration for inference. func (s *_inferenceConfigUpdateContainer) PassThrough(passthrough types.PassThroughInferenceUpdateOptionsVariant) *_inferenceConfigUpdateContainer { s.v.PassThrough = passthrough.PassThroughInferenceUpdateOptionsCaster() @@ -78,7 +74,6 @@ func (s *_inferenceConfigUpdateContainer) PassThrough(passthrough types.PassThro return s } -// Question answering configuration for inference func (s *_inferenceConfigUpdateContainer) QuestionAnswering(questionanswering types.QuestionAnsweringInferenceUpdateOptionsVariant) *_inferenceConfigUpdateContainer { s.v.QuestionAnswering = questionanswering.QuestionAnsweringInferenceUpdateOptionsCaster() @@ -86,7 +81,6 @@ func (s *_inferenceConfigUpdateContainer) QuestionAnswering(questionanswering ty return s } -// Regression configuration for inference. func (s *_inferenceConfigUpdateContainer) Regression(regression types.RegressionInferenceOptionsVariant) *_inferenceConfigUpdateContainer { s.v.Regression = regression.RegressionInferenceOptionsCaster() @@ -94,7 +88,6 @@ func (s *_inferenceConfigUpdateContainer) Regression(regression types.Regression return s } -// Text classification configuration for inference. func (s *_inferenceConfigUpdateContainer) TextClassification(textclassification types.TextClassificationInferenceUpdateOptionsVariant) *_inferenceConfigUpdateContainer { s.v.TextClassification = textclassification.TextClassificationInferenceUpdateOptionsCaster() @@ -102,7 +95,6 @@ func (s *_inferenceConfigUpdateContainer) TextClassification(textclassification return s } -// Text embedding configuration for inference. func (s *_inferenceConfigUpdateContainer) TextEmbedding(textembedding types.TextEmbeddingInferenceUpdateOptionsVariant) *_inferenceConfigUpdateContainer { s.v.TextEmbedding = textembedding.TextEmbeddingInferenceUpdateOptionsCaster() @@ -110,7 +102,6 @@ func (s *_inferenceConfigUpdateContainer) TextEmbedding(textembedding types.Text return s } -// Text expansion configuration for inference. func (s *_inferenceConfigUpdateContainer) TextExpansion(textexpansion types.TextExpansionInferenceUpdateOptionsVariant) *_inferenceConfigUpdateContainer { s.v.TextExpansion = textexpansion.TextExpansionInferenceUpdateOptionsCaster() @@ -118,7 +109,6 @@ func (s *_inferenceConfigUpdateContainer) TextExpansion(textexpansion types.Text return s } -// Zeroshot classification configuration for inference. func (s *_inferenceConfigUpdateContainer) ZeroShotClassification(zeroshotclassification types.ZeroShotClassificationInferenceUpdateOptionsVariant) *_inferenceConfigUpdateContainer { s.v.ZeroShotClassification = zeroshotclassification.ZeroShotClassificationInferenceUpdateOptionsCaster() diff --git a/typedapi/esdsl/inferenceendpoint.go b/typedapi/esdsl/inferenceendpoint.go index 1a28c2089f..39f60a33a5 100644 --- a/typedapi/esdsl/inferenceendpoint.go +++ b/typedapi/esdsl/inferenceendpoint.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _inferenceEndpoint struct { @@ -40,7 +40,6 @@ func NewInferenceEndpoint(service string) *_inferenceEndpoint { } -// Chunking configuration object func (s *_inferenceEndpoint) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *_inferenceEndpoint { s.v.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() @@ -48,7 +47,6 @@ func (s *_inferenceEndpoint) ChunkingSettings(chunkingsettings types.InferenceCh return s } -// The service type func (s *_inferenceEndpoint) Service(service string) *_inferenceEndpoint { s.v.Service = service @@ -56,7 +54,6 @@ func (s *_inferenceEndpoint) Service(service string) *_inferenceEndpoint { return s } -// Settings specific to the service func (s *_inferenceEndpoint) ServiceSettings(servicesettings json.RawMessage) *_inferenceEndpoint { s.v.ServiceSettings = servicesettings @@ -64,7 +61,6 @@ func (s *_inferenceEndpoint) ServiceSettings(servicesettings json.RawMessage) *_ return s } -// Task settings specific to the service and task type func (s *_inferenceEndpoint) TaskSettings(tasksettings json.RawMessage) *_inferenceEndpoint { s.v.TaskSettings = tasksettings diff --git a/typedapi/esdsl/inferenceprocessor.go b/typedapi/esdsl/inferenceprocessor.go index 9d72e2ba5f..fe41cbaeae 100644 --- a/typedapi/esdsl/inferenceprocessor.go +++ b/typedapi/esdsl/inferenceprocessor.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _inferenceProcessor struct { @@ -39,8 +39,6 @@ func NewInferenceProcessor() *_inferenceProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_inferenceProcessor) Description(description string) *_inferenceProcessor { s.v.Description = &description @@ -48,9 +46,6 @@ func (s *_inferenceProcessor) Description(description string) *_inferenceProcess return s } -// Maps the document field names to the known field names of the model. -// This mapping takes precedence over any default mappings provided in the model -// configuration. func (s *_inferenceProcessor) FieldMap(fieldmap map[string]json.RawMessage) *_inferenceProcessor { s.v.FieldMap = fieldmap @@ -72,7 +67,6 @@ func (s *_inferenceProcessor) AddFieldMap(key string, value json.RawMessage) *_i return s } -// Conditionally execute the processor. func (s *_inferenceProcessor) If(if_ types.ScriptVariant) *_inferenceProcessor { s.v.If = if_.ScriptCaster() @@ -80,7 +74,6 @@ func (s *_inferenceProcessor) If(if_ types.ScriptVariant) *_inferenceProcessor { return s } -// Ignore failures for the processor. func (s *_inferenceProcessor) IgnoreFailure(ignorefailure bool) *_inferenceProcessor { s.v.IgnoreFailure = &ignorefailure @@ -88,7 +81,13 @@ func (s *_inferenceProcessor) IgnoreFailure(ignorefailure bool) *_inferenceProce return s } -// Contains the inference type and its options. +func (s *_inferenceProcessor) IgnoreMissing(ignoremissing bool) *_inferenceProcessor { + + s.v.IgnoreMissing = &ignoremissing + + return s +} + func (s *_inferenceProcessor) InferenceConfig(inferenceconfig types.InferenceConfigVariant) *_inferenceProcessor { s.v.InferenceConfig = inferenceconfig.InferenceConfigCaster() @@ -96,7 +95,16 @@ func (s *_inferenceProcessor) InferenceConfig(inferenceconfig types.InferenceCon return s } -// The ID or alias for the trained model, or the ID of the deployment. +func (s *_inferenceProcessor) InputOutput(inputoutputs ...types.InputConfigVariant) *_inferenceProcessor { + + s.v.InputOutput = make([]types.InputConfig, len(inputoutputs)) + for i, v := range inputoutputs { + s.v.InputOutput[i] = *v.InputConfigCaster() + } + + return s +} + func (s *_inferenceProcessor) ModelId(id string) *_inferenceProcessor { s.v.ModelId = id @@ -104,7 +112,6 @@ func (s *_inferenceProcessor) ModelId(id string) *_inferenceProcessor { return s } -// Handle failures for the processor. func (s *_inferenceProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_inferenceProcessor { for _, v := range onfailures { @@ -115,8 +122,6 @@ func (s *_inferenceProcessor) OnFailure(onfailures ...types.ProcessorContainerVa return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_inferenceProcessor) Tag(tag string) *_inferenceProcessor { s.v.Tag = &tag @@ -124,7 +129,6 @@ func (s *_inferenceProcessor) Tag(tag string) *_inferenceProcessor { return s } -// Field added to incoming documents to contain results objects. func (s *_inferenceProcessor) TargetField(field string) *_inferenceProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/ingestpipeline.go b/typedapi/esdsl/ingestpipeline.go index 63eb543c85..02ee4716e5 100644 --- a/typedapi/esdsl/ingestpipeline.go +++ b/typedapi/esdsl/ingestpipeline.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _ingestPipeline struct { v *types.IngestPipeline @@ -32,10 +32,6 @@ func NewIngestPipeline() *_ingestPipeline { } -// Marks this ingest pipeline as deprecated. -// When a deprecated ingest pipeline is referenced as the default or final -// pipeline when creating or updating a non-deprecated index template, -// Elasticsearch will emit a deprecation warning. func (s *_ingestPipeline) Deprecated(deprecated bool) *_ingestPipeline { s.v.Deprecated = &deprecated @@ -43,7 +39,6 @@ func (s *_ingestPipeline) Deprecated(deprecated bool) *_ingestPipeline { return s } -// Description of the ingest pipeline. func (s *_ingestPipeline) Description(description string) *_ingestPipeline { s.v.Description = &description @@ -51,8 +46,6 @@ func (s *_ingestPipeline) Description(description string) *_ingestPipeline { return s } -// Arbitrary metadata about the ingest pipeline. This map is not automatically -// generated by Elasticsearch. func (s *_ingestPipeline) Meta_(metadata types.MetadataVariant) *_ingestPipeline { s.v.Meta_ = *metadata.MetadataCaster() @@ -60,7 +53,6 @@ func (s *_ingestPipeline) Meta_(metadata types.MetadataVariant) *_ingestPipeline return s } -// Processors to run immediately after a processor failure. func (s *_ingestPipeline) OnFailure(onfailures ...types.ProcessorContainerVariant) *_ingestPipeline { for _, v := range onfailures { @@ -71,8 +63,6 @@ func (s *_ingestPipeline) OnFailure(onfailures ...types.ProcessorContainerVarian return s } -// Processors used to perform transformations on documents before indexing. -// Processors run sequentially in the order specified. func (s *_ingestPipeline) Processors(processors ...types.ProcessorContainerVariant) *_ingestPipeline { for _, v := range processors { @@ -83,7 +73,6 @@ func (s *_ingestPipeline) Processors(processors ...types.ProcessorContainerVaria return s } -// Version number used by external systems to track ingest pipelines. func (s *_ingestPipeline) Version(versionnumber int64) *_ingestPipeline { s.v.Version = &versionnumber diff --git a/typedapi/esdsl/ingestpipelineparams.go b/typedapi/esdsl/ingestpipelineparams.go index 7831c739d3..c263e64313 100644 --- a/typedapi/esdsl/ingestpipelineparams.go +++ b/typedapi/esdsl/ingestpipelineparams.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _ingestPipelineParams struct { v *types.IngestPipelineParams diff --git a/typedapi/esdsl/innerhits.go b/typedapi/esdsl/innerhits.go index 81de68be5d..9e91ebce6b 100644 --- a/typedapi/esdsl/innerhits.go +++ b/typedapi/esdsl/innerhits.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _innerHits struct { v *types.InnerHits @@ -63,7 +63,6 @@ func (s *_innerHits) Fields(fields ...string) *_innerHits { return s } -// Inner hit starting document offset. func (s *_innerHits) From(from int) *_innerHits { s.v.From = &from @@ -85,8 +84,6 @@ func (s *_innerHits) IgnoreUnmapped(ignoreunmapped bool) *_innerHits { return s } -// The name for the particular inner hit definition in the response. -// Useful when a search request contains multiple inner hits. func (s *_innerHits) Name(name string) *_innerHits { s.v.Name = &name @@ -122,7 +119,6 @@ func (s *_innerHits) SeqNoPrimaryTerm(seqnoprimaryterm bool) *_innerHits { return s } -// The maximum number of hits to return per `inner_hits`. func (s *_innerHits) Size(size int) *_innerHits { s.v.Size = &size @@ -130,8 +126,6 @@ func (s *_innerHits) Size(size int) *_innerHits { return s } -// How the inner hits should be sorted per `inner_hits`. -// By default, inner hits are sorted by score. func (s *_innerHits) Sort(sorts ...types.SortCombinationsVariant) *_innerHits { for _, v := range sorts { diff --git a/typedapi/esdsl/input.go b/typedapi/esdsl/input.go index e4af0bbf6c..6c3dead609 100644 --- a/typedapi/esdsl/input.go +++ b/typedapi/esdsl/input.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _input struct { v *types.Input diff --git a/typedapi/esdsl/inputconfig.go b/typedapi/esdsl/inputconfig.go new file mode 100644 index 0000000000..98fb714910 --- /dev/null +++ b/typedapi/esdsl/inputconfig.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _inputConfig struct { + v *types.InputConfig +} + +func NewInputConfig(inputfield string, outputfield string) *_inputConfig { + + tmp := &_inputConfig{v: types.NewInputConfig()} + + tmp.InputField(inputfield) + + tmp.OutputField(outputfield) + + return tmp + +} + +func (s *_inputConfig) InputField(inputfield string) *_inputConfig { + + s.v.InputField = inputfield + + return s +} + +func (s *_inputConfig) OutputField(outputfield string) *_inputConfig { + + s.v.OutputField = outputfield + + return s +} + +func (s *_inputConfig) InputConfigCaster() *types.InputConfig { + return s.v +} diff --git a/typedapi/esdsl/integernumberproperty.go b/typedapi/esdsl/integernumberproperty.go index de8bc9d327..f3bd03cc11 100644 --- a/typedapi/esdsl/integernumberproperty.go +++ b/typedapi/esdsl/integernumberproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) type _integerNumberProperty struct { @@ -114,7 +114,6 @@ func (s *_integerNumberProperty) Index(index bool) *_integerNumberProperty { return s } -// Metadata about the field. func (s *_integerNumberProperty) Meta(meta map[string]string) *_integerNumberProperty { s.v.Meta = meta @@ -190,8 +189,6 @@ func (s *_integerNumberProperty) SyntheticSourceKeep(syntheticsourcekeep synthet return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_integerNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_integerNumberProperty { s.v.TimeSeriesDimension = ×eriesdimension @@ -199,8 +196,6 @@ func (s *_integerNumberProperty) TimeSeriesDimension(timeseriesdimension bool) * return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_integerNumberProperty) TimeSeriesMetric(timeseriesmetric timeseriesmetrictype.TimeSeriesMetricType) *_integerNumberProperty { s.v.TimeSeriesMetric = ×eriesmetric diff --git a/typedapi/esdsl/integerrangeproperty.go b/typedapi/esdsl/integerrangeproperty.go index a8fd9addfa..2b613e27d2 100644 --- a/typedapi/esdsl/integerrangeproperty.go +++ b/typedapi/esdsl/integerrangeproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _integerRangeProperty struct { @@ -105,7 +105,6 @@ func (s *_integerRangeProperty) Index(index bool) *_integerRangeProperty { return s } -// Metadata about the field. func (s *_integerRangeProperty) Meta(meta map[string]string) *_integerRangeProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/intervals.go b/typedapi/esdsl/intervals.go index d486638ae8..64ffb9ce73 100644 --- a/typedapi/esdsl/intervals.go +++ b/typedapi/esdsl/intervals.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _intervals struct { @@ -46,7 +46,6 @@ func (s *_intervals) AdditionalIntervalsProperty(key string, value json.RawMessa return s } -// Returns matches that span a combination of other rules. func (s *_intervals) AllOf(allof types.IntervalsAllOfVariant) *_intervals { s.v.AllOf = allof.IntervalsAllOfCaster() @@ -54,7 +53,6 @@ func (s *_intervals) AllOf(allof types.IntervalsAllOfVariant) *_intervals { return s } -// Returns intervals produced by any of its sub-rules. func (s *_intervals) AnyOf(anyof types.IntervalsAnyOfVariant) *_intervals { s.v.AnyOf = anyof.IntervalsAnyOfCaster() @@ -62,7 +60,6 @@ func (s *_intervals) AnyOf(anyof types.IntervalsAnyOfVariant) *_intervals { return s } -// Matches analyzed text. func (s *_intervals) Fuzzy(fuzzy types.IntervalsFuzzyVariant) *_intervals { s.v.Fuzzy = fuzzy.IntervalsFuzzyCaster() @@ -70,7 +67,6 @@ func (s *_intervals) Fuzzy(fuzzy types.IntervalsFuzzyVariant) *_intervals { return s } -// Matches analyzed text. func (s *_intervals) Match(match types.IntervalsMatchVariant) *_intervals { s.v.Match = match.IntervalsMatchCaster() @@ -78,7 +74,6 @@ func (s *_intervals) Match(match types.IntervalsMatchVariant) *_intervals { return s } -// Matches terms that start with a specified set of characters. func (s *_intervals) Prefix(prefix types.IntervalsPrefixVariant) *_intervals { s.v.Prefix = prefix.IntervalsPrefixCaster() @@ -86,7 +81,6 @@ func (s *_intervals) Prefix(prefix types.IntervalsPrefixVariant) *_intervals { return s } -// Matches terms using a wildcard pattern. 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 f559c2a6c7..9af6eef904 100644 --- a/typedapi/esdsl/intervalsallof.go +++ b/typedapi/esdsl/intervalsallof.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _intervalsAllOf struct { v *types.IntervalsAllOf @@ -33,7 +33,6 @@ func NewIntervalsAllOf() *_intervalsAllOf { } -// Rule used to filter returned intervals. func (s *_intervalsAllOf) Filter(filter types.IntervalsFilterVariant) *_intervalsAllOf { s.v.Filter = filter.IntervalsFilterCaster() @@ -41,8 +40,6 @@ func (s *_intervalsAllOf) Filter(filter types.IntervalsFilterVariant) *_interval return s } -// An array of rules to combine. All rules must produce a match in a document -// for the overall source to match. func (s *_intervalsAllOf) Intervals(intervals ...types.IntervalsVariant) *_intervalsAllOf { for _, v := range intervals { @@ -53,9 +50,6 @@ func (s *_intervalsAllOf) Intervals(intervals ...types.IntervalsVariant) *_inter return s } -// Maximum number of positions between the matching terms. -// Intervals produced by the rules further apart than this are not considered -// matches. func (s *_intervalsAllOf) MaxGaps(maxgaps int) *_intervalsAllOf { s.v.MaxGaps = &maxgaps @@ -63,8 +57,6 @@ func (s *_intervalsAllOf) MaxGaps(maxgaps int) *_intervalsAllOf { return s } -// If `true`, intervals produced by the rules should appear in the order in -// which they are specified. func (s *_intervalsAllOf) Ordered(ordered bool) *_intervalsAllOf { s.v.Ordered = &ordered diff --git a/typedapi/esdsl/intervalsanyof.go b/typedapi/esdsl/intervalsanyof.go index 6e0df9f450..a905d29c90 100644 --- a/typedapi/esdsl/intervalsanyof.go +++ b/typedapi/esdsl/intervalsanyof.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _intervalsAnyOf struct { v *types.IntervalsAnyOf @@ -33,7 +33,6 @@ func NewIntervalsAnyOf() *_intervalsAnyOf { } -// Rule used to filter returned intervals. func (s *_intervalsAnyOf) Filter(filter types.IntervalsFilterVariant) *_intervalsAnyOf { s.v.Filter = filter.IntervalsFilterCaster() @@ -41,7 +40,6 @@ func (s *_intervalsAnyOf) Filter(filter types.IntervalsFilterVariant) *_interval return s } -// An array of rules to match. func (s *_intervalsAnyOf) Intervals(intervals ...types.IntervalsVariant) *_intervalsAnyOf { for _, v := range intervals { diff --git a/typedapi/esdsl/intervalsfilter.go b/typedapi/esdsl/intervalsfilter.go index 7fbde0edf4..1caafaffbf 100644 --- a/typedapi/esdsl/intervalsfilter.go +++ b/typedapi/esdsl/intervalsfilter.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _intervalsFilter struct { @@ -46,8 +46,6 @@ func (s *_intervalsFilter) AdditionalIntervalsFilterProperty(key string, value j return s } -// Query used to return intervals that follow an interval from the `filter` -// rule. func (s *_intervalsFilter) After(after types.IntervalsVariant) *_intervalsFilter { s.v.After = after.IntervalsCaster() @@ -55,8 +53,6 @@ func (s *_intervalsFilter) After(after types.IntervalsVariant) *_intervalsFilter return s } -// Query used to return intervals that occur before an interval from the -// `filter` rule. func (s *_intervalsFilter) Before(before types.IntervalsVariant) *_intervalsFilter { s.v.Before = before.IntervalsCaster() @@ -64,8 +60,6 @@ func (s *_intervalsFilter) Before(before types.IntervalsVariant) *_intervalsFilt return s } -// Query used to return intervals contained by an interval from the `filter` -// rule. func (s *_intervalsFilter) ContainedBy(containedby types.IntervalsVariant) *_intervalsFilter { s.v.ContainedBy = containedby.IntervalsCaster() @@ -73,8 +67,6 @@ func (s *_intervalsFilter) ContainedBy(containedby types.IntervalsVariant) *_int return s } -// Query used to return intervals that contain an interval from the `filter` -// rule. func (s *_intervalsFilter) Containing(containing types.IntervalsVariant) *_intervalsFilter { s.v.Containing = containing.IntervalsCaster() @@ -82,8 +74,6 @@ func (s *_intervalsFilter) Containing(containing types.IntervalsVariant) *_inter return s } -// Query used to return intervals that are **not** contained by an interval from -// the `filter` rule. func (s *_intervalsFilter) NotContainedBy(notcontainedby types.IntervalsVariant) *_intervalsFilter { s.v.NotContainedBy = notcontainedby.IntervalsCaster() @@ -91,8 +81,6 @@ func (s *_intervalsFilter) NotContainedBy(notcontainedby types.IntervalsVariant) return s } -// Query used to return intervals that do **not** contain an interval from the -// `filter` rule. func (s *_intervalsFilter) NotContaining(notcontaining types.IntervalsVariant) *_intervalsFilter { s.v.NotContaining = notcontaining.IntervalsCaster() @@ -100,8 +88,6 @@ func (s *_intervalsFilter) NotContaining(notcontaining types.IntervalsVariant) * return s } -// Query used to return intervals that do **not** overlap with an interval from -// the `filter` rule. func (s *_intervalsFilter) NotOverlapping(notoverlapping types.IntervalsVariant) *_intervalsFilter { s.v.NotOverlapping = notoverlapping.IntervalsCaster() @@ -109,8 +95,6 @@ func (s *_intervalsFilter) NotOverlapping(notoverlapping types.IntervalsVariant) return s } -// Query used to return intervals that overlap with an interval from the -// `filter` rule. func (s *_intervalsFilter) Overlapping(overlapping types.IntervalsVariant) *_intervalsFilter { s.v.Overlapping = overlapping.IntervalsCaster() @@ -118,8 +102,6 @@ func (s *_intervalsFilter) Overlapping(overlapping types.IntervalsVariant) *_int return s } -// Script used to return matching documents. -// This script must return a boolean value: `true` or `false`. func (s *_intervalsFilter) Script(script types.ScriptVariant) *_intervalsFilter { s.v.Script = script.ScriptCaster() diff --git a/typedapi/esdsl/intervalsfuzzy.go b/typedapi/esdsl/intervalsfuzzy.go index d2c5821284..8450a30983 100644 --- a/typedapi/esdsl/intervalsfuzzy.go +++ b/typedapi/esdsl/intervalsfuzzy.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _intervalsFuzzy struct { v *types.IntervalsFuzzy @@ -37,7 +37,6 @@ func NewIntervalsFuzzy(term string) *_intervalsFuzzy { } -// Analyzer used to normalize the term. func (s *_intervalsFuzzy) Analyzer(analyzer string) *_intervalsFuzzy { s.v.Analyzer = &analyzer @@ -45,7 +44,6 @@ func (s *_intervalsFuzzy) Analyzer(analyzer string) *_intervalsFuzzy { return s } -// Maximum edit distance allowed for matching. func (s *_intervalsFuzzy) Fuzziness(fuzziness types.FuzzinessVariant) *_intervalsFuzzy { s.v.Fuzziness = *fuzziness.FuzzinessCaster() @@ -53,7 +51,6 @@ func (s *_intervalsFuzzy) Fuzziness(fuzziness types.FuzzinessVariant) *_interval return s } -// Number of beginning characters left unchanged when creating expansions. func (s *_intervalsFuzzy) PrefixLength(prefixlength int) *_intervalsFuzzy { s.v.PrefixLength = &prefixlength @@ -61,7 +58,6 @@ func (s *_intervalsFuzzy) PrefixLength(prefixlength int) *_intervalsFuzzy { return s } -// The term to match. func (s *_intervalsFuzzy) Term(term string) *_intervalsFuzzy { s.v.Term = term @@ -69,8 +65,6 @@ func (s *_intervalsFuzzy) Term(term string) *_intervalsFuzzy { return s } -// Indicates whether edits include transpositions of two adjacent characters -// (for example, `ab` to `ba`). func (s *_intervalsFuzzy) Transpositions(transpositions bool) *_intervalsFuzzy { s.v.Transpositions = &transpositions @@ -78,10 +72,6 @@ func (s *_intervalsFuzzy) Transpositions(transpositions bool) *_intervalsFuzzy { return s } -// If specified, match intervals from this field rather than the top-level -// field. -// The `term` is normalized using the search analyzer from this field, unless -// `analyzer` is specified separately. func (s *_intervalsFuzzy) UseField(field string) *_intervalsFuzzy { s.v.UseField = &field diff --git a/typedapi/esdsl/intervalsmatch.go b/typedapi/esdsl/intervalsmatch.go index 6e072f09ec..d36aba35a6 100644 --- a/typedapi/esdsl/intervalsmatch.go +++ b/typedapi/esdsl/intervalsmatch.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _intervalsMatch struct { v *types.IntervalsMatch @@ -37,7 +37,6 @@ func NewIntervalsMatch(query string) *_intervalsMatch { } -// Analyzer used to analyze terms in the query. func (s *_intervalsMatch) Analyzer(analyzer string) *_intervalsMatch { s.v.Analyzer = &analyzer @@ -45,7 +44,6 @@ func (s *_intervalsMatch) Analyzer(analyzer string) *_intervalsMatch { return s } -// An optional interval filter. func (s *_intervalsMatch) Filter(filter types.IntervalsFilterVariant) *_intervalsMatch { s.v.Filter = filter.IntervalsFilterCaster() @@ -53,8 +51,6 @@ func (s *_intervalsMatch) Filter(filter types.IntervalsFilterVariant) *_interval return s } -// Maximum number of positions between the matching terms. -// Terms further apart than this are not considered matches. func (s *_intervalsMatch) MaxGaps(maxgaps int) *_intervalsMatch { s.v.MaxGaps = &maxgaps @@ -62,7 +58,6 @@ func (s *_intervalsMatch) MaxGaps(maxgaps int) *_intervalsMatch { return s } -// If `true`, matching terms must appear in their specified order. func (s *_intervalsMatch) Ordered(ordered bool) *_intervalsMatch { s.v.Ordered = &ordered @@ -70,7 +65,6 @@ func (s *_intervalsMatch) Ordered(ordered bool) *_intervalsMatch { return s } -// Text you wish to find in the provided field. func (s *_intervalsMatch) Query(query string) *_intervalsMatch { s.v.Query = query @@ -78,10 +72,6 @@ func (s *_intervalsMatch) Query(query string) *_intervalsMatch { return s } -// If specified, match intervals from this field rather than the top-level -// field. -// The `term` is normalized using the search analyzer from this field, unless -// `analyzer` is specified separately. func (s *_intervalsMatch) UseField(field string) *_intervalsMatch { s.v.UseField = &field diff --git a/typedapi/esdsl/intervalsprefix.go b/typedapi/esdsl/intervalsprefix.go index 66b7d647d6..c8cdf2f202 100644 --- a/typedapi/esdsl/intervalsprefix.go +++ b/typedapi/esdsl/intervalsprefix.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _intervalsPrefix struct { v *types.IntervalsPrefix @@ -37,7 +37,6 @@ func NewIntervalsPrefix(prefix string) *_intervalsPrefix { } -// Analyzer used to analyze the `prefix`. func (s *_intervalsPrefix) Analyzer(analyzer string) *_intervalsPrefix { s.v.Analyzer = &analyzer @@ -45,7 +44,6 @@ func (s *_intervalsPrefix) Analyzer(analyzer string) *_intervalsPrefix { return s } -// Beginning characters of terms you wish to find in the top-level field. func (s *_intervalsPrefix) Prefix(prefix string) *_intervalsPrefix { s.v.Prefix = prefix @@ -53,10 +51,6 @@ func (s *_intervalsPrefix) Prefix(prefix string) *_intervalsPrefix { return s } -// 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. func (s *_intervalsPrefix) UseField(field string) *_intervalsPrefix { s.v.UseField = &field diff --git a/typedapi/esdsl/intervalsquery.go b/typedapi/esdsl/intervalsquery.go index 29d66c54b4..143cb6dc6a 100644 --- a/typedapi/esdsl/intervalsquery.go +++ b/typedapi/esdsl/intervalsquery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _intervalsQuery struct { @@ -46,7 +46,6 @@ func (s *_intervalsQuery) AdditionalIntervalsQueryProperty(key string, value jso return s } -// Returns matches that span a combination of other rules. func (s *_intervalsQuery) AllOf(allof types.IntervalsAllOfVariant) *_intervalsQuery { s.v.AllOf = allof.IntervalsAllOfCaster() @@ -54,7 +53,6 @@ func (s *_intervalsQuery) AllOf(allof types.IntervalsAllOfVariant) *_intervalsQu return s } -// Returns intervals produced by any of its sub-rules. func (s *_intervalsQuery) AnyOf(anyof types.IntervalsAnyOfVariant) *_intervalsQuery { s.v.AnyOf = anyof.IntervalsAnyOfCaster() @@ -62,11 +60,6 @@ func (s *_intervalsQuery) AnyOf(anyof types.IntervalsAnyOfVariant) *_intervalsQu return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_intervalsQuery) Boost(boost float32) *_intervalsQuery { s.v.Boost = &boost @@ -74,8 +67,6 @@ func (s *_intervalsQuery) Boost(boost float32) *_intervalsQuery { return s } -// Matches terms that are similar to the provided term, within an edit distance -// defined by `fuzziness`. func (s *_intervalsQuery) Fuzzy(fuzzy types.IntervalsFuzzyVariant) *_intervalsQuery { s.v.Fuzzy = fuzzy.IntervalsFuzzyCaster() @@ -83,7 +74,6 @@ func (s *_intervalsQuery) Fuzzy(fuzzy types.IntervalsFuzzyVariant) *_intervalsQu return s } -// Matches analyzed text. func (s *_intervalsQuery) Match(match types.IntervalsMatchVariant) *_intervalsQuery { s.v.Match = match.IntervalsMatchCaster() @@ -91,7 +81,6 @@ func (s *_intervalsQuery) Match(match types.IntervalsMatchVariant) *_intervalsQu return s } -// Matches terms that start with a specified set of characters. func (s *_intervalsQuery) Prefix(prefix types.IntervalsPrefixVariant) *_intervalsQuery { s.v.Prefix = prefix.IntervalsPrefixCaster() @@ -106,7 +95,6 @@ func (s *_intervalsQuery) QueryName_(queryname_ string) *_intervalsQuery { return s } -// Matches terms using a wildcard pattern. func (s *_intervalsQuery) Wildcard(wildcard types.IntervalsWildcardVariant) *_intervalsQuery { s.v.Wildcard = wildcard.IntervalsWildcardCaster() diff --git a/typedapi/esdsl/intervalswildcard.go b/typedapi/esdsl/intervalswildcard.go index fe953eb4cc..ea0531cabd 100644 --- a/typedapi/esdsl/intervalswildcard.go +++ b/typedapi/esdsl/intervalswildcard.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _intervalsWildcard struct { v *types.IntervalsWildcard @@ -37,8 +37,6 @@ func NewIntervalsWildcard(pattern string) *_intervalsWildcard { } -// Analyzer used to analyze the `pattern`. -// Defaults to the top-level field's analyzer. func (s *_intervalsWildcard) Analyzer(analyzer string) *_intervalsWildcard { s.v.Analyzer = &analyzer @@ -46,7 +44,6 @@ func (s *_intervalsWildcard) Analyzer(analyzer string) *_intervalsWildcard { return s } -// Wildcard pattern used to find matching terms. func (s *_intervalsWildcard) Pattern(pattern string) *_intervalsWildcard { s.v.Pattern = pattern @@ -54,10 +51,6 @@ func (s *_intervalsWildcard) Pattern(pattern string) *_intervalsWildcard { return s } -// If specified, match intervals from this field rather than the top-level -// field. -// The `pattern` is normalized using the search analyzer from this field, unless -// `analyzer` is specified separately. func (s *_intervalsWildcard) UseField(field string) *_intervalsWildcard { s.v.UseField = &field diff --git a/typedapi/esdsl/ipinfo.go b/typedapi/esdsl/ipinfo.go index b8f453adaa..23b89b2146 100644 --- a/typedapi/esdsl/ipinfo.go +++ b/typedapi/esdsl/ipinfo.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _ipinfo struct { v *types.Ipinfo diff --git a/typedapi/esdsl/iplocationprocessor.go b/typedapi/esdsl/iplocationprocessor.go index 6ea7062d46..6666befa8d 100644 --- a/typedapi/esdsl/iplocationprocessor.go +++ b/typedapi/esdsl/iplocationprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _ipLocationProcessor struct { v *types.IpLocationProcessor @@ -33,9 +33,6 @@ func NewIpLocationProcessor() *_ipLocationProcessor { } -// The database filename referring to a database the module ships with -// (GeoLite2-City.mmdb, GeoLite2-Country.mmdb, or GeoLite2-ASN.mmdb) or a custom -// database in the ingest-geoip config directory. func (s *_ipLocationProcessor) DatabaseFile(databasefile string) *_ipLocationProcessor { s.v.DatabaseFile = &databasefile @@ -43,8 +40,6 @@ func (s *_ipLocationProcessor) DatabaseFile(databasefile string) *_ipLocationPro return s } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_ipLocationProcessor) Description(description string) *_ipLocationProcessor { s.v.Description = &description @@ -52,10 +47,6 @@ func (s *_ipLocationProcessor) Description(description string) *_ipLocationProce return s } -// If `true` (and if `ingest.geoip.downloader.eager.download` is `false`), the -// missing database is downloaded when the pipeline is created. -// Else, the download is triggered by when the pipeline is used as the -// `default_pipeline` or `final_pipeline` in an index. func (s *_ipLocationProcessor) DownloadDatabaseOnPipelineCreation(downloaddatabaseonpipelinecreation bool) *_ipLocationProcessor { s.v.DownloadDatabaseOnPipelineCreation = &downloaddatabaseonpipelinecreation @@ -63,7 +54,6 @@ func (s *_ipLocationProcessor) DownloadDatabaseOnPipelineCreation(downloaddataba return s } -// The field to get the ip address from for the geographical lookup. func (s *_ipLocationProcessor) Field(field string) *_ipLocationProcessor { s.v.Field = field @@ -71,8 +61,6 @@ func (s *_ipLocationProcessor) Field(field string) *_ipLocationProcessor { return s } -// If `true`, only the first found IP location data will be returned, even if -// the field contains an array. func (s *_ipLocationProcessor) FirstOnly(firstonly bool) *_ipLocationProcessor { s.v.FirstOnly = &firstonly @@ -80,7 +68,6 @@ func (s *_ipLocationProcessor) FirstOnly(firstonly bool) *_ipLocationProcessor { return s } -// Conditionally execute the processor. func (s *_ipLocationProcessor) If(if_ types.ScriptVariant) *_ipLocationProcessor { s.v.If = if_.ScriptCaster() @@ -88,7 +75,6 @@ func (s *_ipLocationProcessor) If(if_ types.ScriptVariant) *_ipLocationProcessor return s } -// Ignore failures for the processor. func (s *_ipLocationProcessor) IgnoreFailure(ignorefailure bool) *_ipLocationProcessor { s.v.IgnoreFailure = &ignorefailure @@ -96,8 +82,6 @@ func (s *_ipLocationProcessor) IgnoreFailure(ignorefailure bool) *_ipLocationPro return s } -// If `true` and `field` does not exist, the processor quietly exits without -// modifying the document. func (s *_ipLocationProcessor) IgnoreMissing(ignoremissing bool) *_ipLocationProcessor { s.v.IgnoreMissing = &ignoremissing @@ -105,7 +89,6 @@ func (s *_ipLocationProcessor) IgnoreMissing(ignoremissing bool) *_ipLocationPro return s } -// Handle failures for the processor. func (s *_ipLocationProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_ipLocationProcessor { for _, v := range onfailures { @@ -116,8 +99,6 @@ func (s *_ipLocationProcessor) OnFailure(onfailures ...types.ProcessorContainerV return s } -// Controls what properties are added to the `target_field` based on the IP -// location lookup. func (s *_ipLocationProcessor) Properties(properties ...string) *_ipLocationProcessor { for _, v := range properties { @@ -128,8 +109,6 @@ func (s *_ipLocationProcessor) Properties(properties ...string) *_ipLocationProc return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_ipLocationProcessor) Tag(tag string) *_ipLocationProcessor { s.v.Tag = &tag @@ -137,8 +116,6 @@ func (s *_ipLocationProcessor) Tag(tag string) *_ipLocationProcessor { return s } -// The field that will hold the geographical information looked up from the -// MaxMind database. func (s *_ipLocationProcessor) TargetField(field string) *_ipLocationProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/ipprefixaggregation.go b/typedapi/esdsl/ipprefixaggregation.go index ce6957cb4e..91e0bcc226 100644 --- a/typedapi/esdsl/ipprefixaggregation.go +++ b/typedapi/esdsl/ipprefixaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _ipPrefixAggregation struct { v *types.IpPrefixAggregation @@ -38,8 +38,6 @@ func NewIpPrefixAggregation(prefixlength int) *_ipPrefixAggregation { } -// Defines whether the prefix length is appended to IP address keys in the -// response. func (s *_ipPrefixAggregation) AppendPrefixLength(appendprefixlength bool) *_ipPrefixAggregation { s.v.AppendPrefixLength = &appendprefixlength @@ -47,7 +45,6 @@ func (s *_ipPrefixAggregation) AppendPrefixLength(appendprefixlength bool) *_ipP return s } -// The IP address field to aggregation on. The field mapping type must be `ip`. func (s *_ipPrefixAggregation) Field(field string) *_ipPrefixAggregation { s.v.Field = field @@ -55,7 +52,6 @@ func (s *_ipPrefixAggregation) Field(field string) *_ipPrefixAggregation { return s } -// Defines whether the prefix applies to IPv6 addresses. func (s *_ipPrefixAggregation) IsIpv6(isipv6 bool) *_ipPrefixAggregation { s.v.IsIpv6 = &isipv6 @@ -63,8 +59,6 @@ func (s *_ipPrefixAggregation) IsIpv6(isipv6 bool) *_ipPrefixAggregation { return s } -// Defines whether buckets are returned as a hash rather than an array in the -// response. func (s *_ipPrefixAggregation) Keyed(keyed bool) *_ipPrefixAggregation { s.v.Keyed = &keyed @@ -72,8 +66,6 @@ func (s *_ipPrefixAggregation) Keyed(keyed bool) *_ipPrefixAggregation { return s } -// Minimum number of documents in a bucket for it to be included in the -// response. func (s *_ipPrefixAggregation) MinDocCount(mindoccount int64) *_ipPrefixAggregation { s.v.MinDocCount = &mindoccount @@ -81,9 +73,6 @@ func (s *_ipPrefixAggregation) MinDocCount(mindoccount int64) *_ipPrefixAggregat return s } -// Length of the network prefix. For IPv4 addresses the accepted range is [0, -// 32]. -// For IPv6 addresses the accepted range is [0, 128]. func (s *_ipPrefixAggregation) PrefixLength(prefixlength int) *_ipPrefixAggregation { s.v.PrefixLength = prefixlength diff --git a/typedapi/esdsl/ipproperty.go b/typedapi/esdsl/ipproperty.go index 973cfbed15..981d99f54b 100644 --- a/typedapi/esdsl/ipproperty.go +++ b/typedapi/esdsl/ipproperty.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _ipProperty struct { @@ -106,7 +106,6 @@ func (s *_ipProperty) Index(index bool) *_ipProperty { return s } -// Metadata about the field. func (s *_ipProperty) Meta(meta map[string]string) *_ipProperty { s.v.Meta = meta @@ -182,8 +181,6 @@ func (s *_ipProperty) SyntheticSourceKeep(syntheticsourcekeep syntheticsourcekee return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_ipProperty) TimeSeriesDimension(timeseriesdimension bool) *_ipProperty { s.v.TimeSeriesDimension = ×eriesdimension diff --git a/typedapi/esdsl/iprangeaggregation.go b/typedapi/esdsl/iprangeaggregation.go index 9e328416cb..7685b279b9 100644 --- a/typedapi/esdsl/iprangeaggregation.go +++ b/typedapi/esdsl/iprangeaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _ipRangeAggregation struct { v *types.IpRangeAggregation @@ -34,7 +34,6 @@ func NewIpRangeAggregation() *_ipRangeAggregation { } -// The date field whose values are used to build ranges. func (s *_ipRangeAggregation) Field(field string) *_ipRangeAggregation { s.v.Field = &field @@ -42,7 +41,6 @@ func (s *_ipRangeAggregation) Field(field string) *_ipRangeAggregation { return s } -// Array of IP ranges. func (s *_ipRangeAggregation) Ranges(ranges ...types.IpRangeAggregationRangeVariant) *_ipRangeAggregation { for _, v := range ranges { diff --git a/typedapi/esdsl/iprangeaggregationrange.go b/typedapi/esdsl/iprangeaggregationrange.go index 177158b5ce..57d337d7be 100644 --- a/typedapi/esdsl/iprangeaggregationrange.go +++ b/typedapi/esdsl/iprangeaggregationrange.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _ipRangeAggregationRange struct { v *types.IpRangeAggregationRange @@ -32,7 +32,6 @@ func NewIpRangeAggregationRange() *_ipRangeAggregationRange { } -// Start of the range. func (s *_ipRangeAggregationRange) From(from string) *_ipRangeAggregationRange { s.v.From = &from @@ -40,7 +39,6 @@ func (s *_ipRangeAggregationRange) From(from string) *_ipRangeAggregationRange { return s } -// IP range defined as a CIDR mask. func (s *_ipRangeAggregationRange) Mask(mask string) *_ipRangeAggregationRange { s.v.Mask = &mask @@ -48,7 +46,6 @@ func (s *_ipRangeAggregationRange) Mask(mask string) *_ipRangeAggregationRange { return s } -// End of the range. func (s *_ipRangeAggregationRange) To(to string) *_ipRangeAggregationRange { s.v.To = &to diff --git a/typedapi/esdsl/iprangeproperty.go b/typedapi/esdsl/iprangeproperty.go index 6c95e4f487..c3097546d5 100644 --- a/typedapi/esdsl/iprangeproperty.go +++ b/typedapi/esdsl/iprangeproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _ipRangeProperty struct { @@ -105,7 +105,6 @@ func (s *_ipRangeProperty) Index(index bool) *_ipRangeProperty { return s } -// Metadata about the field. func (s *_ipRangeProperty) Meta(meta map[string]string) *_ipRangeProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/irishanalyzer.go b/typedapi/esdsl/irishanalyzer.go index 0780e99e81..85d73b81be 100644 --- a/typedapi/esdsl/irishanalyzer.go +++ b/typedapi/esdsl/irishanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _irishAnalyzer struct { v *types.IrishAnalyzer diff --git a/typedapi/esdsl/italiananalyzer.go b/typedapi/esdsl/italiananalyzer.go index 30897e79c0..60b768be02 100644 --- a/typedapi/esdsl/italiananalyzer.go +++ b/typedapi/esdsl/italiananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _italianAnalyzer struct { v *types.ItalianAnalyzer diff --git a/typedapi/esdsl/jinaaiservicesettings.go b/typedapi/esdsl/jinaaiservicesettings.go new file mode 100644 index 0000000000..ad640d8c4c --- /dev/null +++ b/typedapi/esdsl/jinaaiservicesettings.go @@ -0,0 +1,71 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/jinaaisimilaritytype" +) + +type _jinaAIServiceSettings struct { + v *types.JinaAIServiceSettings +} + +func NewJinaAIServiceSettings(apikey string) *_jinaAIServiceSettings { + + tmp := &_jinaAIServiceSettings{v: types.NewJinaAIServiceSettings()} + + tmp.ApiKey(apikey) + + return tmp + +} + +func (s *_jinaAIServiceSettings) ApiKey(apikey string) *_jinaAIServiceSettings { + + s.v.ApiKey = apikey + + return s +} + +func (s *_jinaAIServiceSettings) ModelId(modelid string) *_jinaAIServiceSettings { + + s.v.ModelId = &modelid + + return s +} + +func (s *_jinaAIServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_jinaAIServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_jinaAIServiceSettings) Similarity(similarity jinaaisimilaritytype.JinaAISimilarityType) *_jinaAIServiceSettings { + + s.v.Similarity = &similarity + return s +} + +func (s *_jinaAIServiceSettings) JinaAIServiceSettingsCaster() *types.JinaAIServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/jinaaitasksettings.go b/typedapi/esdsl/jinaaitasksettings.go new file mode 100644 index 0000000000..dc2a4b8cdf --- /dev/null +++ b/typedapi/esdsl/jinaaitasksettings.go @@ -0,0 +1,60 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/jinaaitextembeddingtask" +) + +type _jinaAITaskSettings struct { + v *types.JinaAITaskSettings +} + +func NewJinaAITaskSettings() *_jinaAITaskSettings { + + return &_jinaAITaskSettings{v: types.NewJinaAITaskSettings()} + +} + +func (s *_jinaAITaskSettings) ReturnDocuments(returndocuments bool) *_jinaAITaskSettings { + + s.v.ReturnDocuments = &returndocuments + + return s +} + +func (s *_jinaAITaskSettings) Task(task jinaaitextembeddingtask.JinaAITextEmbeddingTask) *_jinaAITaskSettings { + + s.v.Task = &task + return s +} + +func (s *_jinaAITaskSettings) TopN(topn int) *_jinaAITaskSettings { + + s.v.TopN = &topn + + return s +} + +func (s *_jinaAITaskSettings) JinaAITaskSettingsCaster() *types.JinaAITaskSettings { + return s.v +} diff --git a/typedapi/esdsl/jobconfig.go b/typedapi/esdsl/jobconfig.go index 4af4f69e13..fa394bf676 100644 --- a/typedapi/esdsl/jobconfig.go +++ b/typedapi/esdsl/jobconfig.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _jobConfig struct { @@ -42,9 +42,6 @@ func NewJobConfig(analysisconfig types.AnalysisConfigVariant, datadescription ty } -// Advanced configuration option. Specifies whether this job can open when there -// is insufficient machine learning node capacity for it to be immediately -// assigned to a node. func (s *_jobConfig) AllowLazyOpen(allowlazyopen bool) *_jobConfig { s.v.AllowLazyOpen = &allowlazyopen @@ -52,9 +49,6 @@ func (s *_jobConfig) AllowLazyOpen(allowlazyopen bool) *_jobConfig { return s } -// The analysis configuration, which specifies how to analyze the data. -// After you create a job, you cannot change the analysis configuration; all the -// properties are informational. func (s *_jobConfig) AnalysisConfig(analysisconfig types.AnalysisConfigVariant) *_jobConfig { s.v.AnalysisConfig = *analysisconfig.AnalysisConfigCaster() @@ -62,11 +56,6 @@ func (s *_jobConfig) AnalysisConfig(analysisconfig types.AnalysisConfigVariant) return s } -// 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 do not control the memory used by other processes, for example the -// Elasticsearch Java processes. func (s *_jobConfig) AnalysisLimits(analysislimits types.AnalysisLimitsVariant) *_jobConfig { s.v.AnalysisLimits = analysislimits.AnalysisLimitsCaster() @@ -74,11 +63,6 @@ func (s *_jobConfig) AnalysisLimits(analysislimits types.AnalysisLimitsVariant) return s } -// Advanced configuration option. -// The time between each periodic persistence of the model. -// The default value is a randomized value between 3 to 4 hours, which avoids -// all jobs persisting at exactly the same time. -// The smallest allowed value is 1 hour. func (s *_jobConfig) BackgroundPersistInterval(duration types.DurationVariant) *_jobConfig { s.v.BackgroundPersistInterval = *duration.DurationCaster() @@ -86,8 +70,6 @@ func (s *_jobConfig) BackgroundPersistInterval(duration types.DurationVariant) * return s } -// Advanced configuration option. -// Contains custom metadata about the job. func (s *_jobConfig) CustomSettings(customsettings json.RawMessage) *_jobConfig { s.v.CustomSettings = customsettings @@ -95,12 +77,6 @@ func (s *_jobConfig) CustomSettings(customsettings json.RawMessage) *_jobConfig return s } -// Advanced configuration option, which affects the automatic removal of old -// model snapshots for this job. -// It specifies a period of time (in days) after which only the first snapshot -// per day is retained. -// This period is relative to the timestamp of the most recent snapshot for this -// job. func (s *_jobConfig) DailyModelSnapshotRetentionAfterDays(dailymodelsnapshotretentionafterdays int64) *_jobConfig { s.v.DailyModelSnapshotRetentionAfterDays = &dailymodelsnapshotretentionafterdays @@ -108,9 +84,6 @@ func (s *_jobConfig) DailyModelSnapshotRetentionAfterDays(dailymodelsnapshotrete return s } -// The data description defines the format of the input data when you send data -// to the job by using the post data API. -// Note that when configure a datafeed, these properties are automatically set. func (s *_jobConfig) DataDescription(datadescription types.DataDescriptionVariant) *_jobConfig { s.v.DataDescription = *datadescription.DataDescriptionCaster() @@ -118,9 +91,6 @@ func (s *_jobConfig) DataDescription(datadescription types.DataDescriptionVarian return s } -// The datafeed, which retrieves data from Elasticsearch for analysis by the -// job. -// You can associate only one datafeed with each anomaly detection job. func (s *_jobConfig) DatafeedConfig(datafeedconfig types.DatafeedConfigVariant) *_jobConfig { s.v.DatafeedConfig = datafeedconfig.DatafeedConfigCaster() @@ -128,7 +98,6 @@ func (s *_jobConfig) DatafeedConfig(datafeedconfig types.DatafeedConfigVariant) return s } -// A description of the job. func (s *_jobConfig) Description(description string) *_jobConfig { s.v.Description = &description @@ -136,7 +105,6 @@ func (s *_jobConfig) Description(description string) *_jobConfig { return s } -// A list of job groups. A job can belong to no groups or many. func (s *_jobConfig) Groups(groups ...string) *_jobConfig { for _, v := range groups { @@ -147,10 +115,6 @@ func (s *_jobConfig) Groups(groups ...string) *_jobConfig { return s } -// Identifier for the anomaly detection job. -// This identifier can contain lowercase alphanumeric characters (a-z and 0-9), -// hyphens, and underscores. -// It must start and end with alphanumeric characters. func (s *_jobConfig) JobId(id string) *_jobConfig { s.v.JobId = &id @@ -158,7 +122,6 @@ func (s *_jobConfig) JobId(id string) *_jobConfig { return s } -// Reserved for future use, currently set to `anomaly_detector`. func (s *_jobConfig) JobType(jobtype string) *_jobConfig { s.v.JobType = &jobtype @@ -166,11 +129,6 @@ func (s *_jobConfig) JobType(jobtype string) *_jobConfig { return s } -// This advanced configuration option stores model information along with the -// results. -// It provides a more detailed view into anomaly detection. -// Model plot provides a simplified and indicative view of the model and its -// bounds. func (s *_jobConfig) ModelPlotConfig(modelplotconfig types.ModelPlotConfigVariant) *_jobConfig { s.v.ModelPlotConfig = modelplotconfig.ModelPlotConfigCaster() @@ -178,14 +136,6 @@ func (s *_jobConfig) ModelPlotConfig(modelplotconfig types.ModelPlotConfigVarian return s } -// Advanced configuration option, which affects the automatic removal of old -// model snapshots for this job. -// It specifies the maximum period of time (in days) that snapshots are -// retained. -// This period is relative to the timestamp of the most recent snapshot for this -// job. -// The default value is `10`, which means snapshots ten days older than the -// newest snapshot are deleted. func (s *_jobConfig) ModelSnapshotRetentionDays(modelsnapshotretentiondays int64) *_jobConfig { s.v.ModelSnapshotRetentionDays = &modelsnapshotretentiondays @@ -193,10 +143,6 @@ func (s *_jobConfig) ModelSnapshotRetentionDays(modelsnapshotretentiondays int64 return s } -// Advanced configuration option. -// The period over which adjustments to the score are applied, as new data is -// seen. -// The default value is the longer of 30 days or 100 `bucket_spans`. func (s *_jobConfig) RenormalizationWindowDays(renormalizationwindowdays int64) *_jobConfig { s.v.RenormalizationWindowDays = &renormalizationwindowdays @@ -204,9 +150,6 @@ func (s *_jobConfig) RenormalizationWindowDays(renormalizationwindowdays int64) return s } -// A text string that affects the name of the machine learning results index. -// The default value is `shared`, which generates an index named -// `.ml-anomalies-shared`. func (s *_jobConfig) ResultsIndexName(indexname string) *_jobConfig { s.v.ResultsIndexName = &indexname @@ -214,16 +157,6 @@ func (s *_jobConfig) ResultsIndexName(indexname string) *_jobConfig { return s } -// Advanced configuration option. -// The period of time (in days) that results are retained. -// Age is calculated relative to the timestamp of the latest bucket result. -// If this property has a non-null value, once per day at 00:30 (server time), -// results that are the specified number of days older than the latest bucket -// result are deleted from Elasticsearch. -// The default value is null, which means all results are retained. -// Annotations generated by the system also count as results for retention -// purposes; they are deleted after the same number of days as results. -// Annotations added by users are retained forever. func (s *_jobConfig) ResultsRetentionDays(resultsretentiondays int64) *_jobConfig { s.v.ResultsRetentionDays = &resultsretentiondays diff --git a/typedapi/esdsl/joinprocessor.go b/typedapi/esdsl/joinprocessor.go index ea401dbbd1..4cb43bf0b4 100644 --- a/typedapi/esdsl/joinprocessor.go +++ b/typedapi/esdsl/joinprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _joinProcessor struct { v *types.JoinProcessor @@ -39,8 +39,6 @@ func NewJoinProcessor(separator string) *_joinProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_joinProcessor) Description(description string) *_joinProcessor { s.v.Description = &description @@ -48,7 +46,6 @@ func (s *_joinProcessor) Description(description string) *_joinProcessor { return s } -// Field containing array values to join. func (s *_joinProcessor) Field(field string) *_joinProcessor { s.v.Field = field @@ -56,7 +53,6 @@ func (s *_joinProcessor) Field(field string) *_joinProcessor { return s } -// Conditionally execute the processor. func (s *_joinProcessor) If(if_ types.ScriptVariant) *_joinProcessor { s.v.If = if_.ScriptCaster() @@ -64,7 +60,6 @@ func (s *_joinProcessor) If(if_ types.ScriptVariant) *_joinProcessor { return s } -// Ignore failures for the processor. func (s *_joinProcessor) IgnoreFailure(ignorefailure bool) *_joinProcessor { s.v.IgnoreFailure = &ignorefailure @@ -72,7 +67,6 @@ func (s *_joinProcessor) IgnoreFailure(ignorefailure bool) *_joinProcessor { return s } -// Handle failures for the processor. func (s *_joinProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_joinProcessor { for _, v := range onfailures { @@ -83,7 +77,6 @@ func (s *_joinProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant return s } -// The separator character. func (s *_joinProcessor) Separator(separator string) *_joinProcessor { s.v.Separator = separator @@ -91,8 +84,6 @@ func (s *_joinProcessor) Separator(separator string) *_joinProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_joinProcessor) Tag(tag string) *_joinProcessor { s.v.Tag = &tag @@ -100,8 +91,6 @@ func (s *_joinProcessor) Tag(tag string) *_joinProcessor { return s } -// The field to assign the joined value to. -// By default, the field is updated in-place. func (s *_joinProcessor) TargetField(field string) *_joinProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/joinproperty.go b/typedapi/esdsl/joinproperty.go index a8690d9eae..ce264a1437 100644 --- a/typedapi/esdsl/joinproperty.go +++ b/typedapi/esdsl/joinproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _joinProperty struct { @@ -77,7 +77,6 @@ func (s *_joinProperty) IgnoreAbove(ignoreabove int) *_joinProperty { return s } -// Metadata about the field. func (s *_joinProperty) Meta(meta map[string]string) *_joinProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/jsonprocessor.go b/typedapi/esdsl/jsonprocessor.go index 605376ae0c..ddf301d92a 100644 --- a/typedapi/esdsl/jsonprocessor.go +++ b/typedapi/esdsl/jsonprocessor.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jsonprocessorconflictstrategy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/jsonprocessorconflictstrategy" ) type _jsonProcessor struct { @@ -36,9 +36,6 @@ func NewJsonProcessor() *_jsonProcessor { } -// Flag that forces the parsed JSON to be added at the top level of the -// document. -// `target_field` must not be set when this option is chosen. func (s *_jsonProcessor) AddToRoot(addtoroot bool) *_jsonProcessor { s.v.AddToRoot = &addtoroot @@ -46,19 +43,12 @@ func (s *_jsonProcessor) AddToRoot(addtoroot bool) *_jsonProcessor { return s } -// When set to `replace`, root fields that conflict with fields from the parsed -// JSON will be overridden. -// When set to `merge`, conflicting fields will be merged. -// Only applicable `if add_to_root` is set to true. func (s *_jsonProcessor) AddToRootConflictStrategy(addtorootconflictstrategy jsonprocessorconflictstrategy.JsonProcessorConflictStrategy) *_jsonProcessor { s.v.AddToRootConflictStrategy = &addtorootconflictstrategy return s } -// When set to `true`, the JSON parser will not fail if the JSON contains -// duplicate keys. -// Instead, the last encountered value for any duplicate key wins. func (s *_jsonProcessor) AllowDuplicateKeys(allowduplicatekeys bool) *_jsonProcessor { s.v.AllowDuplicateKeys = &allowduplicatekeys @@ -66,8 +56,6 @@ func (s *_jsonProcessor) AllowDuplicateKeys(allowduplicatekeys bool) *_jsonProce return s } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_jsonProcessor) Description(description string) *_jsonProcessor { s.v.Description = &description @@ -75,7 +63,6 @@ func (s *_jsonProcessor) Description(description string) *_jsonProcessor { return s } -// The field to be parsed. func (s *_jsonProcessor) Field(field string) *_jsonProcessor { s.v.Field = field @@ -83,7 +70,6 @@ func (s *_jsonProcessor) Field(field string) *_jsonProcessor { return s } -// Conditionally execute the processor. func (s *_jsonProcessor) If(if_ types.ScriptVariant) *_jsonProcessor { s.v.If = if_.ScriptCaster() @@ -91,7 +77,6 @@ func (s *_jsonProcessor) If(if_ types.ScriptVariant) *_jsonProcessor { return s } -// Ignore failures for the processor. func (s *_jsonProcessor) IgnoreFailure(ignorefailure bool) *_jsonProcessor { s.v.IgnoreFailure = &ignorefailure @@ -99,7 +84,6 @@ func (s *_jsonProcessor) IgnoreFailure(ignorefailure bool) *_jsonProcessor { return s } -// Handle failures for the processor. func (s *_jsonProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_jsonProcessor { for _, v := range onfailures { @@ -110,8 +94,6 @@ func (s *_jsonProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_jsonProcessor) Tag(tag string) *_jsonProcessor { s.v.Tag = &tag @@ -119,8 +101,6 @@ func (s *_jsonProcessor) Tag(tag string) *_jsonProcessor { return s } -// The field that the converted structured object will be written into. -// Any existing content in this field will be overwritten. func (s *_jsonProcessor) TargetField(field string) *_jsonProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/keeptypestokenfilter.go b/typedapi/esdsl/keeptypestokenfilter.go index 7fb9afa613..603660eec2 100644 --- a/typedapi/esdsl/keeptypestokenfilter.go +++ b/typedapi/esdsl/keeptypestokenfilter.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/keeptypesmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/keeptypesmode" ) type _keepTypesTokenFilter struct { diff --git a/typedapi/esdsl/keepwordstokenfilter.go b/typedapi/esdsl/keepwordstokenfilter.go index 079fd5ab27..1d44e345e6 100644 --- a/typedapi/esdsl/keepwordstokenfilter.go +++ b/typedapi/esdsl/keepwordstokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _keepWordsTokenFilter struct { v *types.KeepWordsTokenFilter diff --git a/typedapi/esdsl/keyvalueprocessor.go b/typedapi/esdsl/keyvalueprocessor.go index 439636210b..7c0ba0f12c 100644 --- a/typedapi/esdsl/keyvalueprocessor.go +++ b/typedapi/esdsl/keyvalueprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _keyValueProcessor struct { v *types.KeyValueProcessor @@ -40,8 +40,6 @@ func NewKeyValueProcessor(fieldsplit string, valuesplit string) *_keyValueProces } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_keyValueProcessor) Description(description string) *_keyValueProcessor { s.v.Description = &description @@ -49,7 +47,6 @@ func (s *_keyValueProcessor) Description(description string) *_keyValueProcessor return s } -// List of keys to exclude from document. func (s *_keyValueProcessor) ExcludeKeys(excludekeys ...string) *_keyValueProcessor { for _, v := range excludekeys { @@ -60,8 +57,6 @@ func (s *_keyValueProcessor) ExcludeKeys(excludekeys ...string) *_keyValueProces return s } -// The field to be parsed. -// Supports template snippets. func (s *_keyValueProcessor) Field(field string) *_keyValueProcessor { s.v.Field = field @@ -69,7 +64,6 @@ func (s *_keyValueProcessor) Field(field string) *_keyValueProcessor { return s } -// Regex pattern to use for splitting key-value pairs. func (s *_keyValueProcessor) FieldSplit(fieldsplit string) *_keyValueProcessor { s.v.FieldSplit = fieldsplit @@ -77,7 +71,6 @@ func (s *_keyValueProcessor) FieldSplit(fieldsplit string) *_keyValueProcessor { return s } -// Conditionally execute the processor. func (s *_keyValueProcessor) If(if_ types.ScriptVariant) *_keyValueProcessor { s.v.If = if_.ScriptCaster() @@ -85,7 +78,6 @@ func (s *_keyValueProcessor) If(if_ types.ScriptVariant) *_keyValueProcessor { return s } -// Ignore failures for the processor. func (s *_keyValueProcessor) IgnoreFailure(ignorefailure bool) *_keyValueProcessor { s.v.IgnoreFailure = &ignorefailure @@ -93,8 +85,6 @@ func (s *_keyValueProcessor) IgnoreFailure(ignorefailure bool) *_keyValueProcess return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document. func (s *_keyValueProcessor) IgnoreMissing(ignoremissing bool) *_keyValueProcessor { s.v.IgnoreMissing = &ignoremissing @@ -102,8 +92,6 @@ func (s *_keyValueProcessor) IgnoreMissing(ignoremissing bool) *_keyValueProcess return s } -// List of keys to filter and insert into document. -// Defaults to including all keys. func (s *_keyValueProcessor) IncludeKeys(includekeys ...string) *_keyValueProcessor { for _, v := range includekeys { @@ -114,7 +102,6 @@ func (s *_keyValueProcessor) IncludeKeys(includekeys ...string) *_keyValueProces return s } -// Handle failures for the processor. func (s *_keyValueProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_keyValueProcessor { for _, v := range onfailures { @@ -125,7 +112,6 @@ func (s *_keyValueProcessor) OnFailure(onfailures ...types.ProcessorContainerVar return s } -// Prefix to be added to extracted keys. func (s *_keyValueProcessor) Prefix(prefix string) *_keyValueProcessor { s.v.Prefix = &prefix @@ -133,8 +119,6 @@ func (s *_keyValueProcessor) Prefix(prefix string) *_keyValueProcessor { return s } -// If `true`. strip brackets `()`, `<>`, `[]` as well as quotes `'` and `"` from -// extracted values. func (s *_keyValueProcessor) StripBrackets(stripbrackets bool) *_keyValueProcessor { s.v.StripBrackets = &stripbrackets @@ -142,8 +126,6 @@ func (s *_keyValueProcessor) StripBrackets(stripbrackets bool) *_keyValueProcess return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_keyValueProcessor) Tag(tag string) *_keyValueProcessor { s.v.Tag = &tag @@ -151,9 +133,6 @@ func (s *_keyValueProcessor) Tag(tag string) *_keyValueProcessor { return s } -// The field to insert the extracted keys into. -// Defaults to the root of the document. -// Supports template snippets. func (s *_keyValueProcessor) TargetField(field string) *_keyValueProcessor { s.v.TargetField = &field @@ -161,7 +140,6 @@ func (s *_keyValueProcessor) TargetField(field string) *_keyValueProcessor { return s } -// String of characters to trim from extracted keys. func (s *_keyValueProcessor) TrimKey(trimkey string) *_keyValueProcessor { s.v.TrimKey = &trimkey @@ -169,7 +147,6 @@ func (s *_keyValueProcessor) TrimKey(trimkey string) *_keyValueProcessor { return s } -// String of characters to trim from extracted values. func (s *_keyValueProcessor) TrimValue(trimvalue string) *_keyValueProcessor { s.v.TrimValue = &trimvalue @@ -177,8 +154,6 @@ func (s *_keyValueProcessor) TrimValue(trimvalue string) *_keyValueProcessor { return s } -// Regex pattern to use for splitting the key from the value within a key-value -// pair. func (s *_keyValueProcessor) ValueSplit(valuesplit string) *_keyValueProcessor { s.v.ValueSplit = valuesplit diff --git a/typedapi/esdsl/keywordanalyzer.go b/typedapi/esdsl/keywordanalyzer.go index d2b7590e8e..16b685151a 100644 --- a/typedapi/esdsl/keywordanalyzer.go +++ b/typedapi/esdsl/keywordanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _keywordAnalyzer struct { v *types.KeywordAnalyzer diff --git a/typedapi/esdsl/keywordmarkertokenfilter.go b/typedapi/esdsl/keywordmarkertokenfilter.go index e7eb5ca879..26db8365a5 100644 --- a/typedapi/esdsl/keywordmarkertokenfilter.go +++ b/typedapi/esdsl/keywordmarkertokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _keywordMarkerTokenFilter struct { v *types.KeywordMarkerTokenFilter diff --git a/typedapi/esdsl/keywordproperty.go b/typedapi/esdsl/keywordproperty.go index e51dcbfd0e..db53fbfb3c 100644 --- a/typedapi/esdsl/keywordproperty.go +++ b/typedapi/esdsl/keywordproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _keywordProperty struct { @@ -113,7 +113,6 @@ func (s *_keywordProperty) IndexOptions(indexoptions indexoptions.IndexOptions) return s } -// Metadata about the field. func (s *_keywordProperty) Meta(meta map[string]string) *_keywordProperty { s.v.Meta = meta @@ -217,8 +216,6 @@ func (s *_keywordProperty) SyntheticSourceKeep(syntheticsourcekeep syntheticsour return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_keywordProperty) TimeSeriesDimension(timeseriesdimension bool) *_keywordProperty { s.v.TimeSeriesDimension = ×eriesdimension diff --git a/typedapi/esdsl/keywordtokenizer.go b/typedapi/esdsl/keywordtokenizer.go index dcf3a409c7..0d39a20587 100644 --- a/typedapi/esdsl/keywordtokenizer.go +++ b/typedapi/esdsl/keywordtokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _keywordTokenizer struct { v *types.KeywordTokenizer diff --git a/typedapi/esdsl/knnquery.go b/typedapi/esdsl/knnquery.go index c72079acb0..dd0b2b6425 100644 --- a/typedapi/esdsl/knnquery.go +++ b/typedapi/esdsl/knnquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _knnQuery struct { v *types.KnnQuery @@ -35,11 +35,6 @@ func NewKnnQuery() *_knnQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_knnQuery) Boost(boost float32) *_knnQuery { s.v.Boost = &boost @@ -47,7 +42,6 @@ func (s *_knnQuery) Boost(boost float32) *_knnQuery { return s } -// The name of the vector field to search against func (s *_knnQuery) Field(field string) *_knnQuery { s.v.Field = field @@ -55,7 +49,6 @@ func (s *_knnQuery) Field(field string) *_knnQuery { return s } -// Filters for the kNN search query func (s *_knnQuery) Filter(filters ...types.QueryVariant) *_knnQuery { s.v.Filter = make([]types.Query, len(filters)) @@ -66,7 +59,6 @@ func (s *_knnQuery) Filter(filters ...types.QueryVariant) *_knnQuery { return s } -// The final number of nearest neighbors to return as top hits func (s *_knnQuery) K(k int) *_knnQuery { s.v.K = &k @@ -74,7 +66,6 @@ func (s *_knnQuery) K(k int) *_knnQuery { return s } -// The number of nearest neighbor candidates to consider per shard func (s *_knnQuery) NumCandidates(numcandidates int) *_knnQuery { s.v.NumCandidates = &numcandidates @@ -89,7 +80,6 @@ func (s *_knnQuery) QueryName_(queryname_ string) *_knnQuery { return s } -// The query vector func (s *_knnQuery) QueryVector(queryvectors ...float32) *_knnQuery { s.v.QueryVector = queryvectors @@ -97,8 +87,6 @@ func (s *_knnQuery) QueryVector(queryvectors ...float32) *_knnQuery { return s } -// The query vector builder. You must provide a query_vector_builder or -// query_vector, but not both. func (s *_knnQuery) QueryVectorBuilder(queryvectorbuilder types.QueryVectorBuilderVariant) *_knnQuery { s.v.QueryVectorBuilder = queryvectorbuilder.QueryVectorBuilderCaster() @@ -106,7 +94,6 @@ func (s *_knnQuery) QueryVectorBuilder(queryvectorbuilder types.QueryVectorBuild return s } -// Apply oversampling and rescoring to quantized vectors * func (s *_knnQuery) RescoreVector(rescorevector types.RescoreVectorVariant) *_knnQuery { s.v.RescoreVector = rescorevector.RescoreVectorCaster() @@ -114,7 +101,6 @@ func (s *_knnQuery) RescoreVector(rescorevector types.RescoreVectorVariant) *_kn return s } -// The minimum similarity for a vector to be considered a match func (s *_knnQuery) Similarity(similarity float32) *_knnQuery { s.v.Similarity = &similarity diff --git a/typedapi/esdsl/knnretriever.go b/typedapi/esdsl/knnretriever.go index 78bb3b2d6e..ffce48b094 100644 --- a/typedapi/esdsl/knnretriever.go +++ b/typedapi/esdsl/knnretriever.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _knnRetriever struct { v *types.KnnRetriever @@ -41,7 +41,6 @@ func NewKnnRetriever(field string, k int, numcandidates int) *_knnRetriever { } -// The name of the vector field to search against. func (s *_knnRetriever) Field(field string) *_knnRetriever { s.v.Field = field @@ -49,7 +48,6 @@ func (s *_knnRetriever) Field(field string) *_knnRetriever { return s } -// Query to filter the documents that can match. func (s *_knnRetriever) Filter(filters ...types.QueryVariant) *_knnRetriever { s.v.Filter = make([]types.Query, len(filters)) @@ -60,7 +58,6 @@ func (s *_knnRetriever) Filter(filters ...types.QueryVariant) *_knnRetriever { return s } -// Number of nearest neighbors to return as top hits. func (s *_knnRetriever) K(k int) *_knnRetriever { s.v.K = k @@ -68,8 +65,6 @@ func (s *_knnRetriever) K(k int) *_knnRetriever { return s } -// Minimum _score for matching documents. Documents with a lower _score are not -// included in the top documents. func (s *_knnRetriever) MinScore(minscore float32) *_knnRetriever { s.v.MinScore = &minscore @@ -77,7 +72,6 @@ func (s *_knnRetriever) MinScore(minscore float32) *_knnRetriever { return s } -// Number of nearest neighbor candidates to consider per shard. func (s *_knnRetriever) NumCandidates(numcandidates int) *_knnRetriever { s.v.NumCandidates = numcandidates @@ -85,9 +79,6 @@ func (s *_knnRetriever) NumCandidates(numcandidates int) *_knnRetriever { return s } -// Query vector. Must have the same number of dimensions as the vector field you -// are searching against. You must provide a query_vector_builder or -// query_vector, but not both. func (s *_knnRetriever) QueryVector(queryvectors ...float32) *_knnRetriever { s.v.QueryVector = queryvectors @@ -95,7 +86,6 @@ func (s *_knnRetriever) QueryVector(queryvectors ...float32) *_knnRetriever { return s } -// Defines a model to build a query vector. func (s *_knnRetriever) QueryVectorBuilder(queryvectorbuilder types.QueryVectorBuilderVariant) *_knnRetriever { s.v.QueryVectorBuilder = queryvectorbuilder.QueryVectorBuilderCaster() @@ -103,7 +93,6 @@ func (s *_knnRetriever) QueryVectorBuilder(queryvectorbuilder types.QueryVectorB return s } -// Apply oversampling and rescoring to quantized vectors * func (s *_knnRetriever) RescoreVector(rescorevector types.RescoreVectorVariant) *_knnRetriever { s.v.RescoreVector = rescorevector.RescoreVectorCaster() @@ -111,7 +100,6 @@ func (s *_knnRetriever) RescoreVector(rescorevector types.RescoreVectorVariant) return s } -// The minimum similarity required for a document to be considered a match. func (s *_knnRetriever) Similarity(similarity float32) *_knnRetriever { s.v.Similarity = &similarity diff --git a/typedapi/esdsl/knnsearch.go b/typedapi/esdsl/knnsearch.go index db5b925d19..d3ad0059e1 100644 --- a/typedapi/esdsl/knnsearch.go +++ b/typedapi/esdsl/knnsearch.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _knnSearch struct { v *types.KnnSearch @@ -32,7 +32,6 @@ func NewKnnSearch() *_knnSearch { } -// Boost value to apply to kNN scores func (s *_knnSearch) Boost(boost float32) *_knnSearch { s.v.Boost = &boost @@ -40,7 +39,6 @@ func (s *_knnSearch) Boost(boost float32) *_knnSearch { return s } -// The name of the vector field to search against func (s *_knnSearch) Field(field string) *_knnSearch { s.v.Field = field @@ -48,7 +46,6 @@ func (s *_knnSearch) Field(field string) *_knnSearch { return s } -// Filters for the kNN search query func (s *_knnSearch) Filter(filters ...types.QueryVariant) *_knnSearch { s.v.Filter = make([]types.Query, len(filters)) @@ -59,7 +56,6 @@ func (s *_knnSearch) Filter(filters ...types.QueryVariant) *_knnSearch { return s } -// If defined, each search hit will contain inner hits. func (s *_knnSearch) InnerHits(innerhits types.InnerHitsVariant) *_knnSearch { s.v.InnerHits = innerhits.InnerHitsCaster() @@ -67,7 +63,6 @@ func (s *_knnSearch) InnerHits(innerhits types.InnerHitsVariant) *_knnSearch { return s } -// The final number of nearest neighbors to return as top hits func (s *_knnSearch) K(k int) *_knnSearch { s.v.K = &k @@ -75,7 +70,6 @@ func (s *_knnSearch) K(k int) *_knnSearch { return s } -// The number of nearest neighbor candidates to consider per shard func (s *_knnSearch) NumCandidates(numcandidates int) *_knnSearch { s.v.NumCandidates = &numcandidates @@ -83,7 +77,6 @@ func (s *_knnSearch) NumCandidates(numcandidates int) *_knnSearch { return s } -// The query vector func (s *_knnSearch) QueryVector(queryvectors ...float32) *_knnSearch { s.v.QueryVector = queryvectors @@ -91,8 +84,6 @@ func (s *_knnSearch) QueryVector(queryvectors ...float32) *_knnSearch { return s } -// The query vector builder. You must provide a query_vector_builder or -// query_vector, but not both. func (s *_knnSearch) QueryVectorBuilder(queryvectorbuilder types.QueryVectorBuilderVariant) *_knnSearch { s.v.QueryVectorBuilder = queryvectorbuilder.QueryVectorBuilderCaster() @@ -100,7 +91,6 @@ func (s *_knnSearch) QueryVectorBuilder(queryvectorbuilder types.QueryVectorBuil return s } -// Apply oversampling and rescoring to quantized vectors * func (s *_knnSearch) RescoreVector(rescorevector types.RescoreVectorVariant) *_knnSearch { s.v.RescoreVector = rescorevector.RescoreVectorCaster() @@ -108,7 +98,6 @@ func (s *_knnSearch) RescoreVector(rescorevector types.RescoreVectorVariant) *_k return s } -// The minimum similarity for a vector to be considered a match func (s *_knnSearch) Similarity(similarity float32) *_knnSearch { s.v.Similarity = &similarity diff --git a/typedapi/esdsl/kstemtokenfilter.go b/typedapi/esdsl/kstemtokenfilter.go index 5f26eb027a..18c4687138 100644 --- a/typedapi/esdsl/kstemtokenfilter.go +++ b/typedapi/esdsl/kstemtokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _kStemTokenFilter struct { v *types.KStemTokenFilter diff --git a/typedapi/esdsl/kuromojianalyzer.go b/typedapi/esdsl/kuromojianalyzer.go index 6545c4ef26..75faf225c2 100644 --- a/typedapi/esdsl/kuromojianalyzer.go +++ b/typedapi/esdsl/kuromojianalyzer.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/kuromojitokenizationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/kuromojitokenizationmode" ) type _kuromojiAnalyzer struct { diff --git a/typedapi/esdsl/kuromojiiterationmarkcharfilter.go b/typedapi/esdsl/kuromojiiterationmarkcharfilter.go index c825d8c7ce..c78bde390d 100644 --- a/typedapi/esdsl/kuromojiiterationmarkcharfilter.go +++ b/typedapi/esdsl/kuromojiiterationmarkcharfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _kuromojiIterationMarkCharFilter struct { v *types.KuromojiIterationMarkCharFilter diff --git a/typedapi/esdsl/kuromojipartofspeechtokenfilter.go b/typedapi/esdsl/kuromojipartofspeechtokenfilter.go index 529c3952c0..77d597b870 100644 --- a/typedapi/esdsl/kuromojipartofspeechtokenfilter.go +++ b/typedapi/esdsl/kuromojipartofspeechtokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _kuromojiPartOfSpeechTokenFilter struct { v *types.KuromojiPartOfSpeechTokenFilter diff --git a/typedapi/esdsl/kuromojireadingformtokenfilter.go b/typedapi/esdsl/kuromojireadingformtokenfilter.go index 7058a0457c..8b5900b705 100644 --- a/typedapi/esdsl/kuromojireadingformtokenfilter.go +++ b/typedapi/esdsl/kuromojireadingformtokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _kuromojiReadingFormTokenFilter struct { v *types.KuromojiReadingFormTokenFilter diff --git a/typedapi/esdsl/kuromojistemmertokenfilter.go b/typedapi/esdsl/kuromojistemmertokenfilter.go index 2f65f39820..336fe3c6a5 100644 --- a/typedapi/esdsl/kuromojistemmertokenfilter.go +++ b/typedapi/esdsl/kuromojistemmertokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _kuromojiStemmerTokenFilter struct { v *types.KuromojiStemmerTokenFilter diff --git a/typedapi/esdsl/kuromojitokenizer.go b/typedapi/esdsl/kuromojitokenizer.go index 23e743fae2..b68bcb68b1 100644 --- a/typedapi/esdsl/kuromojitokenizer.go +++ b/typedapi/esdsl/kuromojitokenizer.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/kuromojitokenizationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/kuromojitokenizationmode" ) type _kuromojiTokenizer struct { diff --git a/typedapi/esdsl/laplacesmoothingmodel.go b/typedapi/esdsl/laplacesmoothingmodel.go index 9865fa40ea..ca661985ae 100644 --- a/typedapi/esdsl/laplacesmoothingmodel.go +++ b/typedapi/esdsl/laplacesmoothingmodel.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _laplaceSmoothingModel struct { v *types.LaplaceSmoothingModel @@ -38,7 +38,6 @@ func NewLaplaceSmoothingModel(alpha types.Float64) *_laplaceSmoothingModel { } -// A constant that is added to all counts to balance weights. func (s *_laplaceSmoothingModel) Alpha(alpha types.Float64) *_laplaceSmoothingModel { s.v.Alpha = alpha diff --git a/typedapi/esdsl/latest.go b/typedapi/esdsl/latest.go index 4a6535638c..929f0c8c0e 100644 --- a/typedapi/esdsl/latest.go +++ b/typedapi/esdsl/latest.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _latest struct { v *types.Latest @@ -32,7 +32,6 @@ func NewLatest() *_latest { } -// Specifies the date field that is used to identify the latest documents. func (s *_latest) Sort(field string) *_latest { s.v.Sort = field @@ -40,7 +39,6 @@ func (s *_latest) Sort(field string) *_latest { return s } -// Specifies an array of one or more fields that are used to group the data. func (s *_latest) UniqueKey(uniquekeys ...string) *_latest { for _, v := range uniquekeys { diff --git a/typedapi/esdsl/latlongeolocation.go b/typedapi/esdsl/latlongeolocation.go index 2c3ac1b7b9..2eb4674bb8 100644 --- a/typedapi/esdsl/latlongeolocation.go +++ b/typedapi/esdsl/latlongeolocation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _latLonGeoLocation struct { v *types.LatLonGeoLocation @@ -38,7 +38,6 @@ func NewLatLonGeoLocation(lat types.Float64, lon types.Float64) *_latLonGeoLocat } -// Latitude func (s *_latLonGeoLocation) Lat(lat types.Float64) *_latLonGeoLocation { s.v.Lat = lat @@ -46,7 +45,6 @@ func (s *_latLonGeoLocation) Lat(lat types.Float64) *_latLonGeoLocation { return s } -// Longitude func (s *_latLonGeoLocation) Lon(lon types.Float64) *_latLonGeoLocation { s.v.Lon = lon diff --git a/typedapi/esdsl/latviananalyzer.go b/typedapi/esdsl/latviananalyzer.go index 3104d1dae7..88c8738b7e 100644 --- a/typedapi/esdsl/latviananalyzer.go +++ b/typedapi/esdsl/latviananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _latvianAnalyzer struct { v *types.LatvianAnalyzer diff --git a/typedapi/esdsl/learningtorank.go b/typedapi/esdsl/learningtorank.go index e9e096cc73..6d855818d1 100644 --- a/typedapi/esdsl/learningtorank.go +++ b/typedapi/esdsl/learningtorank.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _learningToRank struct { @@ -40,7 +40,6 @@ func NewLearningToRank(modelid string) *_learningToRank { } -// The unique identifier of the trained model uploaded to Elasticsearch func (s *_learningToRank) ModelId(modelid string) *_learningToRank { s.v.ModelId = modelid @@ -48,7 +47,6 @@ func (s *_learningToRank) ModelId(modelid string) *_learningToRank { return s } -// Named parameters to be passed to the query templates used for feature func (s *_learningToRank) Params(params map[string]json.RawMessage) *_learningToRank { s.v.Params = params diff --git a/typedapi/esdsl/learningtorankconfig.go b/typedapi/esdsl/learningtorankconfig.go new file mode 100644 index 0000000000..a0de9eefbb --- /dev/null +++ b/typedapi/esdsl/learningtorankconfig.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" +) + +type _learningToRankConfig struct { + v *types.LearningToRankConfig +} + +func NewLearningToRankConfig(numtopfeatureimportancevalues int) *_learningToRankConfig { + + tmp := &_learningToRankConfig{v: types.NewLearningToRankConfig()} + + tmp.NumTopFeatureImportanceValues(numtopfeatureimportancevalues) + + return tmp + +} + +func (s *_learningToRankConfig) DefaultParams(defaultparams map[string]json.RawMessage) *_learningToRankConfig { + + s.v.DefaultParams = defaultparams + return s +} + +func (s *_learningToRankConfig) AddDefaultParam(key string, value json.RawMessage) *_learningToRankConfig { + + var tmp map[string]json.RawMessage + if s.v.DefaultParams == nil { + s.v.DefaultParams = make(map[string]json.RawMessage) + } else { + tmp = s.v.DefaultParams + } + + tmp[key] = value + + s.v.DefaultParams = tmp + return s +} + +func (s *_learningToRankConfig) FeatureExtractors(featureextractors []map[string]types.QueryFeatureExtractor) *_learningToRankConfig { + + s.v.FeatureExtractors = featureextractors + + return s +} + +func (s *_learningToRankConfig) NumTopFeatureImportanceValues(numtopfeatureimportancevalues int) *_learningToRankConfig { + + s.v.NumTopFeatureImportanceValues = numtopfeatureimportancevalues + + return s +} + +func (s *_learningToRankConfig) InferenceConfigCreateContainerCaster() *types.InferenceConfigCreateContainer { + container := types.NewInferenceConfigCreateContainer() + + container.LearningToRank = s.v + + return container +} + +func (s *_learningToRankConfig) LearningToRankConfigCaster() *types.LearningToRankConfig { + return s.v +} diff --git a/typedapi/esdsl/lengthtokenfilter.go b/typedapi/esdsl/lengthtokenfilter.go index 0f7a4ff06e..70c6d3b679 100644 --- a/typedapi/esdsl/lengthtokenfilter.go +++ b/typedapi/esdsl/lengthtokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _lengthTokenFilter struct { v *types.LengthTokenFilter diff --git a/typedapi/esdsl/lessthanvalidation.go b/typedapi/esdsl/lessthanvalidation.go index 88bebe2d42..cf0290e0f1 100644 --- a/typedapi/esdsl/lessthanvalidation.go +++ b/typedapi/esdsl/lessthanvalidation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _lessThanValidation struct { v *types.LessThanValidation diff --git a/typedapi/esdsl/lettertokenizer.go b/typedapi/esdsl/lettertokenizer.go index 6381f72630..7f9de5feb1 100644 --- a/typedapi/esdsl/lettertokenizer.go +++ b/typedapi/esdsl/lettertokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _letterTokenizer struct { v *types.LetterTokenizer diff --git a/typedapi/esdsl/license.go b/typedapi/esdsl/license.go index aee144ccfc..7b0f623686 100644 --- a/typedapi/esdsl/license.go +++ b/typedapi/esdsl/license.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/licensetype" ) type _license struct { diff --git a/typedapi/esdsl/like.go b/typedapi/esdsl/like.go index db3e1dee42..c2d601517b 100644 --- a/typedapi/esdsl/like.go +++ b/typedapi/esdsl/like.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _like struct { diff --git a/typedapi/esdsl/likedocument.go b/typedapi/esdsl/likedocument.go index a0c3652e9a..be1dff3c2b 100644 --- a/typedapi/esdsl/likedocument.go +++ b/typedapi/esdsl/likedocument.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) type _likeDocument struct { @@ -37,7 +37,6 @@ func NewLikeDocument() *_likeDocument { } -// A document not present in the index. func (s *_likeDocument) Doc(doc json.RawMessage) *_likeDocument { s.v.Doc = doc @@ -55,7 +54,6 @@ func (s *_likeDocument) Fields(fields ...string) *_likeDocument { return s } -// ID of a document. func (s *_likeDocument) Id_(id string) *_likeDocument { s.v.Id_ = &id @@ -63,7 +61,6 @@ func (s *_likeDocument) Id_(id string) *_likeDocument { return s } -// Index of a document. func (s *_likeDocument) Index_(indexname string) *_likeDocument { s.v.Index_ = &indexname @@ -71,7 +68,6 @@ func (s *_likeDocument) Index_(indexname string) *_likeDocument { return s } -// Overrides the default analyzer. func (s *_likeDocument) PerFieldAnalyzer(perfieldanalyzer map[string]string) *_likeDocument { s.v.PerFieldAnalyzer = perfieldanalyzer diff --git a/typedapi/esdsl/limittokencounttokenfilter.go b/typedapi/esdsl/limittokencounttokenfilter.go index 0c72936498..dbe9732de2 100644 --- a/typedapi/esdsl/limittokencounttokenfilter.go +++ b/typedapi/esdsl/limittokencounttokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _limitTokenCountTokenFilter struct { v *types.LimitTokenCountTokenFilter diff --git a/typedapi/esdsl/linearinterpolationsmoothingmodel.go b/typedapi/esdsl/linearinterpolationsmoothingmodel.go index 1b7a4ff695..841fc295dc 100644 --- a/typedapi/esdsl/linearinterpolationsmoothingmodel.go +++ b/typedapi/esdsl/linearinterpolationsmoothingmodel.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _linearInterpolationSmoothingModel struct { v *types.LinearInterpolationSmoothingModel diff --git a/typedapi/esdsl/linearmovingaverageaggregation.go b/typedapi/esdsl/linearmovingaverageaggregation.go index 375062d24f..3311fb182f 100644 --- a/typedapi/esdsl/linearmovingaverageaggregation.go +++ b/typedapi/esdsl/linearmovingaverageaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _linearMovingAverageAggregation struct { @@ -39,7 +39,6 @@ func NewLinearMovingAverageAggregation(settings types.EmptyObjectVariant) *_line } -// Path to the buckets that contain one set of values to correlate. func (s *_linearMovingAverageAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_linearMovingAverageAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -47,9 +46,6 @@ func (s *_linearMovingAverageAggregation) BucketsPath(bucketspath types.BucketsP return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_linearMovingAverageAggregation) Format(format string) *_linearMovingAverageAggregation { s.v.Format = &format @@ -57,7 +53,6 @@ func (s *_linearMovingAverageAggregation) Format(format string) *_linearMovingAv return s } -// Policy to apply when gaps are found in the data. func (s *_linearMovingAverageAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_linearMovingAverageAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/listtypevalidation.go b/typedapi/esdsl/listtypevalidation.go index 4d2327e02c..dd5b824170 100644 --- a/typedapi/esdsl/listtypevalidation.go +++ b/typedapi/esdsl/listtypevalidation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _listTypeValidation struct { v *types.ListTypeValidation diff --git a/typedapi/esdsl/lithuaniananalyzer.go b/typedapi/esdsl/lithuaniananalyzer.go index 99eb39c296..54b1b9e30b 100644 --- a/typedapi/esdsl/lithuaniananalyzer.go +++ b/typedapi/esdsl/lithuaniananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _lithuanianAnalyzer struct { v *types.LithuanianAnalyzer diff --git a/typedapi/esdsl/loggingaction.go b/typedapi/esdsl/loggingaction.go index 983f7ecd47..eb229251a7 100644 --- a/typedapi/esdsl/loggingaction.go +++ b/typedapi/esdsl/loggingaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _loggingAction struct { v *types.LoggingAction diff --git a/typedapi/esdsl/logstashpipeline.go b/typedapi/esdsl/logstashpipeline.go index 0cf982c51b..2b85d0db9d 100644 --- a/typedapi/esdsl/logstashpipeline.go +++ b/typedapi/esdsl/logstashpipeline.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _logstashPipeline struct { v *types.LogstashPipeline @@ -44,8 +44,6 @@ func NewLogstashPipeline(description string, pipeline string, pipelinemetadata t } -// A description of the pipeline. -// This description is not used by Elasticsearch or Logstash. func (s *_logstashPipeline) Description(description string) *_logstashPipeline { s.v.Description = description @@ -53,8 +51,6 @@ func (s *_logstashPipeline) Description(description string) *_logstashPipeline { return s } -// The date the pipeline was last updated. -// It must be in the `yyyy-MM-dd'T'HH:mm:ss.SSSZZ` strict_date_time format. func (s *_logstashPipeline) LastModified(datetime types.DateTimeVariant) *_logstashPipeline { s.v.LastModified = *datetime.DateTimeCaster() @@ -62,7 +58,6 @@ func (s *_logstashPipeline) LastModified(datetime types.DateTimeVariant) *_logst return s } -// The configuration for the pipeline. func (s *_logstashPipeline) Pipeline(pipeline string) *_logstashPipeline { s.v.Pipeline = pipeline @@ -70,8 +65,6 @@ func (s *_logstashPipeline) Pipeline(pipeline string) *_logstashPipeline { return s } -// Optional metadata about the pipeline, which can have any contents. -// This metadata is not generated or used by Elasticsearch or Logstash. func (s *_logstashPipeline) PipelineMetadata(pipelinemetadata types.PipelineMetadataVariant) *_logstashPipeline { s.v.PipelineMetadata = *pipelinemetadata.PipelineMetadataCaster() @@ -79,8 +72,6 @@ func (s *_logstashPipeline) PipelineMetadata(pipelinemetadata types.PipelineMeta return s } -// Settings for the pipeline. -// It supports only flat keys in dot notation. func (s *_logstashPipeline) PipelineSettings(pipelinesettings types.PipelineSettingsVariant) *_logstashPipeline { s.v.PipelineSettings = *pipelinesettings.PipelineSettingsCaster() @@ -88,7 +79,6 @@ func (s *_logstashPipeline) PipelineSettings(pipelinesettings types.PipelineSett return s } -// The user who last updated the pipeline. func (s *_logstashPipeline) Username(username string) *_logstashPipeline { s.v.Username = username diff --git a/typedapi/esdsl/longnumberproperty.go b/typedapi/esdsl/longnumberproperty.go index d23389cb4c..e11cceff0b 100644 --- a/typedapi/esdsl/longnumberproperty.go +++ b/typedapi/esdsl/longnumberproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) type _longNumberProperty struct { @@ -114,7 +114,6 @@ func (s *_longNumberProperty) Index(index bool) *_longNumberProperty { return s } -// Metadata about the field. func (s *_longNumberProperty) Meta(meta map[string]string) *_longNumberProperty { s.v.Meta = meta @@ -190,8 +189,6 @@ func (s *_longNumberProperty) SyntheticSourceKeep(syntheticsourcekeep synthetics return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_longNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_longNumberProperty { s.v.TimeSeriesDimension = ×eriesdimension @@ -199,8 +196,6 @@ func (s *_longNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_lo return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_longNumberProperty) TimeSeriesMetric(timeseriesmetric timeseriesmetrictype.TimeSeriesMetricType) *_longNumberProperty { s.v.TimeSeriesMetric = ×eriesmetric diff --git a/typedapi/esdsl/longrangeproperty.go b/typedapi/esdsl/longrangeproperty.go index 3dac643db1..351998fb8c 100644 --- a/typedapi/esdsl/longrangeproperty.go +++ b/typedapi/esdsl/longrangeproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _longRangeProperty struct { @@ -105,7 +105,6 @@ func (s *_longRangeProperty) Index(index bool) *_longRangeProperty { return s } -// Metadata about the field. func (s *_longRangeProperty) Meta(meta map[string]string) *_longRangeProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/lowercasenormalizer.go b/typedapi/esdsl/lowercasenormalizer.go index 0b2e40e4c4..c21c20dd52 100644 --- a/typedapi/esdsl/lowercasenormalizer.go +++ b/typedapi/esdsl/lowercasenormalizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _lowercaseNormalizer struct { v *types.LowercaseNormalizer diff --git a/typedapi/esdsl/lowercaseprocessor.go b/typedapi/esdsl/lowercaseprocessor.go index 471fd87f22..23519d352b 100644 --- a/typedapi/esdsl/lowercaseprocessor.go +++ b/typedapi/esdsl/lowercaseprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _lowercaseProcessor struct { v *types.LowercaseProcessor @@ -35,8 +35,6 @@ func NewLowercaseProcessor() *_lowercaseProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_lowercaseProcessor) Description(description string) *_lowercaseProcessor { s.v.Description = &description @@ -44,7 +42,6 @@ func (s *_lowercaseProcessor) Description(description string) *_lowercaseProcess return s } -// The field to make lowercase. func (s *_lowercaseProcessor) Field(field string) *_lowercaseProcessor { s.v.Field = field @@ -52,7 +49,6 @@ func (s *_lowercaseProcessor) Field(field string) *_lowercaseProcessor { return s } -// Conditionally execute the processor. func (s *_lowercaseProcessor) If(if_ types.ScriptVariant) *_lowercaseProcessor { s.v.If = if_.ScriptCaster() @@ -60,7 +56,6 @@ func (s *_lowercaseProcessor) If(if_ types.ScriptVariant) *_lowercaseProcessor { return s } -// Ignore failures for the processor. func (s *_lowercaseProcessor) IgnoreFailure(ignorefailure bool) *_lowercaseProcessor { s.v.IgnoreFailure = &ignorefailure @@ -68,8 +63,6 @@ func (s *_lowercaseProcessor) IgnoreFailure(ignorefailure bool) *_lowercaseProce return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document. func (s *_lowercaseProcessor) IgnoreMissing(ignoremissing bool) *_lowercaseProcessor { s.v.IgnoreMissing = &ignoremissing @@ -77,7 +70,6 @@ func (s *_lowercaseProcessor) IgnoreMissing(ignoremissing bool) *_lowercaseProce return s } -// Handle failures for the processor. func (s *_lowercaseProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_lowercaseProcessor { for _, v := range onfailures { @@ -88,8 +80,6 @@ func (s *_lowercaseProcessor) OnFailure(onfailures ...types.ProcessorContainerVa return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_lowercaseProcessor) Tag(tag string) *_lowercaseProcessor { s.v.Tag = &tag @@ -97,8 +87,6 @@ func (s *_lowercaseProcessor) Tag(tag string) *_lowercaseProcessor { return s } -// The field to assign the converted value to. -// By default, the field is updated in-place. func (s *_lowercaseProcessor) TargetField(field string) *_lowercaseProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/lowercasetokenfilter.go b/typedapi/esdsl/lowercasetokenfilter.go index 93dff1c1fb..1243cb88c5 100644 --- a/typedapi/esdsl/lowercasetokenfilter.go +++ b/typedapi/esdsl/lowercasetokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _lowercaseTokenFilter struct { v *types.LowercaseTokenFilter diff --git a/typedapi/esdsl/lowercasetokenizer.go b/typedapi/esdsl/lowercasetokenizer.go index 2a6ecb2049..00d122e414 100644 --- a/typedapi/esdsl/lowercasetokenizer.go +++ b/typedapi/esdsl/lowercasetokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _lowercaseTokenizer struct { v *types.LowercaseTokenizer diff --git a/typedapi/esdsl/manageuserprivileges.go b/typedapi/esdsl/manageuserprivileges.go index 92f27e3f09..80fabf2a30 100644 --- a/typedapi/esdsl/manageuserprivileges.go +++ b/typedapi/esdsl/manageuserprivileges.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _manageUserPrivileges struct { v *types.ManageUserPrivileges diff --git a/typedapi/esdsl/mappingcharfilter.go b/typedapi/esdsl/mappingcharfilter.go index 22baab68e3..337945b0df 100644 --- a/typedapi/esdsl/mappingcharfilter.go +++ b/typedapi/esdsl/mappingcharfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _mappingCharFilter struct { v *types.MappingCharFilter diff --git a/typedapi/esdsl/mappinglimitsettings.go b/typedapi/esdsl/mappinglimitsettings.go index c7a7635391..d2fecf48ad 100644 --- a/typedapi/esdsl/mappinglimitsettings.go +++ b/typedapi/esdsl/mappinglimitsettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _mappingLimitSettings struct { v *types.MappingLimitSettings diff --git a/typedapi/esdsl/mappinglimitsettingsdepth.go b/typedapi/esdsl/mappinglimitsettingsdepth.go index ffc797b2e1..4a8d15c6bf 100644 --- a/typedapi/esdsl/mappinglimitsettingsdepth.go +++ b/typedapi/esdsl/mappinglimitsettingsdepth.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _mappingLimitSettingsDepth struct { v *types.MappingLimitSettingsDepth @@ -32,10 +32,6 @@ func NewMappingLimitSettingsDepth() *_mappingLimitSettingsDepth { } -// The maximum depth for a field, which is measured as the number of inner -// objects. For instance, if all fields are defined -// at the root object level, then the depth is 1. If there is one object -// mapping, then the depth is 2, etc. func (s *_mappingLimitSettingsDepth) Limit(limit int64) *_mappingLimitSettingsDepth { s.v.Limit = &limit diff --git a/typedapi/esdsl/mappinglimitsettingsdimensionfields.go b/typedapi/esdsl/mappinglimitsettingsdimensionfields.go index 65df1bb261..f302ba6e9b 100644 --- a/typedapi/esdsl/mappinglimitsettingsdimensionfields.go +++ b/typedapi/esdsl/mappinglimitsettingsdimensionfields.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _mappingLimitSettingsDimensionFields struct { v *types.MappingLimitSettingsDimensionFields @@ -32,10 +32,6 @@ func NewMappingLimitSettingsDimensionFields() *_mappingLimitSettingsDimensionFie } -// [preview] This functionality is in technical preview and may be changed or -// removed in a future release. -// Elastic will work to fix any issues, but features in technical preview are -// not subject to the support SLA of official GA features. func (s *_mappingLimitSettingsDimensionFields) Limit(limit int64) *_mappingLimitSettingsDimensionFields { s.v.Limit = &limit diff --git a/typedapi/esdsl/mappinglimitsettingsfieldnamelength.go b/typedapi/esdsl/mappinglimitsettingsfieldnamelength.go index 097f8e372b..8f63750215 100644 --- a/typedapi/esdsl/mappinglimitsettingsfieldnamelength.go +++ b/typedapi/esdsl/mappinglimitsettingsfieldnamelength.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _mappingLimitSettingsFieldNameLength struct { v *types.MappingLimitSettingsFieldNameLength @@ -32,12 +32,6 @@ func NewMappingLimitSettingsFieldNameLength() *_mappingLimitSettingsFieldNameLen } -// Setting for the maximum length of a field name. This setting isn’t really -// something that addresses mappings explosion but -// might still be useful if you want to limit the field length. It usually -// shouldn’t be necessary to set this setting. The -// default is okay unless a user starts to add a huge number of fields with -// really long names. Default is `Long.MAX_VALUE` (no limit). func (s *_mappingLimitSettingsFieldNameLength) Limit(limit int64) *_mappingLimitSettingsFieldNameLength { s.v.Limit = &limit diff --git a/typedapi/esdsl/mappinglimitsettingsnestedfields.go b/typedapi/esdsl/mappinglimitsettingsnestedfields.go index 581caa58d6..6f5a18ef54 100644 --- a/typedapi/esdsl/mappinglimitsettingsnestedfields.go +++ b/typedapi/esdsl/mappinglimitsettingsnestedfields.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _mappingLimitSettingsNestedFields struct { v *types.MappingLimitSettingsNestedFields @@ -32,11 +32,6 @@ func NewMappingLimitSettingsNestedFields() *_mappingLimitSettingsNestedFields { } -// The maximum number of distinct nested mappings in an index. The nested type -// should only be used in special cases, when -// arrays of objects need to be queried independently of each other. To -// safeguard against poorly designed mappings, this -// setting limits the number of unique nested types per index. func (s *_mappingLimitSettingsNestedFields) Limit(limit int64) *_mappingLimitSettingsNestedFields { s.v.Limit = &limit diff --git a/typedapi/esdsl/mappinglimitsettingsnestedobjects.go b/typedapi/esdsl/mappinglimitsettingsnestedobjects.go index 3fd08f7147..591bc641b9 100644 --- a/typedapi/esdsl/mappinglimitsettingsnestedobjects.go +++ b/typedapi/esdsl/mappinglimitsettingsnestedobjects.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _mappingLimitSettingsNestedObjects struct { v *types.MappingLimitSettingsNestedObjects @@ -32,10 +32,6 @@ func NewMappingLimitSettingsNestedObjects() *_mappingLimitSettingsNestedObjects } -// The maximum number of nested JSON objects that a single document can contain -// across all nested types. This limit helps -// to prevent out of memory errors when a document contains too many nested -// objects. func (s *_mappingLimitSettingsNestedObjects) Limit(limit int64) *_mappingLimitSettingsNestedObjects { s.v.Limit = &limit diff --git a/typedapi/esdsl/mappinglimitsettingssourcefields.go b/typedapi/esdsl/mappinglimitsettingssourcefields.go index c9f3092b3a..5466efcaf3 100644 --- a/typedapi/esdsl/mappinglimitsettingssourcefields.go +++ b/typedapi/esdsl/mappinglimitsettingssourcefields.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sourcemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sourcemode" ) type _mappingLimitSettingsSourceFields struct { diff --git a/typedapi/esdsl/mappinglimitsettingstotalfields.go b/typedapi/esdsl/mappinglimitsettingstotalfields.go index e911aaf6c4..390bf43f84 100644 --- a/typedapi/esdsl/mappinglimitsettingstotalfields.go +++ b/typedapi/esdsl/mappinglimitsettingstotalfields.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _mappingLimitSettingsTotalFields struct { v *types.MappingLimitSettingsTotalFields @@ -32,16 +32,6 @@ func NewMappingLimitSettingsTotalFields() *_mappingLimitSettingsTotalFields { } -// This setting determines what happens when a dynamically mapped field would -// exceed the total fields limit. When set -// to false (the default), the index request of the document that tries to add a -// dynamic field to the mapping will fail -// with the message Limit of total fields [X] has been exceeded. When set to -// true, the index request will not fail. -// Instead, fields that would exceed the limit are not added to the mapping, -// similar to dynamic: false. -// The fields that were not added to the mapping will be added to the _ignored -// field. func (s *_mappingLimitSettingsTotalFields) IgnoreDynamicBeyondLimit(ignoredynamicbeyondlimit string) *_mappingLimitSettingsTotalFields { s.v.IgnoreDynamicBeyondLimit = ignoredynamicbeyondlimit @@ -49,12 +39,6 @@ func (s *_mappingLimitSettingsTotalFields) IgnoreDynamicBeyondLimit(ignoredynami return s } -// 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. func (s *_mappingLimitSettingsTotalFields) Limit(limit string) *_mappingLimitSettingsTotalFields { s.v.Limit = limit diff --git a/typedapi/esdsl/matchallquery.go b/typedapi/esdsl/matchallquery.go index ec99f7bc27..b158a5ee21 100644 --- a/typedapi/esdsl/matchallquery.go +++ b/typedapi/esdsl/matchallquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _matchAllQuery struct { v *types.MatchAllQuery @@ -33,11 +33,6 @@ func NewMatchAllQuery() *_matchAllQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_matchAllQuery) Boost(boost float32) *_matchAllQuery { s.v.Boost = &boost diff --git a/typedapi/esdsl/matchboolprefixquery.go b/typedapi/esdsl/matchboolprefixquery.go index 48a10d44e4..6762e40e8b 100644 --- a/typedapi/esdsl/matchboolprefixquery.go +++ b/typedapi/esdsl/matchboolprefixquery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" ) type _matchBoolPrefixQuery struct { @@ -43,7 +43,6 @@ func NewMatchBoolPrefixQuery(field string, query string) *_matchBoolPrefixQuery return tmp } -// Analyzer used to convert the text in the query value into tokens. func (s *_matchBoolPrefixQuery) Analyzer(analyzer string) *_matchBoolPrefixQuery { s.v.Analyzer = &analyzer @@ -51,11 +50,6 @@ func (s *_matchBoolPrefixQuery) Analyzer(analyzer string) *_matchBoolPrefixQuery return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_matchBoolPrefixQuery) Boost(boost float32) *_matchBoolPrefixQuery { s.v.Boost = &boost @@ -63,9 +57,6 @@ func (s *_matchBoolPrefixQuery) Boost(boost float32) *_matchBoolPrefixQuery { return s } -// Maximum edit distance allowed for matching. -// Can be applied to the term subqueries constructed for all terms but the final -// term. func (s *_matchBoolPrefixQuery) Fuzziness(fuzziness types.FuzzinessVariant) *_matchBoolPrefixQuery { s.v.Fuzziness = *fuzziness.FuzzinessCaster() @@ -73,9 +64,6 @@ func (s *_matchBoolPrefixQuery) Fuzziness(fuzziness types.FuzzinessVariant) *_ma return s } -// Method used to rewrite the query. -// Can be applied to the term subqueries constructed for all terms but the final -// term. func (s *_matchBoolPrefixQuery) FuzzyRewrite(multitermqueryrewrite string) *_matchBoolPrefixQuery { s.v.FuzzyRewrite = &multitermqueryrewrite @@ -83,10 +71,6 @@ func (s *_matchBoolPrefixQuery) FuzzyRewrite(multitermqueryrewrite string) *_mat return s } -// If `true`, edits for fuzzy matching include transpositions of two adjacent -// characters (for example, `ab` to `ba`). -// Can be applied to the term subqueries constructed for all terms but the final -// term. func (s *_matchBoolPrefixQuery) FuzzyTranspositions(fuzzytranspositions bool) *_matchBoolPrefixQuery { s.v.FuzzyTranspositions = &fuzzytranspositions @@ -94,9 +78,6 @@ func (s *_matchBoolPrefixQuery) FuzzyTranspositions(fuzzytranspositions bool) *_ return s } -// Maximum number of terms to which the query will expand. -// Can be applied to the term subqueries constructed for all terms but the final -// term. func (s *_matchBoolPrefixQuery) MaxExpansions(maxexpansions int) *_matchBoolPrefixQuery { s.v.MaxExpansions = &maxexpansions @@ -104,8 +85,6 @@ func (s *_matchBoolPrefixQuery) MaxExpansions(maxexpansions int) *_matchBoolPref return s } -// Minimum number of clauses that must match for a document to be returned. -// Applied to the constructed bool query. func (s *_matchBoolPrefixQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShouldMatchVariant) *_matchBoolPrefixQuery { s.v.MinimumShouldMatch = *minimumshouldmatch.MinimumShouldMatchCaster() @@ -113,17 +92,12 @@ func (s *_matchBoolPrefixQuery) MinimumShouldMatch(minimumshouldmatch types.Mini return s } -// Boolean logic used to interpret text in the query value. -// Applied to the constructed bool query. func (s *_matchBoolPrefixQuery) Operator(operator operator.Operator) *_matchBoolPrefixQuery { s.v.Operator = &operator return s } -// Number of beginning characters left unchanged for fuzzy matching. -// Can be applied to the term subqueries constructed for all terms but the final -// term. func (s *_matchBoolPrefixQuery) PrefixLength(prefixlength int) *_matchBoolPrefixQuery { s.v.PrefixLength = &prefixlength @@ -131,8 +105,6 @@ func (s *_matchBoolPrefixQuery) PrefixLength(prefixlength int) *_matchBoolPrefix return s } -// Terms you wish to find in the provided field. -// The last term is used in a prefix query. func (s *_matchBoolPrefixQuery) Query(query string) *_matchBoolPrefixQuery { s.v.Query = query diff --git a/typedapi/esdsl/matchnonequery.go b/typedapi/esdsl/matchnonequery.go index 65a72ba97c..a88992042f 100644 --- a/typedapi/esdsl/matchnonequery.go +++ b/typedapi/esdsl/matchnonequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _matchNoneQuery struct { v *types.MatchNoneQuery @@ -33,11 +33,6 @@ func NewMatchNoneQuery() *_matchNoneQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_matchNoneQuery) Boost(boost float32) *_matchNoneQuery { s.v.Boost = &boost diff --git a/typedapi/esdsl/matchonlytextproperty.go b/typedapi/esdsl/matchonlytextproperty.go index 38a8b62c22..7b84e739d2 100644 --- a/typedapi/esdsl/matchonlytextproperty.go +++ b/typedapi/esdsl/matchonlytextproperty.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _matchOnlyTextProperty struct { v *types.MatchOnlyTextProperty @@ -32,8 +32,6 @@ func NewMatchOnlyTextProperty() *_matchOnlyTextProperty { } -// Allows you to copy the values of multiple fields into a group -// field, which can then be queried as a single field. func (s *_matchOnlyTextProperty) CopyTo(fields ...string) *_matchOnlyTextProperty { s.v.CopyTo = fields @@ -41,10 +39,6 @@ func (s *_matchOnlyTextProperty) CopyTo(fields ...string) *_matchOnlyTextPropert return s } -// Multi-fields allow the same string value to be indexed in multiple ways for -// different purposes, such as one -// field for search and a multi-field for sorting and aggregations, or the same -// string value analyzed by different analyzers. func (s *_matchOnlyTextProperty) Fields(fields map[string]types.Property) *_matchOnlyTextProperty { s.v.Fields = fields @@ -66,7 +60,6 @@ func (s *_matchOnlyTextProperty) AddField(key string, value types.PropertyVarian return s } -// Metadata about the field. func (s *_matchOnlyTextProperty) Meta(meta map[string]string) *_matchOnlyTextProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/matchphraseprefixquery.go b/typedapi/esdsl/matchphraseprefixquery.go index b1143c5520..e5678fe40a 100644 --- a/typedapi/esdsl/matchphraseprefixquery.go +++ b/typedapi/esdsl/matchphraseprefixquery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/zerotermsquery" ) type _matchPhrasePrefixQuery struct { @@ -44,7 +44,6 @@ func NewMatchPhrasePrefixQuery(field string, query string) *_matchPhrasePrefixQu return tmp } -// Analyzer used to convert text in the query value into tokens. func (s *_matchPhrasePrefixQuery) Analyzer(analyzer string) *_matchPhrasePrefixQuery { s.v.Analyzer = &analyzer @@ -52,11 +51,6 @@ func (s *_matchPhrasePrefixQuery) Analyzer(analyzer string) *_matchPhrasePrefixQ return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_matchPhrasePrefixQuery) Boost(boost float32) *_matchPhrasePrefixQuery { s.v.Boost = &boost @@ -64,8 +58,6 @@ func (s *_matchPhrasePrefixQuery) Boost(boost float32) *_matchPhrasePrefixQuery return s } -// Maximum number of terms to which the last provided term of the query value -// will expand. func (s *_matchPhrasePrefixQuery) MaxExpansions(maxexpansions int) *_matchPhrasePrefixQuery { s.v.MaxExpansions = &maxexpansions @@ -73,7 +65,6 @@ func (s *_matchPhrasePrefixQuery) MaxExpansions(maxexpansions int) *_matchPhrase return s } -// Text you wish to find in the provided field. func (s *_matchPhrasePrefixQuery) Query(query string) *_matchPhrasePrefixQuery { s.v.Query = query @@ -88,7 +79,6 @@ func (s *_matchPhrasePrefixQuery) QueryName_(queryname_ string) *_matchPhrasePre return s } -// Maximum number of positions allowed between matching tokens. func (s *_matchPhrasePrefixQuery) Slop(slop int) *_matchPhrasePrefixQuery { s.v.Slop = &slop @@ -96,8 +86,6 @@ func (s *_matchPhrasePrefixQuery) Slop(slop int) *_matchPhrasePrefixQuery { return s } -// Indicates whether no documents are returned if the analyzer removes all -// tokens, such as when using a `stop` filter. func (s *_matchPhrasePrefixQuery) ZeroTermsQuery(zerotermsquery zerotermsquery.ZeroTermsQuery) *_matchPhrasePrefixQuery { s.v.ZeroTermsQuery = &zerotermsquery diff --git a/typedapi/esdsl/matchphrasequery.go b/typedapi/esdsl/matchphrasequery.go index bdbd48cd51..c99312cbad 100644 --- a/typedapi/esdsl/matchphrasequery.go +++ b/typedapi/esdsl/matchphrasequery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/zerotermsquery" ) type _matchPhraseQuery struct { @@ -41,7 +41,6 @@ func NewMatchPhraseQuery(field string, query string) *_matchPhraseQuery { return tmp } -// Analyzer used to convert the text in the query value into tokens. func (s *_matchPhraseQuery) Analyzer(analyzer string) *_matchPhraseQuery { s.v.Analyzer = &analyzer @@ -49,11 +48,6 @@ func (s *_matchPhraseQuery) Analyzer(analyzer string) *_matchPhraseQuery { return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_matchPhraseQuery) Boost(boost float32) *_matchPhraseQuery { s.v.Boost = &boost @@ -61,7 +55,6 @@ func (s *_matchPhraseQuery) Boost(boost float32) *_matchPhraseQuery { return s } -// Query terms that are analyzed and turned into a phrase query. func (s *_matchPhraseQuery) Query(query string) *_matchPhraseQuery { s.v.Query = query @@ -76,7 +69,6 @@ func (s *_matchPhraseQuery) QueryName_(queryname_ string) *_matchPhraseQuery { return s } -// Maximum number of positions allowed between matching tokens. func (s *_matchPhraseQuery) Slop(slop int) *_matchPhraseQuery { s.v.Slop = &slop @@ -84,8 +76,6 @@ func (s *_matchPhraseQuery) Slop(slop int) *_matchPhraseQuery { return s } -// Indicates whether no documents are returned if the `analyzer` removes all -// tokens, such as when using a `stop` filter. func (s *_matchPhraseQuery) ZeroTermsQuery(zerotermsquery zerotermsquery.ZeroTermsQuery) *_matchPhraseQuery { s.v.ZeroTermsQuery = &zerotermsquery diff --git a/typedapi/esdsl/matchquery.go b/typedapi/esdsl/matchquery.go index 2a94f5eb20..bf75c31c35 100644 --- a/typedapi/esdsl/matchquery.go +++ b/typedapi/esdsl/matchquery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/zerotermsquery" ) type _matchQuery struct { @@ -31,7 +31,7 @@ type _matchQuery struct { v *types.MatchQuery } -// Returns roles that match a provided text, number, date or boolean value. +// Returns documents 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{ @@ -43,7 +43,6 @@ func NewMatchQuery(field string, query string) *_matchQuery { return tmp } -// Analyzer used to convert the text in the query value into tokens. func (s *_matchQuery) Analyzer(analyzer string) *_matchQuery { s.v.Analyzer = &analyzer @@ -51,8 +50,6 @@ func (s *_matchQuery) Analyzer(analyzer string) *_matchQuery { return s } -// If `true`, match phrase queries are automatically created for multi-term -// synonyms. func (s *_matchQuery) AutoGenerateSynonymsPhraseQuery(autogeneratesynonymsphrasequery bool) *_matchQuery { s.v.AutoGenerateSynonymsPhraseQuery = &autogeneratesynonymsphrasequery @@ -60,11 +57,6 @@ func (s *_matchQuery) AutoGenerateSynonymsPhraseQuery(autogeneratesynonymsphrase return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_matchQuery) Boost(boost float32) *_matchQuery { s.v.Boost = &boost @@ -79,7 +71,6 @@ func (s *_matchQuery) CutoffFrequency(cutofffrequency types.Float64) *_matchQuer return s } -// Maximum edit distance allowed for matching. func (s *_matchQuery) Fuzziness(fuzziness types.FuzzinessVariant) *_matchQuery { s.v.Fuzziness = *fuzziness.FuzzinessCaster() @@ -87,7 +78,6 @@ func (s *_matchQuery) Fuzziness(fuzziness types.FuzzinessVariant) *_matchQuery { return s } -// Method used to rewrite the query. func (s *_matchQuery) FuzzyRewrite(multitermqueryrewrite string) *_matchQuery { s.v.FuzzyRewrite = &multitermqueryrewrite @@ -95,8 +85,6 @@ func (s *_matchQuery) FuzzyRewrite(multitermqueryrewrite string) *_matchQuery { return s } -// If `true`, edits for fuzzy matching include transpositions of two adjacent -// characters (for example, `ab` to `ba`). func (s *_matchQuery) FuzzyTranspositions(fuzzytranspositions bool) *_matchQuery { s.v.FuzzyTranspositions = &fuzzytranspositions @@ -104,8 +92,6 @@ func (s *_matchQuery) FuzzyTranspositions(fuzzytranspositions bool) *_matchQuery return s } -// If `true`, format-based errors, such as providing a text query value for a -// numeric field, are ignored. func (s *_matchQuery) Lenient(lenient bool) *_matchQuery { s.v.Lenient = &lenient @@ -113,7 +99,6 @@ func (s *_matchQuery) Lenient(lenient bool) *_matchQuery { return s } -// Maximum number of terms to which the query will expand. func (s *_matchQuery) MaxExpansions(maxexpansions int) *_matchQuery { s.v.MaxExpansions = &maxexpansions @@ -121,7 +106,6 @@ func (s *_matchQuery) MaxExpansions(maxexpansions int) *_matchQuery { return s } -// Minimum number of clauses that must match for a document to be returned. func (s *_matchQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShouldMatchVariant) *_matchQuery { s.v.MinimumShouldMatch = *minimumshouldmatch.MinimumShouldMatchCaster() @@ -129,14 +113,12 @@ func (s *_matchQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShouldM return s } -// Boolean logic used to interpret text in the query value. func (s *_matchQuery) Operator(operator operator.Operator) *_matchQuery { s.v.Operator = &operator return s } -// Number of beginning characters left unchanged for fuzzy matching. func (s *_matchQuery) PrefixLength(prefixlength int) *_matchQuery { s.v.PrefixLength = &prefixlength @@ -144,7 +126,6 @@ func (s *_matchQuery) PrefixLength(prefixlength int) *_matchQuery { return s } -// Text, number, boolean value or date you wish to find in the provided field. func (s *_matchQuery) Query(query string) *_matchQuery { s.v.Query = query @@ -159,8 +140,6 @@ func (s *_matchQuery) QueryName_(queryname_ string) *_matchQuery { return s } -// Indicates whether no documents are returned if the `analyzer` removes all -// tokens, such as when using a `stop` filter. func (s *_matchQuery) ZeroTermsQuery(zerotermsquery zerotermsquery.ZeroTermsQuery) *_matchQuery { s.v.ZeroTermsQuery = &zerotermsquery diff --git a/typedapi/esdsl/matrixstatsaggregation.go b/typedapi/esdsl/matrixstatsaggregation.go index 33342826d8..44e94b19f9 100644 --- a/typedapi/esdsl/matrixstatsaggregation.go +++ b/typedapi/esdsl/matrixstatsaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortmode" ) type _matrixStatsAggregation struct { @@ -38,7 +38,6 @@ func NewMatrixStatsAggregation() *_matrixStatsAggregation { } -// An array of fields for computing the statistics. func (s *_matrixStatsAggregation) Fields(fields ...string) *_matrixStatsAggregation { s.v.Fields = fields @@ -46,8 +45,6 @@ func (s *_matrixStatsAggregation) Fields(fields ...string) *_matrixStatsAggregat return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_matrixStatsAggregation) Missing(missing map[string]types.Float64) *_matrixStatsAggregation { s.v.Missing = missing @@ -69,7 +66,6 @@ func (s *_matrixStatsAggregation) AddMissing(key string, value types.Float64) *_ return s } -// Array value the aggregation will use for array or multi-valued fields. func (s *_matrixStatsAggregation) Mode(mode sortmode.SortMode) *_matrixStatsAggregation { s.v.Mode = &mode diff --git a/typedapi/esdsl/maxaggregation.go b/typedapi/esdsl/maxaggregation.go index e781573e6c..3a24f315d6 100644 --- a/typedapi/esdsl/maxaggregation.go +++ b/typedapi/esdsl/maxaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _maxAggregation struct { v *types.MaxAggregation @@ -34,7 +34,6 @@ func NewMaxAggregation() *_maxAggregation { } -// The field on which to run the aggregation. func (s *_maxAggregation) Field(field string) *_maxAggregation { s.v.Field = &field @@ -49,8 +48,6 @@ func (s *_maxAggregation) Format(format string) *_maxAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_maxAggregation) Missing(missing types.MissingVariant) *_maxAggregation { s.v.Missing = *missing.MissingCaster() diff --git a/typedapi/esdsl/maxbucketaggregation.go b/typedapi/esdsl/maxbucketaggregation.go index 7f00299902..5625a53e07 100644 --- a/typedapi/esdsl/maxbucketaggregation.go +++ b/typedapi/esdsl/maxbucketaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _maxBucketAggregation struct { @@ -38,7 +38,6 @@ func NewMaxBucketAggregation() *_maxBucketAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_maxBucketAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_maxBucketAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -46,9 +45,6 @@ func (s *_maxBucketAggregation) BucketsPath(bucketspath types.BucketsPathVariant return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_maxBucketAggregation) Format(format string) *_maxBucketAggregation { s.v.Format = &format @@ -56,7 +52,6 @@ func (s *_maxBucketAggregation) Format(format string) *_maxBucketAggregation { return s } -// Policy to apply when gaps are found in the data. func (s *_maxBucketAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_maxBucketAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/maxmind.go b/typedapi/esdsl/maxmind.go index 316b001fb6..1561dc11b8 100644 --- a/typedapi/esdsl/maxmind.go +++ b/typedapi/esdsl/maxmind.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _maxmind struct { v *types.Maxmind diff --git a/typedapi/esdsl/medianabsolutedeviationaggregation.go b/typedapi/esdsl/medianabsolutedeviationaggregation.go index 92db934389..5dd45e7cae 100644 --- a/typedapi/esdsl/medianabsolutedeviationaggregation.go +++ b/typedapi/esdsl/medianabsolutedeviationaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _medianAbsoluteDeviationAggregation struct { v *types.MedianAbsoluteDeviationAggregation @@ -34,9 +34,6 @@ func NewMedianAbsoluteDeviationAggregation() *_medianAbsoluteDeviationAggregatio } -// Limits the maximum number of nodes used by the underlying TDigest algorithm -// to `20 * compression`, enabling control of memory usage and approximation -// error. func (s *_medianAbsoluteDeviationAggregation) Compression(compression types.Float64) *_medianAbsoluteDeviationAggregation { s.v.Compression = &compression @@ -44,7 +41,6 @@ func (s *_medianAbsoluteDeviationAggregation) Compression(compression types.Floa return s } -// The field on which to run the aggregation. func (s *_medianAbsoluteDeviationAggregation) Field(field string) *_medianAbsoluteDeviationAggregation { s.v.Field = &field @@ -59,8 +55,6 @@ func (s *_medianAbsoluteDeviationAggregation) Format(format string) *_medianAbso return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_medianAbsoluteDeviationAggregation) Missing(missing types.MissingVariant) *_medianAbsoluteDeviationAggregation { s.v.Missing = *missing.MissingCaster() diff --git a/typedapi/esdsl/merge.go b/typedapi/esdsl/merge.go index 1ad54e5a1a..8a22521c29 100644 --- a/typedapi/esdsl/merge.go +++ b/typedapi/esdsl/merge.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _merge struct { v *types.Merge diff --git a/typedapi/esdsl/mergescheduler.go b/typedapi/esdsl/mergescheduler.go index b1bd74c7ab..cfa9ac7128 100644 --- a/typedapi/esdsl/mergescheduler.go +++ b/typedapi/esdsl/mergescheduler.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _mergeScheduler struct { v *types.MergeScheduler diff --git a/typedapi/esdsl/message.go b/typedapi/esdsl/message.go index d2300a4cdc..5b088764ce 100644 --- a/typedapi/esdsl/message.go +++ b/typedapi/esdsl/message.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _message struct { v *types.Message @@ -36,7 +36,6 @@ func NewMessage(role string) *_message { } -// The content of the message. func (s *_message) Content(messagecontent types.MessageContentVariant) *_message { s.v.Content = *messagecontent.MessageContentCaster() @@ -44,7 +43,6 @@ func (s *_message) Content(messagecontent types.MessageContentVariant) *_message return s } -// The role of the message author. func (s *_message) Role(role string) *_message { s.v.Role = role @@ -52,7 +50,6 @@ func (s *_message) Role(role string) *_message { return s } -// The tool call that this message is responding to. func (s *_message) ToolCallId(id string) *_message { s.v.ToolCallId = &id @@ -60,7 +57,6 @@ func (s *_message) ToolCallId(id string) *_message { return s } -// The tool calls generated by the model. func (s *_message) ToolCalls(toolcalls ...types.ToolCallVariant) *_message { for _, v := range toolcalls { diff --git a/typedapi/esdsl/messagecontent.go b/typedapi/esdsl/messagecontent.go index 3e125400f5..808390e07b 100644 --- a/typedapi/esdsl/messagecontent.go +++ b/typedapi/esdsl/messagecontent.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _messageContent struct { diff --git a/typedapi/esdsl/metadata.go b/typedapi/esdsl/metadata.go index d3aff29e5f..2851b174b1 100644 --- a/typedapi/esdsl/metadata.go +++ b/typedapi/esdsl/metadata.go @@ -16,23 +16,22 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) -// This is provide an API for type alias. type _metadata struct { v types.Metadata } func NewMetadata(metadata map[string]json.RawMessage) *_metadata { - return &_metadata{v: make(map[string]json.RawMessage, 0)} + return &_metadata{v: metadata} } func (u *_metadata) MetadataCaster() *types.Metadata { diff --git a/typedapi/esdsl/mgetoperation.go b/typedapi/esdsl/mgetoperation.go index f5dae4d487..f142e835d7 100644 --- a/typedapi/esdsl/mgetoperation.go +++ b/typedapi/esdsl/mgetoperation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) type _mgetOperation struct { @@ -35,7 +35,6 @@ func NewMgetOperation() *_mgetOperation { } -// The unique document ID. func (s *_mgetOperation) Id_(id string) *_mgetOperation { s.v.Id_ = id @@ -43,7 +42,6 @@ func (s *_mgetOperation) Id_(id string) *_mgetOperation { return s } -// The index that contains the document. func (s *_mgetOperation) Index_(indexname string) *_mgetOperation { s.v.Index_ = &indexname @@ -51,8 +49,6 @@ func (s *_mgetOperation) Index_(indexname string) *_mgetOperation { return s } -// The key for the primary shard the document resides on. Required if routing is -// used during indexing. func (s *_mgetOperation) Routing(routing string) *_mgetOperation { s.v.Routing = &routing @@ -60,7 +56,6 @@ func (s *_mgetOperation) Routing(routing string) *_mgetOperation { return s } -// If `false`, excludes all _source fields. func (s *_mgetOperation) Source_(sourceconfig types.SourceConfigVariant) *_mgetOperation { s.v.Source_ = *sourceconfig.SourceConfigCaster() @@ -68,7 +63,6 @@ func (s *_mgetOperation) Source_(sourceconfig types.SourceConfigVariant) *_mgetO return s } -// The stored fields you want to retrieve. func (s *_mgetOperation) StoredFields(fields ...string) *_mgetOperation { s.v.StoredFields = fields diff --git a/typedapi/esdsl/migrateaction.go b/typedapi/esdsl/migrateaction.go index 95b4e1499c..d1f7d01f57 100644 --- a/typedapi/esdsl/migrateaction.go +++ b/typedapi/esdsl/migrateaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _migrateAction struct { v *types.MigrateAction diff --git a/typedapi/esdsl/migratereindex.go b/typedapi/esdsl/migratereindex.go index b9cdc0469a..feccfa7c41 100644 --- a/typedapi/esdsl/migratereindex.go +++ b/typedapi/esdsl/migratereindex.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/modeenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/modeenum" ) type _migrateReindex struct { @@ -41,14 +41,12 @@ func NewMigrateReindex(mode modeenum.ModeEnum, source types.SourceIndexVariant) } -// Reindex mode. Currently only 'upgrade' is supported. func (s *_migrateReindex) Mode(mode modeenum.ModeEnum) *_migrateReindex { s.v.Mode = mode return s } -// The source index or data stream (only data streams are currently supported). func (s *_migrateReindex) Source(source types.SourceIndexVariant) *_migrateReindex { s.v.Source = *source.SourceIndexCaster() diff --git a/typedapi/esdsl/minaggregation.go b/typedapi/esdsl/minaggregation.go index 80297de68e..5b6e0b77d3 100644 --- a/typedapi/esdsl/minaggregation.go +++ b/typedapi/esdsl/minaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _minAggregation struct { v *types.MinAggregation @@ -34,7 +34,6 @@ func NewMinAggregation() *_minAggregation { } -// The field on which to run the aggregation. func (s *_minAggregation) Field(field string) *_minAggregation { s.v.Field = &field @@ -49,8 +48,6 @@ func (s *_minAggregation) Format(format string) *_minAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_minAggregation) Missing(missing types.MissingVariant) *_minAggregation { s.v.Missing = *missing.MissingCaster() diff --git a/typedapi/esdsl/minbucketaggregation.go b/typedapi/esdsl/minbucketaggregation.go index 8dde116539..cb194fd08a 100644 --- a/typedapi/esdsl/minbucketaggregation.go +++ b/typedapi/esdsl/minbucketaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _minBucketAggregation struct { @@ -38,7 +38,6 @@ func NewMinBucketAggregation() *_minBucketAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_minBucketAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_minBucketAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -46,9 +45,6 @@ func (s *_minBucketAggregation) BucketsPath(bucketspath types.BucketsPathVariant return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_minBucketAggregation) Format(format string) *_minBucketAggregation { s.v.Format = &format @@ -56,7 +52,6 @@ func (s *_minBucketAggregation) Format(format string) *_minBucketAggregation { return s } -// Policy to apply when gaps are found in the data. func (s *_minBucketAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_minBucketAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/minimumshouldmatch.go b/typedapi/esdsl/minimumshouldmatch.go index a3c6d2260a..ab18db105e 100644 --- a/typedapi/esdsl/minimumshouldmatch.go +++ b/typedapi/esdsl/minimumshouldmatch.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _minimumShouldMatch struct { diff --git a/typedapi/esdsl/missing.go b/typedapi/esdsl/missing.go index d2ac4884b8..89e7e44f03 100644 --- a/typedapi/esdsl/missing.go +++ b/typedapi/esdsl/missing.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _missing struct { diff --git a/typedapi/esdsl/missingaggregation.go b/typedapi/esdsl/missingaggregation.go index d7dc14e97b..2789ebc27d 100644 --- a/typedapi/esdsl/missingaggregation.go +++ b/typedapi/esdsl/missingaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _missingAggregation struct { v *types.MissingAggregation @@ -35,7 +35,6 @@ func NewMissingAggregation() *_missingAggregation { } -// The name of the field. func (s *_missingAggregation) Field(field string) *_missingAggregation { s.v.Field = &field diff --git a/typedapi/esdsl/mistralservicesettings.go b/typedapi/esdsl/mistralservicesettings.go new file mode 100644 index 0000000000..8e5b61164d --- /dev/null +++ b/typedapi/esdsl/mistralservicesettings.go @@ -0,0 +1,71 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _mistralServiceSettings struct { + v *types.MistralServiceSettings +} + +func NewMistralServiceSettings(apikey string, model string) *_mistralServiceSettings { + + tmp := &_mistralServiceSettings{v: types.NewMistralServiceSettings()} + + tmp.ApiKey(apikey) + + tmp.Model(model) + + return tmp + +} + +func (s *_mistralServiceSettings) ApiKey(apikey string) *_mistralServiceSettings { + + s.v.ApiKey = apikey + + return s +} + +func (s *_mistralServiceSettings) MaxInputTokens(maxinputtokens int) *_mistralServiceSettings { + + s.v.MaxInputTokens = &maxinputtokens + + return s +} + +func (s *_mistralServiceSettings) Model(model string) *_mistralServiceSettings { + + s.v.Model = model + + return s +} + +func (s *_mistralServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_mistralServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_mistralServiceSettings) MistralServiceSettingsCaster() *types.MistralServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/modelplotconfig.go b/typedapi/esdsl/modelplotconfig.go index 7107bac831..75431f9682 100644 --- a/typedapi/esdsl/modelplotconfig.go +++ b/typedapi/esdsl/modelplotconfig.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _modelPlotConfig struct { v *types.ModelPlotConfig @@ -32,8 +32,6 @@ func NewModelPlotConfig() *_modelPlotConfig { } -// If true, enables calculation and storage of the model change annotations for -// each entity that is being analyzed. func (s *_modelPlotConfig) AnnotationsEnabled(annotationsenabled bool) *_modelPlotConfig { s.v.AnnotationsEnabled = &annotationsenabled @@ -41,8 +39,6 @@ func (s *_modelPlotConfig) AnnotationsEnabled(annotationsenabled bool) *_modelPl return s } -// If true, enables calculation and storage of the model bounds for each entity -// that is being analyzed. func (s *_modelPlotConfig) Enabled(enabled bool) *_modelPlotConfig { s.v.Enabled = &enabled @@ -50,10 +46,6 @@ func (s *_modelPlotConfig) Enabled(enabled bool) *_modelPlotConfig { return s } -// Limits data collection to this comma separated list of partition or by field -// values. If terms are not specified or it is an empty string, no filtering is -// applied. Wildcards are not supported. Only the specified terms can be viewed -// when using the Single Metric Viewer. func (s *_modelPlotConfig) Terms(field string) *_modelPlotConfig { s.v.Terms = &field diff --git a/typedapi/esdsl/morelikethisquery.go b/typedapi/esdsl/morelikethisquery.go index 74c6b7dee1..cf1ffe3ecb 100644 --- a/typedapi/esdsl/morelikethisquery.go +++ b/typedapi/esdsl/morelikethisquery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) type _moreLikeThisQuery struct { @@ -36,8 +36,6 @@ func NewMoreLikeThisQuery() *_moreLikeThisQuery { } -// The analyzer that is used to analyze the free form text. -// Defaults to the analyzer associated with the first field in fields. func (s *_moreLikeThisQuery) Analyzer(analyzer string) *_moreLikeThisQuery { s.v.Analyzer = &analyzer @@ -45,11 +43,6 @@ func (s *_moreLikeThisQuery) Analyzer(analyzer string) *_moreLikeThisQuery { return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_moreLikeThisQuery) Boost(boost float32) *_moreLikeThisQuery { s.v.Boost = &boost @@ -57,9 +50,6 @@ func (s *_moreLikeThisQuery) Boost(boost float32) *_moreLikeThisQuery { return s } -// Each term in the formed query could be further boosted by their tf-idf score. -// This sets the boost factor to use when using this feature. -// Defaults to deactivated (0). func (s *_moreLikeThisQuery) BoostTerms(boostterms types.Float64) *_moreLikeThisQuery { s.v.BoostTerms = &boostterms @@ -67,8 +57,6 @@ func (s *_moreLikeThisQuery) BoostTerms(boostterms types.Float64) *_moreLikeThis return s } -// Controls whether the query should fail (throw an exception) if any of the -// specified fields are not of the supported types (`text` or `keyword`). func (s *_moreLikeThisQuery) FailOnUnsupportedField(failonunsupportedfield bool) *_moreLikeThisQuery { s.v.FailOnUnsupportedField = &failonunsupportedfield @@ -76,9 +64,6 @@ func (s *_moreLikeThisQuery) FailOnUnsupportedField(failonunsupportedfield bool) return s } -// A list of fields to fetch and analyze the text from. -// Defaults to the `index.query.default_field` index setting, which has a -// default value of `*`. func (s *_moreLikeThisQuery) Fields(fields ...string) *_moreLikeThisQuery { for _, v := range fields { @@ -89,8 +74,6 @@ func (s *_moreLikeThisQuery) Fields(fields ...string) *_moreLikeThisQuery { return s } -// Specifies whether the input documents should also be included in the search -// results returned. func (s *_moreLikeThisQuery) Include(include bool) *_moreLikeThisQuery { s.v.Include = &include @@ -98,8 +81,6 @@ func (s *_moreLikeThisQuery) Include(include bool) *_moreLikeThisQuery { return s } -// Specifies free form text and/or a single or multiple documents for which you -// want to find similar documents. func (s *_moreLikeThisQuery) Like(likes ...types.LikeVariant) *_moreLikeThisQuery { s.v.Like = make([]types.Like, len(likes)) @@ -110,8 +91,6 @@ func (s *_moreLikeThisQuery) Like(likes ...types.LikeVariant) *_moreLikeThisQuer return s } -// The maximum document frequency above which the terms are ignored from the -// input document. func (s *_moreLikeThisQuery) MaxDocFreq(maxdocfreq int) *_moreLikeThisQuery { s.v.MaxDocFreq = &maxdocfreq @@ -119,7 +98,6 @@ func (s *_moreLikeThisQuery) MaxDocFreq(maxdocfreq int) *_moreLikeThisQuery { return s } -// The maximum number of query terms that can be selected. func (s *_moreLikeThisQuery) MaxQueryTerms(maxqueryterms int) *_moreLikeThisQuery { s.v.MaxQueryTerms = &maxqueryterms @@ -127,8 +105,6 @@ func (s *_moreLikeThisQuery) MaxQueryTerms(maxqueryterms int) *_moreLikeThisQuer return s } -// The maximum word length above which the terms are ignored. -// Defaults to unbounded (`0`). func (s *_moreLikeThisQuery) MaxWordLength(maxwordlength int) *_moreLikeThisQuery { s.v.MaxWordLength = &maxwordlength @@ -136,8 +112,6 @@ func (s *_moreLikeThisQuery) MaxWordLength(maxwordlength int) *_moreLikeThisQuer return s } -// The minimum document frequency below which the terms are ignored from the -// input document. func (s *_moreLikeThisQuery) MinDocFreq(mindocfreq int) *_moreLikeThisQuery { s.v.MinDocFreq = &mindocfreq @@ -145,8 +119,6 @@ func (s *_moreLikeThisQuery) MinDocFreq(mindocfreq int) *_moreLikeThisQuery { return s } -// The minimum term frequency below which the terms are ignored from the input -// document. func (s *_moreLikeThisQuery) MinTermFreq(mintermfreq int) *_moreLikeThisQuery { s.v.MinTermFreq = &mintermfreq @@ -154,7 +126,6 @@ func (s *_moreLikeThisQuery) MinTermFreq(mintermfreq int) *_moreLikeThisQuery { return s } -// The minimum word length below which the terms are ignored. func (s *_moreLikeThisQuery) MinWordLength(minwordlength int) *_moreLikeThisQuery { s.v.MinWordLength = &minwordlength @@ -162,8 +133,6 @@ func (s *_moreLikeThisQuery) MinWordLength(minwordlength int) *_moreLikeThisQuer return s } -// After the disjunctive query has been formed, this parameter controls the -// number of terms that must match. func (s *_moreLikeThisQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShouldMatchVariant) *_moreLikeThisQuery { s.v.MinimumShouldMatch = *minimumshouldmatch.MinimumShouldMatchCaster() @@ -185,8 +154,6 @@ func (s *_moreLikeThisQuery) Routing(routing string) *_moreLikeThisQuery { return s } -// An array of stop words. -// Any word in this set is ignored. func (s *_moreLikeThisQuery) StopWords(stopwords ...string) *_moreLikeThisQuery { s.v.StopWords = stopwords @@ -194,8 +161,6 @@ func (s *_moreLikeThisQuery) StopWords(stopwords ...string) *_moreLikeThisQuery return s } -// Used in combination with `like` to exclude documents that match a set of -// terms. func (s *_moreLikeThisQuery) Unlike(unlikes ...types.LikeVariant) *_moreLikeThisQuery { s.v.Unlike = make([]types.Like, len(unlikes)) diff --git a/typedapi/esdsl/movingaverageaggregation.go b/typedapi/esdsl/movingaverageaggregation.go index fdcc1d6fb2..777d1f5b1c 100644 --- a/typedapi/esdsl/movingaverageaggregation.go +++ b/typedapi/esdsl/movingaverageaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _movingAverageAggregation struct { diff --git a/typedapi/esdsl/movingfunctionaggregation.go b/typedapi/esdsl/movingfunctionaggregation.go index 7e930fe2bb..69fdf8e266 100644 --- a/typedapi/esdsl/movingfunctionaggregation.go +++ b/typedapi/esdsl/movingfunctionaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _movingFunctionAggregation struct { @@ -39,7 +39,6 @@ func NewMovingFunctionAggregation() *_movingFunctionAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_movingFunctionAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_movingFunctionAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -47,9 +46,6 @@ func (s *_movingFunctionAggregation) BucketsPath(bucketspath types.BucketsPathVa return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_movingFunctionAggregation) Format(format string) *_movingFunctionAggregation { s.v.Format = &format @@ -57,14 +53,12 @@ func (s *_movingFunctionAggregation) Format(format string) *_movingFunctionAggre return s } -// Policy to apply when gaps are found in the data. func (s *_movingFunctionAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_movingFunctionAggregation { s.v.GapPolicy = &gappolicy return s } -// The script that should be executed on each window of data. func (s *_movingFunctionAggregation) Script(script string) *_movingFunctionAggregation { s.v.Script = &script @@ -72,10 +66,6 @@ func (s *_movingFunctionAggregation) Script(script string) *_movingFunctionAggre return s } -// By default, the window consists of the last n values excluding the current -// bucket. -// Increasing `shift` by 1, moves the starting window position by 1 to the -// right. func (s *_movingFunctionAggregation) Shift(shift int) *_movingFunctionAggregation { s.v.Shift = &shift @@ -83,7 +73,6 @@ func (s *_movingFunctionAggregation) Shift(shift int) *_movingFunctionAggregatio return s } -// The size of window to "slide" across the histogram. func (s *_movingFunctionAggregation) Window(window int) *_movingFunctionAggregation { s.v.Window = &window diff --git a/typedapi/esdsl/movingpercentilesaggregation.go b/typedapi/esdsl/movingpercentilesaggregation.go index 6eb54d6e3d..73cd481910 100644 --- a/typedapi/esdsl/movingpercentilesaggregation.go +++ b/typedapi/esdsl/movingpercentilesaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _movingPercentilesAggregation struct { @@ -37,7 +37,6 @@ func NewMovingPercentilesAggregation() *_movingPercentilesAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_movingPercentilesAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_movingPercentilesAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_movingPercentilesAggregation) BucketsPath(bucketspath types.BucketsPat return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_movingPercentilesAggregation) Format(format string) *_movingPercentilesAggregation { s.v.Format = &format @@ -55,7 +51,6 @@ func (s *_movingPercentilesAggregation) Format(format string) *_movingPercentile return s } -// Policy to apply when gaps are found in the data. func (s *_movingPercentilesAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_movingPercentilesAggregation { s.v.GapPolicy = &gappolicy @@ -69,10 +64,6 @@ func (s *_movingPercentilesAggregation) Keyed(keyed bool) *_movingPercentilesAgg return s } -// By default, the window consists of the last n values excluding the current -// bucket. -// Increasing `shift` by 1, moves the starting window position by 1 to the -// right. func (s *_movingPercentilesAggregation) Shift(shift int) *_movingPercentilesAggregation { s.v.Shift = &shift @@ -80,7 +71,6 @@ func (s *_movingPercentilesAggregation) Shift(shift int) *_movingPercentilesAggr return s } -// The size of window to "slide" across the histogram. func (s *_movingPercentilesAggregation) Window(window int) *_movingPercentilesAggregation { s.v.Window = &window diff --git a/typedapi/esdsl/msearchrequestitem.go b/typedapi/esdsl/msearchrequestitem.go index d3b80589ca..4b7be31234 100644 --- a/typedapi/esdsl/msearchrequestitem.go +++ b/typedapi/esdsl/msearchrequestitem.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _msearchRequestItem struct { @@ -44,15 +44,15 @@ func (u *_multisearchHeader) MsearchRequestItemCaster() *types.MsearchRequestIte return &t } -func (u *_msearchRequestItem) MultisearchBody(multisearchbody types.MultisearchBodyVariant) *_msearchRequestItem { +func (u *_msearchRequestItem) SearchRequestBody(searchrequestbody types.SearchRequestBodyVariant) *_msearchRequestItem { - u.v = &multisearchbody + u.v = &searchrequestbody return u } -// Interface implementation for MultisearchBody in MsearchRequestItem union -func (u *_multisearchBody) MsearchRequestItemCaster() *types.MsearchRequestItem { +// Interface implementation for SearchRequestBody in MsearchRequestItem union +func (u *_searchRequestBody) MsearchRequestItemCaster() *types.MsearchRequestItem { t := types.MsearchRequestItem(u.v) return &t } diff --git a/typedapi/esdsl/mtermvectorsoperation.go b/typedapi/esdsl/mtermvectorsoperation.go index b52a8d0272..0fb624d0bc 100644 --- a/typedapi/esdsl/mtermvectorsoperation.go +++ b/typedapi/esdsl/mtermvectorsoperation.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) type _mTermVectorsOperation struct { @@ -37,8 +37,6 @@ func NewMTermVectorsOperation() *_mTermVectorsOperation { } -// An artificial document (a document not present in the index) for which you -// want to retrieve term vectors. func (s *_mTermVectorsOperation) Doc(doc json.RawMessage) *_mTermVectorsOperation { s.v.Doc = doc @@ -46,8 +44,6 @@ func (s *_mTermVectorsOperation) Doc(doc json.RawMessage) *_mTermVectorsOperatio return s } -// If `true`, the response includes the document count, sum of document -// frequencies, and sum of total term frequencies. func (s *_mTermVectorsOperation) FieldStatistics(fieldstatistics bool) *_mTermVectorsOperation { s.v.FieldStatistics = &fieldstatistics @@ -55,10 +51,6 @@ func (s *_mTermVectorsOperation) FieldStatistics(fieldstatistics bool) *_mTermVe return s } -// Comma-separated list or wildcard expressions of fields to include in the -// statistics. -// Used as the default list unless a specific field list is provided in the -// `completion_fields` or `fielddata_fields` parameters. func (s *_mTermVectorsOperation) Fields(fields ...string) *_mTermVectorsOperation { s.v.Fields = fields @@ -66,7 +58,6 @@ func (s *_mTermVectorsOperation) Fields(fields ...string) *_mTermVectorsOperatio return s } -// Filter terms based on their tf-idf scores. func (s *_mTermVectorsOperation) Filter(filter types.TermVectorsFilterVariant) *_mTermVectorsOperation { s.v.Filter = filter.TermVectorsFilterCaster() @@ -74,7 +65,6 @@ func (s *_mTermVectorsOperation) Filter(filter types.TermVectorsFilterVariant) * return s } -// The ID of the document. func (s *_mTermVectorsOperation) Id_(id string) *_mTermVectorsOperation { s.v.Id_ = &id @@ -82,7 +72,6 @@ func (s *_mTermVectorsOperation) Id_(id string) *_mTermVectorsOperation { return s } -// The index of the document. func (s *_mTermVectorsOperation) Index_(indexname string) *_mTermVectorsOperation { s.v.Index_ = &indexname @@ -90,7 +79,6 @@ func (s *_mTermVectorsOperation) Index_(indexname string) *_mTermVectorsOperatio return s } -// If `true`, the response includes term offsets. func (s *_mTermVectorsOperation) Offsets(offsets bool) *_mTermVectorsOperation { s.v.Offsets = &offsets @@ -98,7 +86,6 @@ func (s *_mTermVectorsOperation) Offsets(offsets bool) *_mTermVectorsOperation { return s } -// If `true`, the response includes term payloads. func (s *_mTermVectorsOperation) Payloads(payloads bool) *_mTermVectorsOperation { s.v.Payloads = &payloads @@ -106,7 +93,6 @@ func (s *_mTermVectorsOperation) Payloads(payloads bool) *_mTermVectorsOperation return s } -// If `true`, the response includes term positions. func (s *_mTermVectorsOperation) Positions(positions bool) *_mTermVectorsOperation { s.v.Positions = &positions @@ -114,7 +100,6 @@ func (s *_mTermVectorsOperation) Positions(positions bool) *_mTermVectorsOperati return s } -// Custom value used to route operations to a specific shard. func (s *_mTermVectorsOperation) Routing(routing string) *_mTermVectorsOperation { s.v.Routing = &routing @@ -122,7 +107,6 @@ func (s *_mTermVectorsOperation) Routing(routing string) *_mTermVectorsOperation return s } -// If true, the response includes term frequency and document frequency. func (s *_mTermVectorsOperation) TermStatistics(termstatistics bool) *_mTermVectorsOperation { s.v.TermStatistics = &termstatistics @@ -130,7 +114,6 @@ func (s *_mTermVectorsOperation) TermStatistics(termstatistics bool) *_mTermVect return s } -// If `true`, returns the document version as part of a hit. func (s *_mTermVectorsOperation) Version(versionnumber int64) *_mTermVectorsOperation { s.v.Version = &versionnumber @@ -138,7 +121,6 @@ func (s *_mTermVectorsOperation) Version(versionnumber int64) *_mTermVectorsOper return s } -// Specific version type. func (s *_mTermVectorsOperation) VersionType(versiontype versiontype.VersionType) *_mTermVectorsOperation { s.v.VersionType = &versiontype diff --git a/typedapi/esdsl/multimatchquery.go b/typedapi/esdsl/multimatchquery.go index 37b16f0d86..faa8182eb9 100644 --- a/typedapi/esdsl/multimatchquery.go +++ b/typedapi/esdsl/multimatchquery.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/textquerytype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/textquerytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/zerotermsquery" ) type _multiMatchQuery struct { @@ -44,7 +44,6 @@ func NewMultiMatchQuery(query string) *_multiMatchQuery { } -// Analyzer used to convert the text in the query value into tokens. func (s *_multiMatchQuery) Analyzer(analyzer string) *_multiMatchQuery { s.v.Analyzer = &analyzer @@ -52,8 +51,6 @@ func (s *_multiMatchQuery) Analyzer(analyzer string) *_multiMatchQuery { return s } -// If `true`, match phrase queries are automatically created for multi-term -// synonyms. func (s *_multiMatchQuery) AutoGenerateSynonymsPhraseQuery(autogeneratesynonymsphrasequery bool) *_multiMatchQuery { s.v.AutoGenerateSynonymsPhraseQuery = &autogeneratesynonymsphrasequery @@ -61,11 +58,6 @@ func (s *_multiMatchQuery) AutoGenerateSynonymsPhraseQuery(autogeneratesynonymsp return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_multiMatchQuery) Boost(boost float32) *_multiMatchQuery { s.v.Boost = &boost @@ -80,9 +72,6 @@ func (s *_multiMatchQuery) CutoffFrequency(cutofffrequency types.Float64) *_mult return s } -// The fields to be queried. -// Defaults to the `index.query.default_field` index settings, which in turn -// defaults to `*`. func (s *_multiMatchQuery) Fields(fields ...string) *_multiMatchQuery { s.v.Fields = fields @@ -90,7 +79,6 @@ func (s *_multiMatchQuery) Fields(fields ...string) *_multiMatchQuery { return s } -// Maximum edit distance allowed for matching. func (s *_multiMatchQuery) Fuzziness(fuzziness types.FuzzinessVariant) *_multiMatchQuery { s.v.Fuzziness = *fuzziness.FuzzinessCaster() @@ -98,7 +86,6 @@ func (s *_multiMatchQuery) Fuzziness(fuzziness types.FuzzinessVariant) *_multiMa return s } -// Method used to rewrite the query. func (s *_multiMatchQuery) FuzzyRewrite(multitermqueryrewrite string) *_multiMatchQuery { s.v.FuzzyRewrite = &multitermqueryrewrite @@ -106,10 +93,6 @@ func (s *_multiMatchQuery) FuzzyRewrite(multitermqueryrewrite string) *_multiMat return s } -// If `true`, edits for fuzzy matching include transpositions of two adjacent -// characters (for example, `ab` to `ba`). -// Can be applied to the term subqueries constructed for all terms but the final -// term. func (s *_multiMatchQuery) FuzzyTranspositions(fuzzytranspositions bool) *_multiMatchQuery { s.v.FuzzyTranspositions = &fuzzytranspositions @@ -117,8 +100,6 @@ func (s *_multiMatchQuery) FuzzyTranspositions(fuzzytranspositions bool) *_multi return s } -// If `true`, format-based errors, such as providing a text query value for a -// numeric field, are ignored. func (s *_multiMatchQuery) Lenient(lenient bool) *_multiMatchQuery { s.v.Lenient = &lenient @@ -126,7 +107,6 @@ func (s *_multiMatchQuery) Lenient(lenient bool) *_multiMatchQuery { return s } -// Maximum number of terms to which the query will expand. func (s *_multiMatchQuery) MaxExpansions(maxexpansions int) *_multiMatchQuery { s.v.MaxExpansions = &maxexpansions @@ -134,7 +114,6 @@ func (s *_multiMatchQuery) MaxExpansions(maxexpansions int) *_multiMatchQuery { return s } -// Minimum number of clauses that must match for a document to be returned. func (s *_multiMatchQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShouldMatchVariant) *_multiMatchQuery { s.v.MinimumShouldMatch = *minimumshouldmatch.MinimumShouldMatchCaster() @@ -142,14 +121,12 @@ func (s *_multiMatchQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumSh return s } -// Boolean logic used to interpret text in the query value. func (s *_multiMatchQuery) Operator(operator operator.Operator) *_multiMatchQuery { s.v.Operator = &operator return s } -// Number of beginning characters left unchanged for fuzzy matching. func (s *_multiMatchQuery) PrefixLength(prefixlength int) *_multiMatchQuery { s.v.PrefixLength = &prefixlength @@ -157,7 +134,6 @@ func (s *_multiMatchQuery) PrefixLength(prefixlength int) *_multiMatchQuery { return s } -// Text, number, boolean value or date you wish to find in the provided field. func (s *_multiMatchQuery) Query(query string) *_multiMatchQuery { s.v.Query = query @@ -172,7 +148,6 @@ func (s *_multiMatchQuery) QueryName_(queryname_ string) *_multiMatchQuery { return s } -// Maximum number of positions allowed between matching tokens. func (s *_multiMatchQuery) Slop(slop int) *_multiMatchQuery { s.v.Slop = &slop @@ -180,8 +155,6 @@ func (s *_multiMatchQuery) Slop(slop int) *_multiMatchQuery { return s } -// Determines how scores for each per-term blended query and scores across -// groups are combined. func (s *_multiMatchQuery) TieBreaker(tiebreaker types.Float64) *_multiMatchQuery { s.v.TieBreaker = &tiebreaker @@ -189,15 +162,12 @@ func (s *_multiMatchQuery) TieBreaker(tiebreaker types.Float64) *_multiMatchQuer return s } -// How `the` multi_match query is executed internally. func (s *_multiMatchQuery) Type(type_ textquerytype.TextQueryType) *_multiMatchQuery { s.v.Type = &type_ return s } -// Indicates whether no documents are returned if the `analyzer` removes all -// tokens, such as when using a `stop` filter. func (s *_multiMatchQuery) ZeroTermsQuery(zerotermsquery zerotermsquery.ZeroTermsQuery) *_multiMatchQuery { s.v.ZeroTermsQuery = &zerotermsquery diff --git a/typedapi/esdsl/multiplexertokenfilter.go b/typedapi/esdsl/multiplexertokenfilter.go index cd3e774280..60762482e1 100644 --- a/typedapi/esdsl/multiplexertokenfilter.go +++ b/typedapi/esdsl/multiplexertokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _multiplexerTokenFilter struct { v *types.MultiplexerTokenFilter diff --git a/typedapi/esdsl/multisearchbody.go b/typedapi/esdsl/multisearchbody.go deleted file mode 100644 index 32a6946e14..0000000000 --- a/typedapi/esdsl/multisearchbody.go +++ /dev/null @@ -1,374 +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/ea991724f4dd4f90c496eff547d3cc2e6529f509 - -package esdsl - -import ( - "encoding/json" - - "github.com/elastic/go-elasticsearch/v8/typedapi/types" -) - -type _multisearchBody struct { - v *types.MultisearchBody -} - -func NewMultisearchBody() *_multisearchBody { - - return &_multisearchBody{v: types.NewMultisearchBody()} - -} - -func (s *_multisearchBody) Aggregations(aggregations map[string]types.Aggregations) *_multisearchBody { - - s.v.Aggregations = aggregations - return s -} - -func (s *_multisearchBody) AddAggregation(key string, value types.AggregationsVariant) *_multisearchBody { - - var tmp map[string]types.Aggregations - if s.v.Aggregations == nil { - s.v.Aggregations = make(map[string]types.Aggregations) - } else { - tmp = s.v.Aggregations - } - - tmp[key] = *value.AggregationsCaster() - - s.v.Aggregations = tmp - return s -} - -func (s *_multisearchBody) Collapse(collapse types.FieldCollapseVariant) *_multisearchBody { - - s.v.Collapse = collapse.FieldCollapseCaster() - - return s -} - -// Array of wildcard (*) patterns. The request returns doc values for field -// names matching these patterns in the hits.fields property of the response. -func (s *_multisearchBody) DocvalueFields(docvaluefields ...types.FieldAndFormatVariant) *_multisearchBody { - - for _, v := range docvaluefields { - - s.v.DocvalueFields = append(s.v.DocvalueFields, *v.FieldAndFormatCaster()) - - } - return s -} - -// If true, returns detailed information about score computation as part of a -// hit. -func (s *_multisearchBody) Explain(explain bool) *_multisearchBody { - - s.v.Explain = &explain - - return s -} - -// Configuration of search extensions defined by Elasticsearch plugins. -func (s *_multisearchBody) Ext(ext map[string]json.RawMessage) *_multisearchBody { - - s.v.Ext = ext - return s -} - -func (s *_multisearchBody) AddExt(key string, value json.RawMessage) *_multisearchBody { - - var tmp map[string]json.RawMessage - if s.v.Ext == nil { - s.v.Ext = make(map[string]json.RawMessage) - } else { - tmp = s.v.Ext - } - - tmp[key] = value - - s.v.Ext = tmp - return s -} - -// Array of wildcard (*) patterns. The request returns values for field names -// matching these patterns in the hits.fields property of the response. -func (s *_multisearchBody) Fields(fields ...types.FieldAndFormatVariant) *_multisearchBody { - - for _, v := range fields { - - s.v.Fields = append(s.v.Fields, *v.FieldAndFormatCaster()) - - } - return s -} - -// Starting document offset. By default, you cannot page through more than -// 10,000 -// hits using the from and size parameters. To page through more hits, use the -// search_after parameter. -func (s *_multisearchBody) From(from int) *_multisearchBody { - - s.v.From = &from - - return s -} - -func (s *_multisearchBody) Highlight(highlight types.HighlightVariant) *_multisearchBody { - - s.v.Highlight = highlight.HighlightCaster() - - return s -} - -// Boosts the _score of documents from specified indices. -func (s *_multisearchBody) IndicesBoost(indicesboost []map[string]types.Float64) *_multisearchBody { - - s.v.IndicesBoost = indicesboost - - return s -} - -// Defines the approximate kNN search to run. -func (s *_multisearchBody) Knn(knns ...types.KnnSearchVariant) *_multisearchBody { - - s.v.Knn = make([]types.KnnSearch, len(knns)) - for i, v := range knns { - s.v.Knn[i] = *v.KnnSearchCaster() - } - - return s -} - -// Minimum _score for matching documents. Documents with a lower _score are -// not included in the search results. -func (s *_multisearchBody) MinScore(minscore types.Float64) *_multisearchBody { - - s.v.MinScore = &minscore - - return s -} - -// Limits the search to a point in time (PIT). If you provide a PIT, you -// cannot specify an in the request path. -func (s *_multisearchBody) Pit(pit types.PointInTimeReferenceVariant) *_multisearchBody { - - s.v.Pit = pit.PointInTimeReferenceCaster() - - return s -} - -func (s *_multisearchBody) PostFilter(postfilter types.QueryVariant) *_multisearchBody { - - s.v.PostFilter = postfilter.QueryCaster() - - return s -} - -func (s *_multisearchBody) Profile(profile bool) *_multisearchBody { - - s.v.Profile = &profile - - return s -} - -// Defines the search definition using the Query DSL. -func (s *_multisearchBody) Query(query types.QueryVariant) *_multisearchBody { - - s.v.Query = query.QueryCaster() - - return s -} - -func (s *_multisearchBody) Rescore(rescores ...types.RescoreVariant) *_multisearchBody { - - s.v.Rescore = make([]types.Rescore, len(rescores)) - for i, v := range rescores { - s.v.Rescore[i] = *v.RescoreCaster() - } - - return s -} - -// Defines one or more runtime fields in the search request. These fields take -// precedence over mapped fields with the same name. -func (s *_multisearchBody) RuntimeMappings(runtimefields types.RuntimeFieldsVariant) *_multisearchBody { - - s.v.RuntimeMappings = *runtimefields.RuntimeFieldsCaster() - - return s -} - -// Retrieve a script evaluation (based on different fields) for each hit. -func (s *_multisearchBody) ScriptFields(scriptfields map[string]types.ScriptField) *_multisearchBody { - - s.v.ScriptFields = scriptfields - return s -} - -func (s *_multisearchBody) AddScriptField(key string, value types.ScriptFieldVariant) *_multisearchBody { - - var tmp map[string]types.ScriptField - if s.v.ScriptFields == nil { - s.v.ScriptFields = make(map[string]types.ScriptField) - } else { - tmp = s.v.ScriptFields - } - - tmp[key] = *value.ScriptFieldCaster() - - s.v.ScriptFields = tmp - return s -} - -func (s *_multisearchBody) SearchAfter(sortresults ...types.FieldValueVariant) *_multisearchBody { - - for _, v := range sortresults { - s.v.SearchAfter = append(s.v.SearchAfter, *v.FieldValueCaster()) - } - - return s -} - -// If true, returns sequence number and primary term of the last modification -// of each hit. See Optimistic concurrency control. -func (s *_multisearchBody) SeqNoPrimaryTerm(seqnoprimaryterm bool) *_multisearchBody { - - s.v.SeqNoPrimaryTerm = &seqnoprimaryterm - - return s -} - -// The number of hits to return. By default, you cannot page through more -// than 10,000 hits using the from and size parameters. To page through more -// hits, use the search_after parameter. -func (s *_multisearchBody) Size(size int) *_multisearchBody { - - s.v.Size = &size - - return s -} - -func (s *_multisearchBody) Sort(sorts ...types.SortCombinationsVariant) *_multisearchBody { - - for _, v := range sorts { - s.v.Sort = append(s.v.Sort, *v.SortCombinationsCaster()) - } - - return s -} - -// Indicates which source fields are returned for matching documents. These -// fields are returned in the hits._source property of the search response. -func (s *_multisearchBody) Source_(sourceconfig types.SourceConfigVariant) *_multisearchBody { - - s.v.Source_ = *sourceconfig.SourceConfigCaster() - - return s -} - -// Stats groups to associate with the search. Each group maintains a statistics -// aggregation for its associated searches. You can retrieve these stats using -// the indices stats API. -func (s *_multisearchBody) Stats(stats ...string) *_multisearchBody { - - for _, v := range stats { - - s.v.Stats = append(s.v.Stats, v) - - } - return s -} - -// 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. You can pass _source: true to return both source -// fields -// and stored fields in the search response. -func (s *_multisearchBody) StoredFields(fields ...string) *_multisearchBody { - - s.v.StoredFields = fields - - return s -} - -func (s *_multisearchBody) Suggest(suggest types.SuggesterVariant) *_multisearchBody { - - s.v.Suggest = suggest.SuggesterCaster() - - return s -} - -// Maximum number of documents to collect for each shard. If a query reaches -// this -// limit, Elasticsearch terminates the query early. Elasticsearch collects -// documents -// before sorting. Defaults to 0, which does not terminate query execution -// early. -func (s *_multisearchBody) TerminateAfter(terminateafter int64) *_multisearchBody { - - s.v.TerminateAfter = &terminateafter - - return s -} - -// Specifies the period of time to wait for a response from each shard. If no -// response -// is received before the timeout expires, the request fails and returns an -// error. -// Defaults to no timeout. -func (s *_multisearchBody) Timeout(timeout string) *_multisearchBody { - - s.v.Timeout = &timeout - - return s -} - -// If true, calculate and return document scores, even if the scores are not -// used for sorting. -func (s *_multisearchBody) TrackScores(trackscores bool) *_multisearchBody { - - s.v.TrackScores = &trackscores - - return s -} - -// Number of hits matching the query to count accurately. If true, the exact -// number of hits is returned at the cost of some performance. If false, the -// response does not include the total number of hits matching the query. -// Defaults to 10,000 hits. -func (s *_multisearchBody) TrackTotalHits(trackhits types.TrackHitsVariant) *_multisearchBody { - - s.v.TrackTotalHits = *trackhits.TrackHitsCaster() - - return s -} - -// If true, returns document version as part of a hit. -func (s *_multisearchBody) Version(version bool) *_multisearchBody { - - s.v.Version = &version - - return s -} - -func (s *_multisearchBody) MultisearchBodyCaster() *types.MultisearchBody { - return s.v -} diff --git a/typedapi/esdsl/multisearchheader.go b/typedapi/esdsl/multisearchheader.go index 67d970eb5c..3852d6fa08 100644 --- a/typedapi/esdsl/multisearchheader.go +++ b/typedapi/esdsl/multisearchheader.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" ) type _multisearchHeader struct { diff --git a/typedapi/esdsl/multitermlookup.go b/typedapi/esdsl/multitermlookup.go index 4eb07abe68..0b37714fc5 100644 --- a/typedapi/esdsl/multitermlookup.go +++ b/typedapi/esdsl/multitermlookup.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _multiTermLookup struct { v *types.MultiTermLookup @@ -32,7 +32,6 @@ func NewMultiTermLookup() *_multiTermLookup { } -// A fields from which to retrieve terms. func (s *_multiTermLookup) Field(field string) *_multiTermLookup { s.v.Field = field @@ -40,8 +39,6 @@ func (s *_multiTermLookup) Field(field string) *_multiTermLookup { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_multiTermLookup) Missing(missing types.MissingVariant) *_multiTermLookup { s.v.Missing = *missing.MissingCaster() diff --git a/typedapi/esdsl/multitermsaggregation.go b/typedapi/esdsl/multitermsaggregation.go index 7d9b972906..31bc3cf6f0 100644 --- a/typedapi/esdsl/multitermsaggregation.go +++ b/typedapi/esdsl/multitermsaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationcollectmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termsaggregationcollectmode" ) type _multiTermsAggregation struct { @@ -37,14 +37,12 @@ func NewMultiTermsAggregation() *_multiTermsAggregation { } -// Specifies the strategy for data collection. func (s *_multiTermsAggregation) CollectMode(collectmode termsaggregationcollectmode.TermsAggregationCollectMode) *_multiTermsAggregation { s.v.CollectMode = &collectmode return s } -// The minimum number of documents in a bucket for it to be returned. func (s *_multiTermsAggregation) MinDocCount(mindoccount int64) *_multiTermsAggregation { s.v.MinDocCount = &mindoccount @@ -52,8 +50,6 @@ func (s *_multiTermsAggregation) MinDocCount(mindoccount int64) *_multiTermsAggr return s } -// Specifies the sort order of the buckets. -// Defaults to sorting by descending document count. func (s *_multiTermsAggregation) Order(aggregateorder types.AggregateOrderVariant) *_multiTermsAggregation { s.v.Order = *aggregateorder.AggregateOrderCaster() @@ -61,8 +57,6 @@ func (s *_multiTermsAggregation) Order(aggregateorder types.AggregateOrderVarian return s } -// The minimum number of documents in a bucket on each shard for it to be -// returned. func (s *_multiTermsAggregation) ShardMinDocCount(shardmindoccount int64) *_multiTermsAggregation { s.v.ShardMinDocCount = &shardmindoccount @@ -70,9 +64,6 @@ func (s *_multiTermsAggregation) ShardMinDocCount(shardmindoccount int64) *_mult return s } -// The number of candidate terms produced by each shard. -// By default, `shard_size` will be automatically estimated based on the number -// of shards and the `size` parameter. func (s *_multiTermsAggregation) ShardSize(shardsize int) *_multiTermsAggregation { s.v.ShardSize = &shardsize @@ -80,7 +71,6 @@ func (s *_multiTermsAggregation) ShardSize(shardsize int) *_multiTermsAggregatio return s } -// Calculates the doc count error on per term basis. func (s *_multiTermsAggregation) ShowTermDocCountError(showtermdoccounterror bool) *_multiTermsAggregation { s.v.ShowTermDocCountError = &showtermdoccounterror @@ -88,7 +78,6 @@ func (s *_multiTermsAggregation) ShowTermDocCountError(showtermdoccounterror boo return s } -// The number of term buckets should be returned out of the overall terms list. func (s *_multiTermsAggregation) Size(size int) *_multiTermsAggregation { s.v.Size = &size @@ -96,7 +85,6 @@ func (s *_multiTermsAggregation) Size(size int) *_multiTermsAggregation { return s } -// The field from which to generate sets of terms. func (s *_multiTermsAggregation) Terms(terms ...types.MultiTermLookupVariant) *_multiTermsAggregation { for _, v := range terms { diff --git a/typedapi/esdsl/murmur3hashproperty.go b/typedapi/esdsl/murmur3hashproperty.go index aea8a1a478..8435f31380 100644 --- a/typedapi/esdsl/murmur3hashproperty.go +++ b/typedapi/esdsl/murmur3hashproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _murmur3HashProperty struct { @@ -84,7 +84,6 @@ func (s *_murmur3HashProperty) IgnoreAbove(ignoreabove int) *_murmur3HashPropert return s } -// Metadata about the field. func (s *_murmur3HashProperty) Meta(meta map[string]string) *_murmur3HashProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/mutualinformationheuristic.go b/typedapi/esdsl/mutualinformationheuristic.go index 7f09a9b32b..b4339cd08a 100644 --- a/typedapi/esdsl/mutualinformationheuristic.go +++ b/typedapi/esdsl/mutualinformationheuristic.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _mutualInformationHeuristic struct { v *types.MutualInformationHeuristic @@ -32,8 +32,6 @@ func NewMutualInformationHeuristic() *_mutualInformationHeuristic { } -// Set to `false` if you defined a custom background filter that represents a -// different set of documents that you want to compare to. func (s *_mutualInformationHeuristic) BackgroundIsSuperset(backgroundissuperset bool) *_mutualInformationHeuristic { s.v.BackgroundIsSuperset = &backgroundissuperset @@ -41,8 +39,6 @@ func (s *_mutualInformationHeuristic) BackgroundIsSuperset(backgroundissuperset return s } -// Set to `false` to filter out the terms that appear less often in the subset -// than in documents outside the subset. func (s *_mutualInformationHeuristic) IncludeNegatives(includenegatives bool) *_mutualInformationHeuristic { s.v.IncludeNegatives = &includenegatives diff --git a/typedapi/esdsl/names.go b/typedapi/esdsl/names.go index c8196ddf0b..2966201564 100644 --- a/typedapi/esdsl/names.go +++ b/typedapi/esdsl/names.go @@ -16,13 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _names struct { v types.Names } diff --git a/typedapi/esdsl/nerinferenceoptions.go b/typedapi/esdsl/nerinferenceoptions.go index a16e50badc..85b05bef38 100644 --- a/typedapi/esdsl/nerinferenceoptions.go +++ b/typedapi/esdsl/nerinferenceoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _nerInferenceOptions struct { v *types.NerInferenceOptions @@ -33,7 +33,6 @@ func NewNerInferenceOptions() *_nerInferenceOptions { } -// The token classification labels. Must be IOB formatted tags func (s *_nerInferenceOptions) ClassificationLabels(classificationlabels ...string) *_nerInferenceOptions { for _, v := range classificationlabels { @@ -44,8 +43,6 @@ func (s *_nerInferenceOptions) ClassificationLabels(classificationlabels ...stri return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_nerInferenceOptions) ResultsField(resultsfield string) *_nerInferenceOptions { s.v.ResultsField = &resultsfield @@ -53,7 +50,6 @@ func (s *_nerInferenceOptions) ResultsField(resultsfield string) *_nerInferenceO return s } -// The tokenization options func (s *_nerInferenceOptions) Tokenization(tokenization types.TokenizationConfigContainerVariant) *_nerInferenceOptions { s.v.Tokenization = tokenization.TokenizationConfigContainerCaster() diff --git a/typedapi/esdsl/nerinferenceupdateoptions.go b/typedapi/esdsl/nerinferenceupdateoptions.go index 951e481f14..ddf1de1cbe 100644 --- a/typedapi/esdsl/nerinferenceupdateoptions.go +++ b/typedapi/esdsl/nerinferenceupdateoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _nerInferenceUpdateOptions struct { v *types.NerInferenceUpdateOptions @@ -33,8 +33,6 @@ func NewNerInferenceUpdateOptions() *_nerInferenceUpdateOptions { } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_nerInferenceUpdateOptions) ResultsField(resultsfield string) *_nerInferenceUpdateOptions { s.v.ResultsField = &resultsfield @@ -42,7 +40,6 @@ func (s *_nerInferenceUpdateOptions) ResultsField(resultsfield string) *_nerInfe return s } -// The tokenization options to update when inferring func (s *_nerInferenceUpdateOptions) Tokenization(tokenization types.NlpTokenizationUpdateOptionsVariant) *_nerInferenceUpdateOptions { s.v.Tokenization = tokenization.NlpTokenizationUpdateOptionsCaster() diff --git a/typedapi/esdsl/nestedaggregation.go b/typedapi/esdsl/nestedaggregation.go index 2d19c93a40..e657bf1cde 100644 --- a/typedapi/esdsl/nestedaggregation.go +++ b/typedapi/esdsl/nestedaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _nestedAggregation struct { v *types.NestedAggregation @@ -34,7 +34,6 @@ func NewNestedAggregation() *_nestedAggregation { } -// The path to the field of type `nested`. func (s *_nestedAggregation) Path(field string) *_nestedAggregation { s.v.Path = &field diff --git a/typedapi/esdsl/nestedproperty.go b/typedapi/esdsl/nestedproperty.go index 752137470e..cbee70226c 100644 --- a/typedapi/esdsl/nestedproperty.go +++ b/typedapi/esdsl/nestedproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _nestedProperty struct { @@ -98,7 +98,6 @@ func (s *_nestedProperty) IncludeInRoot(includeinroot bool) *_nestedProperty { return s } -// Metadata about the field. func (s *_nestedProperty) Meta(meta map[string]string) *_nestedProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/nestedquery.go b/typedapi/esdsl/nestedquery.go index da2b1b1de8..e9efb176c7 100644 --- a/typedapi/esdsl/nestedquery.go +++ b/typedapi/esdsl/nestedquery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/childscoremode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/childscoremode" ) type _nestedQuery struct { @@ -42,11 +42,6 @@ func NewNestedQuery(query types.QueryVariant) *_nestedQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_nestedQuery) Boost(boost float32) *_nestedQuery { s.v.Boost = &boost @@ -54,8 +49,6 @@ func (s *_nestedQuery) Boost(boost float32) *_nestedQuery { return s } -// Indicates whether to ignore an unmapped path and not return any documents -// instead of an error. func (s *_nestedQuery) IgnoreUnmapped(ignoreunmapped bool) *_nestedQuery { s.v.IgnoreUnmapped = &ignoreunmapped @@ -63,7 +56,6 @@ func (s *_nestedQuery) IgnoreUnmapped(ignoreunmapped bool) *_nestedQuery { return s } -// If defined, each search hit will contain inner hits. func (s *_nestedQuery) InnerHits(innerhits types.InnerHitsVariant) *_nestedQuery { s.v.InnerHits = innerhits.InnerHitsCaster() @@ -71,7 +63,6 @@ func (s *_nestedQuery) InnerHits(innerhits types.InnerHitsVariant) *_nestedQuery return s } -// Path to the nested object you wish to search. func (s *_nestedQuery) Path(field string) *_nestedQuery { s.v.Path = field @@ -79,7 +70,6 @@ func (s *_nestedQuery) Path(field string) *_nestedQuery { return s } -// Query you wish to run on nested objects in the path. func (s *_nestedQuery) Query(query types.QueryVariant) *_nestedQuery { s.v.Query = *query.QueryCaster() @@ -94,8 +84,6 @@ func (s *_nestedQuery) QueryName_(queryname_ string) *_nestedQuery { return s } -// How scores for matching child objects affect the root parent document’s -// relevance score. func (s *_nestedQuery) ScoreMode(scoremode childscoremode.ChildScoreMode) *_nestedQuery { s.v.ScoreMode = &scoremode diff --git a/typedapi/esdsl/nestedsortvalue.go b/typedapi/esdsl/nestedsortvalue.go index fda73bfde4..7d24d6cdc4 100644 --- a/typedapi/esdsl/nestedsortvalue.go +++ b/typedapi/esdsl/nestedsortvalue.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _nestedSortValue struct { v *types.NestedSortValue diff --git a/typedapi/esdsl/networkdirectionprocessor.go b/typedapi/esdsl/networkdirectionprocessor.go index 676e11aa00..35cbc5096d 100644 --- a/typedapi/esdsl/networkdirectionprocessor.go +++ b/typedapi/esdsl/networkdirectionprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _networkDirectionProcessor struct { v *types.NetworkDirectionProcessor @@ -34,8 +34,6 @@ func NewNetworkDirectionProcessor() *_networkDirectionProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_networkDirectionProcessor) Description(description string) *_networkDirectionProcessor { s.v.Description = &description @@ -43,7 +41,6 @@ func (s *_networkDirectionProcessor) Description(description string) *_networkDi return s } -// Field containing the destination IP address. func (s *_networkDirectionProcessor) DestinationIp(field string) *_networkDirectionProcessor { s.v.DestinationIp = &field @@ -51,7 +48,6 @@ func (s *_networkDirectionProcessor) DestinationIp(field string) *_networkDirect return s } -// Conditionally execute the processor. func (s *_networkDirectionProcessor) If(if_ types.ScriptVariant) *_networkDirectionProcessor { s.v.If = if_.ScriptCaster() @@ -59,7 +55,6 @@ func (s *_networkDirectionProcessor) If(if_ types.ScriptVariant) *_networkDirect return s } -// Ignore failures for the processor. func (s *_networkDirectionProcessor) IgnoreFailure(ignorefailure bool) *_networkDirectionProcessor { s.v.IgnoreFailure = &ignorefailure @@ -67,8 +62,6 @@ func (s *_networkDirectionProcessor) IgnoreFailure(ignorefailure bool) *_network return s } -// If true and any required fields are missing, the processor quietly exits -// without modifying the document. func (s *_networkDirectionProcessor) IgnoreMissing(ignoremissing bool) *_networkDirectionProcessor { s.v.IgnoreMissing = &ignoremissing @@ -76,10 +69,6 @@ func (s *_networkDirectionProcessor) IgnoreMissing(ignoremissing bool) *_network return s } -// List of internal networks. Supports IPv4 and IPv6 addresses and ranges in -// CIDR notation. Also supports the named ranges listed below. These may be -// constructed with template snippets. Must specify only one of -// internal_networks or internal_networks_field. func (s *_networkDirectionProcessor) InternalNetworks(internalnetworks ...string) *_networkDirectionProcessor { for _, v := range internalnetworks { @@ -90,8 +79,6 @@ func (s *_networkDirectionProcessor) InternalNetworks(internalnetworks ...string return s } -// A field on the given document to read the internal_networks configuration -// from. func (s *_networkDirectionProcessor) InternalNetworksField(field string) *_networkDirectionProcessor { s.v.InternalNetworksField = &field @@ -99,7 +86,6 @@ func (s *_networkDirectionProcessor) InternalNetworksField(field string) *_netwo return s } -// Handle failures for the processor. func (s *_networkDirectionProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_networkDirectionProcessor { for _, v := range onfailures { @@ -110,7 +96,6 @@ func (s *_networkDirectionProcessor) OnFailure(onfailures ...types.ProcessorCont return s } -// Field containing the source IP address. func (s *_networkDirectionProcessor) SourceIp(field string) *_networkDirectionProcessor { s.v.SourceIp = &field @@ -118,8 +103,6 @@ func (s *_networkDirectionProcessor) SourceIp(field string) *_networkDirectionPr return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_networkDirectionProcessor) Tag(tag string) *_networkDirectionProcessor { s.v.Tag = &tag @@ -127,7 +110,6 @@ func (s *_networkDirectionProcessor) Tag(tag string) *_networkDirectionProcessor return s } -// Output field for the network direction. func (s *_networkDirectionProcessor) TargetField(field string) *_networkDirectionProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/nevercondition.go b/typedapi/esdsl/nevercondition.go index 92ab0e138c..2d593a2b3d 100644 --- a/typedapi/esdsl/nevercondition.go +++ b/typedapi/esdsl/nevercondition.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _neverCondition struct { v *types.NeverCondition diff --git a/typedapi/esdsl/ngramtokenfilter.go b/typedapi/esdsl/ngramtokenfilter.go index 84b6e6b69e..8d4db8e8cd 100644 --- a/typedapi/esdsl/ngramtokenfilter.go +++ b/typedapi/esdsl/ngramtokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _nGramTokenFilter struct { v *types.NGramTokenFilter diff --git a/typedapi/esdsl/ngramtokenizer.go b/typedapi/esdsl/ngramtokenizer.go index e9ed491cc3..7b5fe2946f 100644 --- a/typedapi/esdsl/ngramtokenizer.go +++ b/typedapi/esdsl/ngramtokenizer.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenchar" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenchar" ) type _nGramTokenizer struct { diff --git a/typedapi/esdsl/nlpberttokenizationconfig.go b/typedapi/esdsl/nlpberttokenizationconfig.go index 659a7b0c91..591f87ea7e 100644 --- a/typedapi/esdsl/nlpberttokenizationconfig.go +++ b/typedapi/esdsl/nlpberttokenizationconfig.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenizationtruncate" ) type _nlpBertTokenizationConfig struct { @@ -36,7 +36,6 @@ func NewNlpBertTokenizationConfig() *_nlpBertTokenizationConfig { } -// Should the tokenizer lower case the text func (s *_nlpBertTokenizationConfig) DoLowerCase(dolowercase bool) *_nlpBertTokenizationConfig { s.v.DoLowerCase = &dolowercase @@ -44,7 +43,6 @@ func (s *_nlpBertTokenizationConfig) DoLowerCase(dolowercase bool) *_nlpBertToke return s } -// Maximum input sequence length for the model func (s *_nlpBertTokenizationConfig) MaxSequenceLength(maxsequencelength int) *_nlpBertTokenizationConfig { s.v.MaxSequenceLength = &maxsequencelength @@ -52,8 +50,6 @@ func (s *_nlpBertTokenizationConfig) MaxSequenceLength(maxsequencelength int) *_ return s } -// Tokenization spanning options. Special value of -1 indicates no spanning -// takes place func (s *_nlpBertTokenizationConfig) Span(span int) *_nlpBertTokenizationConfig { s.v.Span = &span @@ -61,15 +57,12 @@ func (s *_nlpBertTokenizationConfig) Span(span int) *_nlpBertTokenizationConfig return s } -// Should tokenization input be automatically truncated before sending to the -// model for inference func (s *_nlpBertTokenizationConfig) Truncate(truncate tokenizationtruncate.TokenizationTruncate) *_nlpBertTokenizationConfig { s.v.Truncate = &truncate return s } -// Is tokenization completed with special tokens func (s *_nlpBertTokenizationConfig) WithSpecialTokens(withspecialtokens bool) *_nlpBertTokenizationConfig { s.v.WithSpecialTokens = &withspecialtokens diff --git a/typedapi/esdsl/nlprobertatokenizationconfig.go b/typedapi/esdsl/nlprobertatokenizationconfig.go index 582cc6b573..124fbfddc5 100644 --- a/typedapi/esdsl/nlprobertatokenizationconfig.go +++ b/typedapi/esdsl/nlprobertatokenizationconfig.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenizationtruncate" ) type _nlpRobertaTokenizationConfig struct { @@ -36,7 +36,6 @@ func NewNlpRobertaTokenizationConfig() *_nlpRobertaTokenizationConfig { } -// Should the tokenizer prefix input with a space character func (s *_nlpRobertaTokenizationConfig) AddPrefixSpace(addprefixspace bool) *_nlpRobertaTokenizationConfig { s.v.AddPrefixSpace = &addprefixspace @@ -44,7 +43,6 @@ func (s *_nlpRobertaTokenizationConfig) AddPrefixSpace(addprefixspace bool) *_nl return s } -// Should the tokenizer lower case the text func (s *_nlpRobertaTokenizationConfig) DoLowerCase(dolowercase bool) *_nlpRobertaTokenizationConfig { s.v.DoLowerCase = &dolowercase @@ -52,7 +50,6 @@ func (s *_nlpRobertaTokenizationConfig) DoLowerCase(dolowercase bool) *_nlpRober return s } -// Maximum input sequence length for the model func (s *_nlpRobertaTokenizationConfig) MaxSequenceLength(maxsequencelength int) *_nlpRobertaTokenizationConfig { s.v.MaxSequenceLength = &maxsequencelength @@ -60,8 +57,6 @@ func (s *_nlpRobertaTokenizationConfig) MaxSequenceLength(maxsequencelength int) return s } -// Tokenization spanning options. Special value of -1 indicates no spanning -// takes place func (s *_nlpRobertaTokenizationConfig) Span(span int) *_nlpRobertaTokenizationConfig { s.v.Span = &span @@ -69,15 +64,12 @@ func (s *_nlpRobertaTokenizationConfig) Span(span int) *_nlpRobertaTokenizationC return s } -// Should tokenization input be automatically truncated before sending to the -// model for inference func (s *_nlpRobertaTokenizationConfig) Truncate(truncate tokenizationtruncate.TokenizationTruncate) *_nlpRobertaTokenizationConfig { s.v.Truncate = &truncate return s } -// Is tokenization completed with special tokens func (s *_nlpRobertaTokenizationConfig) WithSpecialTokens(withspecialtokens bool) *_nlpRobertaTokenizationConfig { s.v.WithSpecialTokens = &withspecialtokens diff --git a/typedapi/esdsl/nlptokenizationupdateoptions.go b/typedapi/esdsl/nlptokenizationupdateoptions.go index 8d9919e4a3..257fb40792 100644 --- a/typedapi/esdsl/nlptokenizationupdateoptions.go +++ b/typedapi/esdsl/nlptokenizationupdateoptions.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenizationtruncate" ) type _nlpTokenizationUpdateOptions struct { @@ -35,7 +35,6 @@ func NewNlpTokenizationUpdateOptions() *_nlpTokenizationUpdateOptions { } -// Span options to apply func (s *_nlpTokenizationUpdateOptions) Span(span int) *_nlpTokenizationUpdateOptions { s.v.Span = &span @@ -43,7 +42,6 @@ func (s *_nlpTokenizationUpdateOptions) Span(span int) *_nlpTokenizationUpdateOp return s } -// Truncate options to apply func (s *_nlpTokenizationUpdateOptions) Truncate(truncate tokenizationtruncate.TokenizationTruncate) *_nlpTokenizationUpdateOptions { s.v.Truncate = &truncate diff --git a/typedapi/esdsl/norianalyzer.go b/typedapi/esdsl/norianalyzer.go index 91114d98b8..ec698ece6a 100644 --- a/typedapi/esdsl/norianalyzer.go +++ b/typedapi/esdsl/norianalyzer.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noridecompoundmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/noridecompoundmode" ) type _noriAnalyzer struct { diff --git a/typedapi/esdsl/noripartofspeechtokenfilter.go b/typedapi/esdsl/noripartofspeechtokenfilter.go index d1e2dd22f5..4c2cd1c42d 100644 --- a/typedapi/esdsl/noripartofspeechtokenfilter.go +++ b/typedapi/esdsl/noripartofspeechtokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _noriPartOfSpeechTokenFilter struct { v *types.NoriPartOfSpeechTokenFilter diff --git a/typedapi/esdsl/noritokenizer.go b/typedapi/esdsl/noritokenizer.go index e5a9377afc..2eebdc08bf 100644 --- a/typedapi/esdsl/noritokenizer.go +++ b/typedapi/esdsl/noritokenizer.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noridecompoundmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/noridecompoundmode" ) type _noriTokenizer struct { diff --git a/typedapi/esdsl/normalizeaggregation.go b/typedapi/esdsl/normalizeaggregation.go index 23b3e03ff9..f4d8a9bf6b 100644 --- a/typedapi/esdsl/normalizeaggregation.go +++ b/typedapi/esdsl/normalizeaggregation.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalizemethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/normalizemethod" ) type _normalizeAggregation struct { @@ -38,7 +38,6 @@ func NewNormalizeAggregation() *_normalizeAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_normalizeAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_normalizeAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -46,9 +45,6 @@ func (s *_normalizeAggregation) BucketsPath(bucketspath types.BucketsPathVariant return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_normalizeAggregation) Format(format string) *_normalizeAggregation { s.v.Format = &format @@ -56,14 +52,12 @@ func (s *_normalizeAggregation) Format(format string) *_normalizeAggregation { return s } -// Policy to apply when gaps are found in the data. func (s *_normalizeAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_normalizeAggregation { s.v.GapPolicy = &gappolicy return s } -// The specific method to apply. func (s *_normalizeAggregation) Method(method normalizemethod.NormalizeMethod) *_normalizeAggregation { s.v.Method = &method diff --git a/typedapi/esdsl/normalizer.go b/typedapi/esdsl/normalizer.go index 0267a56825..45f837b3f1 100644 --- a/typedapi/esdsl/normalizer.go +++ b/typedapi/esdsl/normalizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _normalizer struct { diff --git a/typedapi/esdsl/norwegiananalyzer.go b/typedapi/esdsl/norwegiananalyzer.go index 317473b654..7c06ec1847 100644 --- a/typedapi/esdsl/norwegiananalyzer.go +++ b/typedapi/esdsl/norwegiananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _norwegianAnalyzer struct { v *types.NorwegianAnalyzer diff --git a/typedapi/esdsl/numberrangequery.go b/typedapi/esdsl/numberrangequery.go index 397cc2593d..1ff63f8dc7 100644 --- a/typedapi/esdsl/numberrangequery.go +++ b/typedapi/esdsl/numberrangequery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/rangerelation" ) type _numberRangeQuery struct { @@ -30,7 +30,7 @@ type _numberRangeQuery struct { v *types.NumberRangeQuery } -// Returns roles that contain terms within a provided range. +// Returns documents that contain terms within a provided range. func NewNumberRangeQuery(key string) *_numberRangeQuery { return &_numberRangeQuery{ k: key, @@ -38,11 +38,6 @@ func NewNumberRangeQuery(key string) *_numberRangeQuery { } } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_numberRangeQuery) Boost(boost float32) *_numberRangeQuery { s.v.Boost = &boost @@ -57,7 +52,6 @@ func (s *_numberRangeQuery) From(from types.Float64) *_numberRangeQuery { return s } -// Greater than. func (s *_numberRangeQuery) Gt(gt types.Float64) *_numberRangeQuery { s.v.Gt = > @@ -65,7 +59,6 @@ func (s *_numberRangeQuery) Gt(gt types.Float64) *_numberRangeQuery { return s } -// Greater than or equal to. func (s *_numberRangeQuery) Gte(gte types.Float64) *_numberRangeQuery { s.v.Gte = >e @@ -73,7 +66,6 @@ func (s *_numberRangeQuery) Gte(gte types.Float64) *_numberRangeQuery { return s } -// Less than. func (s *_numberRangeQuery) Lt(lt types.Float64) *_numberRangeQuery { s.v.Lt = < @@ -81,7 +73,6 @@ func (s *_numberRangeQuery) Lt(lt types.Float64) *_numberRangeQuery { return s } -// Less than or equal to. func (s *_numberRangeQuery) Lte(lte types.Float64) *_numberRangeQuery { s.v.Lte = <e @@ -96,7 +87,6 @@ func (s *_numberRangeQuery) QueryName_(queryname_ string) *_numberRangeQuery { return s } -// Indicates how the range query matches values for `range` fields. func (s *_numberRangeQuery) Relation(relation rangerelation.RangeRelation) *_numberRangeQuery { s.v.Relation = &relation diff --git a/typedapi/esdsl/numericdecayfunction.go b/typedapi/esdsl/numericdecayfunction.go index 0c5a8e900d..a235ecb72f 100644 --- a/typedapi/esdsl/numericdecayfunction.go +++ b/typedapi/esdsl/numericdecayfunction.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/multivaluemode" ) type _numericDecayFunction struct { @@ -58,8 +58,6 @@ func (s *_numericDecayFunction) AddDecayFunctionBasedoubledouble(key string, val return s } -// Determines how the distance is calculated when a field used for computing the -// decay contains multiple values. func (s *_numericDecayFunction) MultiValueMode(multivaluemode multivaluemode.MultiValueMode) *_numericDecayFunction { s.v.MultiValueMode = &multivaluemode diff --git a/typedapi/esdsl/numericfielddata.go b/typedapi/esdsl/numericfielddata.go index af5a98eb0d..03413e7d8b 100644 --- a/typedapi/esdsl/numericfielddata.go +++ b/typedapi/esdsl/numericfielddata.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/numericfielddataformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/numericfielddataformat" ) type _numericFielddata struct { diff --git a/typedapi/esdsl/objectproperty.go b/typedapi/esdsl/objectproperty.go index a7946d5503..6acba94604 100644 --- a/typedapi/esdsl/objectproperty.go +++ b/typedapi/esdsl/objectproperty.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/subobjects" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/subobjects" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _objectProperty struct { @@ -85,7 +85,6 @@ func (s *_objectProperty) IgnoreAbove(ignoreabove int) *_objectProperty { return s } -// Metadata about the field. func (s *_objectProperty) Meta(meta map[string]string) *_objectProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/onehotencodingpreprocessor.go b/typedapi/esdsl/onehotencodingpreprocessor.go index 2389002d2d..b7e9bc1e80 100644 --- a/typedapi/esdsl/onehotencodingpreprocessor.go +++ b/typedapi/esdsl/onehotencodingpreprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _oneHotEncodingPreprocessor struct { v *types.OneHotEncodingPreprocessor diff --git a/typedapi/esdsl/openaiservicesettings.go b/typedapi/esdsl/openaiservicesettings.go index ebfeaf41b8..22b9d71f5c 100644 --- a/typedapi/esdsl/openaiservicesettings.go +++ b/typedapi/esdsl/openaiservicesettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _openAIServiceSettings struct { v *types.OpenAIServiceSettings @@ -38,16 +38,6 @@ func NewOpenAIServiceSettings(apikey string, modelid string) *_openAIServiceSett } -// A valid API key of your OpenAI account. -// You can find your OpenAI API keys in your OpenAI account under the API keys -// section. -// -// IMPORTANT: You need to provide the API key only once, during the inference -// model creation. -// The get inference endpoint API does not retrieve your API key. -// After creating the inference model, you cannot change the associated API key. -// If you want to use a different API key, delete the inference model and -// recreate it with the same name and the updated API key. func (s *_openAIServiceSettings) ApiKey(apikey string) *_openAIServiceSettings { s.v.ApiKey = apikey @@ -55,9 +45,6 @@ func (s *_openAIServiceSettings) ApiKey(apikey string) *_openAIServiceSettings { return s } -// The number of dimensions the resulting output embeddings should have. -// It is supported only in `text-embedding-3` and later models. -// If it is not set, the OpenAI defined default for the model is used. func (s *_openAIServiceSettings) Dimensions(dimensions int) *_openAIServiceSettings { s.v.Dimensions = &dimensions @@ -65,9 +52,6 @@ func (s *_openAIServiceSettings) Dimensions(dimensions int) *_openAIServiceSetti return s } -// The name of the model to use for the inference task. -// Refer to the OpenAI documentation for the list of available text embedding -// models. func (s *_openAIServiceSettings) ModelId(modelid string) *_openAIServiceSettings { s.v.ModelId = modelid @@ -75,9 +59,6 @@ func (s *_openAIServiceSettings) ModelId(modelid string) *_openAIServiceSettings return s } -// The unique identifier for your organization. -// You can find the Organization ID in your OpenAI account under *Settings > -// Organizations*. func (s *_openAIServiceSettings) OrganizationId(organizationid string) *_openAIServiceSettings { s.v.OrganizationId = &organizationid @@ -85,12 +66,6 @@ func (s *_openAIServiceSettings) OrganizationId(organizationid string) *_openAIS return s } -// This setting helps to minimize the number of rate limit errors returned from -// OpenAI. -// The `openai` service sets a default number of requests allowed per minute -// depending on the task type. -// For `text_embedding`, it is set to `3000`. -// For `completion`, it is set to `500`. func (s *_openAIServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_openAIServiceSettings { s.v.RateLimit = ratelimit.RateLimitSettingCaster() @@ -98,8 +73,6 @@ func (s *_openAIServiceSettings) RateLimit(ratelimit types.RateLimitSettingVaria return s } -// The URL endpoint to use for the requests. -// It can be changed for testing purposes. func (s *_openAIServiceSettings) Url(url string) *_openAIServiceSettings { s.v.Url = &url diff --git a/typedapi/esdsl/openaitasksettings.go b/typedapi/esdsl/openaitasksettings.go index 2e973a558f..8d3a7ee975 100644 --- a/typedapi/esdsl/openaitasksettings.go +++ b/typedapi/esdsl/openaitasksettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _openAITaskSettings struct { v *types.OpenAITaskSettings @@ -32,9 +32,6 @@ func NewOpenAITaskSettings() *_openAITaskSettings { } -// For a `completion` or `text_embedding` task, specify the user issuing the -// request. -// This informaiton can be used for abuse detection. func (s *_openAITaskSettings) User(user string) *_openAITaskSettings { s.v.User = &user diff --git a/typedapi/esdsl/operationcontainer.go b/typedapi/esdsl/operationcontainer.go index d78f95405d..28fbf1f13e 100644 --- a/typedapi/esdsl/operationcontainer.go +++ b/typedapi/esdsl/operationcontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _operationContainer struct { @@ -46,8 +46,6 @@ func (s *_operationContainer) AdditionalOperationContainerProperty(key string, v return s } -// Index the specified document if it does not already exist. -// The following line must contain the source data to be indexed. func (s *_operationContainer) Create(create types.CreateOperationVariant) *_operationContainer { s.v.Create = create.CreateOperationCaster() @@ -55,7 +53,6 @@ func (s *_operationContainer) Create(create types.CreateOperationVariant) *_oper return s } -// Remove the specified document from the index. func (s *_operationContainer) Delete(delete types.DeleteOperationVariant) *_operationContainer { s.v.Delete = delete.DeleteOperationCaster() @@ -63,9 +60,6 @@ func (s *_operationContainer) Delete(delete types.DeleteOperationVariant) *_oper return s } -// Index the specified document. -// If the document exists, it replaces the document and increments the version. -// The following line must contain the source data to be indexed. func (s *_operationContainer) Index(index types.IndexOperationVariant) *_operationContainer { s.v.Index = index.IndexOperationCaster() @@ -73,8 +67,6 @@ func (s *_operationContainer) Index(index types.IndexOperationVariant) *_operati return s } -// Perform a partial document update. -// The following line must contain the partial document and update options. func (s *_operationContainer) Update(update types.UpdateOperationVariant) *_operationContainer { s.v.Update = update.UpdateOperationCaster() diff --git a/typedapi/esdsl/page.go b/typedapi/esdsl/page.go index 4aa25c77d1..633eee1cd2 100644 --- a/typedapi/esdsl/page.go +++ b/typedapi/esdsl/page.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _page struct { v *types.Page @@ -32,7 +32,6 @@ func NewPage() *_page { } -// Skips the specified number of items. func (s *_page) From(from int) *_page { s.v.From = &from @@ -40,7 +39,6 @@ func (s *_page) From(from int) *_page { return s } -// Specifies the maximum number of items to obtain. func (s *_page) Size(size int) *_page { s.v.Size = &size diff --git a/typedapi/esdsl/pagerdutyaction.go b/typedapi/esdsl/pagerdutyaction.go index f23e43ed60..b78889b842 100644 --- a/typedapi/esdsl/pagerdutyaction.go +++ b/typedapi/esdsl/pagerdutyaction.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutyeventtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/pagerdutyeventtype" ) type _pagerDutyAction struct { diff --git a/typedapi/esdsl/pagerdutycontext.go b/typedapi/esdsl/pagerdutycontext.go index 466922ebd2..9971a28e62 100644 --- a/typedapi/esdsl/pagerdutycontext.go +++ b/typedapi/esdsl/pagerdutycontext.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutycontexttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/pagerdutycontexttype" ) type _pagerDutyContext struct { diff --git a/typedapi/esdsl/pagerdutyeventproxy.go b/typedapi/esdsl/pagerdutyeventproxy.go index b9be341e14..a2b1eef4cb 100644 --- a/typedapi/esdsl/pagerdutyeventproxy.go +++ b/typedapi/esdsl/pagerdutyeventproxy.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _pagerDutyEventProxy struct { v *types.PagerDutyEventProxy diff --git a/typedapi/esdsl/painlesscontextsetup.go b/typedapi/esdsl/painlesscontextsetup.go index 5b468b1486..bed0e4b5a2 100644 --- a/typedapi/esdsl/painlesscontextsetup.go +++ b/typedapi/esdsl/painlesscontextsetup.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _painlessContextSetup struct { @@ -40,7 +40,6 @@ func NewPainlessContextSetup(document json.RawMessage) *_painlessContextSetup { } -// Document that's temporarily indexed in-memory and accessible from the script. func (s *_painlessContextSetup) Document(document json.RawMessage) *_painlessContextSetup { s.v.Document = document @@ -48,18 +47,6 @@ func (s *_painlessContextSetup) Document(document json.RawMessage) *_painlessCon return s } -// Index containing a mapping that's compatible with the indexed document. -// You may specify a remote index by prefixing the index with the remote cluster -// alias. -// For example, `remote1:my_index` indicates that you want to run the painless -// script against the "my_index" index on the "remote1" cluster. -// This request will be forwarded to the "remote1" cluster if you have -// configured a connection to that remote cluster. -// -// NOTE: Wildcards are not accepted in the index expression for this endpoint. -// The expression `*:myindex` will return the error "No such remote cluster" and -// the expression `logs*` or `remote1:logs*` will return the error "index not -// found". func (s *_painlessContextSetup) Index(indexname string) *_painlessContextSetup { s.v.Index = indexname @@ -67,7 +54,6 @@ func (s *_painlessContextSetup) Index(indexname string) *_painlessContextSetup { return s } -// Use this parameter to specify a query for computing a score. func (s *_painlessContextSetup) Query(query types.QueryVariant) *_painlessContextSetup { s.v.Query = query.QueryCaster() diff --git a/typedapi/esdsl/parentaggregation.go b/typedapi/esdsl/parentaggregation.go index 2ffb021ada..d32d4d6ee9 100644 --- a/typedapi/esdsl/parentaggregation.go +++ b/typedapi/esdsl/parentaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _parentAggregation struct { v *types.ParentAggregation @@ -34,7 +34,6 @@ func NewParentAggregation() *_parentAggregation { } -// The child type that should be selected. func (s *_parentAggregation) Type(relationname string) *_parentAggregation { s.v.Type = &relationname diff --git a/typedapi/esdsl/parentidquery.go b/typedapi/esdsl/parentidquery.go index 1af0001b1a..aec0326041 100644 --- a/typedapi/esdsl/parentidquery.go +++ b/typedapi/esdsl/parentidquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _parentIdQuery struct { v *types.ParentIdQuery @@ -33,11 +33,6 @@ func NewParentIdQuery() *_parentIdQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_parentIdQuery) Boost(boost float32) *_parentIdQuery { s.v.Boost = &boost @@ -45,7 +40,6 @@ func (s *_parentIdQuery) Boost(boost float32) *_parentIdQuery { return s } -// ID of the parent document. func (s *_parentIdQuery) Id(id string) *_parentIdQuery { s.v.Id = &id @@ -53,8 +47,6 @@ func (s *_parentIdQuery) Id(id string) *_parentIdQuery { return s } -// Indicates whether to ignore an unmapped `type` and not return any documents -// instead of an error. func (s *_parentIdQuery) IgnoreUnmapped(ignoreunmapped bool) *_parentIdQuery { s.v.IgnoreUnmapped = &ignoreunmapped @@ -69,7 +61,6 @@ func (s *_parentIdQuery) QueryName_(queryname_ string) *_parentIdQuery { return s } -// Name of the child relationship mapped for the `join` field. func (s *_parentIdQuery) Type(relationname string) *_parentIdQuery { s.v.Type = &relationname diff --git a/typedapi/esdsl/passthroughinferenceoptions.go b/typedapi/esdsl/passthroughinferenceoptions.go index 352b1566a5..a55f8b3d25 100644 --- a/typedapi/esdsl/passthroughinferenceoptions.go +++ b/typedapi/esdsl/passthroughinferenceoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _passThroughInferenceOptions struct { v *types.PassThroughInferenceOptions @@ -33,8 +33,6 @@ func NewPassThroughInferenceOptions() *_passThroughInferenceOptions { } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_passThroughInferenceOptions) ResultsField(resultsfield string) *_passThroughInferenceOptions { s.v.ResultsField = &resultsfield @@ -42,7 +40,6 @@ func (s *_passThroughInferenceOptions) ResultsField(resultsfield string) *_passT return s } -// The tokenization options func (s *_passThroughInferenceOptions) Tokenization(tokenization types.TokenizationConfigContainerVariant) *_passThroughInferenceOptions { s.v.Tokenization = tokenization.TokenizationConfigContainerCaster() diff --git a/typedapi/esdsl/passthroughinferenceupdateoptions.go b/typedapi/esdsl/passthroughinferenceupdateoptions.go index 1d82e0bd3b..43157dd139 100644 --- a/typedapi/esdsl/passthroughinferenceupdateoptions.go +++ b/typedapi/esdsl/passthroughinferenceupdateoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _passThroughInferenceUpdateOptions struct { v *types.PassThroughInferenceUpdateOptions @@ -33,8 +33,6 @@ func NewPassThroughInferenceUpdateOptions() *_passThroughInferenceUpdateOptions } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_passThroughInferenceUpdateOptions) ResultsField(resultsfield string) *_passThroughInferenceUpdateOptions { s.v.ResultsField = &resultsfield @@ -42,7 +40,6 @@ func (s *_passThroughInferenceUpdateOptions) ResultsField(resultsfield string) * return s } -// The tokenization options to update when inferring func (s *_passThroughInferenceUpdateOptions) Tokenization(tokenization types.NlpTokenizationUpdateOptionsVariant) *_passThroughInferenceUpdateOptions { s.v.Tokenization = tokenization.NlpTokenizationUpdateOptionsCaster() diff --git a/typedapi/esdsl/passthroughobjectproperty.go b/typedapi/esdsl/passthroughobjectproperty.go index 2d14367032..f31c5c232f 100644 --- a/typedapi/esdsl/passthroughobjectproperty.go +++ b/typedapi/esdsl/passthroughobjectproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _passthroughObjectProperty struct { @@ -84,7 +84,6 @@ func (s *_passthroughObjectProperty) IgnoreAbove(ignoreabove int) *_passthroughO return s } -// Metadata about the field. func (s *_passthroughObjectProperty) Meta(meta map[string]string) *_passthroughObjectProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/pathhierarchytokenizer.go b/typedapi/esdsl/pathhierarchytokenizer.go index 72ddb9b6d9..8672bb607b 100644 --- a/typedapi/esdsl/pathhierarchytokenizer.go +++ b/typedapi/esdsl/pathhierarchytokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _pathHierarchyTokenizer struct { v *types.PathHierarchyTokenizer diff --git a/typedapi/esdsl/patternanalyzer.go b/typedapi/esdsl/patternanalyzer.go index 6d90fb0ed4..a6cbb67d3e 100644 --- a/typedapi/esdsl/patternanalyzer.go +++ b/typedapi/esdsl/patternanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _patternAnalyzer struct { v *types.PatternAnalyzer @@ -32,8 +32,6 @@ func NewPatternAnalyzer() *_patternAnalyzer { } -// Java regular expression flags. Flags should be pipe-separated, eg -// "CASE_INSENSITIVE|COMMENTS". func (s *_patternAnalyzer) Flags(flags string) *_patternAnalyzer { s.v.Flags = &flags @@ -41,8 +39,6 @@ func (s *_patternAnalyzer) Flags(flags string) *_patternAnalyzer { return s } -// Should terms be lowercased or not. -// Defaults to `true`. func (s *_patternAnalyzer) Lowercase(lowercase bool) *_patternAnalyzer { s.v.Lowercase = &lowercase @@ -50,8 +46,6 @@ func (s *_patternAnalyzer) Lowercase(lowercase bool) *_patternAnalyzer { return s } -// A Java regular expression. -// Defaults to `\W+`. func (s *_patternAnalyzer) Pattern(pattern string) *_patternAnalyzer { s.v.Pattern = &pattern @@ -59,9 +53,6 @@ func (s *_patternAnalyzer) Pattern(pattern string) *_patternAnalyzer { return s } -// A pre-defined stop words list like `_english_` or an array containing a list -// of stop words. -// Defaults to `_none_`. func (s *_patternAnalyzer) Stopwords(stopwords ...string) *_patternAnalyzer { s.v.Stopwords = stopwords @@ -69,7 +60,6 @@ func (s *_patternAnalyzer) Stopwords(stopwords ...string) *_patternAnalyzer { return s } -// The path to a file containing stop words. func (s *_patternAnalyzer) StopwordsPath(stopwordspath string) *_patternAnalyzer { s.v.StopwordsPath = &stopwordspath diff --git a/typedapi/esdsl/patterncapturetokenfilter.go b/typedapi/esdsl/patterncapturetokenfilter.go index f324ff201d..bc07739ab6 100644 --- a/typedapi/esdsl/patterncapturetokenfilter.go +++ b/typedapi/esdsl/patterncapturetokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _patternCaptureTokenFilter struct { v *types.PatternCaptureTokenFilter diff --git a/typedapi/esdsl/patternreplacecharfilter.go b/typedapi/esdsl/patternreplacecharfilter.go index 44b162e809..21726aa862 100644 --- a/typedapi/esdsl/patternreplacecharfilter.go +++ b/typedapi/esdsl/patternreplacecharfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _patternReplaceCharFilter struct { v *types.PatternReplaceCharFilter diff --git a/typedapi/esdsl/patternreplacetokenfilter.go b/typedapi/esdsl/patternreplacetokenfilter.go index 354f0eb345..cbede83690 100644 --- a/typedapi/esdsl/patternreplacetokenfilter.go +++ b/typedapi/esdsl/patternreplacetokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _patternReplaceTokenFilter struct { v *types.PatternReplaceTokenFilter diff --git a/typedapi/esdsl/patterntokenizer.go b/typedapi/esdsl/patterntokenizer.go index c74ebc4dd3..ab1ccced40 100644 --- a/typedapi/esdsl/patterntokenizer.go +++ b/typedapi/esdsl/patterntokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _patternTokenizer struct { v *types.PatternTokenizer diff --git a/typedapi/esdsl/percentage.go b/typedapi/esdsl/percentage.go index 3da8edff1a..1aeec11fe6 100644 --- a/typedapi/esdsl/percentage.go +++ b/typedapi/esdsl/percentage.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _percentage struct { diff --git a/typedapi/esdsl/percentagescoreheuristic.go b/typedapi/esdsl/percentagescoreheuristic.go index 024554a8d7..b05e4d4889 100644 --- a/typedapi/esdsl/percentagescoreheuristic.go +++ b/typedapi/esdsl/percentagescoreheuristic.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _percentageScoreHeuristic struct { v *types.PercentageScoreHeuristic diff --git a/typedapi/esdsl/percentileranksaggregation.go b/typedapi/esdsl/percentileranksaggregation.go index a01356c3a1..f8f895580c 100644 --- a/typedapi/esdsl/percentileranksaggregation.go +++ b/typedapi/esdsl/percentileranksaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _percentileRanksAggregation struct { v *types.PercentileRanksAggregation @@ -34,7 +34,6 @@ func NewPercentileRanksAggregation() *_percentileRanksAggregation { } -// The field on which to run the aggregation. func (s *_percentileRanksAggregation) Field(field string) *_percentileRanksAggregation { s.v.Field = &field @@ -49,8 +48,6 @@ func (s *_percentileRanksAggregation) Format(format string) *_percentileRanksAgg return s } -// Uses the alternative High Dynamic Range Histogram algorithm to calculate -// percentile ranks. func (s *_percentileRanksAggregation) Hdr(hdr types.HdrMethodVariant) *_percentileRanksAggregation { s.v.Hdr = hdr.HdrMethodCaster() @@ -58,9 +55,6 @@ func (s *_percentileRanksAggregation) Hdr(hdr types.HdrMethodVariant) *_percenti return s } -// By default, the aggregation associates a unique string key with each bucket -// and returns the ranges as a hash rather than an array. -// Set to `false` to disable this behavior. func (s *_percentileRanksAggregation) Keyed(keyed bool) *_percentileRanksAggregation { s.v.Keyed = &keyed @@ -68,8 +62,6 @@ func (s *_percentileRanksAggregation) Keyed(keyed bool) *_percentileRanksAggrega return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_percentileRanksAggregation) Missing(missing types.MissingVariant) *_percentileRanksAggregation { s.v.Missing = *missing.MissingCaster() @@ -84,8 +76,6 @@ func (s *_percentileRanksAggregation) Script(script types.ScriptVariant) *_perce return s } -// Sets parameters for the default TDigest algorithm used to calculate -// percentile ranks. func (s *_percentileRanksAggregation) Tdigest(tdigest types.TDigestVariant) *_percentileRanksAggregation { s.v.Tdigest = tdigest.TDigestCaster() @@ -93,7 +83,6 @@ func (s *_percentileRanksAggregation) Tdigest(tdigest types.TDigestVariant) *_pe return s } -// An array of values for which to calculate the percentile ranks. func (s *_percentileRanksAggregation) Values(values []types.Float64) *_percentileRanksAggregation { s.v.Values = &values diff --git a/typedapi/esdsl/percentilesaggregation.go b/typedapi/esdsl/percentilesaggregation.go index 4745364208..4e5c869e4d 100644 --- a/typedapi/esdsl/percentilesaggregation.go +++ b/typedapi/esdsl/percentilesaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _percentilesAggregation struct { v *types.PercentilesAggregation @@ -34,7 +34,6 @@ func NewPercentilesAggregation() *_percentilesAggregation { } -// The field on which to run the aggregation. func (s *_percentilesAggregation) Field(field string) *_percentilesAggregation { s.v.Field = &field @@ -49,8 +48,6 @@ func (s *_percentilesAggregation) Format(format string) *_percentilesAggregation return s } -// Uses the alternative High Dynamic Range Histogram algorithm to calculate -// percentiles. func (s *_percentilesAggregation) Hdr(hdr types.HdrMethodVariant) *_percentilesAggregation { s.v.Hdr = hdr.HdrMethodCaster() @@ -58,9 +55,6 @@ func (s *_percentilesAggregation) Hdr(hdr types.HdrMethodVariant) *_percentilesA return s } -// By default, the aggregation associates a unique string key with each bucket -// and returns the ranges as a hash rather than an array. -// Set to `false` to disable this behavior. func (s *_percentilesAggregation) Keyed(keyed bool) *_percentilesAggregation { s.v.Keyed = &keyed @@ -68,8 +62,6 @@ func (s *_percentilesAggregation) Keyed(keyed bool) *_percentilesAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_percentilesAggregation) Missing(missing types.MissingVariant) *_percentilesAggregation { s.v.Missing = *missing.MissingCaster() @@ -77,7 +69,6 @@ func (s *_percentilesAggregation) Missing(missing types.MissingVariant) *_percen return s } -// The percentiles to calculate. func (s *_percentilesAggregation) Percents(percents ...types.Float64) *_percentilesAggregation { for _, v := range percents { @@ -95,8 +86,6 @@ func (s *_percentilesAggregation) Script(script types.ScriptVariant) *_percentil return s } -// Sets parameters for the default TDigest algorithm used to calculate -// percentiles. func (s *_percentilesAggregation) Tdigest(tdigest types.TDigestVariant) *_percentilesAggregation { s.v.Tdigest = tdigest.TDigestCaster() diff --git a/typedapi/esdsl/percentilesbucketaggregation.go b/typedapi/esdsl/percentilesbucketaggregation.go index e7fbe382f9..a3b0e018e5 100644 --- a/typedapi/esdsl/percentilesbucketaggregation.go +++ b/typedapi/esdsl/percentilesbucketaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _percentilesBucketAggregation struct { @@ -37,7 +37,6 @@ func NewPercentilesBucketAggregation() *_percentilesBucketAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_percentilesBucketAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_percentilesBucketAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_percentilesBucketAggregation) BucketsPath(bucketspath types.BucketsPat return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_percentilesBucketAggregation) Format(format string) *_percentilesBucketAggregation { s.v.Format = &format @@ -55,14 +51,12 @@ func (s *_percentilesBucketAggregation) Format(format string) *_percentilesBucke return s } -// Policy to apply when gaps are found in the data. func (s *_percentilesBucketAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_percentilesBucketAggregation { s.v.GapPolicy = &gappolicy return s } -// The list of percentiles to calculate. func (s *_percentilesBucketAggregation) Percents(percents ...types.Float64) *_percentilesBucketAggregation { for _, v := range percents { diff --git a/typedapi/esdsl/percolatequery.go b/typedapi/esdsl/percolatequery.go index 28e3bf0167..d8401d599c 100644 --- a/typedapi/esdsl/percolatequery.go +++ b/typedapi/esdsl/percolatequery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _percolateQuery struct { @@ -37,11 +37,6 @@ func NewPercolateQuery() *_percolateQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_percolateQuery) Boost(boost float32) *_percolateQuery { s.v.Boost = &boost @@ -49,7 +44,6 @@ func (s *_percolateQuery) Boost(boost float32) *_percolateQuery { return s } -// The source of the document being percolated. func (s *_percolateQuery) Document(document json.RawMessage) *_percolateQuery { s.v.Document = document @@ -57,7 +51,6 @@ func (s *_percolateQuery) Document(document json.RawMessage) *_percolateQuery { return s } -// An array of sources of the documents being percolated. func (s *_percolateQuery) Documents(documents ...json.RawMessage) *_percolateQuery { for _, v := range documents { @@ -68,8 +61,6 @@ func (s *_percolateQuery) Documents(documents ...json.RawMessage) *_percolateQue return s } -// Field that holds the indexed queries. The field must use the `percolator` -// mapping type. func (s *_percolateQuery) Field(field string) *_percolateQuery { s.v.Field = field @@ -77,7 +68,6 @@ func (s *_percolateQuery) Field(field string) *_percolateQuery { return s } -// The ID of a stored document to percolate. func (s *_percolateQuery) Id(id string) *_percolateQuery { s.v.Id = &id @@ -85,7 +75,6 @@ func (s *_percolateQuery) Id(id string) *_percolateQuery { return s } -// The index of a stored document to percolate. func (s *_percolateQuery) Index(indexname string) *_percolateQuery { s.v.Index = &indexname @@ -93,8 +82,6 @@ func (s *_percolateQuery) Index(indexname string) *_percolateQuery { return s } -// The suffix used for the `_percolator_document_slot` field when multiple -// `percolate` queries are specified. func (s *_percolateQuery) Name(name string) *_percolateQuery { s.v.Name = &name @@ -102,7 +89,6 @@ func (s *_percolateQuery) Name(name string) *_percolateQuery { return s } -// Preference used to fetch document to percolate. func (s *_percolateQuery) Preference(preference string) *_percolateQuery { s.v.Preference = &preference @@ -117,7 +103,6 @@ func (s *_percolateQuery) QueryName_(queryname_ string) *_percolateQuery { return s } -// Routing used to fetch document to percolate. func (s *_percolateQuery) Routing(routing string) *_percolateQuery { s.v.Routing = &routing @@ -125,7 +110,6 @@ func (s *_percolateQuery) Routing(routing string) *_percolateQuery { return s } -// The expected version of a stored document to percolate. func (s *_percolateQuery) Version(versionnumber int64) *_percolateQuery { s.v.Version = &versionnumber diff --git a/typedapi/esdsl/percolatorproperty.go b/typedapi/esdsl/percolatorproperty.go index 0f29e4fef1..c04d7d9738 100644 --- a/typedapi/esdsl/percolatorproperty.go +++ b/typedapi/esdsl/percolatorproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _percolatorProperty struct { @@ -70,7 +70,6 @@ func (s *_percolatorProperty) IgnoreAbove(ignoreabove int) *_percolatorProperty return s } -// Metadata about the field. func (s *_percolatorProperty) Meta(meta map[string]string) *_percolatorProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/perpartitioncategorization.go b/typedapi/esdsl/perpartitioncategorization.go index 455fbf01f0..b1be749f5a 100644 --- a/typedapi/esdsl/perpartitioncategorization.go +++ b/typedapi/esdsl/perpartitioncategorization.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _perPartitionCategorization struct { v *types.PerPartitionCategorization @@ -32,9 +32,6 @@ func NewPerPartitionCategorization() *_perPartitionCategorization { } -// 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`. -// Otherwise, job creation fails. func (s *_perPartitionCategorization) Enabled(enabled bool) *_perPartitionCategorization { s.v.Enabled = &enabled @@ -42,12 +39,6 @@ func (s *_perPartitionCategorization) Enabled(enabled bool) *_perPartitionCatego return s } -// This setting can be set to true only if per-partition categorization is -// enabled. If true, both categorization and subsequent anomaly detection stops -// for partitions where the categorization status changes to warn. This setting -// makes it viable to have a job where it is expected that categorization works -// well for some partitions but not others; you do not pay the cost of bad -// categorization forever in the partitions where it works badly. func (s *_perPartitionCategorization) StopOnWarn(stoponwarn bool) *_perPartitionCategorization { s.v.StopOnWarn = &stoponwarn diff --git a/typedapi/esdsl/persiananalyzer.go b/typedapi/esdsl/persiananalyzer.go index a742b187ba..4f96a3f8ad 100644 --- a/typedapi/esdsl/persiananalyzer.go +++ b/typedapi/esdsl/persiananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _persianAnalyzer struct { v *types.PersianAnalyzer diff --git a/typedapi/esdsl/phase.go b/typedapi/esdsl/phase.go index 7523a3d919..2357c1a697 100644 --- a/typedapi/esdsl/phase.go +++ b/typedapi/esdsl/phase.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _phase struct { v *types.Phase diff --git a/typedapi/esdsl/phases.go b/typedapi/esdsl/phases.go index 1ba5b9ee5e..623b7a19b2 100644 --- a/typedapi/esdsl/phases.go +++ b/typedapi/esdsl/phases.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _phases struct { v *types.Phases diff --git a/typedapi/esdsl/phonetictokenfilter.go b/typedapi/esdsl/phonetictokenfilter.go index 7e9bd81b7b..8f1751864c 100644 --- a/typedapi/esdsl/phonetictokenfilter.go +++ b/typedapi/esdsl/phonetictokenfilter.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticencoder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticlanguage" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticnametype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticruletype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/phoneticencoder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/phoneticlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/phoneticnametype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/phoneticruletype" ) type _phoneticTokenFilter struct { diff --git a/typedapi/esdsl/phrasesuggestcollate.go b/typedapi/esdsl/phrasesuggestcollate.go index 33c858749b..498360f0f8 100644 --- a/typedapi/esdsl/phrasesuggestcollate.go +++ b/typedapi/esdsl/phrasesuggestcollate.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _phraseSuggestCollate struct { @@ -40,7 +40,6 @@ func NewPhraseSuggestCollate(query types.PhraseSuggestCollateQueryVariant) *_phr } -// Parameters to use if the query is templated. func (s *_phraseSuggestCollate) Params(params map[string]json.RawMessage) *_phraseSuggestCollate { s.v.Params = params @@ -62,8 +61,6 @@ func (s *_phraseSuggestCollate) AddParam(key string, value json.RawMessage) *_ph return s } -// Returns all suggestions with an extra `collate_match` option indicating -// whether the generated phrase matched any document. func (s *_phraseSuggestCollate) Prune(prune bool) *_phraseSuggestCollate { s.v.Prune = &prune @@ -71,7 +68,6 @@ func (s *_phraseSuggestCollate) Prune(prune bool) *_phraseSuggestCollate { return s } -// A collate query that is run once for every suggestion. func (s *_phraseSuggestCollate) Query(query types.PhraseSuggestCollateQueryVariant) *_phraseSuggestCollate { s.v.Query = *query.PhraseSuggestCollateQueryCaster() diff --git a/typedapi/esdsl/phrasesuggestcollatequery.go b/typedapi/esdsl/phrasesuggestcollatequery.go index d4fd12a170..c77a7eba94 100644 --- a/typedapi/esdsl/phrasesuggestcollatequery.go +++ b/typedapi/esdsl/phrasesuggestcollatequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _phraseSuggestCollateQuery struct { v *types.PhraseSuggestCollateQuery @@ -32,7 +32,6 @@ func NewPhraseSuggestCollateQuery() *_phraseSuggestCollateQuery { } -// The search template ID. func (s *_phraseSuggestCollateQuery) Id(id string) *_phraseSuggestCollateQuery { s.v.Id = &id @@ -40,10 +39,9 @@ func (s *_phraseSuggestCollateQuery) Id(id string) *_phraseSuggestCollateQuery { return s } -// The query source. -func (s *_phraseSuggestCollateQuery) Source(source string) *_phraseSuggestCollateQuery { +func (s *_phraseSuggestCollateQuery) Source(scriptsource types.ScriptSourceVariant) *_phraseSuggestCollateQuery { - s.v.Source = &source + s.v.Source = *scriptsource.ScriptSourceCaster() return s } diff --git a/typedapi/esdsl/phrasesuggester.go b/typedapi/esdsl/phrasesuggester.go index 5c504d7626..1de6098ca2 100644 --- a/typedapi/esdsl/phrasesuggester.go +++ b/typedapi/esdsl/phrasesuggester.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _phraseSuggester struct { v *types.PhraseSuggester @@ -34,8 +34,6 @@ func NewPhraseSuggester() *_phraseSuggester { } -// The analyzer to analyze the suggest text with. -// Defaults to the search analyzer of the suggest field. func (s *_phraseSuggester) Analyzer(analyzer string) *_phraseSuggester { s.v.Analyzer = &analyzer @@ -43,8 +41,6 @@ func (s *_phraseSuggester) Analyzer(analyzer string) *_phraseSuggester { return s } -// Checks each suggestion against the specified query to prune suggestions for -// which no matching docs exist in the index. func (s *_phraseSuggester) Collate(collate types.PhraseSuggestCollateVariant) *_phraseSuggester { s.v.Collate = collate.PhraseSuggestCollateCaster() @@ -52,10 +48,6 @@ func (s *_phraseSuggester) Collate(collate types.PhraseSuggestCollateVariant) *_ return s } -// Defines a factor applied to the input phrases score, which is used as a -// threshold for other suggest candidates. -// Only candidates that score higher than the threshold will be included in the -// result. func (s *_phraseSuggester) Confidence(confidence types.Float64) *_phraseSuggester { s.v.Confidence = &confidence @@ -63,8 +55,6 @@ func (s *_phraseSuggester) Confidence(confidence types.Float64) *_phraseSuggeste return s } -// A list of candidate generators that produce a list of possible terms per term -// in the given text. func (s *_phraseSuggester) DirectGenerator(directgenerators ...types.DirectGeneratorVariant) *_phraseSuggester { for _, v := range directgenerators { @@ -75,8 +65,6 @@ func (s *_phraseSuggester) DirectGenerator(directgenerators ...types.DirectGener return s } -// The field to fetch the candidate suggestions from. -// Needs to be set globally or per suggestion. func (s *_phraseSuggester) Field(field string) *_phraseSuggester { s.v.Field = field @@ -91,11 +79,6 @@ func (s *_phraseSuggester) ForceUnigrams(forceunigrams bool) *_phraseSuggester { return s } -// Sets max size of the n-grams (shingles) in the field. -// If the field doesn’t contain n-grams (shingles), this should be omitted or -// set to `1`. -// If the field uses a shingle filter, the `gram_size` is set to the -// `max_shingle_size` if not explicitly set. func (s *_phraseSuggester) GramSize(gramsize int) *_phraseSuggester { s.v.GramSize = &gramsize @@ -103,8 +86,6 @@ func (s *_phraseSuggester) GramSize(gramsize int) *_phraseSuggester { return s } -// Sets up suggestion highlighting. -// If not provided, no highlighted field is returned. func (s *_phraseSuggester) Highlight(highlight types.PhraseSuggestHighlightVariant) *_phraseSuggester { s.v.Highlight = highlight.PhraseSuggestHighlightCaster() @@ -112,10 +93,6 @@ func (s *_phraseSuggester) Highlight(highlight types.PhraseSuggestHighlightVaria return s } -// The maximum percentage of the terms considered to be misspellings in order to -// form a correction. -// This method accepts a float value in the range `[0..1)` as a fraction of the -// actual query terms or a number `>=1` as an absolute number of query terms. func (s *_phraseSuggester) MaxErrors(maxerrors types.Float64) *_phraseSuggester { s.v.MaxErrors = &maxerrors @@ -123,8 +100,6 @@ func (s *_phraseSuggester) MaxErrors(maxerrors types.Float64) *_phraseSuggester return s } -// The likelihood of a term being misspelled even if the term exists in the -// dictionary. func (s *_phraseSuggester) RealWordErrorLikelihood(realworderrorlikelihood types.Float64) *_phraseSuggester { s.v.RealWordErrorLikelihood = &realworderrorlikelihood @@ -132,8 +107,6 @@ func (s *_phraseSuggester) RealWordErrorLikelihood(realworderrorlikelihood types return s } -// The separator that is used to separate terms in the bigram field. -// If not set, the whitespace character is used as a separator. func (s *_phraseSuggester) Separator(separator string) *_phraseSuggester { s.v.Separator = &separator @@ -141,8 +114,6 @@ func (s *_phraseSuggester) Separator(separator string) *_phraseSuggester { return s } -// Sets the maximum number of suggested terms to be retrieved from each -// individual shard. func (s *_phraseSuggester) ShardSize(shardsize int) *_phraseSuggester { s.v.ShardSize = &shardsize @@ -150,7 +121,6 @@ func (s *_phraseSuggester) ShardSize(shardsize int) *_phraseSuggester { return s } -// The maximum corrections to be returned per suggest text token. func (s *_phraseSuggester) Size(size int) *_phraseSuggester { s.v.Size = &size @@ -158,10 +128,6 @@ func (s *_phraseSuggester) Size(size int) *_phraseSuggester { return s } -// The smoothing model used to balance weight between infrequent grams (grams -// (shingles) are not existing in the index) and frequent grams (appear at least -// once in the index). -// The default model is Stupid Backoff. func (s *_phraseSuggester) Smoothing(smoothing types.SmoothingModelContainerVariant) *_phraseSuggester { s.v.Smoothing = smoothing.SmoothingModelContainerCaster() @@ -169,7 +135,6 @@ func (s *_phraseSuggester) Smoothing(smoothing types.SmoothingModelContainerVari return s } -// The text/query to provide suggestions for. func (s *_phraseSuggester) Text(text string) *_phraseSuggester { s.v.Text = &text diff --git a/typedapi/esdsl/phrasesuggesthighlight.go b/typedapi/esdsl/phrasesuggesthighlight.go index 1559b13a95..1932099f58 100644 --- a/typedapi/esdsl/phrasesuggesthighlight.go +++ b/typedapi/esdsl/phrasesuggesthighlight.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _phraseSuggestHighlight struct { v *types.PhraseSuggestHighlight @@ -38,8 +38,6 @@ func NewPhraseSuggestHighlight(posttag string, pretag string) *_phraseSuggestHig } -// Use in conjunction with `pre_tag` to define the HTML tags to use for the -// highlighted text. func (s *_phraseSuggestHighlight) PostTag(posttag string) *_phraseSuggestHighlight { s.v.PostTag = posttag @@ -47,8 +45,6 @@ func (s *_phraseSuggestHighlight) PostTag(posttag string) *_phraseSuggestHighlig return s } -// Use in conjunction with `post_tag` to define the HTML tags to use for the -// highlighted text. func (s *_phraseSuggestHighlight) PreTag(pretag string) *_phraseSuggestHighlight { s.v.PreTag = pretag diff --git a/typedapi/esdsl/pinneddoc.go b/typedapi/esdsl/pinneddoc.go index f580100cce..1c44915f24 100644 --- a/typedapi/esdsl/pinneddoc.go +++ b/typedapi/esdsl/pinneddoc.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _pinnedDoc struct { v *types.PinnedDoc @@ -34,7 +34,6 @@ func NewPinnedDoc() *_pinnedDoc { } -// The unique document ID. func (s *_pinnedDoc) Id_(id string) *_pinnedDoc { s.v.Id_ = id @@ -42,7 +41,6 @@ func (s *_pinnedDoc) Id_(id string) *_pinnedDoc { return s } -// The index that contains the document. func (s *_pinnedDoc) Index_(indexname string) *_pinnedDoc { s.v.Index_ = &indexname diff --git a/typedapi/esdsl/pinnedquery.go b/typedapi/esdsl/pinnedquery.go index ad5c0e9723..87f4cc81e4 100644 --- a/typedapi/esdsl/pinnedquery.go +++ b/typedapi/esdsl/pinnedquery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _pinnedQuery struct { @@ -46,11 +46,6 @@ func (s *_pinnedQuery) AdditionalPinnedQueryProperty(key string, value json.RawM return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_pinnedQuery) Boost(boost float32) *_pinnedQuery { s.v.Boost = &boost @@ -58,8 +53,6 @@ func (s *_pinnedQuery) Boost(boost float32) *_pinnedQuery { return s } -// Documents listed in the order they are to appear in results. -// Required if `ids` is not specified. func (s *_pinnedQuery) Docs(docs ...types.PinnedDocVariant) *_pinnedQuery { for _, v := range docs { @@ -70,8 +63,6 @@ func (s *_pinnedQuery) Docs(docs ...types.PinnedDocVariant) *_pinnedQuery { return s } -// Document IDs listed in the order they are to appear in results. -// Required if `docs` is not specified. func (s *_pinnedQuery) Ids(ids ...string) *_pinnedQuery { for _, v := range ids { @@ -82,8 +73,6 @@ func (s *_pinnedQuery) Ids(ids ...string) *_pinnedQuery { return s } -// Any choice of query used to rank documents which will be ranked below the -// "pinned" documents. func (s *_pinnedQuery) Organic(organic types.QueryVariant) *_pinnedQuery { s.v.Organic = *organic.QueryCaster() diff --git a/typedapi/esdsl/pipelinemetadata.go b/typedapi/esdsl/pipelinemetadata.go index f3bbb6a948..a7fa058374 100644 --- a/typedapi/esdsl/pipelinemetadata.go +++ b/typedapi/esdsl/pipelinemetadata.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _pipelineMetadata struct { v *types.PipelineMetadata diff --git a/typedapi/esdsl/pipelineprocessor.go b/typedapi/esdsl/pipelineprocessor.go index daac42afce..9bb5363de9 100644 --- a/typedapi/esdsl/pipelineprocessor.go +++ b/typedapi/esdsl/pipelineprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _pipelineProcessor struct { v *types.PipelineProcessor @@ -33,8 +33,6 @@ func NewPipelineProcessor() *_pipelineProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_pipelineProcessor) Description(description string) *_pipelineProcessor { s.v.Description = &description @@ -42,7 +40,6 @@ func (s *_pipelineProcessor) Description(description string) *_pipelineProcessor return s } -// Conditionally execute the processor. func (s *_pipelineProcessor) If(if_ types.ScriptVariant) *_pipelineProcessor { s.v.If = if_.ScriptCaster() @@ -50,7 +47,6 @@ func (s *_pipelineProcessor) If(if_ types.ScriptVariant) *_pipelineProcessor { return s } -// Ignore failures for the processor. func (s *_pipelineProcessor) IgnoreFailure(ignorefailure bool) *_pipelineProcessor { s.v.IgnoreFailure = &ignorefailure @@ -58,7 +54,6 @@ func (s *_pipelineProcessor) IgnoreFailure(ignorefailure bool) *_pipelineProcess return s } -// Whether to ignore missing pipelines instead of failing. func (s *_pipelineProcessor) IgnoreMissingPipeline(ignoremissingpipeline bool) *_pipelineProcessor { s.v.IgnoreMissingPipeline = &ignoremissingpipeline @@ -66,8 +61,6 @@ func (s *_pipelineProcessor) IgnoreMissingPipeline(ignoremissingpipeline bool) * return s } -// The name of the pipeline to execute. -// Supports template snippets. func (s *_pipelineProcessor) Name(name string) *_pipelineProcessor { s.v.Name = name @@ -75,7 +68,6 @@ func (s *_pipelineProcessor) Name(name string) *_pipelineProcessor { return s } -// Handle failures for the processor. func (s *_pipelineProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_pipelineProcessor { for _, v := range onfailures { @@ -86,8 +78,6 @@ func (s *_pipelineProcessor) OnFailure(onfailures ...types.ProcessorContainerVar return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_pipelineProcessor) Tag(tag string) *_pipelineProcessor { s.v.Tag = &tag diff --git a/typedapi/esdsl/pipelinesettings.go b/typedapi/esdsl/pipelinesettings.go index ec0e72a971..5be27c2000 100644 --- a/typedapi/esdsl/pipelinesettings.go +++ b/typedapi/esdsl/pipelinesettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _pipelineSettings struct { v *types.PipelineSettings @@ -48,8 +48,6 @@ func NewPipelineSettings(pipelinebatchdelay int, pipelinebatchsize int, pipeline } -// When creating pipeline event batches, how long in milliseconds to wait for -// each event before dispatching an undersized batch to pipeline workers. func (s *_pipelineSettings) PipelineBatchDelay(pipelinebatchdelay int) *_pipelineSettings { s.v.PipelineBatchDelay = pipelinebatchdelay @@ -57,8 +55,6 @@ func (s *_pipelineSettings) PipelineBatchDelay(pipelinebatchdelay int) *_pipelin return s } -// The maximum number of events an individual worker thread will collect from -// inputs before attempting to execute its filters and outputs. func (s *_pipelineSettings) PipelineBatchSize(pipelinebatchsize int) *_pipelineSettings { s.v.PipelineBatchSize = pipelinebatchsize @@ -66,8 +62,6 @@ func (s *_pipelineSettings) PipelineBatchSize(pipelinebatchsize int) *_pipelineS return s } -// The number of workers that will, in parallel, execute the filter and output -// stages of the pipeline. func (s *_pipelineSettings) PipelineWorkers(pipelineworkers int) *_pipelineSettings { s.v.PipelineWorkers = pipelineworkers @@ -75,8 +69,6 @@ func (s *_pipelineSettings) PipelineWorkers(pipelineworkers int) *_pipelineSetti return s } -// The maximum number of written events before forcing a checkpoint when -// persistent queues are enabled (`queue.type: persisted`). func (s *_pipelineSettings) QueueCheckpointWrites(queuecheckpointwrites int) *_pipelineSettings { s.v.QueueCheckpointWrites = queuecheckpointwrites @@ -84,7 +76,6 @@ func (s *_pipelineSettings) QueueCheckpointWrites(queuecheckpointwrites int) *_p return s } -// The total capacity of the queue (`queue.type: persisted`) in number of bytes. func (s *_pipelineSettings) QueueMaxBytesNumber(queuemaxbytesnumber int) *_pipelineSettings { s.v.QueueMaxBytesNumber = queuemaxbytesnumber @@ -92,8 +83,6 @@ func (s *_pipelineSettings) QueueMaxBytesNumber(queuemaxbytesnumber int) *_pipel return s } -// The total capacity of the queue (`queue.type: persisted`) in terms of units -// of bytes. func (s *_pipelineSettings) QueueMaxBytesUnits(queuemaxbytesunits string) *_pipelineSettings { s.v.QueueMaxBytesUnits = queuemaxbytesunits @@ -101,7 +90,6 @@ func (s *_pipelineSettings) QueueMaxBytesUnits(queuemaxbytesunits string) *_pipe return s } -// The internal queuing model to use for event buffering. func (s *_pipelineSettings) QueueType(queuetype string) *_pipelineSettings { s.v.QueueType = queuetype diff --git a/typedapi/esdsl/pipeseparatedflagssimplequerystringflag.go b/typedapi/esdsl/pipeseparatedflagssimplequerystringflag.go index 7345fe6e90..8229c387b8 100644 --- a/typedapi/esdsl/pipeseparatedflagssimplequerystringflag.go +++ b/typedapi/esdsl/pipeseparatedflagssimplequerystringflag.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/simplequerystringflag" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/simplequerystringflag" ) // This is provide all the types that are part of the union. diff --git a/typedapi/esdsl/pivot.go b/typedapi/esdsl/pivot.go index 4312b4a382..7a9abe49da 100644 --- a/typedapi/esdsl/pivot.go +++ b/typedapi/esdsl/pivot.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _pivot struct { v *types.Pivot @@ -32,13 +32,6 @@ func NewPivot() *_pivot { } -// Defines how to aggregate the grouped data. The following aggregations are -// currently supported: average, bucket -// script, bucket selector, cardinality, filter, geo bounds, geo centroid, geo -// line, max, median absolute deviation, -// min, missing, percentiles, rare terms, scripted metric, stats, sum, terms, -// top metrics, value count, weighted -// average. func (s *_pivot) Aggregations(aggregations map[string]types.Aggregations) *_pivot { s.v.Aggregations = aggregations @@ -60,9 +53,6 @@ func (s *_pivot) AddAggregation(key string, value types.AggregationsVariant) *_p return s } -// Defines how to group the data. More than one grouping can be defined per -// pivot. The following groupings are -// currently supported: date histogram, geotile grid, histogram, terms. func (s *_pivot) GroupBy(groupby map[string]types.PivotGroupByContainer) *_pivot { s.v.GroupBy = groupby diff --git a/typedapi/esdsl/pivotgroupbycontainer.go b/typedapi/esdsl/pivotgroupbycontainer.go index ac3944067f..477879b231 100644 --- a/typedapi/esdsl/pivotgroupbycontainer.go +++ b/typedapi/esdsl/pivotgroupbycontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _pivotGroupByContainer struct { diff --git a/typedapi/esdsl/pointintimereference.go b/typedapi/esdsl/pointintimereference.go index d7e48f3b92..0ae8658ee0 100644 --- a/typedapi/esdsl/pointintimereference.go +++ b/typedapi/esdsl/pointintimereference.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _pointInTimeReference struct { v *types.PointInTimeReference diff --git a/typedapi/esdsl/pointproperty.go b/typedapi/esdsl/pointproperty.go index 5f16ed2c04..f94cb94739 100644 --- a/typedapi/esdsl/pointproperty.go +++ b/typedapi/esdsl/pointproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _pointProperty struct { @@ -98,7 +98,6 @@ func (s *_pointProperty) IgnoreZValue(ignorezvalue bool) *_pointProperty { return s } -// Metadata about the field. func (s *_pointProperty) Meta(meta map[string]string) *_pointProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/porterstemtokenfilter.go b/typedapi/esdsl/porterstemtokenfilter.go index f6e7f54dc7..4eef33007d 100644 --- a/typedapi/esdsl/porterstemtokenfilter.go +++ b/typedapi/esdsl/porterstemtokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _porterStemTokenFilter struct { v *types.PorterStemTokenFilter diff --git a/typedapi/esdsl/portugueseanalyzer.go b/typedapi/esdsl/portugueseanalyzer.go index 40f677d537..57f26cf1f3 100644 --- a/typedapi/esdsl/portugueseanalyzer.go +++ b/typedapi/esdsl/portugueseanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _portugueseAnalyzer struct { v *types.PortugueseAnalyzer diff --git a/typedapi/esdsl/predicatetokenfilter.go b/typedapi/esdsl/predicatetokenfilter.go index 2aaf252879..eed44177ed 100644 --- a/typedapi/esdsl/predicatetokenfilter.go +++ b/typedapi/esdsl/predicatetokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _predicateTokenFilter struct { v *types.PredicateTokenFilter diff --git a/typedapi/esdsl/prefixquery.go b/typedapi/esdsl/prefixquery.go index f4f29d29ec..02e503661d 100644 --- a/typedapi/esdsl/prefixquery.go +++ b/typedapi/esdsl/prefixquery.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _prefixQuery struct { k string v *types.PrefixQuery } -// Returns documents that contain a specific prefix in a provided field. +// Returns roles that contain a specific prefix in a provided field. func NewPrefixQuery(field string, value string) *_prefixQuery { tmp := &_prefixQuery{ k: field, @@ -38,11 +38,6 @@ func NewPrefixQuery(field string, value string) *_prefixQuery { return tmp } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_prefixQuery) Boost(boost float32) *_prefixQuery { s.v.Boost = &boost @@ -50,10 +45,6 @@ func (s *_prefixQuery) Boost(boost float32) *_prefixQuery { return s } -// Allows ASCII case insensitive matching of the value with the indexed field -// values when set to `true`. -// Default is `false` which means the case sensitivity of matching depends on -// the underlying field’s mapping. func (s *_prefixQuery) CaseInsensitive(caseinsensitive bool) *_prefixQuery { s.v.CaseInsensitive = &caseinsensitive @@ -68,7 +59,6 @@ func (s *_prefixQuery) QueryName_(queryname_ string) *_prefixQuery { return s } -// Method used to rewrite the query. func (s *_prefixQuery) Rewrite(multitermqueryrewrite string) *_prefixQuery { s.v.Rewrite = &multitermqueryrewrite @@ -76,7 +66,6 @@ func (s *_prefixQuery) Rewrite(multitermqueryrewrite string) *_prefixQuery { return s } -// Beginning characters of terms you wish to find in the provided field. func (s *_prefixQuery) Value(value string) *_prefixQuery { s.v.Value = value diff --git a/typedapi/esdsl/preprocessor.go b/typedapi/esdsl/preprocessor.go index 80ca0bcf15..ba5a83acb4 100644 --- a/typedapi/esdsl/preprocessor.go +++ b/typedapi/esdsl/preprocessor.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _preprocessor struct { diff --git a/typedapi/esdsl/privilegesactions.go b/typedapi/esdsl/privilegesactions.go index aa6dba5ce1..d4c84931dc 100644 --- a/typedapi/esdsl/privilegesactions.go +++ b/typedapi/esdsl/privilegesactions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _privilegesActions struct { v *types.PrivilegesActions diff --git a/typedapi/esdsl/privilegescheck.go b/typedapi/esdsl/privilegescheck.go index bcc0fcbd38..2cb2aebe51 100644 --- a/typedapi/esdsl/privilegescheck.go +++ b/typedapi/esdsl/privilegescheck.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" ) type _privilegesCheck struct { @@ -45,7 +45,6 @@ func (s *_privilegesCheck) Application(applications ...types.ApplicationPrivileg return s } -// A list of the cluster privileges that you want to check. func (s *_privilegesCheck) Cluster(clusters ...clusterprivilege.ClusterPrivilege) *_privilegesCheck { for _, v := range clusters { diff --git a/typedapi/esdsl/processorcontainer.go b/typedapi/esdsl/processorcontainer.go index 71c3a99811..80173a294b 100644 --- a/typedapi/esdsl/processorcontainer.go +++ b/typedapi/esdsl/processorcontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _processorContainer struct { @@ -46,12 +46,6 @@ func (s *_processorContainer) AdditionalProcessorContainerProperty(key string, v return s } -// Appends one or more values to an existing array if the field already exists -// and it is an array. -// Converts a scalar to an array and appends one or more values to it if the -// field exists and it is a scalar. -// Creates an array containing the provided values if the field doesn’t exist. -// Accepts a single value or an array of values. func (s *_processorContainer) Append(append types.AppendProcessorVariant) *_processorContainer { s.v.Append = append.AppendProcessorCaster() @@ -59,9 +53,6 @@ func (s *_processorContainer) Append(append types.AppendProcessorVariant) *_proc return s } -// The attachment processor lets Elasticsearch extract file attachments in -// common formats (such as PPT, XLS, and PDF) by using the Apache text -// extraction library Tika. func (s *_processorContainer) Attachment(attachment types.AttachmentProcessorVariant) *_processorContainer { s.v.Attachment = attachment.AttachmentProcessorCaster() @@ -69,14 +60,6 @@ func (s *_processorContainer) Attachment(attachment types.AttachmentProcessorVar return s } -// Converts a human readable byte value (for example `1kb`) to its value in -// bytes (for example `1024`). -// If the field is an array of strings, all members of the array will be -// converted. -// Supported human readable units are "b", "kb", "mb", "gb", "tb", "pb" case -// insensitive. -// An error will occur if the field is not a supported format or resultant value -// exceeds 2^63. func (s *_processorContainer) Bytes(bytes types.BytesProcessorVariant) *_processorContainer { s.v.Bytes = bytes.BytesProcessorCaster() @@ -84,8 +67,6 @@ func (s *_processorContainer) Bytes(bytes types.BytesProcessorVariant) *_process return s } -// Converts circle definitions of shapes to regular polygons which approximate -// them. func (s *_processorContainer) Circle(circle types.CircleProcessorVariant) *_processorContainer { s.v.Circle = circle.CircleProcessorCaster() @@ -93,9 +74,6 @@ func (s *_processorContainer) Circle(circle types.CircleProcessorVariant) *_proc return s } -// Computes the Community ID for network flow data as defined in the -// Community ID Specification. You can use a community ID to correlate network -// events related to a single flow. func (s *_processorContainer) CommunityId(communityid types.CommunityIDProcessorVariant) *_processorContainer { s.v.CommunityId = communityid.CommunityIDProcessorCaster() @@ -103,9 +81,6 @@ func (s *_processorContainer) CommunityId(communityid types.CommunityIDProcessor return s } -// Converts a field in the currently ingested document to a different type, such -// as converting a string to an integer. -// If the field value is an array, all members will be converted. func (s *_processorContainer) Convert(convert types.ConvertProcessorVariant) *_processorContainer { s.v.Convert = convert.ConvertProcessorCaster() @@ -113,8 +88,6 @@ func (s *_processorContainer) Convert(convert types.ConvertProcessorVariant) *_p return s } -// Extracts fields from CSV line out of a single text field within a document. -// Any empty field in CSV will be skipped. func (s *_processorContainer) Csv(csv types.CsvProcessorVariant) *_processorContainer { s.v.Csv = csv.CsvProcessorCaster() @@ -122,8 +95,6 @@ func (s *_processorContainer) Csv(csv types.CsvProcessorVariant) *_processorCont return s } -// Parses dates from fields, and then uses the date or timestamp as the -// timestamp for the document. func (s *_processorContainer) Date(date types.DateProcessorVariant) *_processorContainer { s.v.Date = date.DateProcessorCaster() @@ -131,9 +102,6 @@ func (s *_processorContainer) Date(date types.DateProcessorVariant) *_processorC return s } -// The purpose of this processor is to point documents to the right time based -// index based on a date or timestamp field in a document by using the date math -// index name support. func (s *_processorContainer) DateIndexName(dateindexname types.DateIndexNameProcessorVariant) *_processorContainer { s.v.DateIndexName = dateindexname.DateIndexNameProcessorCaster() @@ -141,8 +109,6 @@ func (s *_processorContainer) DateIndexName(dateindexname types.DateIndexNamePro return s } -// Extracts structured fields out of a single text field by matching the text -// field against a delimiter-based pattern. func (s *_processorContainer) Dissect(dissect types.DissectProcessorVariant) *_processorContainer { s.v.Dissect = dissect.DissectProcessorCaster() @@ -150,10 +116,6 @@ func (s *_processorContainer) Dissect(dissect types.DissectProcessorVariant) *_p return s } -// Expands a field with dots into an object field. -// This processor allows fields with dots in the name to be accessible by other -// processors in the pipeline. -// Otherwise these fields can’t be accessed by any processor. func (s *_processorContainer) DotExpander(dotexpander types.DotExpanderProcessorVariant) *_processorContainer { s.v.DotExpander = dotexpander.DotExpanderProcessorCaster() @@ -161,9 +123,6 @@ func (s *_processorContainer) DotExpander(dotexpander types.DotExpanderProcessor return s } -// Drops the document without raising any errors. -// This is useful to prevent the document from getting indexed based on some -// condition. func (s *_processorContainer) Drop(drop types.DropProcessorVariant) *_processorContainer { s.v.Drop = drop.DropProcessorCaster() @@ -171,7 +130,6 @@ func (s *_processorContainer) Drop(drop types.DropProcessorVariant) *_processorC return s } -// The `enrich` processor can enrich documents with data from another index. func (s *_processorContainer) Enrich(enrich types.EnrichProcessorVariant) *_processorContainer { s.v.Enrich = enrich.EnrichProcessorCaster() @@ -179,9 +137,6 @@ func (s *_processorContainer) Enrich(enrich types.EnrichProcessorVariant) *_proc return s } -// Raises an exception. -// This is useful for when you expect a pipeline to fail and want to relay a -// specific message to the requester. func (s *_processorContainer) Fail(fail types.FailProcessorVariant) *_processorContainer { s.v.Fail = fail.FailProcessorCaster() @@ -189,8 +144,6 @@ func (s *_processorContainer) Fail(fail types.FailProcessorVariant) *_processorC return s } -// Computes a hash of the document’s content. You can use this hash for -// content fingerprinting. func (s *_processorContainer) Fingerprint(fingerprint types.FingerprintProcessorVariant) *_processorContainer { s.v.Fingerprint = fingerprint.FingerprintProcessorCaster() @@ -198,7 +151,6 @@ func (s *_processorContainer) Fingerprint(fingerprint types.FingerprintProcessor return s } -// Runs an ingest processor on each element of an array or object. func (s *_processorContainer) Foreach(foreach types.ForeachProcessorVariant) *_processorContainer { s.v.Foreach = foreach.ForeachProcessorCaster() @@ -206,10 +158,6 @@ func (s *_processorContainer) Foreach(foreach types.ForeachProcessorVariant) *_p return s } -// Converts geo-grid definitions of grid tiles or cells to regular bounding -// boxes or polygons which describe their shape. -// This is useful if there is a need to interact with the tile shapes as -// spatially indexable fields. func (s *_processorContainer) GeoGrid(geogrid types.GeoGridProcessorVariant) *_processorContainer { s.v.GeoGrid = geogrid.GeoGridProcessorCaster() @@ -217,8 +165,6 @@ func (s *_processorContainer) GeoGrid(geogrid types.GeoGridProcessorVariant) *_p return s } -// The `geoip` processor adds information about the geographical location of an -// IPv4 or IPv6 address. func (s *_processorContainer) Geoip(geoip types.GeoIpProcessorVariant) *_processorContainer { s.v.Geoip = geoip.GeoIpProcessorCaster() @@ -226,11 +172,6 @@ func (s *_processorContainer) Geoip(geoip types.GeoIpProcessorVariant) *_process return s } -// Extracts structured fields out of a single text field within a document. -// You choose which field to extract matched fields from, as well as the grok -// pattern you expect will match. -// A grok pattern is like a regular expression that supports aliased expressions -// that can be reused. func (s *_processorContainer) Grok(grok types.GrokProcessorVariant) *_processorContainer { s.v.Grok = grok.GrokProcessorCaster() @@ -238,11 +179,6 @@ func (s *_processorContainer) Grok(grok types.GrokProcessorVariant) *_processorC return s } -// Converts a string field by applying a regular expression and a replacement. -// If the field is an array of string, all members of the array will be -// converted. -// If any non-string values are encountered, the processor will throw an -// exception. func (s *_processorContainer) Gsub(gsub types.GsubProcessorVariant) *_processorContainer { s.v.Gsub = gsub.GsubProcessorCaster() @@ -250,9 +186,6 @@ func (s *_processorContainer) Gsub(gsub types.GsubProcessorVariant) *_processorC return s } -// Removes HTML tags from the field. -// If the field is an array of strings, HTML tags will be removed from all -// members of the array. func (s *_processorContainer) HtmlStrip(htmlstrip types.HtmlStripProcessorVariant) *_processorContainer { s.v.HtmlStrip = htmlstrip.HtmlStripProcessorCaster() @@ -260,9 +193,6 @@ func (s *_processorContainer) HtmlStrip(htmlstrip types.HtmlStripProcessorVarian return s } -// Uses a pre-trained data frame analytics model or a model deployed for natural -// language processing tasks to infer against the data that is being ingested in -// the pipeline. func (s *_processorContainer) Inference(inference types.InferenceProcessorVariant) *_processorContainer { s.v.Inference = inference.InferenceProcessorCaster() @@ -270,7 +200,6 @@ func (s *_processorContainer) Inference(inference types.InferenceProcessorVarian return s } -// Currently an undocumented alias for GeoIP Processor. func (s *_processorContainer) IpLocation(iplocation types.IpLocationProcessorVariant) *_processorContainer { s.v.IpLocation = iplocation.IpLocationProcessorCaster() @@ -278,9 +207,6 @@ func (s *_processorContainer) IpLocation(iplocation types.IpLocationProcessorVar return s } -// Joins each element of an array into a single string using a separator -// character between each element. -// Throws an error when the field is not an array. func (s *_processorContainer) Join(join types.JoinProcessorVariant) *_processorContainer { s.v.Join = join.JoinProcessorCaster() @@ -288,7 +214,6 @@ func (s *_processorContainer) Join(join types.JoinProcessorVariant) *_processorC return s } -// Converts a JSON string into a structured JSON object. func (s *_processorContainer) Json(json types.JsonProcessorVariant) *_processorContainer { s.v.Json = json.JsonProcessorCaster() @@ -296,8 +221,6 @@ func (s *_processorContainer) Json(json types.JsonProcessorVariant) *_processorC return s } -// This processor helps automatically parse messages (or specific event fields) -// which are of the `foo=bar` variety. func (s *_processorContainer) Kv(kv types.KeyValueProcessorVariant) *_processorContainer { s.v.Kv = kv.KeyValueProcessorCaster() @@ -305,9 +228,6 @@ func (s *_processorContainer) Kv(kv types.KeyValueProcessorVariant) *_processorC return s } -// Converts a string to its lowercase equivalent. -// If the field is an array of strings, all members of the array will be -// converted. func (s *_processorContainer) Lowercase(lowercase types.LowercaseProcessorVariant) *_processorContainer { s.v.Lowercase = lowercase.LowercaseProcessorCaster() @@ -315,8 +235,6 @@ func (s *_processorContainer) Lowercase(lowercase types.LowercaseProcessorVarian return s } -// Calculates the network direction given a source IP address, destination IP -// address, and a list of internal networks. func (s *_processorContainer) NetworkDirection(networkdirection types.NetworkDirectionProcessorVariant) *_processorContainer { s.v.NetworkDirection = networkdirection.NetworkDirectionProcessorCaster() @@ -324,7 +242,6 @@ func (s *_processorContainer) NetworkDirection(networkdirection types.NetworkDir return s } -// Executes another pipeline. func (s *_processorContainer) Pipeline(pipeline types.PipelineProcessorVariant) *_processorContainer { s.v.Pipeline = pipeline.PipelineProcessorCaster() @@ -332,13 +249,6 @@ func (s *_processorContainer) Pipeline(pipeline types.PipelineProcessorVariant) return s } -// The Redact processor uses the Grok rules engine to obscure text in the input -// document matching the given Grok patterns. -// The processor can be used to obscure Personal Identifying Information (PII) -// by configuring it to detect known patterns such as email or IP addresses. -// Text that matches a Grok pattern is replaced with a configurable string such -// as `` where an email address is matched or simply replace all matches -// with the text `` if preferred. func (s *_processorContainer) Redact(redact types.RedactProcessorVariant) *_processorContainer { s.v.Redact = redact.RedactProcessorCaster() @@ -346,10 +256,6 @@ func (s *_processorContainer) Redact(redact types.RedactProcessorVariant) *_proc return s } -// Extracts the registered domain (also known as the effective top-level -// domain or eTLD), sub-domain, and top-level domain from a fully qualified -// domain name (FQDN). Uses the registered domains defined in the Mozilla -// Public Suffix List. func (s *_processorContainer) RegisteredDomain(registereddomain types.RegisteredDomainProcessorVariant) *_processorContainer { s.v.RegisteredDomain = registereddomain.RegisteredDomainProcessorCaster() @@ -357,8 +263,6 @@ func (s *_processorContainer) RegisteredDomain(registereddomain types.Registered return s } -// Removes existing fields. -// If one field doesn’t exist, an exception will be thrown. func (s *_processorContainer) Remove(remove types.RemoveProcessorVariant) *_processorContainer { s.v.Remove = remove.RemoveProcessorCaster() @@ -366,9 +270,6 @@ func (s *_processorContainer) Remove(remove types.RemoveProcessorVariant) *_proc return s } -// Renames an existing field. -// If the field doesn’t exist or the new name is already used, an exception will -// be thrown. func (s *_processorContainer) Rename(rename types.RenameProcessorVariant) *_processorContainer { s.v.Rename = rename.RenameProcessorCaster() @@ -376,12 +277,6 @@ func (s *_processorContainer) Rename(rename types.RenameProcessorVariant) *_proc return s } -// Routes a document to another target index or data stream. -// When setting the `destination` option, the target is explicitly specified and -// the dataset and namespace options can’t be set. -// When the `destination` option is not set, this processor is in a data stream -// mode. Note that in this mode, the reroute processor can only be used on data -// streams that follow the data stream naming scheme. func (s *_processorContainer) Reroute(reroute types.RerouteProcessorVariant) *_processorContainer { s.v.Reroute = reroute.RerouteProcessorCaster() @@ -389,8 +284,6 @@ func (s *_processorContainer) Reroute(reroute types.RerouteProcessorVariant) *_p return s } -// Runs an inline or stored script on incoming documents. -// The script runs in the `ingest` context. func (s *_processorContainer) Script(script types.ScriptProcessorVariant) *_processorContainer { s.v.Script = script.ScriptProcessorCaster() @@ -398,9 +291,6 @@ func (s *_processorContainer) Script(script types.ScriptProcessorVariant) *_proc return s } -// Adds a field with the specified value. -// If the field already exists, its value will be replaced with the provided -// one. func (s *_processorContainer) Set(set types.SetProcessorVariant) *_processorContainer { s.v.Set = set.SetProcessorCaster() @@ -408,9 +298,6 @@ func (s *_processorContainer) Set(set types.SetProcessorVariant) *_processorCont return s } -// Sets user-related details (such as `username`, `roles`, `email`, `full_name`, -// `metadata`, `api_key`, `realm` and `authentication_type`) from the current -// authenticated user to the current document by pre-processing the ingest. func (s *_processorContainer) SetSecurityUser(setsecurityuser types.SetSecurityUserProcessorVariant) *_processorContainer { s.v.SetSecurityUser = setsecurityuser.SetSecurityUserProcessorCaster() @@ -418,11 +305,6 @@ func (s *_processorContainer) SetSecurityUser(setsecurityuser types.SetSecurityU return s } -// Sorts the elements of an array ascending or descending. -// Homogeneous arrays of numbers will be sorted numerically, while arrays of -// strings or heterogeneous arrays of strings + numbers will be sorted -// lexicographically. -// Throws an error when the field is not an array. func (s *_processorContainer) Sort(sort types.SortProcessorVariant) *_processorContainer { s.v.Sort = sort.SortProcessorCaster() @@ -430,8 +312,6 @@ func (s *_processorContainer) Sort(sort types.SortProcessorVariant) *_processorC return s } -// Splits a field into an array using a separator character. -// Only works on string fields. func (s *_processorContainer) Split(split types.SplitProcessorVariant) *_processorContainer { s.v.Split = split.SplitProcessorCaster() @@ -439,9 +319,6 @@ func (s *_processorContainer) Split(split types.SplitProcessorVariant) *_process return s } -// Terminates the current ingest pipeline, causing no further processors to be -// run. -// This will normally be executed conditionally, using the `if` option. func (s *_processorContainer) Terminate(terminate types.TerminateProcessorVariant) *_processorContainer { s.v.Terminate = terminate.TerminateProcessorCaster() @@ -449,10 +326,6 @@ func (s *_processorContainer) Terminate(terminate types.TerminateProcessorVarian return s } -// Trims whitespace from a field. -// If the field is an array of strings, all members of the array will be -// trimmed. -// This only works on leading and trailing whitespace. func (s *_processorContainer) Trim(trim types.TrimProcessorVariant) *_processorContainer { s.v.Trim = trim.TrimProcessorCaster() @@ -460,9 +333,6 @@ func (s *_processorContainer) Trim(trim types.TrimProcessorVariant) *_processorC return s } -// Converts a string to its uppercase equivalent. -// If the field is an array of strings, all members of the array will be -// converted. func (s *_processorContainer) Uppercase(uppercase types.UppercaseProcessorVariant) *_processorContainer { s.v.Uppercase = uppercase.UppercaseProcessorCaster() @@ -470,10 +340,6 @@ func (s *_processorContainer) Uppercase(uppercase types.UppercaseProcessorVarian return s } -// Parses a Uniform Resource Identifier (URI) string and extracts its components -// as an object. -// This URI object includes properties for the URI’s domain, path, fragment, -// port, query, scheme, user info, username, and password. func (s *_processorContainer) UriParts(uriparts types.UriPartsProcessorVariant) *_processorContainer { s.v.UriParts = uriparts.UriPartsProcessorCaster() @@ -481,9 +347,6 @@ func (s *_processorContainer) UriParts(uriparts types.UriPartsProcessorVariant) return s } -// URL-decodes a string. -// If the field is an array of strings, all members of the array will be -// decoded. func (s *_processorContainer) Urldecode(urldecode types.UrlDecodeProcessorVariant) *_processorContainer { s.v.Urldecode = urldecode.UrlDecodeProcessorCaster() @@ -491,9 +354,6 @@ func (s *_processorContainer) Urldecode(urldecode types.UrlDecodeProcessorVarian return s } -// The `user_agent` processor extracts details from the user agent string a -// browser sends with its web requests. -// This processor adds this information by default under the `user_agent` field. func (s *_processorContainer) UserAgent(useragent types.UserAgentProcessorVariant) *_processorContainer { s.v.UserAgent = useragent.UserAgentProcessorCaster() diff --git a/typedapi/esdsl/property.go b/typedapi/esdsl/property.go index 3f25678ae5..893550e85a 100644 --- a/typedapi/esdsl/property.go +++ b/typedapi/esdsl/property.go @@ -16,11 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" +) // This is provide all the types that are part of the union. type _property struct { @@ -31,6 +35,13 @@ func NewProperty() *_property { return &_property{v: nil} } +// UnknownProperty is used to set the unknown value of the union. +// Highlited as @non_exhaustive in the specification. +func (u *_property) UnknownProperty(unknown json.RawMessage) *_property { + u.v = unknown + return u +} + func (u *_property) BinaryProperty(binaryproperty types.BinaryPropertyVariant) *_property { u.v = &binaryproperty diff --git a/typedapi/esdsl/queries.go b/typedapi/esdsl/queries.go index 3401c69965..507beced78 100644 --- a/typedapi/esdsl/queries.go +++ b/typedapi/esdsl/queries.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _queries struct { v *types.Queries diff --git a/typedapi/esdsl/query.go b/typedapi/esdsl/query.go index 17b3daf41e..60b8b0d8a8 100644 --- a/typedapi/esdsl/query.go +++ b/typedapi/esdsl/query.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _query struct { @@ -46,7 +46,6 @@ func (s *_query) AdditionalQueryProperty(key string, value json.RawMessage) *_qu return s } -// matches documents matching boolean combinations of other queries. func (s *_query) Bool(bool types.BoolQueryVariant) *_query { s.v.Bool = bool.BoolQueryCaster() @@ -54,8 +53,6 @@ func (s *_query) Bool(bool types.BoolQueryVariant) *_query { return s } -// Returns documents matching a `positive` query while reducing the relevance -// score of documents that also match a `negative` query. func (s *_query) Boosting(boosting types.BoostingQueryVariant) *_query { s.v.Boosting = boosting.BoostingQueryCaster() @@ -63,8 +60,6 @@ func (s *_query) Boosting(boosting types.BoostingQueryVariant) *_query { return s } -// The `combined_fields` query supports searching multiple text fields as if -// their contents had been indexed into one combined field. func (s *_query) CombinedFields(combinedfields types.CombinedFieldsQueryVariant) *_query { s.v.CombinedFields = combinedfields.CombinedFieldsQueryCaster() @@ -84,8 +79,6 @@ func (s *_query) Common(key string, value types.CommonTermsQueryVariant) *_query return s } -// Wraps a filter query and returns every matching document with a relevance -// score equal to the `boost` parameter value. func (s *_query) ConstantScore(constantscore types.ConstantScoreQueryVariant) *_query { s.v.ConstantScore = constantscore.ConstantScoreQueryCaster() @@ -93,11 +86,6 @@ func (s *_query) ConstantScore(constantscore types.ConstantScoreQueryVariant) *_ return s } -// Returns documents matching one or more wrapped queries, called query clauses -// or clauses. -// If a returned document matches multiple query clauses, the `dis_max` query -// assigns the document the highest relevance score from any matching clause, -// plus a tie breaking increment for any additional matching subqueries. func (s *_query) DisMax(dismax types.DisMaxQueryVariant) *_query { s.v.DisMax = dismax.DisMaxQueryCaster() @@ -105,10 +93,6 @@ func (s *_query) DisMax(dismax types.DisMaxQueryVariant) *_query { return s } -// Boosts the relevance score of documents closer to a provided origin date or -// point. -// For example, you can use this query to give more weight to documents closer -// to a certain date or location. func (s *_query) DistanceFeature(distancefeaturequery types.DistanceFeatureQueryVariant) *_query { s.v.DistanceFeature = *distancefeaturequery.DistanceFeatureQueryCaster() @@ -116,7 +100,6 @@ func (s *_query) DistanceFeature(distancefeaturequery types.DistanceFeatureQuery return s } -// Returns documents that contain an indexed value for a field. func (s *_query) Exists(exists types.ExistsQueryVariant) *_query { s.v.Exists = exists.ExistsQueryCaster() @@ -124,8 +107,6 @@ func (s *_query) Exists(exists types.ExistsQueryVariant) *_query { return s } -// The `function_score` enables you to modify the score of documents that are -// retrieved by a query. func (s *_query) FunctionScore(functionscore types.FunctionScoreQueryVariant) *_query { s.v.FunctionScore = functionscore.FunctionScoreQueryCaster() @@ -133,8 +114,6 @@ func (s *_query) FunctionScore(functionscore types.FunctionScoreQueryVariant) *_ return s } -// Returns documents that contain terms similar to the search term, as measured -// by a Levenshtein edit distance. // Fuzzy is a single key dictionnary. // It will replace the current value on each call. func (s *_query) Fuzzy(key string, value types.FuzzyQueryVariant) *_query { @@ -147,7 +126,6 @@ func (s *_query) Fuzzy(key string, value types.FuzzyQueryVariant) *_query { return s } -// Matches geo_point and geo_shape values that intersect a bounding box. func (s *_query) GeoBoundingBox(geoboundingbox types.GeoBoundingBoxQueryVariant) *_query { s.v.GeoBoundingBox = geoboundingbox.GeoBoundingBoxQueryCaster() @@ -155,8 +133,6 @@ func (s *_query) GeoBoundingBox(geoboundingbox types.GeoBoundingBoxQueryVariant) return s } -// Matches `geo_point` and `geo_shape` values within a given distance of a -// geopoint. func (s *_query) GeoDistance(geodistance types.GeoDistanceQueryVariant) *_query { s.v.GeoDistance = geodistance.GeoDistanceQueryCaster() @@ -164,8 +140,6 @@ func (s *_query) GeoDistance(geodistance types.GeoDistanceQueryVariant) *_query return s } -// Matches `geo_point` and `geo_shape` values that intersect a grid cell from a -// GeoGrid aggregation. // GeoGrid is a single key dictionnary. // It will replace the current value on each call. func (s *_query) GeoGrid(key string, value types.GeoGridQueryVariant) *_query { @@ -185,8 +159,6 @@ func (s *_query) GeoPolygon(geopolygon types.GeoPolygonQueryVariant) *_query { return s } -// Filter documents indexed using either the `geo_shape` or the `geo_point` -// type. func (s *_query) GeoShape(geoshape types.GeoShapeQueryVariant) *_query { s.v.GeoShape = geoshape.GeoShapeQueryCaster() @@ -194,7 +166,6 @@ func (s *_query) GeoShape(geoshape types.GeoShapeQueryVariant) *_query { return s } -// Returns parent documents whose joined child documents match a provided query. func (s *_query) HasChild(haschild types.HasChildQueryVariant) *_query { s.v.HasChild = haschild.HasChildQueryCaster() @@ -202,8 +173,6 @@ func (s *_query) HasChild(haschild types.HasChildQueryVariant) *_query { return s } -// Returns child documents whose joined parent document matches a provided -// query. func (s *_query) HasParent(hasparent types.HasParentQueryVariant) *_query { s.v.HasParent = hasparent.HasParentQueryCaster() @@ -211,8 +180,6 @@ func (s *_query) HasParent(hasparent types.HasParentQueryVariant) *_query { return s } -// Returns documents based on their IDs. -// This query uses document IDs stored in the `_id` field. func (s *_query) Ids(ids types.IdsQueryVariant) *_query { s.v.Ids = ids.IdsQueryCaster() @@ -220,7 +187,6 @@ func (s *_query) Ids(ids types.IdsQueryVariant) *_query { return s } -// Returns documents based on the order and proximity of matching terms. // Interval is a single key dictionnary. // It will replace the current value on each call. func (s *_query) Interval(key string, value types.IntervalsQueryVariant) *_query { @@ -233,9 +199,6 @@ func (s *_query) Interval(key string, value types.IntervalsQueryVariant) *_query return s } -// Finds the k nearest vectors to a query vector, as measured by a similarity -// metric. knn query finds nearest vectors through approximate search on indexed -// dense_vectors. func (s *_query) Knn(knn types.KnnQueryVariant) *_query { s.v.Knn = knn.KnnQueryCaster() @@ -243,8 +206,6 @@ func (s *_query) Knn(knn types.KnnQueryVariant) *_query { return s } -// Returns documents that match a provided text, number, date or boolean value. -// The provided text is analyzed before matching. // Match is a single key dictionnary. // It will replace the current value on each call. func (s *_query) Match(key string, value types.MatchQueryVariant) *_query { @@ -257,7 +218,6 @@ func (s *_query) Match(key string, value types.MatchQueryVariant) *_query { return s } -// Matches all documents, giving them all a `_score` of 1.0. func (s *_query) MatchAll(matchall types.MatchAllQueryVariant) *_query { s.v.MatchAll = matchall.MatchAllQueryCaster() @@ -265,9 +225,6 @@ func (s *_query) MatchAll(matchall types.MatchAllQueryVariant) *_query { return s } -// Analyzes its input and constructs a `bool` query from the terms. -// Each term except the last is used in a `term` query. -// The last term is used in a prefix query. // MatchBoolPrefix is a single key dictionnary. // It will replace the current value on each call. func (s *_query) MatchBoolPrefix(key string, value types.MatchBoolPrefixQueryVariant) *_query { @@ -280,7 +237,6 @@ func (s *_query) MatchBoolPrefix(key string, value types.MatchBoolPrefixQueryVar return s } -// Matches no documents. func (s *_query) MatchNone(matchnone types.MatchNoneQueryVariant) *_query { s.v.MatchNone = matchnone.MatchNoneQueryCaster() @@ -288,7 +244,6 @@ func (s *_query) MatchNone(matchnone types.MatchNoneQueryVariant) *_query { return s } -// Analyzes the text and creates a phrase query out of the analyzed text. // MatchPhrase is a single key dictionnary. // It will replace the current value on each call. func (s *_query) MatchPhrase(key string, value types.MatchPhraseQueryVariant) *_query { @@ -301,10 +256,6 @@ func (s *_query) MatchPhrase(key string, value types.MatchPhraseQueryVariant) *_ return s } -// Returns documents that contain the words of a provided text, in the same -// order as provided. -// The last term of the provided text is treated as a prefix, matching any words -// that begin with that term. // MatchPhrasePrefix is a single key dictionnary. // It will replace the current value on each call. func (s *_query) MatchPhrasePrefix(key string, value types.MatchPhrasePrefixQueryVariant) *_query { @@ -317,7 +268,6 @@ func (s *_query) MatchPhrasePrefix(key string, value types.MatchPhrasePrefixQuer return s } -// Returns documents that are "like" a given set of documents. func (s *_query) MoreLikeThis(morelikethis types.MoreLikeThisQueryVariant) *_query { s.v.MoreLikeThis = morelikethis.MoreLikeThisQueryCaster() @@ -325,9 +275,6 @@ func (s *_query) MoreLikeThis(morelikethis types.MoreLikeThisQueryVariant) *_que return s } -// Enables you to search for a provided text, number, date or boolean value -// across multiple fields. -// The provided text is analyzed before matching. func (s *_query) MultiMatch(multimatch types.MultiMatchQueryVariant) *_query { s.v.MultiMatch = multimatch.MultiMatchQueryCaster() @@ -335,9 +282,6 @@ func (s *_query) MultiMatch(multimatch types.MultiMatchQueryVariant) *_query { return s } -// Wraps another query to search nested fields. -// If an object matches the search, the nested query returns the root parent -// document. func (s *_query) Nested(nested types.NestedQueryVariant) *_query { s.v.Nested = nested.NestedQueryCaster() @@ -345,7 +289,6 @@ func (s *_query) Nested(nested types.NestedQueryVariant) *_query { return s } -// Returns child documents joined to a specific parent document. func (s *_query) ParentId(parentid types.ParentIdQueryVariant) *_query { s.v.ParentId = parentid.ParentIdQueryCaster() @@ -353,7 +296,6 @@ func (s *_query) ParentId(parentid types.ParentIdQueryVariant) *_query { return s } -// Matches queries stored in an index. func (s *_query) Percolate(percolate types.PercolateQueryVariant) *_query { s.v.Percolate = percolate.PercolateQueryCaster() @@ -361,7 +303,6 @@ func (s *_query) Percolate(percolate types.PercolateQueryVariant) *_query { return s } -// Promotes selected documents to rank higher than those matching a given query. func (s *_query) Pinned(pinned types.PinnedQueryVariant) *_query { s.v.Pinned = pinned.PinnedQueryCaster() @@ -369,7 +310,6 @@ func (s *_query) Pinned(pinned types.PinnedQueryVariant) *_query { return s } -// Returns documents that contain a specific prefix in a provided field. // Prefix is a single key dictionnary. // It will replace the current value on each call. func (s *_query) Prefix(key string, value types.PrefixQueryVariant) *_query { @@ -382,8 +322,6 @@ func (s *_query) Prefix(key string, value types.PrefixQueryVariant) *_query { return s } -// Returns documents based on a provided query string, using a parser with a -// strict syntax. func (s *_query) QueryString(querystring types.QueryStringQueryVariant) *_query { s.v.QueryString = querystring.QueryStringQueryCaster() @@ -391,7 +329,6 @@ func (s *_query) QueryString(querystring types.QueryStringQueryVariant) *_query return s } -// Returns documents that contain terms within a provided range. // Range is a single key dictionnary. // It will replace the current value on each call. func (s *_query) Range(key string, value types.RangeQueryVariant) *_query { @@ -404,8 +341,6 @@ func (s *_query) Range(key string, value types.RangeQueryVariant) *_query { return s } -// Boosts the relevance score of documents based on the numeric value of a -// `rank_feature` or `rank_features` field. func (s *_query) RankFeature(rankfeature types.RankFeatureQueryVariant) *_query { s.v.RankFeature = rankfeature.RankFeatureQueryCaster() @@ -413,7 +348,6 @@ func (s *_query) RankFeature(rankfeature types.RankFeatureQueryVariant) *_query return s } -// Returns documents that contain terms matching a regular expression. // Regexp is a single key dictionnary. // It will replace the current value on each call. func (s *_query) Regexp(key string, value types.RegexpQueryVariant) *_query { @@ -433,8 +367,6 @@ func (s *_query) Rule(rule types.RuleQueryVariant) *_query { return s } -// Filters documents based on a provided script. -// The script query is typically used in a filter context. func (s *_query) Script(script types.ScriptQueryVariant) *_query { s.v.Script = script.ScriptQueryCaster() @@ -442,7 +374,6 @@ func (s *_query) Script(script types.ScriptQueryVariant) *_query { return s } -// Uses a script to provide a custom score for returned documents. func (s *_query) ScriptScore(scriptscore types.ScriptScoreQueryVariant) *_query { s.v.ScriptScore = scriptscore.ScriptScoreQueryCaster() @@ -450,7 +381,6 @@ func (s *_query) ScriptScore(scriptscore types.ScriptScoreQueryVariant) *_query return s } -// A semantic query to semantic_text field types func (s *_query) Semantic(semantic types.SemanticQueryVariant) *_query { s.v.Semantic = semantic.SemanticQueryCaster() @@ -458,7 +388,6 @@ func (s *_query) Semantic(semantic types.SemanticQueryVariant) *_query { return s } -// Queries documents that contain fields indexed using the `shape` type. func (s *_query) Shape(shape types.ShapeQueryVariant) *_query { s.v.Shape = shape.ShapeQueryCaster() @@ -466,8 +395,6 @@ func (s *_query) Shape(shape types.ShapeQueryVariant) *_query { return s } -// Returns documents based on a provided query string, using a parser with a -// limited but fault-tolerant syntax. func (s *_query) SimpleQueryString(simplequerystring types.SimpleQueryStringQueryVariant) *_query { s.v.SimpleQueryString = simplequerystring.SimpleQueryStringQueryCaster() @@ -475,7 +402,6 @@ func (s *_query) SimpleQueryString(simplequerystring types.SimpleQueryStringQuer return s } -// Returns matches which enclose another span query. func (s *_query) SpanContaining(spancontaining types.SpanContainingQueryVariant) *_query { s.v.SpanContaining = spancontaining.SpanContainingQueryCaster() @@ -483,8 +409,6 @@ func (s *_query) SpanContaining(spancontaining types.SpanContainingQueryVariant) return s } -// Wrapper to allow span queries to participate in composite single-field span -// queries by _lying_ about their search field. func (s *_query) SpanFieldMasking(spanfieldmasking types.SpanFieldMaskingQueryVariant) *_query { s.v.SpanFieldMasking = spanfieldmasking.SpanFieldMaskingQueryCaster() @@ -492,7 +416,6 @@ func (s *_query) SpanFieldMasking(spanfieldmasking types.SpanFieldMaskingQueryVa return s } -// Matches spans near the beginning of a field. func (s *_query) SpanFirst(spanfirst types.SpanFirstQueryVariant) *_query { s.v.SpanFirst = spanfirst.SpanFirstQueryCaster() @@ -500,8 +423,6 @@ func (s *_query) SpanFirst(spanfirst types.SpanFirstQueryVariant) *_query { return s } -// Allows you to wrap a multi term query (one of `wildcard`, `fuzzy`, `prefix`, -// `range`, or `regexp` query) as a `span` query, so it can be nested. func (s *_query) SpanMulti(spanmulti types.SpanMultiTermQueryVariant) *_query { s.v.SpanMulti = spanmulti.SpanMultiTermQueryCaster() @@ -509,9 +430,6 @@ func (s *_query) SpanMulti(spanmulti types.SpanMultiTermQueryVariant) *_query { return s } -// Matches spans which are near one another. -// You can specify `slop`, the maximum number of intervening unmatched -// positions, as well as whether matches are required to be in-order. func (s *_query) SpanNear(spannear types.SpanNearQueryVariant) *_query { s.v.SpanNear = spannear.SpanNearQueryCaster() @@ -519,9 +437,6 @@ func (s *_query) SpanNear(spannear types.SpanNearQueryVariant) *_query { return s } -// Removes matches which overlap with another span query or which are within x -// tokens before (controlled by the parameter `pre`) or y tokens after -// (controlled by the parameter `post`) another span query. func (s *_query) SpanNot(spannot types.SpanNotQueryVariant) *_query { s.v.SpanNot = spannot.SpanNotQueryCaster() @@ -529,7 +444,6 @@ func (s *_query) SpanNot(spannot types.SpanNotQueryVariant) *_query { return s } -// Matches the union of its span clauses. func (s *_query) SpanOr(spanor types.SpanOrQueryVariant) *_query { s.v.SpanOr = spanor.SpanOrQueryCaster() @@ -537,7 +451,6 @@ func (s *_query) SpanOr(spanor types.SpanOrQueryVariant) *_query { return s } -// Matches spans containing a term. // SpanTerm is a single key dictionnary. // It will replace the current value on each call. func (s *_query) SpanTerm(key string, value types.SpanTermQueryVariant) *_query { @@ -550,7 +463,6 @@ func (s *_query) SpanTerm(key string, value types.SpanTermQueryVariant) *_query return s } -// Returns matches which are enclosed inside another span query. func (s *_query) SpanWithin(spanwithin types.SpanWithinQueryVariant) *_query { s.v.SpanWithin = spanwithin.SpanWithinQueryCaster() @@ -558,9 +470,6 @@ func (s *_query) SpanWithin(spanwithin types.SpanWithinQueryVariant) *_query { return s } -// Using input query vectors or a natural language processing model to convert a -// query into a list of token-weight pairs, queries against a sparse vector -// field. func (s *_query) SparseVector(sparsevector types.SparseVectorQueryVariant) *_query { s.v.SparseVector = sparsevector.SparseVectorQueryCaster() @@ -568,9 +477,6 @@ func (s *_query) SparseVector(sparsevector types.SparseVectorQueryVariant) *_que return s } -// Returns documents that contain an exact term in a provided field. -// To return a document, the query term must exactly match the queried field's -// value, including whitespace and capitalization. // Term is a single key dictionnary. // It will replace the current value on each call. func (s *_query) Term(key string, value types.TermQueryVariant) *_query { @@ -583,9 +489,6 @@ func (s *_query) Term(key string, value types.TermQueryVariant) *_query { return s } -// Returns documents 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 (s *_query) Terms(terms types.TermsQueryVariant) *_query { s.v.Terms = terms.TermsQueryCaster() @@ -593,10 +496,6 @@ func (s *_query) Terms(terms types.TermsQueryVariant) *_query { return s } -// Returns documents that contain a minimum number of exact terms in a provided -// field. -// To return a document, a required number of terms must exactly match the field -// values, including whitespace and capitalization. // TermsSet is a single key dictionnary. // It will replace the current value on each call. func (s *_query) TermsSet(key string, value types.TermsSetQueryVariant) *_query { @@ -609,9 +508,6 @@ func (s *_query) TermsSet(key string, value types.TermsSetQueryVariant) *_query return s } -// Uses a natural language processing model to convert the query text into a -// list of token-weight pairs which are then used in a query against a sparse -// vector or rank features field. // TextExpansion is a single key dictionnary. // It will replace the current value on each call. func (s *_query) TextExpansion(key string, value types.TextExpansionQueryVariant) *_query { @@ -631,8 +527,6 @@ func (s *_query) Type(type_ types.TypeQueryVariant) *_query { return s } -// Supports returning text_expansion query results by sending in precomputed -// tokens with the query. // WeightedToken is a single key dictionnary. // It will replace the current value on each call. func (s *_query) WeightedToken(key string, value types.WeightedTokensQueryVariant) *_query { @@ -645,7 +539,6 @@ func (s *_query) WeightedToken(key string, value types.WeightedTokensQueryVarian return s } -// Returns documents that contain terms matching a wildcard pattern. // Wildcard is a single key dictionnary. // It will replace the current value on each call. func (s *_query) Wildcard(key string, value types.WildcardQueryVariant) *_query { @@ -658,7 +551,6 @@ func (s *_query) Wildcard(key string, value types.WildcardQueryVariant) *_query return s } -// A query that accepts any other query as base64 encoded string. func (s *_query) Wrapper(wrapper types.WrapperQueryVariant) *_query { s.v.Wrapper = wrapper.WrapperQueryCaster() diff --git a/typedapi/esdsl/queryfeatureextractor.go b/typedapi/esdsl/queryfeatureextractor.go new file mode 100644 index 0000000000..0bb78fc291 --- /dev/null +++ b/typedapi/esdsl/queryfeatureextractor.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _queryFeatureExtractor struct { + v *types.QueryFeatureExtractor +} + +func NewQueryFeatureExtractor(featurename string, query types.QueryVariant) *_queryFeatureExtractor { + + tmp := &_queryFeatureExtractor{v: types.NewQueryFeatureExtractor()} + + tmp.FeatureName(featurename) + + tmp.Query(query) + + return tmp + +} + +func (s *_queryFeatureExtractor) DefaultScore(defaultscore float32) *_queryFeatureExtractor { + + s.v.DefaultScore = &defaultscore + + return s +} + +func (s *_queryFeatureExtractor) FeatureName(featurename string) *_queryFeatureExtractor { + + s.v.FeatureName = featurename + + return s +} + +func (s *_queryFeatureExtractor) Query(query types.QueryVariant) *_queryFeatureExtractor { + + s.v.Query = *query.QueryCaster() + + return s +} + +func (s *_queryFeatureExtractor) QueryFeatureExtractorCaster() *types.QueryFeatureExtractor { + return s.v +} diff --git a/typedapi/esdsl/queryrule.go b/typedapi/esdsl/queryrule.go index c93ba24057..ecf2a102e9 100644 --- a/typedapi/esdsl/queryrule.go +++ b/typedapi/esdsl/queryrule.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/queryruletype" ) type _queryRule struct { @@ -41,8 +41,6 @@ func NewQueryRule(actions types.QueryRuleActionsVariant, type_ queryruletype.Que } -// The actions to take when the rule is matched. -// The format of this action depends on the rule type. func (s *_queryRule) Actions(actions types.QueryRuleActionsVariant) *_queryRule { s.v.Actions = *actions.QueryRuleActionsCaster() @@ -50,9 +48,6 @@ func (s *_queryRule) Actions(actions types.QueryRuleActionsVariant) *_queryRule return s } -// The criteria that must be met for the rule to be applied. -// If multiple criteria are specified for a rule, all criteria must be met for -// the rule to be applied. func (s *_queryRule) Criteria(criteria ...types.QueryRuleCriteriaVariant) *_queryRule { s.v.Criteria = make([]types.QueryRuleCriteria, len(criteria)) @@ -70,7 +65,6 @@ func (s *_queryRule) Priority(priority int) *_queryRule { return s } -// A unique identifier for the rule. func (s *_queryRule) RuleId(id string) *_queryRule { s.v.RuleId = id @@ -78,10 +72,6 @@ func (s *_queryRule) RuleId(id string) *_queryRule { return s } -// The type of rule. -// `pinned` will identify and pin specific documents to the top of search -// results. -// `exclude` will exclude specific documents from search results. func (s *_queryRule) Type(type_ queryruletype.QueryRuleType) *_queryRule { s.v.Type = type_ diff --git a/typedapi/esdsl/queryruleactions.go b/typedapi/esdsl/queryruleactions.go index 79af36fc73..27aa18357b 100644 --- a/typedapi/esdsl/queryruleactions.go +++ b/typedapi/esdsl/queryruleactions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _queryRuleActions struct { v *types.QueryRuleActions @@ -32,14 +32,6 @@ func NewQueryRuleActions() *_queryRuleActions { } -// The documents to apply the rule to. -// Only one of `ids` or `docs` may be specified and at least one must be -// specified. -// There is a maximum value of 100 documents in a rule. -// You can specify the following attributes for each document: -// -// * `_index`: The index of the document to pin. -// * `_id`: The unique document ID. func (s *_queryRuleActions) Docs(docs ...types.PinnedDocVariant) *_queryRuleActions { for _, v := range docs { @@ -50,9 +42,6 @@ func (s *_queryRuleActions) Docs(docs ...types.PinnedDocVariant) *_queryRuleActi return s } -// The unique document IDs of the documents to apply the rule to. -// Only one of `ids` or `docs` may be specified and at least one must be -// specified. func (s *_queryRuleActions) Ids(ids ...string) *_queryRuleActions { for _, v := range ids { diff --git a/typedapi/esdsl/queryrulecriteria.go b/typedapi/esdsl/queryrulecriteria.go index da691d5e9b..02e4abee79 100644 --- a/typedapi/esdsl/queryrulecriteria.go +++ b/typedapi/esdsl/queryrulecriteria.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryrulecriteriatype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/queryrulecriteriatype" ) type _queryRuleCriteria struct { @@ -41,10 +41,6 @@ func NewQueryRuleCriteria(type_ queryrulecriteriatype.QueryRuleCriteriaType) *_q } -// The metadata field to match against. -// This metadata will be used to match against `match_criteria` sent in the -// rule. -// It is required for all criteria types except `always`. func (s *_queryRuleCriteria) Metadata(metadata string) *_queryRuleCriteria { s.v.Metadata = &metadata @@ -52,37 +48,12 @@ func (s *_queryRuleCriteria) Metadata(metadata string) *_queryRuleCriteria { return s } -// The type of criteria. The following criteria types are supported: -// -// * `always`: Matches all queries, regardless of input. -// * `contains`: Matches that contain this value anywhere in the field meet the -// criteria defined by the rule. Only applicable for string values. -// * `exact`: Only exact matches meet the criteria defined by the rule. -// Applicable for string or numerical values. -// * `fuzzy`: Exact matches or matches within the allowed Levenshtein Edit -// Distance meet the criteria defined by the rule. Only applicable for string -// values. -// * `gt`: Matches with a value greater than this value meet the criteria -// defined by the rule. Only applicable for numerical values. -// * `gte`: Matches with a value greater than or equal to this value meet the -// criteria defined by the rule. Only applicable for numerical values. -// * `lt`: Matches with a value less than this value meet the criteria defined -// by the rule. Only applicable for numerical values. -// * `lte`: Matches with a value less than or equal to this value meet the -// criteria defined by the rule. Only applicable for numerical values. -// * `prefix`: Matches that start with this value meet the criteria defined by -// the rule. Only applicable for string values. -// * `suffix`: Matches that end with this value meet the criteria defined by the -// rule. Only applicable for string values. func (s *_queryRuleCriteria) Type(type_ queryrulecriteriatype.QueryRuleCriteriaType) *_queryRuleCriteria { s.v.Type = type_ return s } -// The values to match against the `metadata` field. -// Only one value must match for the criteria to be met. -// It is required for all criteria types except `always`. func (s *_queryRuleCriteria) Values(values ...json.RawMessage) *_queryRuleCriteria { for _, v := range values { diff --git a/typedapi/esdsl/querystringquery.go b/typedapi/esdsl/querystringquery.go index df29bd2051..4654c7a75a 100644 --- a/typedapi/esdsl/querystringquery.go +++ b/typedapi/esdsl/querystringquery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/textquerytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/textquerytype" ) type _queryStringQuery struct { @@ -42,8 +42,6 @@ func NewQueryStringQuery(query string) *_queryStringQuery { } -// If `true`, the wildcard characters `*` and `?` are allowed as the first -// character of the query string. func (s *_queryStringQuery) AllowLeadingWildcard(allowleadingwildcard bool) *_queryStringQuery { s.v.AllowLeadingWildcard = &allowleadingwildcard @@ -51,7 +49,6 @@ func (s *_queryStringQuery) AllowLeadingWildcard(allowleadingwildcard bool) *_qu return s } -// If `true`, the query attempts to analyze wildcard terms in the query string. func (s *_queryStringQuery) AnalyzeWildcard(analyzewildcard bool) *_queryStringQuery { s.v.AnalyzeWildcard = &analyzewildcard @@ -59,7 +56,6 @@ func (s *_queryStringQuery) AnalyzeWildcard(analyzewildcard bool) *_queryStringQ return s } -// Analyzer used to convert text in the query string into tokens. func (s *_queryStringQuery) Analyzer(analyzer string) *_queryStringQuery { s.v.Analyzer = &analyzer @@ -67,8 +63,6 @@ func (s *_queryStringQuery) Analyzer(analyzer string) *_queryStringQuery { return s } -// If `true`, match phrase queries are automatically created for multi-term -// synonyms. func (s *_queryStringQuery) AutoGenerateSynonymsPhraseQuery(autogeneratesynonymsphrasequery bool) *_queryStringQuery { s.v.AutoGenerateSynonymsPhraseQuery = &autogeneratesynonymsphrasequery @@ -76,11 +70,6 @@ func (s *_queryStringQuery) AutoGenerateSynonymsPhraseQuery(autogeneratesynonyms return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_queryStringQuery) Boost(boost float32) *_queryStringQuery { s.v.Boost = &boost @@ -88,10 +77,6 @@ func (s *_queryStringQuery) Boost(boost float32) *_queryStringQuery { return s } -// Default field to search if no field is provided in the query string. -// Supports wildcards (`*`). -// Defaults to the `index.query.default_field` index setting, which has a -// default value of `*`. func (s *_queryStringQuery) DefaultField(field string) *_queryStringQuery { s.v.DefaultField = &field @@ -99,16 +84,12 @@ func (s *_queryStringQuery) DefaultField(field string) *_queryStringQuery { return s } -// Default boolean logic used to interpret text in the query string if no -// operators are specified. func (s *_queryStringQuery) DefaultOperator(defaultoperator operator.Operator) *_queryStringQuery { s.v.DefaultOperator = &defaultoperator return s } -// If `true`, enable position increments in queries constructed from a -// `query_string` search. func (s *_queryStringQuery) EnablePositionIncrements(enablepositionincrements bool) *_queryStringQuery { s.v.EnablePositionIncrements = &enablepositionincrements @@ -123,7 +104,6 @@ func (s *_queryStringQuery) Escape(escape bool) *_queryStringQuery { return s } -// Array of fields to search. Supports wildcards (`*`). func (s *_queryStringQuery) Fields(fields ...string) *_queryStringQuery { for _, v := range fields { @@ -134,7 +114,6 @@ func (s *_queryStringQuery) Fields(fields ...string) *_queryStringQuery { return s } -// Maximum edit distance allowed for fuzzy matching. func (s *_queryStringQuery) Fuzziness(fuzziness types.FuzzinessVariant) *_queryStringQuery { s.v.Fuzziness = *fuzziness.FuzzinessCaster() @@ -142,7 +121,6 @@ func (s *_queryStringQuery) Fuzziness(fuzziness types.FuzzinessVariant) *_queryS return s } -// Maximum number of terms to which the query expands for fuzzy matching. func (s *_queryStringQuery) FuzzyMaxExpansions(fuzzymaxexpansions int) *_queryStringQuery { s.v.FuzzyMaxExpansions = &fuzzymaxexpansions @@ -150,7 +128,6 @@ func (s *_queryStringQuery) FuzzyMaxExpansions(fuzzymaxexpansions int) *_querySt return s } -// Number of beginning characters left unchanged for fuzzy matching. func (s *_queryStringQuery) FuzzyPrefixLength(fuzzyprefixlength int) *_queryStringQuery { s.v.FuzzyPrefixLength = &fuzzyprefixlength @@ -158,7 +135,6 @@ func (s *_queryStringQuery) FuzzyPrefixLength(fuzzyprefixlength int) *_queryStri return s } -// Method used to rewrite the query. func (s *_queryStringQuery) FuzzyRewrite(multitermqueryrewrite string) *_queryStringQuery { s.v.FuzzyRewrite = &multitermqueryrewrite @@ -166,8 +142,6 @@ func (s *_queryStringQuery) FuzzyRewrite(multitermqueryrewrite string) *_querySt return s } -// If `true`, edits for fuzzy matching include transpositions of two adjacent -// characters (for example, `ab` to `ba`). func (s *_queryStringQuery) FuzzyTranspositions(fuzzytranspositions bool) *_queryStringQuery { s.v.FuzzyTranspositions = &fuzzytranspositions @@ -175,8 +149,6 @@ func (s *_queryStringQuery) FuzzyTranspositions(fuzzytranspositions bool) *_quer return s } -// If `true`, format-based errors, such as providing a text value for a numeric -// field, are ignored. func (s *_queryStringQuery) Lenient(lenient bool) *_queryStringQuery { s.v.Lenient = &lenient @@ -184,7 +156,6 @@ func (s *_queryStringQuery) Lenient(lenient bool) *_queryStringQuery { return s } -// Maximum number of automaton states required for the query. func (s *_queryStringQuery) MaxDeterminizedStates(maxdeterminizedstates int) *_queryStringQuery { s.v.MaxDeterminizedStates = &maxdeterminizedstates @@ -192,7 +163,6 @@ func (s *_queryStringQuery) MaxDeterminizedStates(maxdeterminizedstates int) *_q return s } -// Minimum number of clauses that must match for a document to be returned. func (s *_queryStringQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShouldMatchVariant) *_queryStringQuery { s.v.MinimumShouldMatch = *minimumshouldmatch.MinimumShouldMatchCaster() @@ -200,7 +170,6 @@ func (s *_queryStringQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumS return s } -// Maximum number of positions allowed between matching tokens for phrases. func (s *_queryStringQuery) PhraseSlop(phraseslop types.Float64) *_queryStringQuery { s.v.PhraseSlop = &phraseslop @@ -208,7 +177,6 @@ func (s *_queryStringQuery) PhraseSlop(phraseslop types.Float64) *_queryStringQu return s } -// Query string you wish to parse and use for search. func (s *_queryStringQuery) Query(query string) *_queryStringQuery { s.v.Query = query @@ -223,9 +191,6 @@ func (s *_queryStringQuery) QueryName_(queryname_ string) *_queryStringQuery { return s } -// Analyzer used to convert quoted text in the query string into tokens. -// For quoted text, this parameter overrides the analyzer specified in the -// `analyzer` parameter. func (s *_queryStringQuery) QuoteAnalyzer(quoteanalyzer string) *_queryStringQuery { s.v.QuoteAnalyzer = "eanalyzer @@ -233,8 +198,6 @@ func (s *_queryStringQuery) QuoteAnalyzer(quoteanalyzer string) *_queryStringQue return s } -// Suffix appended to quoted text in the query string. -// You can use this suffix to use a different analysis method for exact matches. func (s *_queryStringQuery) QuoteFieldSuffix(quotefieldsuffix string) *_queryStringQuery { s.v.QuoteFieldSuffix = "efieldsuffix @@ -242,7 +205,6 @@ func (s *_queryStringQuery) QuoteFieldSuffix(quotefieldsuffix string) *_queryStr return s } -// Method used to rewrite the query. func (s *_queryStringQuery) Rewrite(multitermqueryrewrite string) *_queryStringQuery { s.v.Rewrite = &multitermqueryrewrite @@ -250,8 +212,6 @@ func (s *_queryStringQuery) Rewrite(multitermqueryrewrite string) *_queryStringQ return s } -// How to combine the queries generated from the individual search terms in the -// resulting `dis_max` query. func (s *_queryStringQuery) TieBreaker(tiebreaker types.Float64) *_queryStringQuery { s.v.TieBreaker = &tiebreaker @@ -259,8 +219,6 @@ func (s *_queryStringQuery) TieBreaker(tiebreaker types.Float64) *_queryStringQu return s } -// Coordinated Universal Time (UTC) offset or IANA time zone used to convert -// date values in the query string to UTC. func (s *_queryStringQuery) TimeZone(timezone string) *_queryStringQuery { s.v.TimeZone = &timezone @@ -268,7 +226,6 @@ func (s *_queryStringQuery) TimeZone(timezone string) *_queryStringQuery { return s } -// Determines how the query matches and scores documents. func (s *_queryStringQuery) Type(type_ textquerytype.TextQueryType) *_queryStringQuery { s.v.Type = &type_ diff --git a/typedapi/esdsl/queryvectorbuilder.go b/typedapi/esdsl/queryvectorbuilder.go index c48c7e15fd..18706d03c5 100644 --- a/typedapi/esdsl/queryvectorbuilder.go +++ b/typedapi/esdsl/queryvectorbuilder.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _queryVectorBuilder struct { diff --git a/typedapi/esdsl/questionansweringinferenceoptions.go b/typedapi/esdsl/questionansweringinferenceoptions.go index 4b9e04bdd7..66edfa177c 100644 --- a/typedapi/esdsl/questionansweringinferenceoptions.go +++ b/typedapi/esdsl/questionansweringinferenceoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _questionAnsweringInferenceOptions struct { v *types.QuestionAnsweringInferenceOptions @@ -33,7 +33,6 @@ func NewQuestionAnsweringInferenceOptions() *_questionAnsweringInferenceOptions } -// The maximum answer length to consider func (s *_questionAnsweringInferenceOptions) MaxAnswerLength(maxanswerlength int) *_questionAnsweringInferenceOptions { s.v.MaxAnswerLength = &maxanswerlength @@ -41,7 +40,6 @@ func (s *_questionAnsweringInferenceOptions) MaxAnswerLength(maxanswerlength int return s } -// Specifies the number of top class predictions to return. Defaults to 0. func (s *_questionAnsweringInferenceOptions) NumTopClasses(numtopclasses int) *_questionAnsweringInferenceOptions { s.v.NumTopClasses = &numtopclasses @@ -49,8 +47,6 @@ func (s *_questionAnsweringInferenceOptions) NumTopClasses(numtopclasses int) *_ return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_questionAnsweringInferenceOptions) ResultsField(resultsfield string) *_questionAnsweringInferenceOptions { s.v.ResultsField = &resultsfield @@ -58,7 +54,6 @@ func (s *_questionAnsweringInferenceOptions) ResultsField(resultsfield string) * return s } -// The tokenization options to update when inferring func (s *_questionAnsweringInferenceOptions) Tokenization(tokenization types.TokenizationConfigContainerVariant) *_questionAnsweringInferenceOptions { s.v.Tokenization = tokenization.TokenizationConfigContainerCaster() diff --git a/typedapi/esdsl/questionansweringinferenceupdateoptions.go b/typedapi/esdsl/questionansweringinferenceupdateoptions.go index 927869e25d..974a253af9 100644 --- a/typedapi/esdsl/questionansweringinferenceupdateoptions.go +++ b/typedapi/esdsl/questionansweringinferenceupdateoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _questionAnsweringInferenceUpdateOptions struct { v *types.QuestionAnsweringInferenceUpdateOptions @@ -37,7 +37,6 @@ func NewQuestionAnsweringInferenceUpdateOptions(question string) *_questionAnswe } -// The maximum answer length to consider for extraction func (s *_questionAnsweringInferenceUpdateOptions) MaxAnswerLength(maxanswerlength int) *_questionAnsweringInferenceUpdateOptions { s.v.MaxAnswerLength = &maxanswerlength @@ -45,7 +44,6 @@ func (s *_questionAnsweringInferenceUpdateOptions) MaxAnswerLength(maxanswerleng return s } -// Specifies the number of top class predictions to return. Defaults to 0. func (s *_questionAnsweringInferenceUpdateOptions) NumTopClasses(numtopclasses int) *_questionAnsweringInferenceUpdateOptions { s.v.NumTopClasses = &numtopclasses @@ -53,7 +51,6 @@ func (s *_questionAnsweringInferenceUpdateOptions) NumTopClasses(numtopclasses i return s } -// The question to answer given the inference context func (s *_questionAnsweringInferenceUpdateOptions) Question(question string) *_questionAnsweringInferenceUpdateOptions { s.v.Question = question @@ -61,8 +58,6 @@ func (s *_questionAnsweringInferenceUpdateOptions) Question(question string) *_q return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_questionAnsweringInferenceUpdateOptions) ResultsField(resultsfield string) *_questionAnsweringInferenceUpdateOptions { s.v.ResultsField = &resultsfield @@ -70,7 +65,6 @@ func (s *_questionAnsweringInferenceUpdateOptions) ResultsField(resultsfield str return s } -// The tokenization options to update when inferring func (s *_questionAnsweringInferenceUpdateOptions) Tokenization(tokenization types.NlpTokenizationUpdateOptionsVariant) *_questionAnsweringInferenceUpdateOptions { s.v.Tokenization = tokenization.NlpTokenizationUpdateOptionsCaster() diff --git a/typedapi/esdsl/randomsampleraggregation.go b/typedapi/esdsl/randomsampleraggregation.go index 0da932d246..0abb7f130d 100644 --- a/typedapi/esdsl/randomsampleraggregation.go +++ b/typedapi/esdsl/randomsampleraggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _randomSamplerAggregation struct { v *types.RandomSamplerAggregation @@ -39,9 +39,6 @@ func NewRandomSamplerAggregation(probability types.Float64) *_randomSamplerAggre } -// The probability that a document will be included in the aggregated data. -// Must be greater than 0, less than 0.5, or exactly 1. -// The lower the probability, the fewer documents are matched. func (s *_randomSamplerAggregation) Probability(probability types.Float64) *_randomSamplerAggregation { s.v.Probability = probability @@ -49,9 +46,6 @@ func (s *_randomSamplerAggregation) Probability(probability types.Float64) *_ran return s } -// The seed to generate the random sampling of documents. -// When a seed is provided, the random subset of documents is the same between -// calls. func (s *_randomSamplerAggregation) Seed(seed int) *_randomSamplerAggregation { s.v.Seed = &seed @@ -59,8 +53,6 @@ func (s *_randomSamplerAggregation) Seed(seed int) *_randomSamplerAggregation { return s } -// When combined with seed, setting shard_seed ensures 100% consistent sampling -// over shards where data is exactly the same. func (s *_randomSamplerAggregation) ShardSeed(shardseed int) *_randomSamplerAggregation { s.v.ShardSeed = &shardseed diff --git a/typedapi/esdsl/randomscorefunction.go b/typedapi/esdsl/randomscorefunction.go index 280ffea8aa..5a0ee6d5dc 100644 --- a/typedapi/esdsl/randomscorefunction.go +++ b/typedapi/esdsl/randomscorefunction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _randomScoreFunction struct { v *types.RandomScoreFunction diff --git a/typedapi/esdsl/rangeaggregation.go b/typedapi/esdsl/rangeaggregation.go index fb566e3338..af23ff2ec3 100644 --- a/typedapi/esdsl/rangeaggregation.go +++ b/typedapi/esdsl/rangeaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rangeAggregation struct { v *types.RangeAggregation @@ -34,7 +34,6 @@ func NewRangeAggregation() *_rangeAggregation { } -// The date field whose values are use to build ranges. func (s *_rangeAggregation) Field(field string) *_rangeAggregation { s.v.Field = &field @@ -49,8 +48,6 @@ func (s *_rangeAggregation) Format(format string) *_rangeAggregation { return s } -// Set to `true` to associate a unique string key with each bucket and return -// the ranges as a hash rather than an array. func (s *_rangeAggregation) Keyed(keyed bool) *_rangeAggregation { s.v.Keyed = &keyed @@ -58,8 +55,6 @@ func (s *_rangeAggregation) Keyed(keyed bool) *_rangeAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_rangeAggregation) Missing(missing int) *_rangeAggregation { s.v.Missing = &missing @@ -67,7 +62,6 @@ func (s *_rangeAggregation) Missing(missing int) *_rangeAggregation { return s } -// An array of ranges used to bucket documents. func (s *_rangeAggregation) Ranges(ranges ...types.AggregationRangeVariant) *_rangeAggregation { for _, v := range ranges { diff --git a/typedapi/esdsl/rangequery.go b/typedapi/esdsl/rangequery.go index 089380f2ae..a0afa9887b 100644 --- a/typedapi/esdsl/rangequery.go +++ b/typedapi/esdsl/rangequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _rangeQuery struct { diff --git a/typedapi/esdsl/rankcontainer.go b/typedapi/esdsl/rankcontainer.go index fdeb80c3da..d4c64852b0 100644 --- a/typedapi/esdsl/rankcontainer.go +++ b/typedapi/esdsl/rankcontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _rankContainer struct { @@ -46,7 +46,6 @@ func (s *_rankContainer) AdditionalRankContainerProperty(key string, value json. return s } -// The reciprocal rank fusion parameters func (s *_rankContainer) Rrf(rrf types.RrfRankVariant) *_rankContainer { s.v.Rrf = rrf.RrfRankCaster() diff --git a/typedapi/esdsl/rankevalmetric.go b/typedapi/esdsl/rankevalmetric.go index 4e0ba2b224..b962c84128 100644 --- a/typedapi/esdsl/rankevalmetric.go +++ b/typedapi/esdsl/rankevalmetric.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankEvalMetric struct { v *types.RankEvalMetric diff --git a/typedapi/esdsl/rankevalmetricdiscountedcumulativegain.go b/typedapi/esdsl/rankevalmetricdiscountedcumulativegain.go index e7e037ed52..0977252ce3 100644 --- a/typedapi/esdsl/rankevalmetricdiscountedcumulativegain.go +++ b/typedapi/esdsl/rankevalmetricdiscountedcumulativegain.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankEvalMetricDiscountedCumulativeGain struct { v *types.RankEvalMetricDiscountedCumulativeGain @@ -32,8 +32,6 @@ func NewRankEvalMetricDiscountedCumulativeGain() *_rankEvalMetricDiscountedCumul } -// Sets the maximum number of documents retrieved per query. This value will act -// in place of the usual size parameter in the query. func (s *_rankEvalMetricDiscountedCumulativeGain) K(k int) *_rankEvalMetricDiscountedCumulativeGain { s.v.K = &k @@ -41,7 +39,6 @@ func (s *_rankEvalMetricDiscountedCumulativeGain) K(k int) *_rankEvalMetricDisco return s } -// If set to true, this metric will calculate the Normalized DCG. func (s *_rankEvalMetricDiscountedCumulativeGain) Normalize(normalize bool) *_rankEvalMetricDiscountedCumulativeGain { s.v.Normalize = &normalize diff --git a/typedapi/esdsl/rankevalmetricexpectedreciprocalrank.go b/typedapi/esdsl/rankevalmetricexpectedreciprocalrank.go index b9b15a029b..5b9f4a9f8f 100644 --- a/typedapi/esdsl/rankevalmetricexpectedreciprocalrank.go +++ b/typedapi/esdsl/rankevalmetricexpectedreciprocalrank.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankEvalMetricExpectedReciprocalRank struct { v *types.RankEvalMetricExpectedReciprocalRank @@ -36,8 +36,6 @@ func NewRankEvalMetricExpectedReciprocalRank(maximumrelevance int) *_rankEvalMet } -// Sets the maximum number of documents retrieved per query. This value will act -// in place of the usual size parameter in the query. func (s *_rankEvalMetricExpectedReciprocalRank) K(k int) *_rankEvalMetricExpectedReciprocalRank { s.v.K = &k @@ -45,7 +43,6 @@ func (s *_rankEvalMetricExpectedReciprocalRank) K(k int) *_rankEvalMetricExpecte return s } -// The highest relevance grade used in the user-supplied relevance judgments. func (s *_rankEvalMetricExpectedReciprocalRank) MaximumRelevance(maximumrelevance int) *_rankEvalMetricExpectedReciprocalRank { s.v.MaximumRelevance = maximumrelevance diff --git a/typedapi/esdsl/rankevalmetricmeanreciprocalrank.go b/typedapi/esdsl/rankevalmetricmeanreciprocalrank.go index 39d30f84c5..5c16574d4a 100644 --- a/typedapi/esdsl/rankevalmetricmeanreciprocalrank.go +++ b/typedapi/esdsl/rankevalmetricmeanreciprocalrank.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankEvalMetricMeanReciprocalRank struct { v *types.RankEvalMetricMeanReciprocalRank @@ -32,8 +32,6 @@ func NewRankEvalMetricMeanReciprocalRank() *_rankEvalMetricMeanReciprocalRank { } -// Sets the maximum number of documents retrieved per query. This value will act -// in place of the usual size parameter in the query. func (s *_rankEvalMetricMeanReciprocalRank) K(k int) *_rankEvalMetricMeanReciprocalRank { s.v.K = &k @@ -41,8 +39,6 @@ func (s *_rankEvalMetricMeanReciprocalRank) K(k int) *_rankEvalMetricMeanRecipro return s } -// Sets the rating threshold above which documents are considered to be -// "relevant". func (s *_rankEvalMetricMeanReciprocalRank) RelevantRatingThreshold(relevantratingthreshold int) *_rankEvalMetricMeanReciprocalRank { s.v.RelevantRatingThreshold = &relevantratingthreshold diff --git a/typedapi/esdsl/rankevalmetricprecision.go b/typedapi/esdsl/rankevalmetricprecision.go index 2eded62896..34f26f5f6b 100644 --- a/typedapi/esdsl/rankevalmetricprecision.go +++ b/typedapi/esdsl/rankevalmetricprecision.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankEvalMetricPrecision struct { v *types.RankEvalMetricPrecision @@ -32,9 +32,6 @@ func NewRankEvalMetricPrecision() *_rankEvalMetricPrecision { } -// Controls how unlabeled documents in the search results are counted. If set to -// true, unlabeled documents are ignored and neither count as relevant or -// irrelevant. Set to false (the default), they are treated as irrelevant. func (s *_rankEvalMetricPrecision) IgnoreUnlabeled(ignoreunlabeled bool) *_rankEvalMetricPrecision { s.v.IgnoreUnlabeled = &ignoreunlabeled @@ -42,8 +39,6 @@ func (s *_rankEvalMetricPrecision) IgnoreUnlabeled(ignoreunlabeled bool) *_rankE return s } -// Sets the maximum number of documents retrieved per query. This value will act -// in place of the usual size parameter in the query. func (s *_rankEvalMetricPrecision) K(k int) *_rankEvalMetricPrecision { s.v.K = &k @@ -51,8 +46,6 @@ func (s *_rankEvalMetricPrecision) K(k int) *_rankEvalMetricPrecision { return s } -// Sets the rating threshold above which documents are considered to be -// "relevant". func (s *_rankEvalMetricPrecision) RelevantRatingThreshold(relevantratingthreshold int) *_rankEvalMetricPrecision { s.v.RelevantRatingThreshold = &relevantratingthreshold diff --git a/typedapi/esdsl/rankevalmetricrecall.go b/typedapi/esdsl/rankevalmetricrecall.go index ddeae59cda..fe97182945 100644 --- a/typedapi/esdsl/rankevalmetricrecall.go +++ b/typedapi/esdsl/rankevalmetricrecall.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankEvalMetricRecall struct { v *types.RankEvalMetricRecall @@ -32,8 +32,6 @@ func NewRankEvalMetricRecall() *_rankEvalMetricRecall { } -// Sets the maximum number of documents retrieved per query. This value will act -// in place of the usual size parameter in the query. func (s *_rankEvalMetricRecall) K(k int) *_rankEvalMetricRecall { s.v.K = &k @@ -41,8 +39,6 @@ func (s *_rankEvalMetricRecall) K(k int) *_rankEvalMetricRecall { return s } -// Sets the rating threshold above which documents are considered to be -// "relevant". func (s *_rankEvalMetricRecall) RelevantRatingThreshold(relevantratingthreshold int) *_rankEvalMetricRecall { s.v.RelevantRatingThreshold = &relevantratingthreshold diff --git a/typedapi/esdsl/rankevalquery.go b/typedapi/esdsl/rankevalquery.go index 2b59eca8ca..208f697371 100644 --- a/typedapi/esdsl/rankevalquery.go +++ b/typedapi/esdsl/rankevalquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankEvalQuery struct { v *types.RankEvalQuery diff --git a/typedapi/esdsl/rankevalrequestitem.go b/typedapi/esdsl/rankevalrequestitem.go index 35e0cea1a7..d4b2accb4b 100644 --- a/typedapi/esdsl/rankevalrequestitem.go +++ b/typedapi/esdsl/rankevalrequestitem.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _rankEvalRequestItem struct { @@ -36,7 +36,6 @@ func NewRankEvalRequestItem() *_rankEvalRequestItem { } -// The search request’s ID, used to group result details later. func (s *_rankEvalRequestItem) Id(id string) *_rankEvalRequestItem { s.v.Id = id @@ -44,7 +43,6 @@ func (s *_rankEvalRequestItem) Id(id string) *_rankEvalRequestItem { return s } -// The search template parameters. func (s *_rankEvalRequestItem) Params(params map[string]json.RawMessage) *_rankEvalRequestItem { s.v.Params = params @@ -66,7 +64,6 @@ func (s *_rankEvalRequestItem) AddParam(key string, value json.RawMessage) *_ran return s } -// List of document ratings func (s *_rankEvalRequestItem) Ratings(ratings ...types.DocumentRatingVariant) *_rankEvalRequestItem { for _, v := range ratings { @@ -77,7 +74,6 @@ func (s *_rankEvalRequestItem) Ratings(ratings ...types.DocumentRatingVariant) * return s } -// The query being evaluated. func (s *_rankEvalRequestItem) Request(request types.RankEvalQueryVariant) *_rankEvalRequestItem { s.v.Request = request.RankEvalQueryCaster() @@ -85,7 +81,6 @@ func (s *_rankEvalRequestItem) Request(request types.RankEvalQueryVariant) *_ran return s } -// The search template Id func (s *_rankEvalRequestItem) TemplateId(id string) *_rankEvalRequestItem { s.v.TemplateId = &id diff --git a/typedapi/esdsl/rankfeaturefunctionlinear.go b/typedapi/esdsl/rankfeaturefunctionlinear.go index e70f445b5d..39a0377edb 100644 --- a/typedapi/esdsl/rankfeaturefunctionlinear.go +++ b/typedapi/esdsl/rankfeaturefunctionlinear.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankFeatureFunctionLinear struct { v *types.RankFeatureFunctionLinear diff --git a/typedapi/esdsl/rankfeaturefunctionlogarithm.go b/typedapi/esdsl/rankfeaturefunctionlogarithm.go index 0f22314a24..0361a7e2b4 100644 --- a/typedapi/esdsl/rankfeaturefunctionlogarithm.go +++ b/typedapi/esdsl/rankfeaturefunctionlogarithm.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankFeatureFunctionLogarithm struct { v *types.RankFeatureFunctionLogarithm @@ -36,7 +36,6 @@ func NewRankFeatureFunctionLogarithm(scalingfactor float32) *_rankFeatureFunctio } -// Configurable scaling factor. func (s *_rankFeatureFunctionLogarithm) ScalingFactor(scalingfactor float32) *_rankFeatureFunctionLogarithm { s.v.ScalingFactor = scalingfactor diff --git a/typedapi/esdsl/rankfeaturefunctionsaturation.go b/typedapi/esdsl/rankfeaturefunctionsaturation.go index 3c279b6013..8082801d0e 100644 --- a/typedapi/esdsl/rankfeaturefunctionsaturation.go +++ b/typedapi/esdsl/rankfeaturefunctionsaturation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankFeatureFunctionSaturation struct { v *types.RankFeatureFunctionSaturation @@ -32,7 +32,6 @@ func NewRankFeatureFunctionSaturation() *_rankFeatureFunctionSaturation { } -// Configurable pivot value so that the result will be less than 0.5. func (s *_rankFeatureFunctionSaturation) Pivot(pivot float32) *_rankFeatureFunctionSaturation { s.v.Pivot = &pivot diff --git a/typedapi/esdsl/rankfeaturefunctionsigmoid.go b/typedapi/esdsl/rankfeaturefunctionsigmoid.go index 019d1287ab..ebbbe3fd08 100644 --- a/typedapi/esdsl/rankfeaturefunctionsigmoid.go +++ b/typedapi/esdsl/rankfeaturefunctionsigmoid.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankFeatureFunctionSigmoid struct { v *types.RankFeatureFunctionSigmoid @@ -38,7 +38,6 @@ func NewRankFeatureFunctionSigmoid(exponent float32, pivot float32) *_rankFeatur } -// Configurable Exponent. func (s *_rankFeatureFunctionSigmoid) Exponent(exponent float32) *_rankFeatureFunctionSigmoid { s.v.Exponent = exponent @@ -46,7 +45,6 @@ func (s *_rankFeatureFunctionSigmoid) Exponent(exponent float32) *_rankFeatureFu return s } -// Configurable pivot value so that the result will be less than 0.5. func (s *_rankFeatureFunctionSigmoid) Pivot(pivot float32) *_rankFeatureFunctionSigmoid { s.v.Pivot = pivot diff --git a/typedapi/esdsl/rankfeatureproperty.go b/typedapi/esdsl/rankfeatureproperty.go index c9aa103a86..2eb58ca384 100644 --- a/typedapi/esdsl/rankfeatureproperty.go +++ b/typedapi/esdsl/rankfeatureproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _rankFeatureProperty struct { @@ -70,7 +70,6 @@ func (s *_rankFeatureProperty) IgnoreAbove(ignoreabove int) *_rankFeaturePropert return s } -// Metadata about the field. func (s *_rankFeatureProperty) Meta(meta map[string]string) *_rankFeatureProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/rankfeaturequery.go b/typedapi/esdsl/rankfeaturequery.go index 0814ada372..46c92a7e6e 100644 --- a/typedapi/esdsl/rankfeaturequery.go +++ b/typedapi/esdsl/rankfeaturequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rankFeatureQuery struct { v *types.RankFeatureQuery @@ -34,11 +34,6 @@ func NewRankFeatureQuery() *_rankFeatureQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_rankFeatureQuery) Boost(boost float32) *_rankFeatureQuery { s.v.Boost = &boost @@ -46,7 +41,6 @@ func (s *_rankFeatureQuery) Boost(boost float32) *_rankFeatureQuery { return s } -// `rank_feature` or `rank_features` field used to boost relevance scores. func (s *_rankFeatureQuery) Field(field string) *_rankFeatureQuery { s.v.Field = field @@ -54,8 +48,6 @@ func (s *_rankFeatureQuery) Field(field string) *_rankFeatureQuery { return s } -// Linear function used to boost relevance scores based on the value of the rank -// feature `field`. func (s *_rankFeatureQuery) Linear(linear types.RankFeatureFunctionLinearVariant) *_rankFeatureQuery { s.v.Linear = linear.RankFeatureFunctionLinearCaster() @@ -63,8 +55,6 @@ func (s *_rankFeatureQuery) Linear(linear types.RankFeatureFunctionLinearVariant return s } -// Logarithmic function used to boost relevance scores based on the value of the -// rank feature `field`. func (s *_rankFeatureQuery) Log(log types.RankFeatureFunctionLogarithmVariant) *_rankFeatureQuery { s.v.Log = log.RankFeatureFunctionLogarithmCaster() @@ -79,8 +69,6 @@ func (s *_rankFeatureQuery) QueryName_(queryname_ string) *_rankFeatureQuery { return s } -// Saturation function used to boost relevance scores based on the value of the -// rank feature `field`. func (s *_rankFeatureQuery) Saturation(saturation types.RankFeatureFunctionSaturationVariant) *_rankFeatureQuery { s.v.Saturation = saturation.RankFeatureFunctionSaturationCaster() @@ -88,8 +76,6 @@ func (s *_rankFeatureQuery) Saturation(saturation types.RankFeatureFunctionSatur return s } -// Sigmoid function used to boost relevance scores based on the value of the -// rank feature `field`. func (s *_rankFeatureQuery) Sigmoid(sigmoid types.RankFeatureFunctionSigmoidVariant) *_rankFeatureQuery { s.v.Sigmoid = sigmoid.RankFeatureFunctionSigmoidCaster() diff --git a/typedapi/esdsl/rankfeaturesproperty.go b/typedapi/esdsl/rankfeaturesproperty.go index d2893586bf..95f543375b 100644 --- a/typedapi/esdsl/rankfeaturesproperty.go +++ b/typedapi/esdsl/rankfeaturesproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _rankFeaturesProperty struct { @@ -70,7 +70,6 @@ func (s *_rankFeaturesProperty) IgnoreAbove(ignoreabove int) *_rankFeaturesPrope return s } -// Metadata about the field. func (s *_rankFeaturesProperty) Meta(meta map[string]string) *_rankFeaturesProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/raretermsaggregation.go b/typedapi/esdsl/raretermsaggregation.go index 28b8c4ef9b..63d189b36f 100644 --- a/typedapi/esdsl/raretermsaggregation.go +++ b/typedapi/esdsl/raretermsaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rareTermsAggregation struct { v *types.RareTermsAggregation @@ -34,7 +34,6 @@ func NewRareTermsAggregation() *_rareTermsAggregation { } -// Terms that should be excluded from the aggregation. func (s *_rareTermsAggregation) Exclude(termsexcludes ...string) *_rareTermsAggregation { s.v.Exclude = termsexcludes @@ -42,7 +41,6 @@ func (s *_rareTermsAggregation) Exclude(termsexcludes ...string) *_rareTermsAggr return s } -// The field from which to return rare terms. func (s *_rareTermsAggregation) Field(field string) *_rareTermsAggregation { s.v.Field = &field @@ -50,7 +48,6 @@ func (s *_rareTermsAggregation) Field(field string) *_rareTermsAggregation { return s } -// Terms that should be included in the aggregation. func (s *_rareTermsAggregation) Include(termsinclude types.TermsIncludeVariant) *_rareTermsAggregation { s.v.Include = *termsinclude.TermsIncludeCaster() @@ -58,7 +55,6 @@ func (s *_rareTermsAggregation) Include(termsinclude types.TermsIncludeVariant) return s } -// The maximum number of documents a term should appear in. func (s *_rareTermsAggregation) MaxDocCount(maxdoccount int64) *_rareTermsAggregation { s.v.MaxDocCount = &maxdoccount @@ -66,8 +62,6 @@ func (s *_rareTermsAggregation) MaxDocCount(maxdoccount int64) *_rareTermsAggreg return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_rareTermsAggregation) Missing(missing types.MissingVariant) *_rareTermsAggregation { s.v.Missing = *missing.MissingCaster() @@ -75,8 +69,6 @@ func (s *_rareTermsAggregation) Missing(missing types.MissingVariant) *_rareTerm return s } -// The precision of the internal CuckooFilters. -// Smaller precision leads to better approximation, but higher memory usage. func (s *_rareTermsAggregation) Precision(precision types.Float64) *_rareTermsAggregation { s.v.Precision = &precision diff --git a/typedapi/esdsl/rateaggregation.go b/typedapi/esdsl/rateaggregation.go index e200a1c2e7..a647f10b2b 100644 --- a/typedapi/esdsl/rateaggregation.go +++ b/typedapi/esdsl/rateaggregation.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/calendarinterval" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ratemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/calendarinterval" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ratemode" ) type _rateAggregation struct { @@ -38,7 +38,6 @@ func NewRateAggregation() *_rateAggregation { } -// The field on which to run the aggregation. func (s *_rateAggregation) Field(field string) *_rateAggregation { s.v.Field = &field @@ -53,8 +52,6 @@ func (s *_rateAggregation) Format(format string) *_rateAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_rateAggregation) Missing(missing types.MissingVariant) *_rateAggregation { s.v.Missing = *missing.MissingCaster() @@ -62,7 +59,6 @@ func (s *_rateAggregation) Missing(missing types.MissingVariant) *_rateAggregati return s } -// How the rate is calculated. func (s *_rateAggregation) Mode(mode ratemode.RateMode) *_rateAggregation { s.v.Mode = &mode @@ -76,8 +72,6 @@ func (s *_rateAggregation) Script(script types.ScriptVariant) *_rateAggregation return s } -// The interval used to calculate the rate. -// By default, the interval of the `date_histogram` is used. func (s *_rateAggregation) Unit(unit calendarinterval.CalendarInterval) *_rateAggregation { s.v.Unit = &unit diff --git a/typedapi/esdsl/ratelimitsetting.go b/typedapi/esdsl/ratelimitsetting.go index 1070a1758e..0b351de3ce 100644 --- a/typedapi/esdsl/ratelimitsetting.go +++ b/typedapi/esdsl/ratelimitsetting.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rateLimitSetting struct { v *types.RateLimitSetting @@ -32,7 +32,6 @@ func NewRateLimitSetting() *_rateLimitSetting { } -// The number of requests allowed per minute. func (s *_rateLimitSetting) RequestsPerMinute(requestsperminute int) *_rateLimitSetting { s.v.RequestsPerMinute = &requestsperminute diff --git a/typedapi/esdsl/readonlyurlrepository.go b/typedapi/esdsl/readonlyurlrepository.go index 924f517adb..cd5ebbba84 100644 --- a/typedapi/esdsl/readonlyurlrepository.go +++ b/typedapi/esdsl/readonlyurlrepository.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _readOnlyUrlRepository struct { v *types.ReadOnlyUrlRepository @@ -36,7 +36,6 @@ func NewReadOnlyUrlRepository(settings types.ReadOnlyUrlRepositorySettingsVarian } -// The repository settings. func (s *_readOnlyUrlRepository) Settings(settings types.ReadOnlyUrlRepositorySettingsVariant) *_readOnlyUrlRepository { s.v.Settings = *settings.ReadOnlyUrlRepositorySettingsCaster() diff --git a/typedapi/esdsl/readonlyurlrepositorysettings.go b/typedapi/esdsl/readonlyurlrepositorysettings.go index a7ba522218..51c8bc8bb3 100644 --- a/typedapi/esdsl/readonlyurlrepositorysettings.go +++ b/typedapi/esdsl/readonlyurlrepositorysettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _readOnlyUrlRepositorySettings struct { v *types.ReadOnlyUrlRepositorySettings @@ -36,16 +36,6 @@ func NewReadOnlyUrlRepositorySettings(url string) *_readOnlyUrlRepositorySetting } -// Big files can be broken down into multiple smaller blobs in the blob store -// during snapshotting. -// It is not recommended to change this value from its default unless there is -// an explicit reason for limiting the size of blobs in the repository. -// Setting a value lower than the default can result in an increased number of -// API calls to the blob store during snapshot create and restore operations -// compared to using the default value and thus make both operations slower and -// more costly. -// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B. -// The default varies by repository type. func (s *_readOnlyUrlRepositorySettings) ChunkSize(bytesize types.ByteSizeVariant) *_readOnlyUrlRepositorySettings { s.v.ChunkSize = *bytesize.ByteSizeCaster() @@ -53,9 +43,6 @@ func (s *_readOnlyUrlRepositorySettings) ChunkSize(bytesize types.ByteSizeVarian return s } -// When set to `true`, metadata files are stored in compressed format. -// This setting doesn't affect index files that are already compressed by -// default. func (s *_readOnlyUrlRepositorySettings) Compress(compress bool) *_readOnlyUrlRepositorySettings { s.v.Compress = &compress @@ -63,7 +50,6 @@ func (s *_readOnlyUrlRepositorySettings) Compress(compress bool) *_readOnlyUrlRe return s } -// The maximum number of retries for HTTP and HTTPS URLs. func (s *_readOnlyUrlRepositorySettings) HttpMaxRetries(httpmaxretries int) *_readOnlyUrlRepositorySettings { s.v.HttpMaxRetries = &httpmaxretries @@ -71,7 +57,6 @@ func (s *_readOnlyUrlRepositorySettings) HttpMaxRetries(httpmaxretries int) *_re return s } -// The maximum wait time for data transfers over a connection. func (s *_readOnlyUrlRepositorySettings) HttpSocketTimeout(duration types.DurationVariant) *_readOnlyUrlRepositorySettings { s.v.HttpSocketTimeout = *duration.DurationCaster() @@ -79,8 +64,6 @@ func (s *_readOnlyUrlRepositorySettings) HttpSocketTimeout(duration types.Durati return s } -// The maximum number of snapshots the repository can contain. -// The default is `Integer.MAX_VALUE`, which is 2^31-1 or `2147483647`. func (s *_readOnlyUrlRepositorySettings) MaxNumberOfSnapshots(maxnumberofsnapshots int) *_readOnlyUrlRepositorySettings { s.v.MaxNumberOfSnapshots = &maxnumberofsnapshots @@ -88,9 +71,6 @@ func (s *_readOnlyUrlRepositorySettings) MaxNumberOfSnapshots(maxnumberofsnapsho return s } -// The maximum snapshot restore rate per node. -// It defaults to unlimited. -// Note that restores are also throttled through recovery settings. func (s *_readOnlyUrlRepositorySettings) MaxRestoreBytesPerSec(bytesize types.ByteSizeVariant) *_readOnlyUrlRepositorySettings { s.v.MaxRestoreBytesPerSec = *bytesize.ByteSizeCaster() @@ -98,11 +78,6 @@ func (s *_readOnlyUrlRepositorySettings) MaxRestoreBytesPerSec(bytesize types.By return s } -// The maximum snapshot creation rate per node. -// It defaults to 40mb per second. -// Note that if the recovery settings for managed services are set, then it -// defaults to unlimited, and the rate is additionally throttled through -// recovery settings. func (s *_readOnlyUrlRepositorySettings) MaxSnapshotBytesPerSec(bytesize types.ByteSizeVariant) *_readOnlyUrlRepositorySettings { s.v.MaxSnapshotBytesPerSec = *bytesize.ByteSizeCaster() @@ -110,25 +85,6 @@ func (s *_readOnlyUrlRepositorySettings) MaxSnapshotBytesPerSec(bytesize types.B return s } -// The URL location of the root of the shared filesystem repository. -// The following protocols are supported: -// -// * `file` -// * `ftp` -// * `http` -// * `https` -// * `jar` -// -// URLs using the HTTP, HTTPS, or FTP protocols must be explicitly allowed with -// the `repositories.url.allowed_urls` cluster setting. -// This setting supports wildcards in the place of a host, path, query, or -// fragment in the URL. -// -// URLs using the file protocol must point to the location of a shared -// filesystem accessible to all master and data nodes in the cluster. -// This location must be registered in the `path.repo` setting. -// You don't need to register URLs using the FTP, HTTP, HTTPS, or JAR protocols -// in the `path.repo` setting. func (s *_readOnlyUrlRepositorySettings) Url(url string) *_readOnlyUrlRepositorySettings { s.v.Url = url diff --git a/typedapi/esdsl/redactprocessor.go b/typedapi/esdsl/redactprocessor.go index f0f02f6744..899350bd4a 100644 --- a/typedapi/esdsl/redactprocessor.go +++ b/typedapi/esdsl/redactprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _redactProcessor struct { v *types.RedactProcessor @@ -39,8 +39,6 @@ func NewRedactProcessor() *_redactProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_redactProcessor) Description(description string) *_redactProcessor { s.v.Description = &description @@ -48,7 +46,6 @@ func (s *_redactProcessor) Description(description string) *_redactProcessor { return s } -// The field to be redacted func (s *_redactProcessor) Field(field string) *_redactProcessor { s.v.Field = field @@ -56,7 +53,6 @@ func (s *_redactProcessor) Field(field string) *_redactProcessor { return s } -// Conditionally execute the processor. func (s *_redactProcessor) If(if_ types.ScriptVariant) *_redactProcessor { s.v.If = if_.ScriptCaster() @@ -64,7 +60,6 @@ func (s *_redactProcessor) If(if_ types.ScriptVariant) *_redactProcessor { return s } -// Ignore failures for the processor. func (s *_redactProcessor) IgnoreFailure(ignorefailure bool) *_redactProcessor { s.v.IgnoreFailure = &ignorefailure @@ -72,8 +67,6 @@ func (s *_redactProcessor) IgnoreFailure(ignorefailure bool) *_redactProcessor { return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document. func (s *_redactProcessor) IgnoreMissing(ignoremissing bool) *_redactProcessor { s.v.IgnoreMissing = &ignoremissing @@ -81,7 +74,6 @@ func (s *_redactProcessor) IgnoreMissing(ignoremissing bool) *_redactProcessor { return s } -// Handle failures for the processor. func (s *_redactProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_redactProcessor { for _, v := range onfailures { @@ -113,7 +105,6 @@ func (s *_redactProcessor) AddPatternDefinition(key string, value string) *_reda return s } -// A list of grok expressions to match and redact named captures with func (s *_redactProcessor) Patterns(patterns ...string) *_redactProcessor { for _, v := range patterns { @@ -124,7 +115,6 @@ func (s *_redactProcessor) Patterns(patterns ...string) *_redactProcessor { return s } -// Start a redacted section with this token func (s *_redactProcessor) Prefix(prefix string) *_redactProcessor { s.v.Prefix = &prefix @@ -132,8 +122,6 @@ func (s *_redactProcessor) Prefix(prefix string) *_redactProcessor { return s } -// If `true` and the current license does not support running redact processors, -// then the processor quietly exits without modifying the document func (s *_redactProcessor) SkipIfUnlicensed(skipifunlicensed bool) *_redactProcessor { s.v.SkipIfUnlicensed = &skipifunlicensed @@ -141,7 +129,6 @@ func (s *_redactProcessor) SkipIfUnlicensed(skipifunlicensed bool) *_redactProce return s } -// End a redacted section with this token func (s *_redactProcessor) Suffix(suffix string) *_redactProcessor { s.v.Suffix = &suffix @@ -149,8 +136,6 @@ func (s *_redactProcessor) Suffix(suffix string) *_redactProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_redactProcessor) Tag(tag string) *_redactProcessor { s.v.Tag = &tag @@ -158,8 +143,6 @@ func (s *_redactProcessor) Tag(tag string) *_redactProcessor { return s } -// If `true` then ingest metadata `_ingest._redact._is_redacted` is set to -// `true` if the document has been redacted func (s *_redactProcessor) TraceRedact(traceredact bool) *_redactProcessor { s.v.TraceRedact = &traceredact diff --git a/typedapi/esdsl/regexoptions.go b/typedapi/esdsl/regexoptions.go index 17d8ace5d0..7aa30f3204 100644 --- a/typedapi/esdsl/regexoptions.go +++ b/typedapi/esdsl/regexoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _regexOptions struct { v *types.RegexOptions @@ -32,7 +32,6 @@ func NewRegexOptions() *_regexOptions { } -// Optional operators for the regular expression. func (s *_regexOptions) Flags(flags string) *_regexOptions { s.v.Flags = flags @@ -40,7 +39,6 @@ func (s *_regexOptions) Flags(flags string) *_regexOptions { return s } -// Maximum number of automaton states required for the query. func (s *_regexOptions) MaxDeterminizedStates(maxdeterminizedstates int) *_regexOptions { s.v.MaxDeterminizedStates = &maxdeterminizedstates diff --git a/typedapi/esdsl/regexpquery.go b/typedapi/esdsl/regexpquery.go index df7d7e7abb..d2674836aa 100644 --- a/typedapi/esdsl/regexpquery.go +++ b/typedapi/esdsl/regexpquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _regexpQuery struct { k string @@ -38,11 +38,6 @@ func NewRegexpQuery(field string, value string) *_regexpQuery { return tmp } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_regexpQuery) Boost(boost float32) *_regexpQuery { s.v.Boost = &boost @@ -50,10 +45,6 @@ func (s *_regexpQuery) Boost(boost float32) *_regexpQuery { return s } -// Allows case insensitive matching of the regular expression value with the -// indexed field values when set to `true`. -// When `false`, case sensitivity of matching depends on the underlying field’s -// mapping. func (s *_regexpQuery) CaseInsensitive(caseinsensitive bool) *_regexpQuery { s.v.CaseInsensitive = &caseinsensitive @@ -61,7 +52,6 @@ func (s *_regexpQuery) CaseInsensitive(caseinsensitive bool) *_regexpQuery { return s } -// Enables optional operators for the regular expression. func (s *_regexpQuery) Flags(flags string) *_regexpQuery { s.v.Flags = &flags @@ -69,7 +59,6 @@ func (s *_regexpQuery) Flags(flags string) *_regexpQuery { return s } -// Maximum number of automaton states required for the query. func (s *_regexpQuery) MaxDeterminizedStates(maxdeterminizedstates int) *_regexpQuery { s.v.MaxDeterminizedStates = &maxdeterminizedstates @@ -84,7 +73,6 @@ func (s *_regexpQuery) QueryName_(queryname_ string) *_regexpQuery { return s } -// Method used to rewrite the query. func (s *_regexpQuery) Rewrite(multitermqueryrewrite string) *_regexpQuery { s.v.Rewrite = &multitermqueryrewrite @@ -92,7 +80,6 @@ func (s *_regexpQuery) Rewrite(multitermqueryrewrite string) *_regexpQuery { return s } -// Regular expression for terms you wish to find in the provided field. func (s *_regexpQuery) Value(value string) *_regexpQuery { s.v.Value = value diff --git a/typedapi/esdsl/regexvalidation.go b/typedapi/esdsl/regexvalidation.go index 2fd2037a84..894a42ad22 100644 --- a/typedapi/esdsl/regexvalidation.go +++ b/typedapi/esdsl/regexvalidation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _regexValidation struct { v *types.RegexValidation diff --git a/typedapi/esdsl/registereddomainprocessor.go b/typedapi/esdsl/registereddomainprocessor.go index b44e591735..9fd26eda05 100644 --- a/typedapi/esdsl/registereddomainprocessor.go +++ b/typedapi/esdsl/registereddomainprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _registeredDomainProcessor struct { v *types.RegisteredDomainProcessor @@ -36,8 +36,6 @@ func NewRegisteredDomainProcessor() *_registeredDomainProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_registeredDomainProcessor) Description(description string) *_registeredDomainProcessor { s.v.Description = &description @@ -45,7 +43,6 @@ func (s *_registeredDomainProcessor) Description(description string) *_registere return s } -// Field containing the source FQDN. func (s *_registeredDomainProcessor) Field(field string) *_registeredDomainProcessor { s.v.Field = field @@ -53,7 +50,6 @@ func (s *_registeredDomainProcessor) Field(field string) *_registeredDomainProce return s } -// Conditionally execute the processor. func (s *_registeredDomainProcessor) If(if_ types.ScriptVariant) *_registeredDomainProcessor { s.v.If = if_.ScriptCaster() @@ -61,7 +57,6 @@ func (s *_registeredDomainProcessor) If(if_ types.ScriptVariant) *_registeredDom return s } -// Ignore failures for the processor. func (s *_registeredDomainProcessor) IgnoreFailure(ignorefailure bool) *_registeredDomainProcessor { s.v.IgnoreFailure = &ignorefailure @@ -69,8 +64,6 @@ func (s *_registeredDomainProcessor) IgnoreFailure(ignorefailure bool) *_registe return s } -// If true and any required fields are missing, the processor quietly exits -// without modifying the document. func (s *_registeredDomainProcessor) IgnoreMissing(ignoremissing bool) *_registeredDomainProcessor { s.v.IgnoreMissing = &ignoremissing @@ -78,7 +71,6 @@ func (s *_registeredDomainProcessor) IgnoreMissing(ignoremissing bool) *_registe return s } -// Handle failures for the processor. func (s *_registeredDomainProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_registeredDomainProcessor { for _, v := range onfailures { @@ -89,8 +81,6 @@ func (s *_registeredDomainProcessor) OnFailure(onfailures ...types.ProcessorCont return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_registeredDomainProcessor) Tag(tag string) *_registeredDomainProcessor { s.v.Tag = &tag @@ -98,8 +88,6 @@ func (s *_registeredDomainProcessor) Tag(tag string) *_registeredDomainProcessor return s } -// Object field containing extracted domain components. If an empty string, -// the processor adds components to the document’s root. func (s *_registeredDomainProcessor) TargetField(field string) *_registeredDomainProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/regressioninferenceoptions.go b/typedapi/esdsl/regressioninferenceoptions.go index bba8f53c28..fdfd13d66d 100644 --- a/typedapi/esdsl/regressioninferenceoptions.go +++ b/typedapi/esdsl/regressioninferenceoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _regressionInferenceOptions struct { v *types.RegressionInferenceOptions @@ -33,7 +33,6 @@ func NewRegressionInferenceOptions() *_regressionInferenceOptions { } -// Specifies the maximum number of feature importance values per document. func (s *_regressionInferenceOptions) NumTopFeatureImportanceValues(numtopfeatureimportancevalues int) *_regressionInferenceOptions { s.v.NumTopFeatureImportanceValues = &numtopfeatureimportancevalues @@ -41,8 +40,6 @@ func (s *_regressionInferenceOptions) NumTopFeatureImportanceValues(numtopfeatur return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_regressionInferenceOptions) ResultsField(field string) *_regressionInferenceOptions { s.v.ResultsField = &field diff --git a/typedapi/esdsl/reindexdestination.go b/typedapi/esdsl/reindexdestination.go index 7bde5d885b..80abe4a8ae 100644 --- a/typedapi/esdsl/reindexdestination.go +++ b/typedapi/esdsl/reindexdestination.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/optype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "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/versiontype" ) type _reindexDestination struct { @@ -36,7 +36,6 @@ func NewReindexDestination() *_reindexDestination { } -// The name of the data stream, index, or index alias you are copying to. func (s *_reindexDestination) Index(indexname string) *_reindexDestination { s.v.Index = indexname @@ -44,18 +43,12 @@ func (s *_reindexDestination) Index(indexname string) *_reindexDestination { return s } -// If it is `create`, the operation will only index documents that do not -// already exist (also known as "put if absent"). -// -// IMPORTANT: To reindex to a data stream destination, this argument must be -// `create`. func (s *_reindexDestination) OpType(optype optype.OpType) *_reindexDestination { s.v.OpType = &optype return s } -// The name of the pipeline to use. func (s *_reindexDestination) Pipeline(pipeline string) *_reindexDestination { s.v.Pipeline = &pipeline @@ -63,14 +56,6 @@ func (s *_reindexDestination) Pipeline(pipeline string) *_reindexDestination { return s } -// By default, a document's routing is preserved unless it's changed by the -// script. -// If it is `keep`, the routing on the bulk request sent for each match is set -// to the routing on the match. -// If it is `discard`, the routing on the bulk request sent for each match is -// set to `null`. -// If it is `=value`, the routing on the bulk request sent for each match is set -// to all value specified after the equals sign (`=`). func (s *_reindexDestination) Routing(routing string) *_reindexDestination { s.v.Routing = &routing @@ -78,7 +63,6 @@ func (s *_reindexDestination) Routing(routing string) *_reindexDestination { return s } -// The versioning to use for the indexing operation. func (s *_reindexDestination) VersionType(versiontype versiontype.VersionType) *_reindexDestination { s.v.VersionType = &versiontype diff --git a/typedapi/esdsl/reindexsource.go b/typedapi/esdsl/reindexsource.go index 8be574329d..1722de45c3 100644 --- a/typedapi/esdsl/reindexsource.go +++ b/typedapi/esdsl/reindexsource.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _reindexSource struct { v *types.ReindexSource @@ -32,8 +32,6 @@ func NewReindexSource() *_reindexSource { } -// The name of the data stream, index, or alias you are copying from. -// It accepts a comma-separated list to reindex from multiple sources. func (s *_reindexSource) Index(indices ...string) *_reindexSource { s.v.Index = indices @@ -41,7 +39,6 @@ func (s *_reindexSource) Index(indices ...string) *_reindexSource { return s } -// The documents to reindex, which is defined with Query DSL. func (s *_reindexSource) Query(query types.QueryVariant) *_reindexSource { s.v.Query = query.QueryCaster() @@ -49,7 +46,6 @@ func (s *_reindexSource) Query(query types.QueryVariant) *_reindexSource { return s } -// A remote instance of Elasticsearch that you want to index from. func (s *_reindexSource) Remote(remote types.RemoteSourceVariant) *_reindexSource { s.v.Remote = remote.RemoteSourceCaster() @@ -64,9 +60,6 @@ func (s *_reindexSource) RuntimeMappings(runtimefields types.RuntimeFieldsVarian return s } -// The number of documents to index per batch. -// Use it when you are indexing from remote to ensure that the batches fit -// within the on-heap buffer, which defaults to a maximum size of 100 MB. func (s *_reindexSource) Size(size int) *_reindexSource { s.v.Size = &size @@ -74,8 +67,6 @@ func (s *_reindexSource) Size(size int) *_reindexSource { return s } -// Slice the reindex request manually using the provided slice ID and total -// number of slices. func (s *_reindexSource) Slice(slice types.SlicedScrollVariant) *_reindexSource { s.v.Slice = slice.SlicedScrollCaster() @@ -83,17 +74,6 @@ func (s *_reindexSource) Slice(slice types.SlicedScrollVariant) *_reindexSource return s } -// A comma-separated list of `:` pairs to sort by before -// indexing. -// Use it in conjunction with `max_docs` to control what documents are -// reindexed. -// -// WARNING: Sort in reindex is deprecated. -// Sorting in reindex was never guaranteed to index documents in order and -// prevents further development of reindex such as resilience and performance -// improvements. -// If used in combination with `max_docs`, consider using a query filter -// instead. func (s *_reindexSource) Sort(sorts ...types.SortCombinationsVariant) *_reindexSource { for _, v := range sorts { @@ -103,8 +83,6 @@ func (s *_reindexSource) Sort(sorts ...types.SortCombinationsVariant) *_reindexS return s } -// If `true`, reindex all source fields. -// Set it to a list to reindex select fields. func (s *_reindexSource) SourceFields_(fields ...string) *_reindexSource { s.v.SourceFields_ = fields diff --git a/typedapi/esdsl/remoteclusterprivileges.go b/typedapi/esdsl/remoteclusterprivileges.go index c73a5d4a94..b0b568cec2 100644 --- a/typedapi/esdsl/remoteclusterprivileges.go +++ b/typedapi/esdsl/remoteclusterprivileges.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/remoteclusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/remoteclusterprivilege" ) type _remoteClusterPrivileges struct { @@ -35,7 +35,6 @@ func NewRemoteClusterPrivileges() *_remoteClusterPrivileges { } -// A list of cluster aliases to which the permissions in this entry apply. func (s *_remoteClusterPrivileges) Clusters(names ...string) *_remoteClusterPrivileges { s.v.Clusters = names @@ -43,8 +42,6 @@ func (s *_remoteClusterPrivileges) Clusters(names ...string) *_remoteClusterPriv return s } -// The cluster level privileges that owners of the role have on the remote -// cluster. func (s *_remoteClusterPrivileges) Privileges(privileges ...remoteclusterprivilege.RemoteClusterPrivilege) *_remoteClusterPrivileges { for _, v := range privileges { diff --git a/typedapi/esdsl/remoteindicesprivileges.go b/typedapi/esdsl/remoteindicesprivileges.go index e99a4b6a8c..669f575992 100644 --- a/typedapi/esdsl/remoteindicesprivileges.go +++ b/typedapi/esdsl/remoteindicesprivileges.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexprivilege" ) type _remoteIndicesPrivileges struct { @@ -35,12 +35,6 @@ func NewRemoteIndicesPrivileges() *_remoteIndicesPrivileges { } -// Set to `true` if using wildcard or regular expressions for patterns that -// cover restricted indices. Implicitly, restricted indices have limited -// privileges that can cause pattern tests to fail. If restricted indices are -// explicitly included in the `names` list, Elasticsearch checks privileges -// against these indices regardless of the value set for -// `allow_restricted_indices`. func (s *_remoteIndicesPrivileges) AllowRestrictedIndices(allowrestrictedindices bool) *_remoteIndicesPrivileges { s.v.AllowRestrictedIndices = &allowrestrictedindices @@ -48,7 +42,6 @@ func (s *_remoteIndicesPrivileges) AllowRestrictedIndices(allowrestrictedindices return s } -// A list of cluster aliases to which the permissions in this entry apply. func (s *_remoteIndicesPrivileges) Clusters(names ...string) *_remoteIndicesPrivileges { s.v.Clusters = names @@ -56,7 +49,6 @@ func (s *_remoteIndicesPrivileges) Clusters(names ...string) *_remoteIndicesPriv return s } -// The document fields that the owners of the role have read access to. func (s *_remoteIndicesPrivileges) FieldSecurity(fieldsecurity types.FieldSecurityVariant) *_remoteIndicesPrivileges { s.v.FieldSecurity = fieldsecurity.FieldSecurityCaster() @@ -64,8 +56,6 @@ func (s *_remoteIndicesPrivileges) FieldSecurity(fieldsecurity types.FieldSecuri return s } -// A list of indices (or index name patterns) to which the permissions in this -// entry apply. func (s *_remoteIndicesPrivileges) Names(names ...string) *_remoteIndicesPrivileges { s.v.Names = make([]string, len(names)) @@ -74,8 +64,6 @@ func (s *_remoteIndicesPrivileges) Names(names ...string) *_remoteIndicesPrivile return s } -// The index level privileges that owners of the role have on the specified -// indices. func (s *_remoteIndicesPrivileges) Privileges(privileges ...indexprivilege.IndexPrivilege) *_remoteIndicesPrivileges { for _, v := range privileges { @@ -86,9 +74,6 @@ func (s *_remoteIndicesPrivileges) Privileges(privileges ...indexprivilege.Index return s } -// A search query that defines the documents the owners of the role have access -// to. A document within the specified indices must match this query for it to -// be accessible by the owners of the role. func (s *_remoteIndicesPrivileges) Query(indicesprivilegesquery types.IndicesPrivilegesQueryVariant) *_remoteIndicesPrivileges { s.v.Query = *indicesprivilegesquery.IndicesPrivilegesQueryCaster() diff --git a/typedapi/esdsl/remotesource.go b/typedapi/esdsl/remotesource.go index 69cab740c2..6b6b5b9f56 100644 --- a/typedapi/esdsl/remotesource.go +++ b/typedapi/esdsl/remotesource.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _remoteSource struct { v *types.RemoteSource @@ -32,7 +32,6 @@ func NewRemoteSource() *_remoteSource { } -// The remote connection timeout. func (s *_remoteSource) ConnectTimeout(duration types.DurationVariant) *_remoteSource { s.v.ConnectTimeout = *duration.DurationCaster() @@ -40,7 +39,6 @@ func (s *_remoteSource) ConnectTimeout(duration types.DurationVariant) *_remoteS return s } -// An object containing the headers of the request. func (s *_remoteSource) Headers(headers map[string]string) *_remoteSource { s.v.Headers = headers @@ -62,8 +60,6 @@ func (s *_remoteSource) AddHeader(key string, value string) *_remoteSource { return s } -// The URL for the remote instance of Elasticsearch that you want to index from. -// This information is required when you're indexing from remote. func (s *_remoteSource) Host(host string) *_remoteSource { s.v.Host = host @@ -71,7 +67,6 @@ func (s *_remoteSource) Host(host string) *_remoteSource { return s } -// The password to use for authentication with the remote host. func (s *_remoteSource) Password(password string) *_remoteSource { s.v.Password = &password @@ -79,7 +74,6 @@ func (s *_remoteSource) Password(password string) *_remoteSource { return s } -// The remote socket read timeout. func (s *_remoteSource) SocketTimeout(duration types.DurationVariant) *_remoteSource { s.v.SocketTimeout = *duration.DurationCaster() @@ -87,7 +81,6 @@ func (s *_remoteSource) SocketTimeout(duration types.DurationVariant) *_remoteSo return s } -// The username to use for authentication with the remote host. func (s *_remoteSource) Username(username string) *_remoteSource { s.v.Username = &username diff --git a/typedapi/esdsl/removeaction.go b/typedapi/esdsl/removeaction.go index 37920d394a..59d467e317 100644 --- a/typedapi/esdsl/removeaction.go +++ b/typedapi/esdsl/removeaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _removeAction struct { v *types.RemoveAction @@ -33,8 +33,6 @@ func NewRemoveAction() *_removeAction { } -// Alias for the action. -// Index alias names support date math. func (s *_removeAction) Alias(indexalias string) *_removeAction { s.v.Alias = &indexalias @@ -42,8 +40,6 @@ func (s *_removeAction) Alias(indexalias string) *_removeAction { return s } -// Aliases for the action. -// Index alias names support date math. func (s *_removeAction) Aliases(aliases ...string) *_removeAction { s.v.Aliases = make([]string, len(aliases)) @@ -52,8 +48,6 @@ func (s *_removeAction) Aliases(aliases ...string) *_removeAction { return s } -// Data stream or index for the action. -// Supports wildcards (`*`). func (s *_removeAction) Index(indexname string) *_removeAction { s.v.Index = &indexname @@ -61,8 +55,6 @@ func (s *_removeAction) Index(indexname string) *_removeAction { return s } -// Data streams or indices for the action. -// Supports wildcards (`*`). func (s *_removeAction) Indices(indices ...string) *_removeAction { s.v.Indices = indices @@ -70,7 +62,6 @@ func (s *_removeAction) Indices(indices ...string) *_removeAction { return s } -// If `true`, the alias must exist to perform the action. func (s *_removeAction) MustExist(mustexist bool) *_removeAction { s.v.MustExist = &mustexist diff --git a/typedapi/esdsl/removeduplicatestokenfilter.go b/typedapi/esdsl/removeduplicatestokenfilter.go index 21733cddd7..6ad460a906 100644 --- a/typedapi/esdsl/removeduplicatestokenfilter.go +++ b/typedapi/esdsl/removeduplicatestokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _removeDuplicatesTokenFilter struct { v *types.RemoveDuplicatesTokenFilter diff --git a/typedapi/esdsl/removeindexaction.go b/typedapi/esdsl/removeindexaction.go index e2a5634892..37a3b69262 100644 --- a/typedapi/esdsl/removeindexaction.go +++ b/typedapi/esdsl/removeindexaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _removeIndexAction struct { v *types.RemoveIndexAction @@ -34,8 +34,6 @@ func NewRemoveIndexAction() *_removeIndexAction { } -// Data stream or index for the action. -// Supports wildcards (`*`). func (s *_removeIndexAction) Index(indexname string) *_removeIndexAction { s.v.Index = &indexname @@ -43,8 +41,6 @@ func (s *_removeIndexAction) Index(indexname string) *_removeIndexAction { return s } -// Data streams or indices for the action. -// Supports wildcards (`*`). func (s *_removeIndexAction) Indices(indices ...string) *_removeIndexAction { s.v.Indices = indices @@ -52,7 +48,6 @@ func (s *_removeIndexAction) Indices(indices ...string) *_removeIndexAction { return s } -// If `true`, the alias must exist to perform the action. func (s *_removeIndexAction) MustExist(mustexist bool) *_removeIndexAction { s.v.MustExist = &mustexist diff --git a/typedapi/esdsl/removeprocessor.go b/typedapi/esdsl/removeprocessor.go index dfc80aa6f0..db4ed18466 100644 --- a/typedapi/esdsl/removeprocessor.go +++ b/typedapi/esdsl/removeprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _removeProcessor struct { v *types.RemoveProcessor @@ -34,8 +34,6 @@ func NewRemoveProcessor() *_removeProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_removeProcessor) Description(description string) *_removeProcessor { s.v.Description = &description @@ -43,7 +41,6 @@ func (s *_removeProcessor) Description(description string) *_removeProcessor { return s } -// Fields to be removed. Supports template snippets. func (s *_removeProcessor) Field(fields ...string) *_removeProcessor { s.v.Field = fields @@ -51,7 +48,6 @@ func (s *_removeProcessor) Field(fields ...string) *_removeProcessor { return s } -// Conditionally execute the processor. func (s *_removeProcessor) If(if_ types.ScriptVariant) *_removeProcessor { s.v.If = if_.ScriptCaster() @@ -59,7 +55,6 @@ func (s *_removeProcessor) If(if_ types.ScriptVariant) *_removeProcessor { return s } -// Ignore failures for the processor. func (s *_removeProcessor) IgnoreFailure(ignorefailure bool) *_removeProcessor { s.v.IgnoreFailure = &ignorefailure @@ -67,8 +62,6 @@ func (s *_removeProcessor) IgnoreFailure(ignorefailure bool) *_removeProcessor { return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document. func (s *_removeProcessor) IgnoreMissing(ignoremissing bool) *_removeProcessor { s.v.IgnoreMissing = &ignoremissing @@ -76,8 +69,6 @@ func (s *_removeProcessor) IgnoreMissing(ignoremissing bool) *_removeProcessor { return s } -// Fields to be kept. When set, all fields other than those specified are -// removed. func (s *_removeProcessor) Keep(fields ...string) *_removeProcessor { s.v.Keep = fields @@ -85,7 +76,6 @@ func (s *_removeProcessor) Keep(fields ...string) *_removeProcessor { return s } -// Handle failures for the processor. func (s *_removeProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_removeProcessor { for _, v := range onfailures { @@ -96,8 +86,6 @@ func (s *_removeProcessor) OnFailure(onfailures ...types.ProcessorContainerVaria return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_removeProcessor) Tag(tag string) *_removeProcessor { s.v.Tag = &tag diff --git a/typedapi/esdsl/renameprocessor.go b/typedapi/esdsl/renameprocessor.go index 22362339d0..49e2d7b8af 100644 --- a/typedapi/esdsl/renameprocessor.go +++ b/typedapi/esdsl/renameprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _renameProcessor struct { v *types.RenameProcessor @@ -35,8 +35,6 @@ func NewRenameProcessor() *_renameProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_renameProcessor) Description(description string) *_renameProcessor { s.v.Description = &description @@ -44,8 +42,6 @@ func (s *_renameProcessor) Description(description string) *_renameProcessor { return s } -// The field to be renamed. -// Supports template snippets. func (s *_renameProcessor) Field(field string) *_renameProcessor { s.v.Field = field @@ -53,7 +49,6 @@ func (s *_renameProcessor) Field(field string) *_renameProcessor { return s } -// Conditionally execute the processor. func (s *_renameProcessor) If(if_ types.ScriptVariant) *_renameProcessor { s.v.If = if_.ScriptCaster() @@ -61,7 +56,6 @@ func (s *_renameProcessor) If(if_ types.ScriptVariant) *_renameProcessor { return s } -// Ignore failures for the processor. func (s *_renameProcessor) IgnoreFailure(ignorefailure bool) *_renameProcessor { s.v.IgnoreFailure = &ignorefailure @@ -69,8 +63,6 @@ func (s *_renameProcessor) IgnoreFailure(ignorefailure bool) *_renameProcessor { return s } -// If `true` and `field` does not exist, the processor quietly exits without -// modifying the document. func (s *_renameProcessor) IgnoreMissing(ignoremissing bool) *_renameProcessor { s.v.IgnoreMissing = &ignoremissing @@ -78,7 +70,6 @@ func (s *_renameProcessor) IgnoreMissing(ignoremissing bool) *_renameProcessor { return s } -// Handle failures for the processor. func (s *_renameProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_renameProcessor { for _, v := range onfailures { @@ -89,8 +80,6 @@ func (s *_renameProcessor) OnFailure(onfailures ...types.ProcessorContainerVaria return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_renameProcessor) Tag(tag string) *_renameProcessor { s.v.Tag = &tag @@ -98,8 +87,6 @@ func (s *_renameProcessor) Tag(tag string) *_renameProcessor { return s } -// The new name of the field. -// Supports template snippets. func (s *_renameProcessor) TargetField(field string) *_renameProcessor { s.v.TargetField = field diff --git a/typedapi/esdsl/replicationaccess.go b/typedapi/esdsl/replicationaccess.go index eb5a3e2b7a..fa0a474df8 100644 --- a/typedapi/esdsl/replicationaccess.go +++ b/typedapi/esdsl/replicationaccess.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _replicationAccess struct { v *types.ReplicationAccess @@ -32,8 +32,6 @@ func NewReplicationAccess() *_replicationAccess { } -// This needs to be set to true if the patterns in the names field should cover -// system indices. func (s *_replicationAccess) AllowRestrictedIndices(allowrestrictedindices bool) *_replicationAccess { s.v.AllowRestrictedIndices = &allowrestrictedindices @@ -41,8 +39,6 @@ func (s *_replicationAccess) AllowRestrictedIndices(allowrestrictedindices bool) return s } -// A list of indices (or index name patterns) to which the permissions in this -// entry apply. func (s *_replicationAccess) Names(names ...string) *_replicationAccess { s.v.Names = make([]string, len(names)) diff --git a/typedapi/esdsl/reportingemailattachment.go b/typedapi/esdsl/reportingemailattachment.go index 178e895b87..87910dd7b3 100644 --- a/typedapi/esdsl/reportingemailattachment.go +++ b/typedapi/esdsl/reportingemailattachment.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _reportingEmailAttachment struct { v *types.ReportingEmailAttachment diff --git a/typedapi/esdsl/repository.go b/typedapi/esdsl/repository.go index c127bfc129..c4b40adf67 100644 --- a/typedapi/esdsl/repository.go +++ b/typedapi/esdsl/repository.go @@ -16,11 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" +) // This is provide all the types that are part of the union. type _repository struct { @@ -31,6 +35,13 @@ func NewRepository() *_repository { return &_repository{v: nil} } +// UnknownRepository is used to set the unknown value of the union. +// Highlited as @non_exhaustive in the specification. +func (u *_repository) UnknownRepository(unknown json.RawMessage) *_repository { + u.v = unknown + return u +} + func (u *_repository) AzureRepository(azurerepository types.AzureRepositoryVariant) *_repository { u.v = &azurerepository diff --git a/typedapi/esdsl/requestchatcompletion.go b/typedapi/esdsl/requestchatcompletion.go new file mode 100644 index 0000000000..86f4088a5b --- /dev/null +++ b/typedapi/esdsl/requestchatcompletion.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _requestChatCompletion struct { + v *types.RequestChatCompletion +} + +func NewRequestChatCompletion() *_requestChatCompletion { + + return &_requestChatCompletion{v: types.NewRequestChatCompletion()} + +} + +func (s *_requestChatCompletion) MaxCompletionTokens(maxcompletiontokens int64) *_requestChatCompletion { + + s.v.MaxCompletionTokens = &maxcompletiontokens + + return s +} + +func (s *_requestChatCompletion) Messages(messages ...types.MessageVariant) *_requestChatCompletion { + + for _, v := range messages { + + s.v.Messages = append(s.v.Messages, *v.MessageCaster()) + + } + return s +} + +func (s *_requestChatCompletion) Model(model string) *_requestChatCompletion { + + s.v.Model = &model + + return s +} + +func (s *_requestChatCompletion) Stop(stops ...string) *_requestChatCompletion { + + for _, v := range stops { + + s.v.Stop = append(s.v.Stop, v) + + } + return s +} + +func (s *_requestChatCompletion) Temperature(temperature float32) *_requestChatCompletion { + + s.v.Temperature = &temperature + + return s +} + +func (s *_requestChatCompletion) ToolChoice(completiontooltype types.CompletionToolTypeVariant) *_requestChatCompletion { + + s.v.ToolChoice = *completiontooltype.CompletionToolTypeCaster() + + return s +} + +func (s *_requestChatCompletion) Tools(tools ...types.CompletionToolVariant) *_requestChatCompletion { + + for _, v := range tools { + + s.v.Tools = append(s.v.Tools, *v.CompletionToolCaster()) + + } + return s +} + +func (s *_requestChatCompletion) TopP(topp float32) *_requestChatCompletion { + + s.v.TopP = &topp + + return s +} + +func (s *_requestChatCompletion) RequestChatCompletionCaster() *types.RequestChatCompletion { + return s.v +} diff --git a/typedapi/esdsl/requestitem.go b/typedapi/esdsl/requestitem.go index 8fbe1b10d9..f75bf5f4dc 100644 --- a/typedapi/esdsl/requestitem.go +++ b/typedapi/esdsl/requestitem.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _requestItem struct { diff --git a/typedapi/esdsl/rerouteprocessor.go b/typedapi/esdsl/rerouteprocessor.go index 9657b85a4f..9889624c7e 100644 --- a/typedapi/esdsl/rerouteprocessor.go +++ b/typedapi/esdsl/rerouteprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rerouteProcessor struct { v *types.RerouteProcessor @@ -38,20 +38,6 @@ func NewRerouteProcessor() *_rerouteProcessor { } -// Field references or a static value for the dataset part of the data stream -// name. -// In addition to the criteria for index names, cannot contain - and must be no -// longer than 100 characters. -// Example values are nginx.access and nginx.error. -// -// Supports field references with a mustache-like syntax (denoted as {{double}} -// or {{{triple}}} curly braces). -// When resolving field references, the processor replaces invalid characters -// with _. Uses the part -// of the index name as a fallback if all field references resolve to a null, -// missing, or non-string value. -// -// default {{data_stream.dataset}} func (s *_rerouteProcessor) Dataset(datasets ...string) *_rerouteProcessor { s.v.Dataset = make([]string, len(datasets)) @@ -60,8 +46,6 @@ func (s *_rerouteProcessor) Dataset(datasets ...string) *_rerouteProcessor { return s } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_rerouteProcessor) Description(description string) *_rerouteProcessor { s.v.Description = &description @@ -69,8 +53,6 @@ func (s *_rerouteProcessor) Description(description string) *_rerouteProcessor { return s } -// A static value for the target. Can’t be set when the dataset or namespace -// option is set. func (s *_rerouteProcessor) Destination(destination string) *_rerouteProcessor { s.v.Destination = &destination @@ -78,7 +60,6 @@ func (s *_rerouteProcessor) Destination(destination string) *_rerouteProcessor { return s } -// Conditionally execute the processor. func (s *_rerouteProcessor) If(if_ types.ScriptVariant) *_rerouteProcessor { s.v.If = if_.ScriptCaster() @@ -86,7 +67,6 @@ func (s *_rerouteProcessor) If(if_ types.ScriptVariant) *_rerouteProcessor { return s } -// Ignore failures for the processor. func (s *_rerouteProcessor) IgnoreFailure(ignorefailure bool) *_rerouteProcessor { s.v.IgnoreFailure = &ignorefailure @@ -94,18 +74,6 @@ func (s *_rerouteProcessor) IgnoreFailure(ignorefailure bool) *_rerouteProcessor return s } -// Field references or a static value for the namespace part of the data stream -// name. See the criteria for -// index names for allowed characters. Must be no longer than 100 characters. -// -// Supports field references with a mustache-like syntax (denoted as {{double}} -// or {{{triple}}} curly braces). -// When resolving field references, the processor replaces invalid characters -// with _. Uses the part -// of the index name as a fallback if all field references resolve to a null, -// missing, or non-string value. -// -// default {{data_stream.namespace}} func (s *_rerouteProcessor) Namespace(namespaces ...string) *_rerouteProcessor { s.v.Namespace = make([]string, len(namespaces)) @@ -114,7 +82,6 @@ func (s *_rerouteProcessor) Namespace(namespaces ...string) *_rerouteProcessor { return s } -// Handle failures for the processor. func (s *_rerouteProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_rerouteProcessor { for _, v := range onfailures { @@ -125,8 +92,6 @@ func (s *_rerouteProcessor) OnFailure(onfailures ...types.ProcessorContainerVari return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_rerouteProcessor) Tag(tag string) *_rerouteProcessor { s.v.Tag = &tag diff --git a/typedapi/esdsl/rescore.go b/typedapi/esdsl/rescore.go index f27f1d9103..2e3acdde7b 100644 --- a/typedapi/esdsl/rescore.go +++ b/typedapi/esdsl/rescore.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _rescore struct { diff --git a/typedapi/esdsl/rescorequery.go b/typedapi/esdsl/rescorequery.go index f53fa140e6..7ed6e4f1f3 100644 --- a/typedapi/esdsl/rescorequery.go +++ b/typedapi/esdsl/rescorequery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scoremode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scoremode" ) type _rescoreQuery struct { @@ -39,9 +39,6 @@ func NewRescoreQuery(query types.QueryVariant) *_rescoreQuery { } -// The query to use for rescoring. -// This query is only run on the Top-K results returned by the `query` and -// `post_filter` phases. func (s *_rescoreQuery) Query(query types.QueryVariant) *_rescoreQuery { s.v.Query = *query.QueryCaster() @@ -49,7 +46,6 @@ func (s *_rescoreQuery) Query(query types.QueryVariant) *_rescoreQuery { return s } -// Relative importance of the original query versus the rescore query. func (s *_rescoreQuery) QueryWeight(queryweight types.Float64) *_rescoreQuery { s.v.QueryWeight = &queryweight @@ -57,7 +53,6 @@ func (s *_rescoreQuery) QueryWeight(queryweight types.Float64) *_rescoreQuery { return s } -// Relative importance of the rescore query versus the original query. func (s *_rescoreQuery) RescoreQueryWeight(rescorequeryweight types.Float64) *_rescoreQuery { s.v.RescoreQueryWeight = &rescorequeryweight @@ -65,7 +60,6 @@ func (s *_rescoreQuery) RescoreQueryWeight(rescorequeryweight types.Float64) *_r return s } -// Determines how scores are combined. func (s *_rescoreQuery) ScoreMode(scoremode scoremode.ScoreMode) *_rescoreQuery { s.v.ScoreMode = &scoremode diff --git a/typedapi/esdsl/rescorevector.go b/typedapi/esdsl/rescorevector.go index 1ca184b697..3f598968df 100644 --- a/typedapi/esdsl/rescorevector.go +++ b/typedapi/esdsl/rescorevector.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rescoreVector struct { v *types.RescoreVector @@ -36,7 +36,6 @@ func NewRescoreVector(oversample float32) *_rescoreVector { } -// Applies the specified oversample factor to k on the approximate kNN search func (s *_rescoreVector) Oversample(oversample float32) *_rescoreVector { s.v.Oversample = oversample diff --git a/typedapi/esdsl/restriction.go b/typedapi/esdsl/restriction.go index abbc6d4eca..01f198b178 100644 --- a/typedapi/esdsl/restriction.go +++ b/typedapi/esdsl/restriction.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/restrictionworkflow" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/restrictionworkflow" ) type _restriction struct { @@ -35,9 +35,6 @@ func NewRestriction() *_restriction { } -// 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 -// single role descriptor. func (s *_restriction) Workflows(workflows ...restrictionworkflow.RestrictionWorkflow) *_restriction { for _, v := range workflows { diff --git a/typedapi/esdsl/retention.go b/typedapi/esdsl/retention.go index 732ee55aca..54c7e30ad3 100644 --- a/typedapi/esdsl/retention.go +++ b/typedapi/esdsl/retention.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _retention struct { v *types.Retention @@ -38,8 +38,6 @@ func NewRetention(maxcount int, mincount int) *_retention { } -// Time period after which a snapshot is considered expired and eligible for -// deletion. SLM deletes expired snapshots based on the slm.retention_schedule. func (s *_retention) ExpireAfter(duration types.DurationVariant) *_retention { s.v.ExpireAfter = *duration.DurationCaster() @@ -47,9 +45,6 @@ func (s *_retention) ExpireAfter(duration types.DurationVariant) *_retention { return s } -// Maximum number of snapshots to retain, even if the snapshots have not yet -// expired. If the number of snapshots in the repository exceeds this limit, the -// policy retains the most recent snapshots and deletes older snapshots. func (s *_retention) MaxCount(maxcount int) *_retention { s.v.MaxCount = maxcount @@ -57,7 +52,6 @@ func (s *_retention) MaxCount(maxcount int) *_retention { return s } -// Minimum number of snapshots to retain, even if the snapshots have expired. func (s *_retention) MinCount(mincount int) *_retention { s.v.MinCount = mincount diff --git a/typedapi/esdsl/retentionlease.go b/typedapi/esdsl/retentionlease.go index 7cdc2f98ec..a1983918fe 100644 --- a/typedapi/esdsl/retentionlease.go +++ b/typedapi/esdsl/retentionlease.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _retentionLease struct { v *types.RetentionLease diff --git a/typedapi/esdsl/retentionpolicy.go b/typedapi/esdsl/retentionpolicy.go index 462e4321ec..efa0971885 100644 --- a/typedapi/esdsl/retentionpolicy.go +++ b/typedapi/esdsl/retentionpolicy.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _retentionPolicy struct { v *types.RetentionPolicy @@ -33,7 +33,6 @@ func NewRetentionPolicy() *_retentionPolicy { } -// The date field that is used to calculate the age of the document. func (s *_retentionPolicy) Field(field string) *_retentionPolicy { s.v.Field = field @@ -41,9 +40,6 @@ func (s *_retentionPolicy) Field(field string) *_retentionPolicy { return s } -// Specifies the maximum age of a document in the destination index. Documents -// that are older than the configured -// value are removed from the destination index. func (s *_retentionPolicy) MaxAge(duration types.DurationVariant) *_retentionPolicy { s.v.MaxAge = *duration.DurationCaster() diff --git a/typedapi/esdsl/retentionpolicycontainer.go b/typedapi/esdsl/retentionpolicycontainer.go index ad4b9f83d2..d2cbadb0fe 100644 --- a/typedapi/esdsl/retentionpolicycontainer.go +++ b/typedapi/esdsl/retentionpolicycontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _retentionPolicyContainer struct { @@ -46,7 +46,6 @@ func (s *_retentionPolicyContainer) AdditionalRetentionPolicyContainerProperty(k return s } -// Specifies that the transform uses a time field to set the retention policy. func (s *_retentionPolicyContainer) Time(time types.RetentionPolicyVariant) *_retentionPolicyContainer { s.v.Time = time.RetentionPolicyCaster() diff --git a/typedapi/esdsl/retrievercontainer.go b/typedapi/esdsl/retrievercontainer.go index 21ff5e7893..c1044d55da 100644 --- a/typedapi/esdsl/retrievercontainer.go +++ b/typedapi/esdsl/retrievercontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _retrieverContainer struct { @@ -46,7 +46,6 @@ func (s *_retrieverContainer) AdditionalRetrieverContainerProperty(key string, v return s } -// A retriever that replaces the functionality of a knn search. func (s *_retrieverContainer) Knn(knn types.KnnRetrieverVariant) *_retrieverContainer { s.v.Knn = knn.KnnRetrieverCaster() @@ -54,7 +53,6 @@ func (s *_retrieverContainer) Knn(knn types.KnnRetrieverVariant) *_retrieverCont return s } -// A retriever that produces top documents from reciprocal rank fusion (RRF). func (s *_retrieverContainer) Rrf(rrf types.RRFRetrieverVariant) *_retrieverContainer { s.v.Rrf = rrf.RRFRetrieverCaster() @@ -62,7 +60,6 @@ func (s *_retrieverContainer) Rrf(rrf types.RRFRetrieverVariant) *_retrieverCont return s } -// A retriever that replaces the functionality of a rule query. func (s *_retrieverContainer) Rule(rule types.RuleRetrieverVariant) *_retrieverContainer { s.v.Rule = rule.RuleRetrieverCaster() @@ -70,7 +67,6 @@ func (s *_retrieverContainer) Rule(rule types.RuleRetrieverVariant) *_retrieverC return s } -// A retriever that replaces the functionality of a traditional query. func (s *_retrieverContainer) Standard(standard types.StandardRetrieverVariant) *_retrieverContainer { s.v.Standard = standard.StandardRetrieverCaster() @@ -78,8 +74,6 @@ func (s *_retrieverContainer) Standard(standard types.StandardRetrieverVariant) return s } -// A retriever that reranks the top documents based on a reranking model using -// the InferenceAPI func (s *_retrieverContainer) TextSimilarityReranker(textsimilarityreranker types.TextSimilarityRerankerVariant) *_retrieverContainer { s.v.TextSimilarityReranker = textsimilarityreranker.TextSimilarityRerankerCaster() diff --git a/typedapi/esdsl/reversenestedaggregation.go b/typedapi/esdsl/reversenestedaggregation.go index f81dc1b0e3..109558c755 100644 --- a/typedapi/esdsl/reversenestedaggregation.go +++ b/typedapi/esdsl/reversenestedaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _reverseNestedAggregation struct { v *types.ReverseNestedAggregation @@ -35,9 +35,6 @@ func NewReverseNestedAggregation() *_reverseNestedAggregation { } -// Defines the nested object field that should be joined back to. -// The default is empty, which means that it joins back to the root/main -// document level. func (s *_reverseNestedAggregation) Path(field string) *_reverseNestedAggregation { s.v.Path = &field diff --git a/typedapi/esdsl/reversetokenfilter.go b/typedapi/esdsl/reversetokenfilter.go index 72c5154bb0..09753f18a5 100644 --- a/typedapi/esdsl/reversetokenfilter.go +++ b/typedapi/esdsl/reversetokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _reverseTokenFilter struct { v *types.ReverseTokenFilter diff --git a/typedapi/esdsl/roledescriptor.go b/typedapi/esdsl/roledescriptor.go index 35fbfa0c46..5480b2840f 100644 --- a/typedapi/esdsl/roledescriptor.go +++ b/typedapi/esdsl/roledescriptor.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" ) type _roleDescriptor struct { @@ -37,7 +37,6 @@ func NewRoleDescriptor() *_roleDescriptor { } -// A list of application privilege entries func (s *_roleDescriptor) Applications(applications ...types.ApplicationPrivilegesVariant) *_roleDescriptor { for _, v := range applications { @@ -48,8 +47,6 @@ func (s *_roleDescriptor) Applications(applications ...types.ApplicationPrivileg return s } -// A list of cluster privileges. These privileges define the cluster level -// actions that API keys are able to execute. func (s *_roleDescriptor) Cluster(clusters ...clusterprivilege.ClusterPrivilege) *_roleDescriptor { for _, v := range clusters { @@ -60,7 +57,6 @@ func (s *_roleDescriptor) Cluster(clusters ...clusterprivilege.ClusterPrivilege) return s } -// Optional description of the role descriptor func (s *_roleDescriptor) Description(description string) *_roleDescriptor { s.v.Description = &description @@ -68,9 +64,6 @@ func (s *_roleDescriptor) Description(description string) *_roleDescriptor { return s } -// An object defining global privileges. A global privilege is a form of cluster -// privilege that is request-aware. Support for global privileges is currently -// limited to the management of application privileges. func (s *_roleDescriptor) Global(globals ...types.GlobalPrivilegeVariant) *_roleDescriptor { s.v.Global = make([]types.GlobalPrivilege, len(globals)) @@ -81,7 +74,6 @@ func (s *_roleDescriptor) Global(globals ...types.GlobalPrivilegeVariant) *_role return s } -// A list of indices permissions entries. func (s *_roleDescriptor) Indices(indices ...types.IndicesPrivilegesVariant) *_roleDescriptor { for _, v := range indices { @@ -92,8 +84,6 @@ func (s *_roleDescriptor) Indices(indices ...types.IndicesPrivilegesVariant) *_r return s } -// Optional meta-data. Within the metadata object, keys that begin with `_` are -// reserved for system usage. func (s *_roleDescriptor) Metadata(metadata types.MetadataVariant) *_roleDescriptor { s.v.Metadata = *metadata.MetadataCaster() @@ -101,8 +91,6 @@ func (s *_roleDescriptor) Metadata(metadata types.MetadataVariant) *_roleDescrip return s } -// A list of cluster permissions for remote clusters. -// NOTE: This is limited a subset of the cluster permissions. func (s *_roleDescriptor) RemoteCluster(remoteclusters ...types.RemoteClusterPrivilegesVariant) *_roleDescriptor { for _, v := range remoteclusters { @@ -113,7 +101,6 @@ func (s *_roleDescriptor) RemoteCluster(remoteclusters ...types.RemoteClusterPri return s } -// A list of indices permissions for remote clusters. func (s *_roleDescriptor) RemoteIndices(remoteindices ...types.RemoteIndicesPrivilegesVariant) *_roleDescriptor { for _, v := range remoteindices { @@ -124,7 +111,6 @@ func (s *_roleDescriptor) RemoteIndices(remoteindices ...types.RemoteIndicesPriv return s } -// Restriction for when the role descriptor is allowed to be effective. func (s *_roleDescriptor) Restriction(restriction types.RestrictionVariant) *_roleDescriptor { s.v.Restriction = restriction.RestrictionCaster() @@ -132,10 +118,6 @@ func (s *_roleDescriptor) Restriction(restriction types.RestrictionVariant) *_ro return s } -// A list of users that the API keys can impersonate. -// NOTE: In Elastic Cloud Serverless, the run-as feature is disabled. -// For API compatibility, you can still specify an empty `run_as` field, but a -// non-empty list will be rejected. func (s *_roleDescriptor) RunAs(runas ...string) *_roleDescriptor { for _, v := range runas { diff --git a/typedapi/esdsl/rolemappingrule.go b/typedapi/esdsl/rolemappingrule.go index 81bed3be67..af3766f357 100644 --- a/typedapi/esdsl/rolemappingrule.go +++ b/typedapi/esdsl/rolemappingrule.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _roleMappingRule struct { @@ -73,8 +73,6 @@ func (s *_roleMappingRule) Except(except types.RoleMappingRuleVariant) *_roleMap return s } -// - func (s *_roleMappingRule) RoleMappingRuleCaster() *types.RoleMappingRule { return s.v } diff --git a/typedapi/esdsl/rolequerycontainer.go b/typedapi/esdsl/rolequerycontainer.go index edf86011d6..d07ab9957e 100644 --- a/typedapi/esdsl/rolequerycontainer.go +++ b/typedapi/esdsl/rolequerycontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _roleQueryContainer struct { @@ -46,7 +46,6 @@ func (s *_roleQueryContainer) AdditionalRoleQueryContainerProperty(key string, v return s } -// matches roles matching boolean combinations of other queries. func (s *_roleQueryContainer) Bool(bool types.BoolQueryVariant) *_roleQueryContainer { s.v.Bool = bool.BoolQueryCaster() @@ -54,7 +53,6 @@ func (s *_roleQueryContainer) Bool(bool types.BoolQueryVariant) *_roleQueryConta return s } -// Returns roles that contain an indexed value for a field. func (s *_roleQueryContainer) Exists(exists types.ExistsQueryVariant) *_roleQueryContainer { s.v.Exists = exists.ExistsQueryCaster() @@ -62,8 +60,6 @@ func (s *_roleQueryContainer) Exists(exists types.ExistsQueryVariant) *_roleQuer return s } -// Returns roles based on their IDs. -// This query uses role document IDs stored in the `_id` field. func (s *_roleQueryContainer) Ids(ids types.IdsQueryVariant) *_roleQueryContainer { s.v.Ids = ids.IdsQueryCaster() @@ -71,8 +67,6 @@ func (s *_roleQueryContainer) Ids(ids types.IdsQueryVariant) *_roleQueryContaine return s } -// Returns roles that match a provided text, number, date or boolean value. -// The provided text is analyzed before matching. // Match is a single key dictionnary. // It will replace the current value on each call. func (s *_roleQueryContainer) Match(key string, value types.MatchQueryVariant) *_roleQueryContainer { @@ -85,7 +79,6 @@ func (s *_roleQueryContainer) Match(key string, value types.MatchQueryVariant) * return s } -// Matches all roles, giving them all a `_score` of 1.0. func (s *_roleQueryContainer) MatchAll(matchall types.MatchAllQueryVariant) *_roleQueryContainer { s.v.MatchAll = matchall.MatchAllQueryCaster() @@ -93,7 +86,6 @@ func (s *_roleQueryContainer) MatchAll(matchall types.MatchAllQueryVariant) *_ro return s } -// Returns roles that contain a specific prefix in a provided field. // Prefix is a single key dictionnary. // It will replace the current value on each call. func (s *_roleQueryContainer) Prefix(key string, value types.PrefixQueryVariant) *_roleQueryContainer { @@ -106,7 +98,6 @@ func (s *_roleQueryContainer) Prefix(key string, value types.PrefixQueryVariant) return s } -// Returns roles that contain terms within a provided range. // Range is a single key dictionnary. // It will replace the current value on each call. func (s *_roleQueryContainer) Range(key string, value types.RangeQueryVariant) *_roleQueryContainer { @@ -119,8 +110,6 @@ func (s *_roleQueryContainer) Range(key string, value types.RangeQueryVariant) * return s } -// Returns roles based on a provided query string, using a parser with a limited -// but fault-tolerant syntax. func (s *_roleQueryContainer) SimpleQueryString(simplequerystring types.SimpleQueryStringQueryVariant) *_roleQueryContainer { s.v.SimpleQueryString = simplequerystring.SimpleQueryStringQueryCaster() @@ -128,9 +117,6 @@ func (s *_roleQueryContainer) SimpleQueryString(simplequerystring types.SimpleQu return s } -// Returns roles that contain an exact term in a provided field. -// To return a document, the query term must exactly match the queried field's -// value, including whitespace and capitalization. // Term is a single key dictionnary. // It will replace the current value on each call. func (s *_roleQueryContainer) Term(key string, value types.TermQueryVariant) *_roleQueryContainer { @@ -143,9 +129,6 @@ func (s *_roleQueryContainer) Term(key string, value types.TermQueryVariant) *_r return s } -// 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 (s *_roleQueryContainer) Terms(terms types.TermsQueryVariant) *_roleQueryContainer { s.v.Terms = terms.TermsQueryCaster() @@ -153,7 +136,6 @@ func (s *_roleQueryContainer) Terms(terms types.TermsQueryVariant) *_roleQueryCo return s } -// Returns roles that contain terms matching a wildcard pattern. // Wildcard is a single key dictionnary. // It will replace the current value on each call. func (s *_roleQueryContainer) Wildcard(key string, value types.WildcardQueryVariant) *_roleQueryContainer { diff --git a/typedapi/esdsl/roletemplate.go b/typedapi/esdsl/roletemplate.go index 8e424a5bf3..eaf50c4aa0 100644 --- a/typedapi/esdsl/roletemplate.go +++ b/typedapi/esdsl/roletemplate.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/templateformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/templateformat" ) type _roleTemplate struct { diff --git a/typedapi/esdsl/roletemplateinlinequery.go b/typedapi/esdsl/roletemplateinlinequery.go index 1503877179..896128cf08 100644 --- a/typedapi/esdsl/roletemplateinlinequery.go +++ b/typedapi/esdsl/roletemplateinlinequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _roleTemplateInlineQuery struct { diff --git a/typedapi/esdsl/roletemplatequery.go b/typedapi/esdsl/roletemplatequery.go index 59b8150759..43b6dda689 100644 --- a/typedapi/esdsl/roletemplatequery.go +++ b/typedapi/esdsl/roletemplatequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _roleTemplateQuery struct { v *types.RoleTemplateQuery @@ -32,14 +32,6 @@ func NewRoleTemplateQuery() *_roleTemplateQuery { } -// When you create a role, you can specify a query that defines the document -// level security permissions. You can optionally -// use Mustache templates in the role query to insert the username of the -// current authenticated user into the role. -// Like other places in Elasticsearch that support templating or scripting, you -// can specify inline, stored, or file-based -// templates and define custom parameters. You access the details for the -// current authenticated user through the _user parameter. func (s *_roleTemplateQuery) Template(template types.RoleTemplateScriptVariant) *_roleTemplateQuery { s.v.Template = template.RoleTemplateScriptCaster() diff --git a/typedapi/esdsl/roletemplatescript.go b/typedapi/esdsl/roletemplatescript.go index 4de49f0e8c..82d8d728f5 100644 --- a/typedapi/esdsl/roletemplatescript.go +++ b/typedapi/esdsl/roletemplatescript.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptlanguage" ) type _roleTemplateScript struct { @@ -37,7 +37,6 @@ func NewRoleTemplateScript() *_roleTemplateScript { } -// The `id` for a stored script. func (s *_roleTemplateScript) Id(id string) *_roleTemplateScript { s.v.Id = &id @@ -45,7 +44,6 @@ func (s *_roleTemplateScript) Id(id string) *_roleTemplateScript { return s } -// Specifies the language the script is written in. func (s *_roleTemplateScript) Lang(lang scriptlanguage.ScriptLanguage) *_roleTemplateScript { s.v.Lang = &lang @@ -73,8 +71,6 @@ func (s *_roleTemplateScript) AddOption(key string, value string) *_roleTemplate return s } -// Specifies any named parameters that are passed into the script as variables. -// Use parameters instead of hard-coded values to decrease compile time. func (s *_roleTemplateScript) Params(params map[string]json.RawMessage) *_roleTemplateScript { s.v.Params = params diff --git a/typedapi/esdsl/rolloveraction.go b/typedapi/esdsl/rolloveraction.go index 141b081541..00a1071caf 100644 --- a/typedapi/esdsl/rolloveraction.go +++ b/typedapi/esdsl/rolloveraction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rolloverAction struct { v *types.RolloverAction diff --git a/typedapi/esdsl/rolloverconditions.go b/typedapi/esdsl/rolloverconditions.go index 16f69b62bc..29711ff93c 100644 --- a/typedapi/esdsl/rolloverconditions.go +++ b/typedapi/esdsl/rolloverconditions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rolloverConditions struct { v *types.RolloverConditions diff --git a/typedapi/esdsl/romaniananalyzer.go b/typedapi/esdsl/romaniananalyzer.go index 053a58abc9..92efa957d2 100644 --- a/typedapi/esdsl/romaniananalyzer.go +++ b/typedapi/esdsl/romaniananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _romanianAnalyzer struct { v *types.RomanianAnalyzer diff --git a/typedapi/esdsl/routingfield.go b/typedapi/esdsl/routingfield.go index c10998a225..bcc10724ff 100644 --- a/typedapi/esdsl/routingfield.go +++ b/typedapi/esdsl/routingfield.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _routingField struct { v *types.RoutingField diff --git a/typedapi/esdsl/rrfrank.go b/typedapi/esdsl/rrfrank.go index 8a16e86f2f..4777a97953 100644 --- a/typedapi/esdsl/rrfrank.go +++ b/typedapi/esdsl/rrfrank.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rrfRank struct { v *types.RrfRank @@ -33,8 +33,6 @@ func NewRrfRank() *_rrfRank { } -// How much influence documents in individual result sets per query have over -// the final ranked result set func (s *_rrfRank) RankConstant(rankconstant int64) *_rrfRank { s.v.RankConstant = &rankconstant @@ -42,7 +40,6 @@ func (s *_rrfRank) RankConstant(rankconstant int64) *_rrfRank { return s } -// Size of the individual result sets per query func (s *_rrfRank) RankWindowSize(rankwindowsize int64) *_rrfRank { s.v.RankWindowSize = &rankwindowsize diff --git a/typedapi/esdsl/rrfretriever.go b/typedapi/esdsl/rrfretriever.go index 5d63909861..0a82f10855 100644 --- a/typedapi/esdsl/rrfretriever.go +++ b/typedapi/esdsl/rrfretriever.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _rRFRetriever struct { v *types.RRFRetriever @@ -33,7 +33,6 @@ func NewRRFRetriever() *_rRFRetriever { } -// Query to filter the documents that can match. func (s *_rRFRetriever) Filter(filters ...types.QueryVariant) *_rRFRetriever { s.v.Filter = make([]types.Query, len(filters)) @@ -44,8 +43,6 @@ func (s *_rRFRetriever) Filter(filters ...types.QueryVariant) *_rRFRetriever { return s } -// Minimum _score for matching documents. Documents with a lower _score are not -// included in the top documents. func (s *_rRFRetriever) MinScore(minscore float32) *_rRFRetriever { s.v.MinScore = &minscore @@ -53,8 +50,6 @@ func (s *_rRFRetriever) MinScore(minscore float32) *_rRFRetriever { return s } -// This value determines how much influence documents in individual result sets -// per query have over the final ranked result set. func (s *_rRFRetriever) RankConstant(rankconstant int) *_rRFRetriever { s.v.RankConstant = &rankconstant @@ -62,7 +57,6 @@ func (s *_rRFRetriever) RankConstant(rankconstant int) *_rRFRetriever { return s } -// This value determines the size of the individual result sets per query. func (s *_rRFRetriever) RankWindowSize(rankwindowsize int) *_rRFRetriever { s.v.RankWindowSize = &rankwindowsize @@ -70,8 +64,6 @@ func (s *_rRFRetriever) RankWindowSize(rankwindowsize int) *_rRFRetriever { return s } -// A list of child retrievers to specify which sets of returned top documents -// will have the RRF formula applied to them. func (s *_rRFRetriever) Retrievers(retrievers ...types.RetrieverContainerVariant) *_rRFRetriever { for _, v := range retrievers { diff --git a/typedapi/esdsl/rulecondition.go b/typedapi/esdsl/rulecondition.go index 5130c8842b..398fd7503a 100644 --- a/typedapi/esdsl/rulecondition.go +++ b/typedapi/esdsl/rulecondition.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/appliesto" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionoperator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/appliesto" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/conditionoperator" ) type _ruleCondition struct { @@ -44,24 +44,18 @@ func NewRuleCondition(appliesto appliesto.AppliesTo, operator conditionoperator. } -// Specifies the result property to which the condition applies. If your -// detector uses `lat_long`, `metric`, `rare`, or `freq_rare` functions, you can -// only specify conditions that apply to time. func (s *_ruleCondition) AppliesTo(appliesto appliesto.AppliesTo) *_ruleCondition { s.v.AppliesTo = appliesto return s } -// Specifies the condition operator. The available options are greater than, -// greater than or equals, less than, and less than or equals. func (s *_ruleCondition) Operator(operator conditionoperator.ConditionOperator) *_ruleCondition { s.v.Operator = operator return s } -// The value that is compared against the `applies_to` field using the operator. func (s *_ruleCondition) Value(value types.Float64) *_ruleCondition { s.v.Value = value diff --git a/typedapi/esdsl/rulequery.go b/typedapi/esdsl/rulequery.go index 60ad6a87af..a7b9f75084 100644 --- a/typedapi/esdsl/rulequery.go +++ b/typedapi/esdsl/rulequery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _ruleQuery struct { @@ -42,11 +42,6 @@ func NewRuleQuery(matchcriteria json.RawMessage, organic types.QueryVariant) *_r } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_ruleQuery) Boost(boost float32) *_ruleQuery { s.v.Boost = &boost diff --git a/typedapi/esdsl/ruleretriever.go b/typedapi/esdsl/ruleretriever.go index bef15740b0..1947b3d51f 100644 --- a/typedapi/esdsl/ruleretriever.go +++ b/typedapi/esdsl/ruleretriever.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _ruleRetriever struct { @@ -43,7 +43,6 @@ func NewRuleRetriever(matchcriteria json.RawMessage, retriever types.RetrieverCo } -// Query to filter the documents that can match. func (s *_ruleRetriever) Filter(filters ...types.QueryVariant) *_ruleRetriever { s.v.Filter = make([]types.Query, len(filters)) @@ -54,8 +53,6 @@ func (s *_ruleRetriever) Filter(filters ...types.QueryVariant) *_ruleRetriever { return s } -// The match criteria that will determine if a rule in the provided rulesets -// should be applied. func (s *_ruleRetriever) MatchCriteria(matchcriteria json.RawMessage) *_ruleRetriever { s.v.MatchCriteria = matchcriteria @@ -63,8 +60,6 @@ func (s *_ruleRetriever) MatchCriteria(matchcriteria json.RawMessage) *_ruleRetr return s } -// Minimum _score for matching documents. Documents with a lower _score are not -// included in the top documents. func (s *_ruleRetriever) MinScore(minscore float32) *_ruleRetriever { s.v.MinScore = &minscore @@ -72,7 +67,6 @@ func (s *_ruleRetriever) MinScore(minscore float32) *_ruleRetriever { return s } -// This value determines the size of the individual result set. func (s *_ruleRetriever) RankWindowSize(rankwindowsize int) *_ruleRetriever { s.v.RankWindowSize = &rankwindowsize @@ -80,7 +74,6 @@ func (s *_ruleRetriever) RankWindowSize(rankwindowsize int) *_ruleRetriever { return s } -// The retriever whose results rules should be applied to. func (s *_ruleRetriever) Retriever(retriever types.RetrieverContainerVariant) *_ruleRetriever { s.v.Retriever = *retriever.RetrieverContainerCaster() @@ -88,7 +81,6 @@ func (s *_ruleRetriever) Retriever(retriever types.RetrieverContainerVariant) *_ return s } -// The ruleset IDs containing the rules this retriever is evaluating against. func (s *_ruleRetriever) RulesetIds(rulesetids ...string) *_ruleRetriever { for _, v := range rulesetids { diff --git a/typedapi/esdsl/runtimefield.go b/typedapi/esdsl/runtimefield.go index 1faf8662f9..b156b4175e 100644 --- a/typedapi/esdsl/runtimefield.go +++ b/typedapi/esdsl/runtimefield.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/runtimefieldtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/runtimefieldtype" ) type _runtimeField struct { @@ -39,7 +39,6 @@ func NewRuntimeField(type_ runtimefieldtype.RuntimeFieldType) *_runtimeField { } -// For type `lookup` func (s *_runtimeField) FetchFields(fetchfields ...types.RuntimeFieldFetchFieldsVariant) *_runtimeField { for _, v := range fetchfields { @@ -50,7 +49,6 @@ func (s *_runtimeField) FetchFields(fetchfields ...types.RuntimeFieldFetchFields return s } -// For type `composite` func (s *_runtimeField) Fields(fields map[string]types.CompositeSubField) *_runtimeField { s.v.Fields = fields @@ -72,7 +70,6 @@ func (s *_runtimeField) AddField(key string, value types.CompositeSubFieldVarian return s } -// A custom format for `date` type runtime fields. func (s *_runtimeField) Format(format string) *_runtimeField { s.v.Format = &format @@ -80,7 +77,6 @@ func (s *_runtimeField) Format(format string) *_runtimeField { return s } -// For type `lookup` func (s *_runtimeField) InputField(field string) *_runtimeField { s.v.InputField = &field @@ -88,7 +84,6 @@ func (s *_runtimeField) InputField(field string) *_runtimeField { return s } -// Painless script executed at query time. func (s *_runtimeField) Script(script types.ScriptVariant) *_runtimeField { s.v.Script = script.ScriptCaster() @@ -96,7 +91,6 @@ func (s *_runtimeField) Script(script types.ScriptVariant) *_runtimeField { return s } -// For type `lookup` func (s *_runtimeField) TargetField(field string) *_runtimeField { s.v.TargetField = &field @@ -104,7 +98,6 @@ func (s *_runtimeField) TargetField(field string) *_runtimeField { return s } -// For type `lookup` func (s *_runtimeField) TargetIndex(indexname string) *_runtimeField { s.v.TargetIndex = &indexname @@ -112,8 +105,6 @@ func (s *_runtimeField) TargetIndex(indexname string) *_runtimeField { return s } -// Field type, which can be: `boolean`, `composite`, `date`, `double`, -// `geo_point`, `ip`,`keyword`, `long`, or `lookup`. func (s *_runtimeField) Type(type_ runtimefieldtype.RuntimeFieldType) *_runtimeField { s.v.Type = type_ diff --git a/typedapi/esdsl/runtimefieldfetchfields.go b/typedapi/esdsl/runtimefieldfetchfields.go index c16cf8c245..67d646dc8b 100644 --- a/typedapi/esdsl/runtimefieldfetchfields.go +++ b/typedapi/esdsl/runtimefieldfetchfields.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _runtimeFieldFetchFields struct { v *types.RuntimeFieldFetchFields diff --git a/typedapi/esdsl/runtimefields.go b/typedapi/esdsl/runtimefields.go index 39377da907..b0ac3e85b3 100644 --- a/typedapi/esdsl/runtimefields.go +++ b/typedapi/esdsl/runtimefields.go @@ -16,19 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _runtimeFields struct { v types.RuntimeFields } -func NewRuntimeFields(runtimefields types.RuntimeFieldVariant) *_runtimeFields { - return &_runtimeFields{v: make(map[string]types.RuntimeField, 0)} +func NewRuntimeFields(runtimefields map[string]types.RuntimeField) *_runtimeFields { + return &_runtimeFields{v: runtimefields} } func (u *_runtimeFields) RuntimeFieldsCaster() *types.RuntimeFields { diff --git a/typedapi/esdsl/russiananalyzer.go b/typedapi/esdsl/russiananalyzer.go index 94b58a1992..4cda0aeaf2 100644 --- a/typedapi/esdsl/russiananalyzer.go +++ b/typedapi/esdsl/russiananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _russianAnalyzer struct { v *types.RussianAnalyzer diff --git a/typedapi/esdsl/s3repository.go b/typedapi/esdsl/s3repository.go index 22e1cb02dc..037403fba3 100644 --- a/typedapi/esdsl/s3repository.go +++ b/typedapi/esdsl/s3repository.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _s3Repository struct { v *types.S3Repository @@ -36,14 +36,6 @@ func NewS3Repository(settings types.S3RepositorySettingsVariant) *_s3Repository } -// The repository settings. -// -// NOTE: In addition to the specified settings, you can also use all non-secure -// client settings in the repository settings. -// In this case, the client settings found in the repository settings will be -// merged with those of the named client used by the repository. -// Conflicts between client and repository settings are resolved by the -// repository settings taking precedence over client settings. func (s *_s3Repository) Settings(settings types.S3RepositorySettingsVariant) *_s3Repository { s.v.Settings = *settings.S3RepositorySettingsCaster() diff --git a/typedapi/esdsl/s3repositorysettings.go b/typedapi/esdsl/s3repositorysettings.go index ecbf872039..24f096a4a6 100644 --- a/typedapi/esdsl/s3repositorysettings.go +++ b/typedapi/esdsl/s3repositorysettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _s3RepositorySettings struct { v *types.S3RepositorySettings @@ -36,15 +36,6 @@ func NewS3RepositorySettings(bucket string) *_s3RepositorySettings { } -// The path to the repository data within its bucket. -// It defaults to an empty string, meaning that the repository is at the root of -// the bucket. -// The value of this setting should not start or end with a forward slash (`/`). -// -// NOTE: Don't set base_path when configuring a snapshot repository for Elastic -// Cloud Enterprise. -// Elastic Cloud Enterprise automatically generates the `base_path` for each -// deployment so that multiple deployments may share the same bucket. func (s *_s3RepositorySettings) BasePath(basepath string) *_s3RepositorySettings { s.v.BasePath = &basepath @@ -52,8 +43,6 @@ func (s *_s3RepositorySettings) BasePath(basepath string) *_s3RepositorySettings return s } -// The name of the S3 bucket to use for snapshots. -// The bucket name must adhere to Amazon's S3 bucket naming rules. func (s *_s3RepositorySettings) Bucket(bucket string) *_s3RepositorySettings { s.v.Bucket = bucket @@ -61,16 +50,6 @@ func (s *_s3RepositorySettings) Bucket(bucket string) *_s3RepositorySettings { return s } -// The minimum threshold below which the chunk is uploaded using a single -// request. -// Beyond this threshold, the S3 repository will use the AWS Multipart Upload -// API to split the chunk into several parts, each of `buffer_size` length, and -// to upload each part in its own request. -// Note that setting a buffer size lower than 5mb is not allowed since it will -// prevent the use of the Multipart API and may result in upload errors. -// It is also not possible to set a buffer size greater than 5gb as it is the -// maximum upload size allowed by S3. -// Defaults to `100mb` or 5% of JVM heap, whichever is smaller. func (s *_s3RepositorySettings) BufferSize(bytesize types.ByteSizeVariant) *_s3RepositorySettings { s.v.BufferSize = *bytesize.ByteSizeCaster() @@ -78,12 +57,6 @@ func (s *_s3RepositorySettings) BufferSize(bytesize types.ByteSizeVariant) *_s3R return s } -// The S3 repository supports all S3 canned ACLs: `private`, `public-read`, -// `public-read-write`, `authenticated-read`, `log-delivery-write`, -// `bucket-owner-read`, `bucket-owner-full-control`. -// You could specify a canned ACL using the `canned_acl` setting. -// When the S3 repository creates buckets and objects, it adds the canned ACL -// into the buckets and objects. func (s *_s3RepositorySettings) CannedAcl(cannedacl string) *_s3RepositorySettings { s.v.CannedAcl = &cannedacl @@ -91,16 +64,6 @@ func (s *_s3RepositorySettings) CannedAcl(cannedacl string) *_s3RepositorySettin return s } -// Big files can be broken down into multiple smaller blobs in the blob store -// during snapshotting. -// It is not recommended to change this value from its default unless there is -// an explicit reason for limiting the size of blobs in the repository. -// Setting a value lower than the default can result in an increased number of -// API calls to the blob store during snapshot create and restore operations -// compared to using the default value and thus make both operations slower and -// more costly. -// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B. -// The default varies by repository type. func (s *_s3RepositorySettings) ChunkSize(bytesize types.ByteSizeVariant) *_s3RepositorySettings { s.v.ChunkSize = *bytesize.ByteSizeCaster() @@ -108,7 +71,6 @@ func (s *_s3RepositorySettings) ChunkSize(bytesize types.ByteSizeVariant) *_s3Re return s } -// The name of the S3 client to use to connect to S3. func (s *_s3RepositorySettings) Client(client string) *_s3RepositorySettings { s.v.Client = &client @@ -116,9 +78,6 @@ func (s *_s3RepositorySettings) Client(client string) *_s3RepositorySettings { return s } -// When set to `true`, metadata files are stored in compressed format. -// This setting doesn't affect index files that are already compressed by -// default. func (s *_s3RepositorySettings) Compress(compress bool) *_s3RepositorySettings { s.v.Compress = &compress @@ -126,10 +85,6 @@ func (s *_s3RepositorySettings) Compress(compress bool) *_s3RepositorySettings { return s } -// The maxmimum batch size, between 1 and 1000, used for `DeleteObjects` -// requests. -// Defaults to 1000 which is the maximum number supported by the AWS -// DeleteObjects API. func (s *_s3RepositorySettings) DeleteObjectsMaxSize(deleteobjectsmaxsize int) *_s3RepositorySettings { s.v.DeleteObjectsMaxSize = &deleteobjectsmaxsize @@ -137,8 +92,6 @@ func (s *_s3RepositorySettings) DeleteObjectsMaxSize(deleteobjectsmaxsize int) * return s } -// The time to wait before trying again if an attempt to read a linearizable -// register fails. func (s *_s3RepositorySettings) GetRegisterRetryDelay(duration types.DurationVariant) *_s3RepositorySettings { s.v.GetRegisterRetryDelay = *duration.DurationCaster() @@ -146,14 +99,6 @@ func (s *_s3RepositorySettings) GetRegisterRetryDelay(duration types.DurationVar return s } -// The maximum number of parts that Elasticsearch will write during a multipart -// upload of a single object. -// Files which are larger than `buffer_size × max_multipart_parts` will be -// chunked into several smaller objects. -// Elasticsearch may also split a file across multiple objects to satisfy other -// constraints such as the `chunk_size` limit. -// Defaults to `10000` which is the maximum number of parts in a multipart -// upload in AWS S3. func (s *_s3RepositorySettings) MaxMultipartParts(maxmultipartparts int) *_s3RepositorySettings { s.v.MaxMultipartParts = &maxmultipartparts @@ -161,12 +106,6 @@ func (s *_s3RepositorySettings) MaxMultipartParts(maxmultipartparts int) *_s3Rep return s } -// The maximum number of possibly-dangling multipart uploads to clean up in each -// batch of snapshot deletions. -// Defaults to 1000 which is the maximum number supported by the AWS -// ListMultipartUploads API. -// If set to `0`, Elasticsearch will not attempt to clean up dangling multipart -// uploads. func (s *_s3RepositorySettings) MaxMultipartUploadCleanupSize(maxmultipartuploadcleanupsize int) *_s3RepositorySettings { s.v.MaxMultipartUploadCleanupSize = &maxmultipartuploadcleanupsize @@ -174,9 +113,6 @@ func (s *_s3RepositorySettings) MaxMultipartUploadCleanupSize(maxmultipartupload return s } -// The maximum snapshot restore rate per node. -// It defaults to unlimited. -// Note that restores are also throttled through recovery settings. func (s *_s3RepositorySettings) MaxRestoreBytesPerSec(bytesize types.ByteSizeVariant) *_s3RepositorySettings { s.v.MaxRestoreBytesPerSec = *bytesize.ByteSizeCaster() @@ -184,11 +120,6 @@ func (s *_s3RepositorySettings) MaxRestoreBytesPerSec(bytesize types.ByteSizeVar return s } -// The maximum snapshot creation rate per node. -// It defaults to 40mb per second. -// Note that if the recovery settings for managed services are set, then it -// defaults to unlimited, and the rate is additionally throttled through -// recovery settings. func (s *_s3RepositorySettings) MaxSnapshotBytesPerSec(bytesize types.ByteSizeVariant) *_s3RepositorySettings { s.v.MaxSnapshotBytesPerSec = *bytesize.ByteSizeCaster() @@ -196,21 +127,6 @@ func (s *_s3RepositorySettings) MaxSnapshotBytesPerSec(bytesize types.ByteSizeVa return s } -// If true, the repository is read-only. -// The cluster can retrieve and restore snapshots from the repository but not -// write to the repository or create snapshots in it. -// -// Only a cluster with write access can create snapshots in the repository. -// All other clusters connected to the repository should have the `readonly` -// parameter set to `true`. -// -// If `false`, the cluster can write to the repository and create snapshots in -// it. -// -// IMPORTANT: If you register the same snapshot repository with multiple -// clusters, only one cluster should have write access to the repository. -// Having multiple clusters write to the repository at the same time risks -// corrupting the contents of the repository. func (s *_s3RepositorySettings) Readonly(readonly bool) *_s3RepositorySettings { s.v.Readonly = &readonly @@ -218,8 +134,6 @@ func (s *_s3RepositorySettings) Readonly(readonly bool) *_s3RepositorySettings { return s } -// When set to `true`, files are encrypted on server side using an AES256 -// algorithm. func (s *_s3RepositorySettings) ServerSideEncryption(serversideencryption bool) *_s3RepositorySettings { s.v.ServerSideEncryption = &serversideencryption @@ -227,9 +141,6 @@ func (s *_s3RepositorySettings) ServerSideEncryption(serversideencryption bool) return s } -// The S3 storage class for objects written to the repository. -// Values may be `standard`, `reduced_redundancy`, `standard_ia`, `onezone_ia`, -// and `intelligent_tiering`. func (s *_s3RepositorySettings) StorageClass(storageclass string) *_s3RepositorySettings { s.v.StorageClass = &storageclass @@ -237,9 +148,6 @@ func (s *_s3RepositorySettings) StorageClass(storageclass string) *_s3Repository return s } -// The delay before the first retry and the amount the delay is incremented by -// on each subsequent retry. -// The default is 50ms and the minimum is 0ms. func (s *_s3RepositorySettings) ThrottledDeleteRetryDelayIncrement(duration types.DurationVariant) *_s3RepositorySettings { s.v.ThrottledDeleteRetryDelayIncrement = *duration.DurationCaster() @@ -247,8 +155,6 @@ func (s *_s3RepositorySettings) ThrottledDeleteRetryDelayIncrement(duration type return s } -// The upper bound on how long the delays between retries will grow to. -// The default is 5s and the minimum is 0ms. func (s *_s3RepositorySettings) ThrottledDeleteRetryMaximumDelay(duration types.DurationVariant) *_s3RepositorySettings { s.v.ThrottledDeleteRetryMaximumDelay = *duration.DurationCaster() @@ -256,11 +162,6 @@ func (s *_s3RepositorySettings) ThrottledDeleteRetryMaximumDelay(duration types. return s } -// The number times to retry a throttled snapshot deletion. -// The default is 10 and the minimum value is 0 which will disable retries -// altogether. -// Note that if retries are enabled in the Azure client, each of these retries -// comprises that many client-level retries. func (s *_s3RepositorySettings) ThrottledDeleteRetryMaximumNumberOfRetries(throttleddeleteretrymaximumnumberofretries int) *_s3RepositorySettings { s.v.ThrottledDeleteRetryMaximumNumberOfRetries = &throttleddeleteretrymaximumnumberofretries diff --git a/typedapi/esdsl/samplediversity.go b/typedapi/esdsl/samplediversity.go index fa0761b2b3..e84e7a28e0 100644 --- a/typedapi/esdsl/samplediversity.go +++ b/typedapi/esdsl/samplediversity.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _sampleDiversity struct { v *types.SampleDiversity diff --git a/typedapi/esdsl/sampleraggregation.go b/typedapi/esdsl/sampleraggregation.go index 17f8351fa5..23001495bb 100644 --- a/typedapi/esdsl/sampleraggregation.go +++ b/typedapi/esdsl/sampleraggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _samplerAggregation struct { v *types.SamplerAggregation @@ -34,8 +34,6 @@ func NewSamplerAggregation() *_samplerAggregation { } -// Limits how many top-scoring documents are collected in the sample processed -// on each shard. func (s *_samplerAggregation) ShardSize(shardsize int) *_samplerAggregation { s.v.ShardSize = &shardsize diff --git a/typedapi/esdsl/scalarvalue.go b/typedapi/esdsl/scalarvalue.go index 6ee063ba01..34a4c6da5a 100644 --- a/typedapi/esdsl/scalarvalue.go +++ b/typedapi/esdsl/scalarvalue.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _scalarValue struct { diff --git a/typedapi/esdsl/scaledfloatnumberproperty.go b/typedapi/esdsl/scaledfloatnumberproperty.go index 5e61cfc442..e6b43d1945 100644 --- a/typedapi/esdsl/scaledfloatnumberproperty.go +++ b/typedapi/esdsl/scaledfloatnumberproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) type _scaledFloatNumberProperty struct { @@ -114,7 +114,6 @@ func (s *_scaledFloatNumberProperty) Index(index bool) *_scaledFloatNumberProper return s } -// Metadata about the field. func (s *_scaledFloatNumberProperty) Meta(meta map[string]string) *_scaledFloatNumberProperty { s.v.Meta = meta @@ -197,8 +196,6 @@ func (s *_scaledFloatNumberProperty) SyntheticSourceKeep(syntheticsourcekeep syn return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_scaledFloatNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_scaledFloatNumberProperty { s.v.TimeSeriesDimension = ×eriesdimension @@ -206,8 +203,6 @@ func (s *_scaledFloatNumberProperty) TimeSeriesDimension(timeseriesdimension boo return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_scaledFloatNumberProperty) TimeSeriesMetric(timeseriesmetric timeseriesmetrictype.TimeSeriesMetricType) *_scaledFloatNumberProperty { s.v.TimeSeriesMetric = ×eriesmetric diff --git a/typedapi/esdsl/schedulecontainer.go b/typedapi/esdsl/schedulecontainer.go index 61d6eba096..7a37def583 100644 --- a/typedapi/esdsl/schedulecontainer.go +++ b/typedapi/esdsl/schedulecontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _scheduleContainer struct { diff --git a/typedapi/esdsl/scheduletimeofday.go b/typedapi/esdsl/scheduletimeofday.go index 4b57ad15c7..e03c33026d 100644 --- a/typedapi/esdsl/scheduletimeofday.go +++ b/typedapi/esdsl/scheduletimeofday.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _scheduleTimeOfDay struct { diff --git a/typedapi/esdsl/scheduletriggerevent.go b/typedapi/esdsl/scheduletriggerevent.go index cdf23157d9..7cdfe892e8 100644 --- a/typedapi/esdsl/scheduletriggerevent.go +++ b/typedapi/esdsl/scheduletriggerevent.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _scheduleTriggerEvent struct { v *types.ScheduleTriggerEvent diff --git a/typedapi/esdsl/schedulingconfiguration.go b/typedapi/esdsl/schedulingconfiguration.go index dfc6263e09..fcc488dc04 100644 --- a/typedapi/esdsl/schedulingconfiguration.go +++ b/typedapi/esdsl/schedulingconfiguration.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _schedulingConfiguration struct { v *types.SchedulingConfiguration diff --git a/typedapi/esdsl/scoresort.go b/typedapi/esdsl/scoresort.go index 175b9e22f5..105608366f 100644 --- a/typedapi/esdsl/scoresort.go +++ b/typedapi/esdsl/scoresort.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) type _scoreSort struct { diff --git a/typedapi/esdsl/script.go b/typedapi/esdsl/script.go index ad11daf929..1d5f3c866d 100644 --- a/typedapi/esdsl/script.go +++ b/typedapi/esdsl/script.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptlanguage" ) type _script struct { @@ -33,17 +33,12 @@ type _script struct { // Script used to return matching documents. // This script must return a boolean value: `true` or `false`. -func NewScript(source string) *_script { +func NewScript() *_script { - tmp := &_script{v: types.NewScript()} - - tmp.Source(source) - - return tmp + return &_script{v: types.NewScript()} } -// The `id` for a stored script. func (s *_script) Id(id string) *_script { s.v.Id = &id @@ -51,7 +46,6 @@ func (s *_script) Id(id string) *_script { return s } -// Specifies the language the script is written in. func (s *_script) Lang(lang scriptlanguage.ScriptLanguage) *_script { s.v.Lang = &lang @@ -79,8 +73,6 @@ func (s *_script) AddOption(key string, value string) *_script { return s } -// Specifies any named parameters that are passed into the script as variables. -// Use parameters instead of hard-coded values to decrease compile time. func (s *_script) Params(params map[string]json.RawMessage) *_script { s.v.Params = params @@ -102,10 +94,9 @@ func (s *_script) AddParam(key string, value json.RawMessage) *_script { return s } -// The script source. -func (s *_script) Source(source string) *_script { +func (s *_script) Source(scriptsource types.ScriptSourceVariant) *_script { - s.v.Source = &source + s.v.Source = *scriptsource.ScriptSourceCaster() return s } diff --git a/typedapi/esdsl/scriptcondition.go b/typedapi/esdsl/scriptcondition.go index d4ed96d2ef..4b8606cceb 100644 --- a/typedapi/esdsl/scriptcondition.go +++ b/typedapi/esdsl/scriptcondition.go @@ -16,14 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptlanguage" ) type _scriptCondition struct { @@ -43,10 +44,9 @@ func (s *_scriptCondition) Id(id string) *_scriptCondition { return s } -func (s *_scriptCondition) Lang(lang string) *_scriptCondition { +func (s *_scriptCondition) Lang(lang scriptlanguage.ScriptLanguage) *_scriptCondition { s.v.Lang = &lang - return s } @@ -71,9 +71,9 @@ func (s *_scriptCondition) AddParam(key string, value json.RawMessage) *_scriptC return s } -func (s *_scriptCondition) Source(source string) *_scriptCondition { +func (s *_scriptCondition) Source(scriptsource types.ScriptSourceVariant) *_scriptCondition { - s.v.Source = &source + s.v.Source = *scriptsource.ScriptSourceCaster() return s } diff --git a/typedapi/esdsl/scriptedheuristic.go b/typedapi/esdsl/scriptedheuristic.go index dcb28813a8..39028a170c 100644 --- a/typedapi/esdsl/scriptedheuristic.go +++ b/typedapi/esdsl/scriptedheuristic.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _scriptedHeuristic struct { v *types.ScriptedHeuristic diff --git a/typedapi/esdsl/scriptedmetricaggregation.go b/typedapi/esdsl/scriptedmetricaggregation.go index 2b4dbf2679..90aa89dcf5 100644 --- a/typedapi/esdsl/scriptedmetricaggregation.go +++ b/typedapi/esdsl/scriptedmetricaggregation.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _scriptedMetricAggregation struct { @@ -37,8 +37,6 @@ func NewScriptedMetricAggregation() *_scriptedMetricAggregation { } -// Runs once on each shard after document collection is complete. -// Allows the aggregation to consolidate the state returned from each shard. func (s *_scriptedMetricAggregation) CombineScript(combinescript types.ScriptVariant) *_scriptedMetricAggregation { s.v.CombineScript = combinescript.ScriptCaster() @@ -46,7 +44,6 @@ func (s *_scriptedMetricAggregation) CombineScript(combinescript types.ScriptVar return s } -// The field on which to run the aggregation. func (s *_scriptedMetricAggregation) Field(field string) *_scriptedMetricAggregation { s.v.Field = &field @@ -54,8 +51,6 @@ func (s *_scriptedMetricAggregation) Field(field string) *_scriptedMetricAggrega return s } -// Runs prior to any collection of documents. -// Allows the aggregation to set up any initial state. func (s *_scriptedMetricAggregation) InitScript(initscript types.ScriptVariant) *_scriptedMetricAggregation { s.v.InitScript = initscript.ScriptCaster() @@ -63,9 +58,6 @@ func (s *_scriptedMetricAggregation) InitScript(initscript types.ScriptVariant) return s } -// Run once per document collected. -// If no `combine_script` is specified, the resulting state needs to be stored -// in the `state` object. func (s *_scriptedMetricAggregation) MapScript(mapscript types.ScriptVariant) *_scriptedMetricAggregation { s.v.MapScript = mapscript.ScriptCaster() @@ -73,8 +65,6 @@ func (s *_scriptedMetricAggregation) MapScript(mapscript types.ScriptVariant) *_ return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_scriptedMetricAggregation) Missing(missing types.MissingVariant) *_scriptedMetricAggregation { s.v.Missing = *missing.MissingCaster() @@ -82,9 +72,6 @@ func (s *_scriptedMetricAggregation) Missing(missing types.MissingVariant) *_scr return s } -// A global object with script parameters for `init`, `map` and `combine` -// scripts. -// It is shared between the scripts. func (s *_scriptedMetricAggregation) Params(params map[string]json.RawMessage) *_scriptedMetricAggregation { s.v.Params = params @@ -106,10 +93,6 @@ func (s *_scriptedMetricAggregation) AddParam(key string, value json.RawMessage) return s } -// Runs once on the coordinating node after all shards have returned their -// results. -// The script is provided with access to a variable `states`, which is an array -// of the result of the `combine_script` on each shard. func (s *_scriptedMetricAggregation) ReduceScript(reducescript types.ScriptVariant) *_scriptedMetricAggregation { s.v.ReduceScript = reducescript.ScriptCaster() diff --git a/typedapi/esdsl/scriptfield.go b/typedapi/esdsl/scriptfield.go index 7cc72d8ee2..d9f233c8aa 100644 --- a/typedapi/esdsl/scriptfield.go +++ b/typedapi/esdsl/scriptfield.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _scriptField struct { v *types.ScriptField diff --git a/typedapi/esdsl/scriptprocessor.go b/typedapi/esdsl/scriptprocessor.go index c8e27c08c1..381a281414 100644 --- a/typedapi/esdsl/scriptprocessor.go +++ b/typedapi/esdsl/scriptprocessor.go @@ -16,14 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptlanguage" ) type _scriptProcessor struct { @@ -38,8 +39,6 @@ func NewScriptProcessor() *_scriptProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_scriptProcessor) Description(description string) *_scriptProcessor { s.v.Description = &description @@ -47,8 +46,6 @@ func (s *_scriptProcessor) Description(description string) *_scriptProcessor { return s } -// ID of a stored script. -// If no `source` is specified, this parameter is required. func (s *_scriptProcessor) Id(id string) *_scriptProcessor { s.v.Id = &id @@ -56,7 +53,6 @@ func (s *_scriptProcessor) Id(id string) *_scriptProcessor { return s } -// Conditionally execute the processor. func (s *_scriptProcessor) If(if_ types.ScriptVariant) *_scriptProcessor { s.v.If = if_.ScriptCaster() @@ -64,7 +60,6 @@ func (s *_scriptProcessor) If(if_ types.ScriptVariant) *_scriptProcessor { return s } -// Ignore failures for the processor. func (s *_scriptProcessor) IgnoreFailure(ignorefailure bool) *_scriptProcessor { s.v.IgnoreFailure = &ignorefailure @@ -72,15 +67,12 @@ func (s *_scriptProcessor) IgnoreFailure(ignorefailure bool) *_scriptProcessor { return s } -// Script language. -func (s *_scriptProcessor) Lang(lang string) *_scriptProcessor { +func (s *_scriptProcessor) Lang(lang scriptlanguage.ScriptLanguage) *_scriptProcessor { s.v.Lang = &lang - return s } -// Handle failures for the processor. func (s *_scriptProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_scriptProcessor { for _, v := range onfailures { @@ -91,7 +83,6 @@ func (s *_scriptProcessor) OnFailure(onfailures ...types.ProcessorContainerVaria return s } -// Object containing parameters for the script. func (s *_scriptProcessor) Params(params map[string]json.RawMessage) *_scriptProcessor { s.v.Params = params @@ -113,17 +104,13 @@ func (s *_scriptProcessor) AddParam(key string, value json.RawMessage) *_scriptP return s } -// Inline script. -// If no `id` is specified, this parameter is required. -func (s *_scriptProcessor) Source(source string) *_scriptProcessor { +func (s *_scriptProcessor) Source(scriptsource types.ScriptSourceVariant) *_scriptProcessor { - s.v.Source = &source + s.v.Source = *scriptsource.ScriptSourceCaster() return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_scriptProcessor) Tag(tag string) *_scriptProcessor { s.v.Tag = &tag diff --git a/typedapi/esdsl/scriptquery.go b/typedapi/esdsl/scriptquery.go index 0c8acaf391..ee2a838cbe 100644 --- a/typedapi/esdsl/scriptquery.go +++ b/typedapi/esdsl/scriptquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _scriptQuery struct { v *types.ScriptQuery @@ -38,11 +38,6 @@ func NewScriptQuery(script types.ScriptVariant) *_scriptQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_scriptQuery) Boost(boost float32) *_scriptQuery { s.v.Boost = &boost @@ -57,8 +52,6 @@ func (s *_scriptQuery) QueryName_(queryname_ string) *_scriptQuery { return s } -// Contains a script to run as a query. -// This script must return a boolean value, `true` or `false`. func (s *_scriptQuery) Script(script types.ScriptVariant) *_scriptQuery { s.v.Script = *script.ScriptCaster() diff --git a/typedapi/esdsl/scriptscorefunction.go b/typedapi/esdsl/scriptscorefunction.go index 04250af9ce..9e6699af28 100644 --- a/typedapi/esdsl/scriptscorefunction.go +++ b/typedapi/esdsl/scriptscorefunction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _scriptScoreFunction struct { v *types.ScriptScoreFunction @@ -39,7 +39,6 @@ func NewScriptScoreFunction(script types.ScriptVariant) *_scriptScoreFunction { } -// A script that computes a score. func (s *_scriptScoreFunction) Script(script types.ScriptVariant) *_scriptScoreFunction { s.v.Script = *script.ScriptCaster() diff --git a/typedapi/esdsl/scriptscorequery.go b/typedapi/esdsl/scriptscorequery.go index 2d587f3e18..a1acadb036 100644 --- a/typedapi/esdsl/scriptscorequery.go +++ b/typedapi/esdsl/scriptscorequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _scriptScoreQuery struct { v *types.ScriptScoreQuery @@ -39,11 +39,6 @@ func NewScriptScoreQuery(query types.QueryVariant, script types.ScriptVariant) * } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_scriptScoreQuery) Boost(boost float32) *_scriptScoreQuery { s.v.Boost = &boost @@ -51,8 +46,6 @@ func (s *_scriptScoreQuery) Boost(boost float32) *_scriptScoreQuery { return s } -// Documents with a score lower than this floating point number are excluded -// from the search results. func (s *_scriptScoreQuery) MinScore(minscore float32) *_scriptScoreQuery { s.v.MinScore = &minscore @@ -60,7 +53,6 @@ func (s *_scriptScoreQuery) MinScore(minscore float32) *_scriptScoreQuery { return s } -// Query used to return documents. func (s *_scriptScoreQuery) Query(query types.QueryVariant) *_scriptScoreQuery { s.v.Query = *query.QueryCaster() @@ -75,9 +67,6 @@ func (s *_scriptScoreQuery) QueryName_(queryname_ string) *_scriptScoreQuery { return s } -// Script used to compute the score of documents returned by the query. -// Important: final relevance scores from the `script_score` query cannot be -// negative. func (s *_scriptScoreQuery) Script(script types.ScriptVariant) *_scriptScoreQuery { s.v.Script = *script.ScriptCaster() diff --git a/typedapi/esdsl/scriptsort.go b/typedapi/esdsl/scriptsort.go index e7068ab442..f464194e1d 100644 --- a/typedapi/esdsl/scriptsort.go +++ b/typedapi/esdsl/scriptsort.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptsorttype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptsorttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) type _scriptSort struct { diff --git a/typedapi/esdsl/scriptsource.go b/typedapi/esdsl/scriptsource.go new file mode 100644 index 0000000000..ceba543446 --- /dev/null +++ b/typedapi/esdsl/scriptsource.go @@ -0,0 +1,56 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +// This is provide all the types that are part of the union. +type _scriptSource struct { + v types.ScriptSource +} + +func NewScriptSource() *_scriptSource { + return &_scriptSource{v: nil} +} + +func (u *_scriptSource) String(string string) *_scriptSource { + + u.v = &string + + return u +} + +func (u *_scriptSource) SearchRequestBody(searchrequestbody types.SearchRequestBodyVariant) *_scriptSource { + + u.v = &searchrequestbody + + return u +} + +// Interface implementation for SearchRequestBody in ScriptSource union +func (u *_searchRequestBody) ScriptSourceCaster() *types.ScriptSource { + t := types.ScriptSource(u.v) + return &t +} + +func (u *_scriptSource) ScriptSourceCaster() *types.ScriptSource { + return &u.v +} diff --git a/typedapi/esdsl/scripttransform.go b/typedapi/esdsl/scripttransform.go index 7dc56b0579..a35629b9a1 100644 --- a/typedapi/esdsl/scripttransform.go +++ b/typedapi/esdsl/scripttransform.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _scriptTransform struct { @@ -71,9 +71,9 @@ func (s *_scriptTransform) AddParam(key string, value json.RawMessage) *_scriptT return s } -func (s *_scriptTransform) Source(source string) *_scriptTransform { +func (s *_scriptTransform) Source(scriptsource types.ScriptSourceVariant) *_scriptTransform { - s.v.Source = &source + s.v.Source = *scriptsource.ScriptSourceCaster() return s } diff --git a/typedapi/esdsl/scrollids.go b/typedapi/esdsl/scrollids.go index 5920c96382..d6120f6f66 100644 --- a/typedapi/esdsl/scrollids.go +++ b/typedapi/esdsl/scrollids.go @@ -16,13 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _scrollIds struct { v types.ScrollIds } diff --git a/typedapi/esdsl/searchablesnapshotaction.go b/typedapi/esdsl/searchablesnapshotaction.go index 99c6fde1d5..db1419486e 100644 --- a/typedapi/esdsl/searchablesnapshotaction.go +++ b/typedapi/esdsl/searchablesnapshotaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _searchableSnapshotAction struct { v *types.SearchableSnapshotAction diff --git a/typedapi/esdsl/searchaccess.go b/typedapi/esdsl/searchaccess.go index 990fad9bb6..0bebd1cf39 100644 --- a/typedapi/esdsl/searchaccess.go +++ b/typedapi/esdsl/searchaccess.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _searchAccess struct { v *types.SearchAccess @@ -32,12 +32,6 @@ func NewSearchAccess() *_searchAccess { } -// Set to `true` if using wildcard or regular expressions for patterns that -// cover restricted indices. Implicitly, restricted indices have limited -// privileges that can cause pattern tests to fail. If restricted indices are -// explicitly included in the `names` list, Elasticsearch checks privileges -// against these indices regardless of the value set for -// `allow_restricted_indices`. func (s *_searchAccess) AllowRestrictedIndices(allowrestrictedindices bool) *_searchAccess { s.v.AllowRestrictedIndices = &allowrestrictedindices @@ -45,7 +39,6 @@ func (s *_searchAccess) AllowRestrictedIndices(allowrestrictedindices bool) *_se return s } -// The document fields that the owners of the role have read access to. func (s *_searchAccess) FieldSecurity(fieldsecurity types.FieldSecurityVariant) *_searchAccess { s.v.FieldSecurity = fieldsecurity.FieldSecurityCaster() @@ -53,8 +46,6 @@ func (s *_searchAccess) FieldSecurity(fieldsecurity types.FieldSecurityVariant) return s } -// A list of indices (or index name patterns) to which the permissions in this -// entry apply. func (s *_searchAccess) Names(names ...string) *_searchAccess { s.v.Names = make([]string, len(names)) @@ -63,9 +54,6 @@ func (s *_searchAccess) Names(names ...string) *_searchAccess { return s } -// A search query that defines the documents the owners of the role have access -// to. A document within the specified indices must match this query for it to -// be accessible by the owners of the role. func (s *_searchAccess) Query(indicesprivilegesquery types.IndicesPrivilegesQueryVariant) *_searchAccess { s.v.Query = *indicesprivilegesquery.IndicesPrivilegesQueryCaster() diff --git a/typedapi/esdsl/searchapplicationparameters.go b/typedapi/esdsl/searchapplicationparameters.go index 2f6cd9c54d..2996a0dfb0 100644 --- a/typedapi/esdsl/searchapplicationparameters.go +++ b/typedapi/esdsl/searchapplicationparameters.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _searchApplicationParameters struct { v *types.SearchApplicationParameters @@ -32,7 +32,6 @@ func NewSearchApplicationParameters() *_searchApplicationParameters { } -// Analytics collection associated to the Search Application. func (s *_searchApplicationParameters) AnalyticsCollectionName(name string) *_searchApplicationParameters { s.v.AnalyticsCollectionName = &name @@ -40,7 +39,6 @@ func (s *_searchApplicationParameters) AnalyticsCollectionName(name string) *_se return s } -// Indices that are part of the Search Application. func (s *_searchApplicationParameters) Indices(indices ...string) *_searchApplicationParameters { for _, v := range indices { @@ -51,7 +49,6 @@ func (s *_searchApplicationParameters) Indices(indices ...string) *_searchApplic return s } -// Search template to use on search operations. func (s *_searchApplicationParameters) Template(template types.SearchApplicationTemplateVariant) *_searchApplicationParameters { s.v.Template = template.SearchApplicationTemplateCaster() diff --git a/typedapi/esdsl/searchapplicationtemplate.go b/typedapi/esdsl/searchapplicationtemplate.go index da28bf47f1..1ba9076134 100644 --- a/typedapi/esdsl/searchapplicationtemplate.go +++ b/typedapi/esdsl/searchapplicationtemplate.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _searchApplicationTemplate struct { v *types.SearchApplicationTemplate @@ -36,7 +36,6 @@ func NewSearchApplicationTemplate(script types.ScriptVariant) *_searchApplicatio } -// The associated mustache template. func (s *_searchApplicationTemplate) Script(script types.ScriptVariant) *_searchApplicationTemplate { s.v.Script = *script.ScriptCaster() diff --git a/typedapi/esdsl/searchasyoutypeproperty.go b/typedapi/esdsl/searchasyoutypeproperty.go index b171510bb7..6594834d3c 100644 --- a/typedapi/esdsl/searchasyoutypeproperty.go +++ b/typedapi/esdsl/searchasyoutypeproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termvectoroption" + "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/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termvectoroption" ) type _searchAsYouTypeProperty struct { @@ -106,7 +106,6 @@ func (s *_searchAsYouTypeProperty) MaxShingleSize(maxshinglesize int) *_searchAs return s } -// Metadata about the field. func (s *_searchAsYouTypeProperty) Meta(meta map[string]string) *_searchAsYouTypeProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/searchidle.go b/typedapi/esdsl/searchidle.go index 796571552c..988c3ee789 100644 --- a/typedapi/esdsl/searchidle.go +++ b/typedapi/esdsl/searchidle.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _searchIdle struct { v *types.SearchIdle diff --git a/typedapi/esdsl/searchinput.go b/typedapi/esdsl/searchinput.go index e47f564844..cc68e2200a 100644 --- a/typedapi/esdsl/searchinput.go +++ b/typedapi/esdsl/searchinput.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _searchInput struct { v *types.SearchInput diff --git a/typedapi/esdsl/searchinputrequestbody.go b/typedapi/esdsl/searchinputrequestbody.go index 7c167443f6..4d046fdbd3 100644 --- a/typedapi/esdsl/searchinputrequestbody.go +++ b/typedapi/esdsl/searchinputrequestbody.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _searchInputRequestBody struct { v *types.SearchInputRequestBody diff --git a/typedapi/esdsl/searchinputrequestdefinition.go b/typedapi/esdsl/searchinputrequestdefinition.go index 746ddccd21..e5aa2adcf3 100644 --- a/typedapi/esdsl/searchinputrequestdefinition.go +++ b/typedapi/esdsl/searchinputrequestdefinition.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" ) type _searchInputRequestDefinition struct { diff --git a/typedapi/esdsl/searchrequestbody.go b/typedapi/esdsl/searchrequestbody.go new file mode 100644 index 0000000000..bf0281e4fd --- /dev/null +++ b/typedapi/esdsl/searchrequestbody.go @@ -0,0 +1,340 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" +) + +type _searchRequestBody struct { + v *types.SearchRequestBody +} + +func NewSearchRequestBody() *_searchRequestBody { + + return &_searchRequestBody{v: types.NewSearchRequestBody()} + +} + +func (s *_searchRequestBody) Aggregations(aggregations map[string]types.Aggregations) *_searchRequestBody { + + s.v.Aggregations = aggregations + return s +} + +func (s *_searchRequestBody) AddAggregation(key string, value types.AggregationsVariant) *_searchRequestBody { + + var tmp map[string]types.Aggregations + if s.v.Aggregations == nil { + s.v.Aggregations = make(map[string]types.Aggregations) + } else { + tmp = s.v.Aggregations + } + + tmp[key] = *value.AggregationsCaster() + + s.v.Aggregations = tmp + return s +} + +func (s *_searchRequestBody) Collapse(collapse types.FieldCollapseVariant) *_searchRequestBody { + + s.v.Collapse = collapse.FieldCollapseCaster() + + return s +} + +func (s *_searchRequestBody) DocvalueFields(docvaluefields ...types.FieldAndFormatVariant) *_searchRequestBody { + + for _, v := range docvaluefields { + + s.v.DocvalueFields = append(s.v.DocvalueFields, *v.FieldAndFormatCaster()) + + } + return s +} + +func (s *_searchRequestBody) Explain(explain bool) *_searchRequestBody { + + s.v.Explain = &explain + + return s +} + +func (s *_searchRequestBody) Ext(ext map[string]json.RawMessage) *_searchRequestBody { + + s.v.Ext = ext + return s +} + +func (s *_searchRequestBody) AddExt(key string, value json.RawMessage) *_searchRequestBody { + + var tmp map[string]json.RawMessage + if s.v.Ext == nil { + s.v.Ext = make(map[string]json.RawMessage) + } else { + tmp = s.v.Ext + } + + tmp[key] = value + + s.v.Ext = tmp + return s +} + +func (s *_searchRequestBody) Fields(fields ...types.FieldAndFormatVariant) *_searchRequestBody { + + for _, v := range fields { + + s.v.Fields = append(s.v.Fields, *v.FieldAndFormatCaster()) + + } + return s +} + +func (s *_searchRequestBody) From(from int) *_searchRequestBody { + + s.v.From = &from + + return s +} + +func (s *_searchRequestBody) Highlight(highlight types.HighlightVariant) *_searchRequestBody { + + s.v.Highlight = highlight.HighlightCaster() + + return s +} + +func (s *_searchRequestBody) IndicesBoost(indicesboost []map[string]types.Float64) *_searchRequestBody { + + s.v.IndicesBoost = indicesboost + + return s +} + +func (s *_searchRequestBody) Knn(knns ...types.KnnSearchVariant) *_searchRequestBody { + + s.v.Knn = make([]types.KnnSearch, len(knns)) + for i, v := range knns { + s.v.Knn[i] = *v.KnnSearchCaster() + } + + return s +} + +func (s *_searchRequestBody) MinScore(minscore types.Float64) *_searchRequestBody { + + s.v.MinScore = &minscore + + return s +} + +func (s *_searchRequestBody) Pit(pit types.PointInTimeReferenceVariant) *_searchRequestBody { + + s.v.Pit = pit.PointInTimeReferenceCaster() + + return s +} + +func (s *_searchRequestBody) PostFilter(postfilter types.QueryVariant) *_searchRequestBody { + + s.v.PostFilter = postfilter.QueryCaster() + + return s +} + +func (s *_searchRequestBody) Profile(profile bool) *_searchRequestBody { + + s.v.Profile = &profile + + return s +} + +func (s *_searchRequestBody) Query(query types.QueryVariant) *_searchRequestBody { + + s.v.Query = query.QueryCaster() + + return s +} + +func (s *_searchRequestBody) Rank(rank types.RankContainerVariant) *_searchRequestBody { + + s.v.Rank = rank.RankContainerCaster() + + return s +} + +func (s *_searchRequestBody) Rescore(rescores ...types.RescoreVariant) *_searchRequestBody { + + s.v.Rescore = make([]types.Rescore, len(rescores)) + for i, v := range rescores { + s.v.Rescore[i] = *v.RescoreCaster() + } + + return s +} + +func (s *_searchRequestBody) Retriever(retriever types.RetrieverContainerVariant) *_searchRequestBody { + + s.v.Retriever = retriever.RetrieverContainerCaster() + + return s +} + +func (s *_searchRequestBody) RuntimeMappings(runtimefields types.RuntimeFieldsVariant) *_searchRequestBody { + + s.v.RuntimeMappings = *runtimefields.RuntimeFieldsCaster() + + return s +} + +func (s *_searchRequestBody) ScriptFields(scriptfields map[string]types.ScriptField) *_searchRequestBody { + + s.v.ScriptFields = scriptfields + return s +} + +func (s *_searchRequestBody) AddScriptField(key string, value types.ScriptFieldVariant) *_searchRequestBody { + + var tmp map[string]types.ScriptField + if s.v.ScriptFields == nil { + s.v.ScriptFields = make(map[string]types.ScriptField) + } else { + tmp = s.v.ScriptFields + } + + tmp[key] = *value.ScriptFieldCaster() + + s.v.ScriptFields = tmp + return s +} + +func (s *_searchRequestBody) SearchAfter(sortresults ...types.FieldValueVariant) *_searchRequestBody { + + for _, v := range sortresults { + s.v.SearchAfter = append(s.v.SearchAfter, *v.FieldValueCaster()) + } + + return s +} + +func (s *_searchRequestBody) SeqNoPrimaryTerm(seqnoprimaryterm bool) *_searchRequestBody { + + s.v.SeqNoPrimaryTerm = &seqnoprimaryterm + + return s +} + +func (s *_searchRequestBody) Size(size int) *_searchRequestBody { + + s.v.Size = &size + + return s +} + +func (s *_searchRequestBody) Slice(slice types.SlicedScrollVariant) *_searchRequestBody { + + s.v.Slice = slice.SlicedScrollCaster() + + return s +} + +func (s *_searchRequestBody) Sort(sorts ...types.SortCombinationsVariant) *_searchRequestBody { + + for _, v := range sorts { + s.v.Sort = append(s.v.Sort, *v.SortCombinationsCaster()) + } + + return s +} + +func (s *_searchRequestBody) Source_(sourceconfig types.SourceConfigVariant) *_searchRequestBody { + + s.v.Source_ = *sourceconfig.SourceConfigCaster() + + return s +} + +func (s *_searchRequestBody) Stats(stats ...string) *_searchRequestBody { + + for _, v := range stats { + + s.v.Stats = append(s.v.Stats, v) + + } + return s +} + +func (s *_searchRequestBody) StoredFields(fields ...string) *_searchRequestBody { + + s.v.StoredFields = fields + + return s +} + +func (s *_searchRequestBody) Suggest(suggest types.SuggesterVariant) *_searchRequestBody { + + s.v.Suggest = suggest.SuggesterCaster() + + return s +} + +func (s *_searchRequestBody) TerminateAfter(terminateafter int64) *_searchRequestBody { + + s.v.TerminateAfter = &terminateafter + + return s +} + +func (s *_searchRequestBody) Timeout(timeout string) *_searchRequestBody { + + s.v.Timeout = &timeout + + return s +} + +func (s *_searchRequestBody) TrackScores(trackscores bool) *_searchRequestBody { + + s.v.TrackScores = &trackscores + + return s +} + +func (s *_searchRequestBody) TrackTotalHits(trackhits types.TrackHitsVariant) *_searchRequestBody { + + s.v.TrackTotalHits = *trackhits.TrackHitsCaster() + + return s +} + +func (s *_searchRequestBody) Version(version bool) *_searchRequestBody { + + s.v.Version = &version + + return s +} + +func (s *_searchRequestBody) SearchRequestBodyCaster() *types.SearchRequestBody { + return s.v +} diff --git a/typedapi/esdsl/searchtemplaterequestbody.go b/typedapi/esdsl/searchtemplaterequestbody.go index 4f278f0de1..379d97b539 100644 --- a/typedapi/esdsl/searchtemplaterequestbody.go +++ b/typedapi/esdsl/searchtemplaterequestbody.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _searchTemplateRequestBody struct { @@ -43,8 +43,6 @@ func (s *_searchTemplateRequestBody) Explain(explain bool) *_searchTemplateReque return s } -// ID of the search template to use. If no source is specified, -// this parameter is required. func (s *_searchTemplateRequestBody) Id(id string) *_searchTemplateRequestBody { s.v.Id = &id @@ -80,9 +78,6 @@ func (s *_searchTemplateRequestBody) Profile(profile bool) *_searchTemplateReque return s } -// An inline search template. Supports the same parameters as the search API's -// request body. Also supports Mustache variables. If no id is specified, this -// parameter is required. func (s *_searchTemplateRequestBody) Source(source string) *_searchTemplateRequestBody { s.v.Source = &source diff --git a/typedapi/esdsl/searchtransform.go b/typedapi/esdsl/searchtransform.go index ac428384e5..336dbad64b 100644 --- a/typedapi/esdsl/searchtransform.go +++ b/typedapi/esdsl/searchtransform.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _searchTransform struct { v *types.SearchTransform diff --git a/typedapi/esdsl/securitysettings.go b/typedapi/esdsl/securitysettings.go index e5dbe86671..e3500906dc 100644 --- a/typedapi/esdsl/securitysettings.go +++ b/typedapi/esdsl/securitysettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _securitySettings struct { v *types.SecuritySettings diff --git a/typedapi/esdsl/selectoption.go b/typedapi/esdsl/selectoption.go index 5c47052672..8556a051b2 100644 --- a/typedapi/esdsl/selectoption.go +++ b/typedapi/esdsl/selectoption.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _selectOption struct { v *types.SelectOption diff --git a/typedapi/esdsl/semanticquery.go b/typedapi/esdsl/semanticquery.go index 457b30b3cf..6289a8718c 100644 --- a/typedapi/esdsl/semanticquery.go +++ b/typedapi/esdsl/semanticquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _semanticQuery struct { v *types.SemanticQuery @@ -39,11 +39,6 @@ func NewSemanticQuery(field string, query string) *_semanticQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_semanticQuery) Boost(boost float32) *_semanticQuery { s.v.Boost = &boost @@ -51,7 +46,6 @@ func (s *_semanticQuery) Boost(boost float32) *_semanticQuery { return s } -// The field to query, which must be a semantic_text field type func (s *_semanticQuery) Field(field string) *_semanticQuery { s.v.Field = field @@ -59,7 +53,6 @@ func (s *_semanticQuery) Field(field string) *_semanticQuery { return s } -// The query text func (s *_semanticQuery) Query(query string) *_semanticQuery { s.v.Query = query diff --git a/typedapi/esdsl/semantictextproperty.go b/typedapi/esdsl/semantictextproperty.go index d020afad99..823ee0a1e2 100644 --- a/typedapi/esdsl/semantictextproperty.go +++ b/typedapi/esdsl/semantictextproperty.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _semanticTextProperty struct { v *types.SemanticTextProperty @@ -32,11 +32,6 @@ func NewSemanticTextProperty() *_semanticTextProperty { } -// Inference endpoint that will be used to generate embeddings for the field. -// This parameter cannot be updated. Use the Create inference API to create the -// endpoint. -// If `search_inference_id` is specified, the inference endpoint will only be -// used at index time. func (s *_semanticTextProperty) InferenceId(id string) *_semanticTextProperty { s.v.InferenceId = &id @@ -65,11 +60,6 @@ func (s *_semanticTextProperty) AddMeta(key string, value string) *_semanticText return s } -// Inference endpoint that will be used to generate embeddings at query time. -// You can update this parameter by using the Update mapping API. Use the Create -// inference API to create the endpoint. -// If not specified, the inference endpoint defined by inference_id will be used -// at both index and query time. func (s *_semanticTextProperty) SearchInferenceId(id string) *_semanticTextProperty { s.v.SearchInferenceId = &id diff --git a/typedapi/esdsl/serbiananalyzer.go b/typedapi/esdsl/serbiananalyzer.go index c928bd1e54..8b28b61386 100644 --- a/typedapi/esdsl/serbiananalyzer.go +++ b/typedapi/esdsl/serbiananalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _serbianAnalyzer struct { v *types.SerbianAnalyzer diff --git a/typedapi/esdsl/serialdifferencingaggregation.go b/typedapi/esdsl/serialdifferencingaggregation.go index 2804e622f5..0021de2384 100644 --- a/typedapi/esdsl/serialdifferencingaggregation.go +++ b/typedapi/esdsl/serialdifferencingaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _serialDifferencingAggregation struct { @@ -37,7 +37,6 @@ func NewSerialDifferencingAggregation() *_serialDifferencingAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_serialDifferencingAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_serialDifferencingAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_serialDifferencingAggregation) BucketsPath(bucketspath types.BucketsPa return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_serialDifferencingAggregation) Format(format string) *_serialDifferencingAggregation { s.v.Format = &format @@ -55,15 +51,12 @@ func (s *_serialDifferencingAggregation) Format(format string) *_serialDifferenc return s } -// Policy to apply when gaps are found in the data. func (s *_serialDifferencingAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_serialDifferencingAggregation { s.v.GapPolicy = &gappolicy return s } -// The historical bucket to subtract from the current value. -// Must be a positive, non-zero integer. func (s *_serialDifferencingAggregation) Lag(lag int) *_serialDifferencingAggregation { s.v.Lag = &lag diff --git a/typedapi/esdsl/setpriorityaction.go b/typedapi/esdsl/setpriorityaction.go index 54db289e3e..3a0325a896 100644 --- a/typedapi/esdsl/setpriorityaction.go +++ b/typedapi/esdsl/setpriorityaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _setPriorityAction struct { v *types.SetPriorityAction diff --git a/typedapi/esdsl/setprocessor.go b/typedapi/esdsl/setprocessor.go index e19d8d31da..f3f2f9cf6b 100644 --- a/typedapi/esdsl/setprocessor.go +++ b/typedapi/esdsl/setprocessor.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _setProcessor struct { @@ -39,10 +39,6 @@ func NewSetProcessor() *_setProcessor { } -// The origin field which will be copied to `field`, cannot set `value` -// simultaneously. -// Supported data types are `boolean`, `number`, `array`, `object`, `string`, -// `date`, etc. func (s *_setProcessor) CopyFrom(field string) *_setProcessor { s.v.CopyFrom = &field @@ -50,8 +46,6 @@ func (s *_setProcessor) CopyFrom(field string) *_setProcessor { return s } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_setProcessor) Description(description string) *_setProcessor { s.v.Description = &description @@ -59,8 +53,6 @@ func (s *_setProcessor) Description(description string) *_setProcessor { return s } -// The field to insert, upsert, or update. -// Supports template snippets. func (s *_setProcessor) Field(field string) *_setProcessor { s.v.Field = field @@ -68,7 +60,6 @@ func (s *_setProcessor) Field(field string) *_setProcessor { return s } -// Conditionally execute the processor. func (s *_setProcessor) If(if_ types.ScriptVariant) *_setProcessor { s.v.If = if_.ScriptCaster() @@ -76,8 +67,6 @@ func (s *_setProcessor) If(if_ types.ScriptVariant) *_setProcessor { return s } -// If `true` and `value` is a template snippet that evaluates to `null` or the -// empty string, the processor quietly exits without modifying the document. func (s *_setProcessor) IgnoreEmptyValue(ignoreemptyvalue bool) *_setProcessor { s.v.IgnoreEmptyValue = &ignoreemptyvalue @@ -85,7 +74,6 @@ func (s *_setProcessor) IgnoreEmptyValue(ignoreemptyvalue bool) *_setProcessor { return s } -// Ignore failures for the processor. func (s *_setProcessor) IgnoreFailure(ignorefailure bool) *_setProcessor { s.v.IgnoreFailure = &ignorefailure @@ -93,10 +81,6 @@ func (s *_setProcessor) IgnoreFailure(ignorefailure bool) *_setProcessor { return s } -// The media type for encoding `value`. -// Applies only when value is a template snippet. -// Must be one of `application/json`, `text/plain`, or -// `application/x-www-form-urlencoded`. func (s *_setProcessor) MediaType(mediatype string) *_setProcessor { s.v.MediaType = &mediatype @@ -104,7 +88,6 @@ func (s *_setProcessor) MediaType(mediatype string) *_setProcessor { return s } -// Handle failures for the processor. func (s *_setProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_setProcessor { for _, v := range onfailures { @@ -115,9 +98,6 @@ func (s *_setProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) return s } -// If `true` processor will update fields with pre-existing non-null-valued -// field. -// When set to `false`, such fields will not be touched. func (s *_setProcessor) Override(override bool) *_setProcessor { s.v.Override = &override @@ -125,8 +105,6 @@ func (s *_setProcessor) Override(override bool) *_setProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_setProcessor) Tag(tag string) *_setProcessor { s.v.Tag = &tag @@ -134,9 +112,6 @@ func (s *_setProcessor) Tag(tag string) *_setProcessor { return s } -// The value to be set for the field. -// Supports template snippets. -// May specify only one of `value` or `copy_from`. func (s *_setProcessor) Value(value json.RawMessage) *_setProcessor { s.v.Value = value diff --git a/typedapi/esdsl/setsecurityuserprocessor.go b/typedapi/esdsl/setsecurityuserprocessor.go index c50e71296e..88bb8c7422 100644 --- a/typedapi/esdsl/setsecurityuserprocessor.go +++ b/typedapi/esdsl/setsecurityuserprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _setSecurityUserProcessor struct { v *types.SetSecurityUserProcessor @@ -35,8 +35,6 @@ func NewSetSecurityUserProcessor() *_setSecurityUserProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_setSecurityUserProcessor) Description(description string) *_setSecurityUserProcessor { s.v.Description = &description @@ -44,7 +42,6 @@ func (s *_setSecurityUserProcessor) Description(description string) *_setSecurit return s } -// The field to store the user information into. func (s *_setSecurityUserProcessor) Field(field string) *_setSecurityUserProcessor { s.v.Field = field @@ -52,7 +49,6 @@ func (s *_setSecurityUserProcessor) Field(field string) *_setSecurityUserProcess return s } -// Conditionally execute the processor. func (s *_setSecurityUserProcessor) If(if_ types.ScriptVariant) *_setSecurityUserProcessor { s.v.If = if_.ScriptCaster() @@ -60,7 +56,6 @@ func (s *_setSecurityUserProcessor) If(if_ types.ScriptVariant) *_setSecurityUse return s } -// Ignore failures for the processor. func (s *_setSecurityUserProcessor) IgnoreFailure(ignorefailure bool) *_setSecurityUserProcessor { s.v.IgnoreFailure = &ignorefailure @@ -68,7 +63,6 @@ func (s *_setSecurityUserProcessor) IgnoreFailure(ignorefailure bool) *_setSecur return s } -// Handle failures for the processor. func (s *_setSecurityUserProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_setSecurityUserProcessor { for _, v := range onfailures { @@ -79,7 +73,6 @@ func (s *_setSecurityUserProcessor) OnFailure(onfailures ...types.ProcessorConta return s } -// Controls what user related properties are added to the field. func (s *_setSecurityUserProcessor) Properties(properties ...string) *_setSecurityUserProcessor { for _, v := range properties { @@ -90,8 +83,6 @@ func (s *_setSecurityUserProcessor) Properties(properties ...string) *_setSecuri return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_setSecurityUserProcessor) Tag(tag string) *_setSecurityUserProcessor { s.v.Tag = &tag diff --git a/typedapi/esdsl/settings.go b/typedapi/esdsl/settings.go index 1fe09b9c36..69dbae96dd 100644 --- a/typedapi/esdsl/settings.go +++ b/typedapi/esdsl/settings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _settings struct { v *types.Settings @@ -32,13 +32,6 @@ func NewSettings() *_settings { } -// Specifies whether the transform checkpoint ranges should be optimized for -// performance. Such optimization can align -// checkpoint ranges with the date histogram interval when date histogram is -// specified as a group source in the -// transform config. As a result, less document updates in the destination index -// will be performed thus improving -// overall performance. func (s *_settings) AlignCheckpoints(aligncheckpoints bool) *_settings { s.v.AlignCheckpoints = &aligncheckpoints @@ -46,10 +39,6 @@ func (s *_settings) AlignCheckpoints(aligncheckpoints bool) *_settings { return s } -// Defines if dates in the ouput should be written as ISO formatted string or as -// millis since epoch. epoch_millis was -// the default for transforms created before version 7.11. For compatible output -// set this value to `true`. func (s *_settings) DatesAsEpochMillis(datesasepochmillis bool) *_settings { s.v.DatesAsEpochMillis = &datesasepochmillis @@ -57,8 +46,6 @@ func (s *_settings) DatesAsEpochMillis(datesasepochmillis bool) *_settings { return s } -// Specifies whether the transform should deduce the destination index mappings -// from the transform configuration. func (s *_settings) DeduceMappings(deducemappings bool) *_settings { s.v.DeduceMappings = &deducemappings @@ -66,10 +53,6 @@ func (s *_settings) DeduceMappings(deducemappings bool) *_settings { return s } -// Specifies a limit on the number of input documents per second. This setting -// throttles the transform by adding a -// wait time between search requests. The default value is null, which disables -// throttling. func (s *_settings) DocsPerSecond(docspersecond float32) *_settings { s.v.DocsPerSecond = &docspersecond @@ -77,11 +60,6 @@ func (s *_settings) DocsPerSecond(docspersecond float32) *_settings { return s } -// Defines the initial page size to use for the composite aggregation for each -// checkpoint. If circuit breaker -// exceptions occur, the page size is dynamically adjusted to a lower value. The -// minimum value is `10` and the -// maximum is `65,536`. func (s *_settings) MaxPageSearchSize(maxpagesearchsize int) *_settings { s.v.MaxPageSearchSize = &maxpagesearchsize @@ -89,11 +67,6 @@ func (s *_settings) MaxPageSearchSize(maxpagesearchsize int) *_settings { return s } -// If `true`, the transform runs in unattended mode. In unattended mode, the -// transform retries indefinitely in case -// of an error which means the transform never fails. Setting the number of -// retries other than infinite fails in -// validation. func (s *_settings) Unattended(unattended bool) *_settings { s.v.Unattended = &unattended diff --git a/typedapi/esdsl/settingsanalyze.go b/typedapi/esdsl/settingsanalyze.go index ae17d25aa6..d807014e18 100644 --- a/typedapi/esdsl/settingsanalyze.go +++ b/typedapi/esdsl/settingsanalyze.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _settingsAnalyze struct { v *types.SettingsAnalyze diff --git a/typedapi/esdsl/settingshighlight.go b/typedapi/esdsl/settingshighlight.go index 7e1d5b522c..cf4ab87ad5 100644 --- a/typedapi/esdsl/settingshighlight.go +++ b/typedapi/esdsl/settingshighlight.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _settingsHighlight struct { v *types.SettingsHighlight diff --git a/typedapi/esdsl/settingsquerystring.go b/typedapi/esdsl/settingsquerystring.go index 2d07256ab3..5ed61e22b8 100644 --- a/typedapi/esdsl/settingsquerystring.go +++ b/typedapi/esdsl/settingsquerystring.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _settingsQueryString struct { v *types.SettingsQueryString diff --git a/typedapi/esdsl/settingssearch.go b/typedapi/esdsl/settingssearch.go index 90011c9d9c..f57bf183b6 100644 --- a/typedapi/esdsl/settingssearch.go +++ b/typedapi/esdsl/settingssearch.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _settingsSearch struct { v *types.SettingsSearch diff --git a/typedapi/esdsl/settingssimilarity.go b/typedapi/esdsl/settingssimilarity.go index 3619e2e2e6..ed4a8e09eb 100644 --- a/typedapi/esdsl/settingssimilarity.go +++ b/typedapi/esdsl/settingssimilarity.go @@ -16,11 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" +) // This is provide all the types that are part of the union. type _settingsSimilarity struct { @@ -31,6 +35,13 @@ func NewSettingsSimilarity() *_settingsSimilarity { return &_settingsSimilarity{v: nil} } +// UnknownSettingsSimilarity is used to set the unknown value of the union. +// Highlited as @non_exhaustive in the specification. +func (u *_settingsSimilarity) UnknownSettingsSimilarity(unknown json.RawMessage) *_settingsSimilarity { + u.v = unknown + return u +} + func (u *_settingsSimilarity) SettingsSimilarityBm25(settingssimilaritybm25 types.SettingsSimilarityBm25Variant) *_settingsSimilarity { u.v = &settingssimilaritybm25 diff --git a/typedapi/esdsl/settingssimilaritybm25.go b/typedapi/esdsl/settingssimilaritybm25.go index 646e5016e8..231b853cf2 100644 --- a/typedapi/esdsl/settingssimilaritybm25.go +++ b/typedapi/esdsl/settingssimilaritybm25.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _settingsSimilarityBm25 struct { v *types.SettingsSimilarityBm25 diff --git a/typedapi/esdsl/settingssimilarityboolean.go b/typedapi/esdsl/settingssimilarityboolean.go index 9220f286fd..16277de3f2 100644 --- a/typedapi/esdsl/settingssimilarityboolean.go +++ b/typedapi/esdsl/settingssimilarityboolean.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _settingsSimilarityBoolean struct { v *types.SettingsSimilarityBoolean diff --git a/typedapi/esdsl/settingssimilaritydfi.go b/typedapi/esdsl/settingssimilaritydfi.go index 183be6e1fb..59878dd468 100644 --- a/typedapi/esdsl/settingssimilaritydfi.go +++ b/typedapi/esdsl/settingssimilaritydfi.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfiindependencemeasure" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dfiindependencemeasure" ) type _settingsSimilarityDfi struct { diff --git a/typedapi/esdsl/settingssimilaritydfr.go b/typedapi/esdsl/settingssimilaritydfr.go index f66904572f..b01f96fe68 100644 --- a/typedapi/esdsl/settingssimilaritydfr.go +++ b/typedapi/esdsl/settingssimilaritydfr.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfraftereffect" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfrbasicmodel" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalization" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dfraftereffect" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dfrbasicmodel" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/normalization" ) type _settingsSimilarityDfr struct { diff --git a/typedapi/esdsl/settingssimilarityib.go b/typedapi/esdsl/settingssimilarityib.go index 570387e9ab..27960db618 100644 --- a/typedapi/esdsl/settingssimilarityib.go +++ b/typedapi/esdsl/settingssimilarityib.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ibdistribution" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/iblambda" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalization" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ibdistribution" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/iblambda" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/normalization" ) type _settingsSimilarityIb struct { diff --git a/typedapi/esdsl/settingssimilaritylmd.go b/typedapi/esdsl/settingssimilaritylmd.go index f5e841d87d..17dd4099e7 100644 --- a/typedapi/esdsl/settingssimilaritylmd.go +++ b/typedapi/esdsl/settingssimilaritylmd.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _settingsSimilarityLmd struct { v *types.SettingsSimilarityLmd diff --git a/typedapi/esdsl/settingssimilaritylmj.go b/typedapi/esdsl/settingssimilaritylmj.go index b8b9c089bd..ca190cf5ba 100644 --- a/typedapi/esdsl/settingssimilaritylmj.go +++ b/typedapi/esdsl/settingssimilaritylmj.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _settingsSimilarityLmj struct { v *types.SettingsSimilarityLmj diff --git a/typedapi/esdsl/settingssimilarityscripted.go b/typedapi/esdsl/settingssimilarityscripted.go index aa6f8ea6e1..30bacbc9a8 100644 --- a/typedapi/esdsl/settingssimilarityscripted.go +++ b/typedapi/esdsl/settingssimilarityscripted.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _settingsSimilarityScripted struct { v *types.SettingsSimilarityScripted diff --git a/typedapi/esdsl/shapefieldquery.go b/typedapi/esdsl/shapefieldquery.go index 4a31fcad55..b0f84ee1e6 100644 --- a/typedapi/esdsl/shapefieldquery.go +++ b/typedapi/esdsl/shapefieldquery.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoshaperelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geoshaperelation" ) type _shapeFieldQuery struct { @@ -37,7 +37,6 @@ func NewShapeFieldQuery() *_shapeFieldQuery { } -// Queries using a pre-indexed shape. func (s *_shapeFieldQuery) IndexedShape(indexedshape types.FieldLookupVariant) *_shapeFieldQuery { s.v.IndexedShape = indexedshape.FieldLookupCaster() @@ -45,15 +44,12 @@ func (s *_shapeFieldQuery) IndexedShape(indexedshape types.FieldLookupVariant) * return s } -// Spatial relation between the query shape and the document shape. func (s *_shapeFieldQuery) Relation(relation geoshaperelation.GeoShapeRelation) *_shapeFieldQuery { s.v.Relation = &relation return s } -// Queries using an inline shape definition in GeoJSON or Well Known Text (WKT) -// format. func (s *_shapeFieldQuery) Shape(geoshape json.RawMessage) *_shapeFieldQuery { s.v.Shape = geoshape diff --git a/typedapi/esdsl/shapeproperty.go b/typedapi/esdsl/shapeproperty.go index 0537c36fd9..8c6c9abe9d 100644 --- a/typedapi/esdsl/shapeproperty.go +++ b/typedapi/esdsl/shapeproperty.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoorientation" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/geoorientation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) type _shapeProperty struct { @@ -106,7 +106,6 @@ func (s *_shapeProperty) IgnoreZValue(ignorezvalue bool) *_shapeProperty { return s } -// Metadata about the field. func (s *_shapeProperty) Meta(meta map[string]string) *_shapeProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/shapequery.go b/typedapi/esdsl/shapequery.go index 0a66ed68e1..cf46b940a6 100644 --- a/typedapi/esdsl/shapequery.go +++ b/typedapi/esdsl/shapequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _shapeQuery struct { v *types.ShapeQuery @@ -33,11 +33,6 @@ func NewShapeQuery() *_shapeQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_shapeQuery) Boost(boost float32) *_shapeQuery { s.v.Boost = &boost @@ -45,8 +40,6 @@ func (s *_shapeQuery) Boost(boost float32) *_shapeQuery { return s } -// When set to `true` the query ignores an unmapped field and will not match any -// documents. func (s *_shapeQuery) IgnoreUnmapped(ignoreunmapped bool) *_shapeQuery { s.v.IgnoreUnmapped = &ignoreunmapped diff --git a/typedapi/esdsl/sharedfilesystemrepository.go b/typedapi/esdsl/sharedfilesystemrepository.go index 1578780987..7daf4519be 100644 --- a/typedapi/esdsl/sharedfilesystemrepository.go +++ b/typedapi/esdsl/sharedfilesystemrepository.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _sharedFileSystemRepository struct { v *types.SharedFileSystemRepository @@ -36,7 +36,6 @@ func NewSharedFileSystemRepository(settings types.SharedFileSystemRepositorySett } -// The repository settings. func (s *_sharedFileSystemRepository) Settings(settings types.SharedFileSystemRepositorySettingsVariant) *_sharedFileSystemRepository { s.v.Settings = *settings.SharedFileSystemRepositorySettingsCaster() diff --git a/typedapi/esdsl/sharedfilesystemrepositorysettings.go b/typedapi/esdsl/sharedfilesystemrepositorysettings.go index b516e3ff02..d76aa55d33 100644 --- a/typedapi/esdsl/sharedfilesystemrepositorysettings.go +++ b/typedapi/esdsl/sharedfilesystemrepositorysettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _sharedFileSystemRepositorySettings struct { v *types.SharedFileSystemRepositorySettings @@ -36,16 +36,6 @@ func NewSharedFileSystemRepositorySettings(location string) *_sharedFileSystemRe } -// Big files can be broken down into multiple smaller blobs in the blob store -// during snapshotting. -// It is not recommended to change this value from its default unless there is -// an explicit reason for limiting the size of blobs in the repository. -// Setting a value lower than the default can result in an increased number of -// API calls to the blob store during snapshot create and restore operations -// compared to using the default value and thus make both operations slower and -// more costly. -// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B. -// The default varies by repository type. func (s *_sharedFileSystemRepositorySettings) ChunkSize(bytesize types.ByteSizeVariant) *_sharedFileSystemRepositorySettings { s.v.ChunkSize = *bytesize.ByteSizeCaster() @@ -53,9 +43,6 @@ func (s *_sharedFileSystemRepositorySettings) ChunkSize(bytesize types.ByteSizeV return s } -// When set to `true`, metadata files are stored in compressed format. -// This setting doesn't affect index files that are already compressed by -// default. func (s *_sharedFileSystemRepositorySettings) Compress(compress bool) *_sharedFileSystemRepositorySettings { s.v.Compress = &compress @@ -63,10 +50,6 @@ func (s *_sharedFileSystemRepositorySettings) Compress(compress bool) *_sharedFi return s } -// The location of the shared filesystem used to store and retrieve snapshots. -// This location must be registered in the `path.repo` setting on all master and -// data nodes in the cluster. -// Unlike `path.repo`, this setting supports only a single file path. func (s *_sharedFileSystemRepositorySettings) Location(location string) *_sharedFileSystemRepositorySettings { s.v.Location = location @@ -74,8 +57,6 @@ func (s *_sharedFileSystemRepositorySettings) Location(location string) *_shared return s } -// The maximum number of snapshots the repository can contain. -// The default is `Integer.MAX_VALUE`, which is 2^31-1 or `2147483647`. func (s *_sharedFileSystemRepositorySettings) MaxNumberOfSnapshots(maxnumberofsnapshots int) *_sharedFileSystemRepositorySettings { s.v.MaxNumberOfSnapshots = &maxnumberofsnapshots @@ -83,9 +64,6 @@ func (s *_sharedFileSystemRepositorySettings) MaxNumberOfSnapshots(maxnumberofsn return s } -// The maximum snapshot restore rate per node. -// It defaults to unlimited. -// Note that restores are also throttled through recovery settings. func (s *_sharedFileSystemRepositorySettings) MaxRestoreBytesPerSec(bytesize types.ByteSizeVariant) *_sharedFileSystemRepositorySettings { s.v.MaxRestoreBytesPerSec = *bytesize.ByteSizeCaster() @@ -93,11 +71,6 @@ func (s *_sharedFileSystemRepositorySettings) MaxRestoreBytesPerSec(bytesize typ return s } -// The maximum snapshot creation rate per node. -// It defaults to 40mb per second. -// Note that if the recovery settings for managed services are set, then it -// defaults to unlimited, and the rate is additionally throttled through -// recovery settings. func (s *_sharedFileSystemRepositorySettings) MaxSnapshotBytesPerSec(bytesize types.ByteSizeVariant) *_sharedFileSystemRepositorySettings { s.v.MaxSnapshotBytesPerSec = *bytesize.ByteSizeCaster() @@ -105,21 +78,6 @@ func (s *_sharedFileSystemRepositorySettings) MaxSnapshotBytesPerSec(bytesize ty return s } -// If `true`, the repository is read-only. -// The cluster can retrieve and restore snapshots from the repository but not -// write to the repository or create snapshots in it. -// -// Only a cluster with write access can create snapshots in the repository. -// All other clusters connected to the repository should have the `readonly` -// parameter set to `true`. -// -// If `false`, the cluster can write to the repository and create snapshots in -// it. -// -// IMPORTANT: If you register the same snapshot repository with multiple -// clusters, only one cluster should have write access to the repository. -// Having multiple clusters write to the repository at the same time risks -// corrupting the contents of the repository. func (s *_sharedFileSystemRepositorySettings) Readonly(readonly bool) *_sharedFileSystemRepositorySettings { s.v.Readonly = &readonly diff --git a/typedapi/esdsl/shingletokenfilter.go b/typedapi/esdsl/shingletokenfilter.go index c3b1b498ec..a7bcff9a71 100644 --- a/typedapi/esdsl/shingletokenfilter.go +++ b/typedapi/esdsl/shingletokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _shingleTokenFilter struct { v *types.ShingleTokenFilter diff --git a/typedapi/esdsl/shortnumberproperty.go b/typedapi/esdsl/shortnumberproperty.go index 85a3150532..51f4f52a5b 100644 --- a/typedapi/esdsl/shortnumberproperty.go +++ b/typedapi/esdsl/shortnumberproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) type _shortNumberProperty struct { @@ -114,7 +114,6 @@ func (s *_shortNumberProperty) Index(index bool) *_shortNumberProperty { return s } -// Metadata about the field. func (s *_shortNumberProperty) Meta(meta map[string]string) *_shortNumberProperty { s.v.Meta = meta @@ -190,8 +189,6 @@ func (s *_shortNumberProperty) SyntheticSourceKeep(syntheticsourcekeep synthetic return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_shortNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_shortNumberProperty { s.v.TimeSeriesDimension = ×eriesdimension @@ -199,8 +196,6 @@ func (s *_shortNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_s return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_shortNumberProperty) TimeSeriesMetric(timeseriesmetric timeseriesmetrictype.TimeSeriesMetricType) *_shortNumberProperty { s.v.TimeSeriesMetric = ×eriesmetric diff --git a/typedapi/esdsl/shrinkaction.go b/typedapi/esdsl/shrinkaction.go index 8d5821a823..049d75696f 100644 --- a/typedapi/esdsl/shrinkaction.go +++ b/typedapi/esdsl/shrinkaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _shrinkAction struct { v *types.ShrinkAction diff --git a/typedapi/esdsl/significanttermsaggregation.go b/typedapi/esdsl/significanttermsaggregation.go index 55e8dca656..7bd69c2fe0 100644 --- a/typedapi/esdsl/significanttermsaggregation.go +++ b/typedapi/esdsl/significanttermsaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationexecutionhint" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termsaggregationexecutionhint" ) type _significantTermsAggregation struct { @@ -36,8 +36,6 @@ func NewSignificantTermsAggregation() *_significantTermsAggregation { } -// A background filter that can be used to focus in on significant terms within -// a narrower context, instead of the entire index. func (s *_significantTermsAggregation) BackgroundFilter(backgroundfilter types.QueryVariant) *_significantTermsAggregation { s.v.BackgroundFilter = backgroundfilter.QueryCaster() @@ -45,8 +43,6 @@ func (s *_significantTermsAggregation) BackgroundFilter(backgroundfilter types.Q return s } -// Use Chi square, as described in "Information Retrieval", Manning et al., -// Chapter 13.5.2, as the significance score. func (s *_significantTermsAggregation) ChiSquare(chisquare types.ChiSquareHeuristicVariant) *_significantTermsAggregation { s.v.ChiSquare = chisquare.ChiSquareHeuristicCaster() @@ -54,7 +50,6 @@ func (s *_significantTermsAggregation) ChiSquare(chisquare types.ChiSquareHeuris return s } -// Terms to exclude. func (s *_significantTermsAggregation) Exclude(termsexcludes ...string) *_significantTermsAggregation { s.v.Exclude = termsexcludes @@ -62,15 +57,12 @@ func (s *_significantTermsAggregation) Exclude(termsexcludes ...string) *_signif return s } -// Mechanism by which the aggregation should be executed: using field values -// directly or using global ordinals. func (s *_significantTermsAggregation) ExecutionHint(executionhint termsaggregationexecutionhint.TermsAggregationExecutionHint) *_significantTermsAggregation { s.v.ExecutionHint = &executionhint return s } -// The field from which to return significant terms. func (s *_significantTermsAggregation) Field(field string) *_significantTermsAggregation { s.v.Field = &field @@ -78,8 +70,6 @@ func (s *_significantTermsAggregation) Field(field string) *_significantTermsAgg return s } -// Use Google normalized distance as described in "The Google Similarity -// Distance", Cilibrasi and Vitanyi, 2007, as the significance score. func (s *_significantTermsAggregation) Gnd(gnd types.GoogleNormalizedDistanceHeuristicVariant) *_significantTermsAggregation { s.v.Gnd = gnd.GoogleNormalizedDistanceHeuristicCaster() @@ -87,7 +77,6 @@ func (s *_significantTermsAggregation) Gnd(gnd types.GoogleNormalizedDistanceHeu return s } -// Terms to include. func (s *_significantTermsAggregation) Include(termsinclude types.TermsIncludeVariant) *_significantTermsAggregation { s.v.Include = *termsinclude.TermsIncludeCaster() @@ -95,7 +84,6 @@ func (s *_significantTermsAggregation) Include(termsinclude types.TermsIncludeVa return s } -// Use JLH score as the significance score. func (s *_significantTermsAggregation) Jlh(jlh types.EmptyObjectVariant) *_significantTermsAggregation { s.v.Jlh = jlh.EmptyObjectCaster() @@ -103,7 +91,6 @@ func (s *_significantTermsAggregation) Jlh(jlh types.EmptyObjectVariant) *_signi return s } -// Only return terms that are found in more than `min_doc_count` hits. func (s *_significantTermsAggregation) MinDocCount(mindoccount int64) *_significantTermsAggregation { s.v.MinDocCount = &mindoccount @@ -111,8 +98,6 @@ func (s *_significantTermsAggregation) MinDocCount(mindoccount int64) *_signific return s } -// Use mutual information as described in "Information Retrieval", Manning et -// al., Chapter 13.5.1, as the significance score. func (s *_significantTermsAggregation) MutualInformation(mutualinformation types.MutualInformationHeuristicVariant) *_significantTermsAggregation { s.v.MutualInformation = mutualinformation.MutualInformationHeuristicCaster() @@ -120,8 +105,6 @@ func (s *_significantTermsAggregation) MutualInformation(mutualinformation types return s } -// A simple calculation of the number of documents in the foreground sample with -// a term divided by the number of documents in the background with the term. func (s *_significantTermsAggregation) Percentage(percentage types.PercentageScoreHeuristicVariant) *_significantTermsAggregation { s.v.Percentage = percentage.PercentageScoreHeuristicCaster() @@ -129,7 +112,6 @@ func (s *_significantTermsAggregation) Percentage(percentage types.PercentageSco return s } -// Customized score, implemented via a script. func (s *_significantTermsAggregation) ScriptHeuristic(scriptheuristic types.ScriptedHeuristicVariant) *_significantTermsAggregation { s.v.ScriptHeuristic = scriptheuristic.ScriptedHeuristicCaster() @@ -137,10 +119,6 @@ func (s *_significantTermsAggregation) ScriptHeuristic(scriptheuristic types.Scr return s } -// Regulates the certainty a shard has if the term should actually be added to -// the candidate list or not with respect to the `min_doc_count`. -// Terms will only be considered if their local shard frequency within the set -// is higher than the `shard_min_doc_count`. func (s *_significantTermsAggregation) ShardMinDocCount(shardmindoccount int64) *_significantTermsAggregation { s.v.ShardMinDocCount = &shardmindoccount @@ -148,9 +126,6 @@ func (s *_significantTermsAggregation) ShardMinDocCount(shardmindoccount int64) return s } -// Can be used to control the volumes of candidate terms produced by each shard. -// By default, `shard_size` will be automatically estimated based on the number -// of shards and the `size` parameter. func (s *_significantTermsAggregation) ShardSize(shardsize int) *_significantTermsAggregation { s.v.ShardSize = &shardsize @@ -158,7 +133,6 @@ func (s *_significantTermsAggregation) ShardSize(shardsize int) *_significantTer return s } -// The number of buckets returned out of the overall terms list. func (s *_significantTermsAggregation) Size(size int) *_significantTermsAggregation { s.v.Size = &size diff --git a/typedapi/esdsl/significanttextaggregation.go b/typedapi/esdsl/significanttextaggregation.go index 206c70dda6..4d3625425c 100644 --- a/typedapi/esdsl/significanttextaggregation.go +++ b/typedapi/esdsl/significanttextaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationexecutionhint" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termsaggregationexecutionhint" ) type _significantTextAggregation struct { @@ -36,8 +36,6 @@ func NewSignificantTextAggregation() *_significantTextAggregation { } -// A background filter that can be used to focus in on significant terms within -// a narrower context, instead of the entire index. func (s *_significantTextAggregation) BackgroundFilter(backgroundfilter types.QueryVariant) *_significantTextAggregation { s.v.BackgroundFilter = backgroundfilter.QueryCaster() @@ -45,8 +43,6 @@ func (s *_significantTextAggregation) BackgroundFilter(backgroundfilter types.Qu return s } -// Use Chi square, as described in "Information Retrieval", Manning et al., -// Chapter 13.5.2, as the significance score. func (s *_significantTextAggregation) ChiSquare(chisquare types.ChiSquareHeuristicVariant) *_significantTextAggregation { s.v.ChiSquare = chisquare.ChiSquareHeuristicCaster() @@ -54,7 +50,6 @@ func (s *_significantTextAggregation) ChiSquare(chisquare types.ChiSquareHeurist return s } -// Values to exclude. func (s *_significantTextAggregation) Exclude(termsexcludes ...string) *_significantTextAggregation { s.v.Exclude = termsexcludes @@ -62,15 +57,12 @@ func (s *_significantTextAggregation) Exclude(termsexcludes ...string) *_signifi return s } -// Determines whether the aggregation will use field values directly or global -// ordinals. func (s *_significantTextAggregation) ExecutionHint(executionhint termsaggregationexecutionhint.TermsAggregationExecutionHint) *_significantTextAggregation { s.v.ExecutionHint = &executionhint return s } -// The field from which to return significant text. func (s *_significantTextAggregation) Field(field string) *_significantTextAggregation { s.v.Field = &field @@ -78,7 +70,6 @@ func (s *_significantTextAggregation) Field(field string) *_significantTextAggre return s } -// Whether to out duplicate text to deal with noisy data. func (s *_significantTextAggregation) FilterDuplicateText(filterduplicatetext bool) *_significantTextAggregation { s.v.FilterDuplicateText = &filterduplicatetext @@ -86,8 +77,6 @@ func (s *_significantTextAggregation) FilterDuplicateText(filterduplicatetext bo return s } -// Use Google normalized distance as described in "The Google Similarity -// Distance", Cilibrasi and Vitanyi, 2007, as the significance score. func (s *_significantTextAggregation) Gnd(gnd types.GoogleNormalizedDistanceHeuristicVariant) *_significantTextAggregation { s.v.Gnd = gnd.GoogleNormalizedDistanceHeuristicCaster() @@ -95,7 +84,6 @@ func (s *_significantTextAggregation) Gnd(gnd types.GoogleNormalizedDistanceHeur return s } -// Values to include. func (s *_significantTextAggregation) Include(termsinclude types.TermsIncludeVariant) *_significantTextAggregation { s.v.Include = *termsinclude.TermsIncludeCaster() @@ -103,7 +91,6 @@ func (s *_significantTextAggregation) Include(termsinclude types.TermsIncludeVar return s } -// Use JLH score as the significance score. func (s *_significantTextAggregation) Jlh(jlh types.EmptyObjectVariant) *_significantTextAggregation { s.v.Jlh = jlh.EmptyObjectCaster() @@ -111,7 +98,6 @@ func (s *_significantTextAggregation) Jlh(jlh types.EmptyObjectVariant) *_signif return s } -// Only return values that are found in more than `min_doc_count` hits. func (s *_significantTextAggregation) MinDocCount(mindoccount int64) *_significantTextAggregation { s.v.MinDocCount = &mindoccount @@ -119,8 +105,6 @@ func (s *_significantTextAggregation) MinDocCount(mindoccount int64) *_significa return s } -// Use mutual information as described in "Information Retrieval", Manning et -// al., Chapter 13.5.1, as the significance score. func (s *_significantTextAggregation) MutualInformation(mutualinformation types.MutualInformationHeuristicVariant) *_significantTextAggregation { s.v.MutualInformation = mutualinformation.MutualInformationHeuristicCaster() @@ -128,8 +112,6 @@ func (s *_significantTextAggregation) MutualInformation(mutualinformation types. return s } -// A simple calculation of the number of documents in the foreground sample with -// a term divided by the number of documents in the background with the term. func (s *_significantTextAggregation) Percentage(percentage types.PercentageScoreHeuristicVariant) *_significantTextAggregation { s.v.Percentage = percentage.PercentageScoreHeuristicCaster() @@ -137,7 +119,6 @@ func (s *_significantTextAggregation) Percentage(percentage types.PercentageScor return s } -// Customized score, implemented via a script. func (s *_significantTextAggregation) ScriptHeuristic(scriptheuristic types.ScriptedHeuristicVariant) *_significantTextAggregation { s.v.ScriptHeuristic = scriptheuristic.ScriptedHeuristicCaster() @@ -145,10 +126,6 @@ func (s *_significantTextAggregation) ScriptHeuristic(scriptheuristic types.Scri return s } -// Regulates the certainty a shard has if the values should actually be added to -// the candidate list or not with respect to the min_doc_count. -// Values will only be considered if their local shard frequency within the set -// is higher than the `shard_min_doc_count`. func (s *_significantTextAggregation) ShardMinDocCount(shardmindoccount int64) *_significantTextAggregation { s.v.ShardMinDocCount = &shardmindoccount @@ -156,9 +133,6 @@ func (s *_significantTextAggregation) ShardMinDocCount(shardmindoccount int64) * return s } -// The number of candidate terms produced by each shard. -// By default, `shard_size` will be automatically estimated based on the number -// of shards and the `size` parameter. func (s *_significantTextAggregation) ShardSize(shardsize int) *_significantTextAggregation { s.v.ShardSize = &shardsize @@ -166,7 +140,6 @@ func (s *_significantTextAggregation) ShardSize(shardsize int) *_significantText return s } -// The number of buckets returned out of the overall terms list. func (s *_significantTextAggregation) Size(size int) *_significantTextAggregation { s.v.Size = &size @@ -174,7 +147,6 @@ func (s *_significantTextAggregation) Size(size int) *_significantTextAggregatio return s } -// Overrides the JSON `_source` fields from which text will be analyzed. func (s *_significantTextAggregation) SourceFields(fields ...string) *_significantTextAggregation { s.v.SourceFields = fields diff --git a/typedapi/esdsl/simpleanalyzer.go b/typedapi/esdsl/simpleanalyzer.go index cc211c9ec5..ed8a58b0e4 100644 --- a/typedapi/esdsl/simpleanalyzer.go +++ b/typedapi/esdsl/simpleanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _simpleAnalyzer struct { v *types.SimpleAnalyzer diff --git a/typedapi/esdsl/simplemovingaverageaggregation.go b/typedapi/esdsl/simplemovingaverageaggregation.go index cff90619b4..5199bffb6c 100644 --- a/typedapi/esdsl/simplemovingaverageaggregation.go +++ b/typedapi/esdsl/simplemovingaverageaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _simpleMovingAverageAggregation struct { @@ -39,7 +39,6 @@ func NewSimpleMovingAverageAggregation(settings types.EmptyObjectVariant) *_simp } -// Path to the buckets that contain one set of values to correlate. func (s *_simpleMovingAverageAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_simpleMovingAverageAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -47,9 +46,6 @@ func (s *_simpleMovingAverageAggregation) BucketsPath(bucketspath types.BucketsP return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_simpleMovingAverageAggregation) Format(format string) *_simpleMovingAverageAggregation { s.v.Format = &format @@ -57,7 +53,6 @@ func (s *_simpleMovingAverageAggregation) Format(format string) *_simpleMovingAv return s } -// Policy to apply when gaps are found in the data. func (s *_simpleMovingAverageAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_simpleMovingAverageAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/simplepatternsplittokenizer.go b/typedapi/esdsl/simplepatternsplittokenizer.go index 5c22bef2eb..4ebee3ae7c 100644 --- a/typedapi/esdsl/simplepatternsplittokenizer.go +++ b/typedapi/esdsl/simplepatternsplittokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _simplePatternSplitTokenizer struct { v *types.SimplePatternSplitTokenizer diff --git a/typedapi/esdsl/simplepatterntokenizer.go b/typedapi/esdsl/simplepatterntokenizer.go index 54c509983a..6ac61a48fd 100644 --- a/typedapi/esdsl/simplepatterntokenizer.go +++ b/typedapi/esdsl/simplepatterntokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _simplePatternTokenizer struct { v *types.SimplePatternTokenizer diff --git a/typedapi/esdsl/simplequerystringflags.go b/typedapi/esdsl/simplequerystringflags.go index 33c371ca75..e10044379d 100644 --- a/typedapi/esdsl/simplequerystringflags.go +++ b/typedapi/esdsl/simplequerystringflags.go @@ -16,21 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _simpleQueryStringFlags struct { v types.SimpleQueryStringFlags } -func NewSimpleQueryStringFlags(simplequerystringflags types.PipeSeparatedFlagsSimpleQueryStringFlagVariant) *_simpleQueryStringFlags { - - return &_simpleQueryStringFlags{v: simplequerystringflags} - +func NewSimpleQueryStringFlags(simplequerystringflags types.PipeSeparatedFlagsSimpleQueryStringFlag) *_simpleQueryStringFlags { + return &_simpleQueryStringFlags{v: types.SimpleQueryStringFlags(simplequerystringflags)} } func (u *_simpleQueryStringFlags) SimpleQueryStringFlagsCaster() *types.SimpleQueryStringFlags { diff --git a/typedapi/esdsl/simplequerystringquery.go b/typedapi/esdsl/simplequerystringquery.go index b24699d569..25e1a70fdb 100644 --- a/typedapi/esdsl/simplequerystringquery.go +++ b/typedapi/esdsl/simplequerystringquery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" ) type _simpleQueryStringQuery struct { @@ -41,7 +41,6 @@ func NewSimpleQueryStringQuery(query string) *_simpleQueryStringQuery { } -// If `true`, the query attempts to analyze wildcard terms in the query string. func (s *_simpleQueryStringQuery) AnalyzeWildcard(analyzewildcard bool) *_simpleQueryStringQuery { s.v.AnalyzeWildcard = &analyzewildcard @@ -49,7 +48,6 @@ func (s *_simpleQueryStringQuery) AnalyzeWildcard(analyzewildcard bool) *_simple return s } -// Analyzer used to convert text in the query string into tokens. func (s *_simpleQueryStringQuery) Analyzer(analyzer string) *_simpleQueryStringQuery { s.v.Analyzer = &analyzer @@ -57,8 +55,6 @@ func (s *_simpleQueryStringQuery) Analyzer(analyzer string) *_simpleQueryStringQ return s } -// If `true`, the parser creates a match_phrase query for each multi-position -// token. func (s *_simpleQueryStringQuery) AutoGenerateSynonymsPhraseQuery(autogeneratesynonymsphrasequery bool) *_simpleQueryStringQuery { s.v.AutoGenerateSynonymsPhraseQuery = &autogeneratesynonymsphrasequery @@ -66,11 +62,6 @@ func (s *_simpleQueryStringQuery) AutoGenerateSynonymsPhraseQuery(autogeneratesy return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_simpleQueryStringQuery) Boost(boost float32) *_simpleQueryStringQuery { s.v.Boost = &boost @@ -78,20 +69,12 @@ func (s *_simpleQueryStringQuery) Boost(boost float32) *_simpleQueryStringQuery return s } -// Default boolean logic used to interpret text in the query string if no -// operators are specified. func (s *_simpleQueryStringQuery) DefaultOperator(defaultoperator operator.Operator) *_simpleQueryStringQuery { s.v.DefaultOperator = &defaultoperator return s } -// Array of fields you wish to search. -// Accepts wildcard expressions. -// You also can boost relevance scores for matches to particular fields using a -// caret (`^`) notation. -// Defaults to the `index.query.default_field index` setting, which has a -// default value of `*`. func (s *_simpleQueryStringQuery) Fields(fields ...string) *_simpleQueryStringQuery { for _, v := range fields { @@ -102,7 +85,6 @@ func (s *_simpleQueryStringQuery) Fields(fields ...string) *_simpleQueryStringQu return s } -// List of enabled operators for the simple query string syntax. func (s *_simpleQueryStringQuery) Flags(simplequerystringflags types.PipeSeparatedFlagsSimpleQueryStringFlag) *_simpleQueryStringQuery { s.v.Flags = simplequerystringflags @@ -110,7 +92,6 @@ func (s *_simpleQueryStringQuery) Flags(simplequerystringflags types.PipeSeparat return s } -// Maximum number of terms to which the query expands for fuzzy matching. func (s *_simpleQueryStringQuery) FuzzyMaxExpansions(fuzzymaxexpansions int) *_simpleQueryStringQuery { s.v.FuzzyMaxExpansions = &fuzzymaxexpansions @@ -118,7 +99,6 @@ func (s *_simpleQueryStringQuery) FuzzyMaxExpansions(fuzzymaxexpansions int) *_s return s } -// Number of beginning characters left unchanged for fuzzy matching. func (s *_simpleQueryStringQuery) FuzzyPrefixLength(fuzzyprefixlength int) *_simpleQueryStringQuery { s.v.FuzzyPrefixLength = &fuzzyprefixlength @@ -126,8 +106,6 @@ func (s *_simpleQueryStringQuery) FuzzyPrefixLength(fuzzyprefixlength int) *_sim return s } -// If `true`, edits for fuzzy matching include transpositions of two adjacent -// characters (for example, `ab` to `ba`). func (s *_simpleQueryStringQuery) FuzzyTranspositions(fuzzytranspositions bool) *_simpleQueryStringQuery { s.v.FuzzyTranspositions = &fuzzytranspositions @@ -135,8 +113,6 @@ func (s *_simpleQueryStringQuery) FuzzyTranspositions(fuzzytranspositions bool) return s } -// If `true`, format-based errors, such as providing a text value for a numeric -// field, are ignored. func (s *_simpleQueryStringQuery) Lenient(lenient bool) *_simpleQueryStringQuery { s.v.Lenient = &lenient @@ -144,7 +120,6 @@ func (s *_simpleQueryStringQuery) Lenient(lenient bool) *_simpleQueryStringQuery return s } -// Minimum number of clauses that must match for a document to be returned. func (s *_simpleQueryStringQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShouldMatchVariant) *_simpleQueryStringQuery { s.v.MinimumShouldMatch = *minimumshouldmatch.MinimumShouldMatchCaster() @@ -152,8 +127,6 @@ func (s *_simpleQueryStringQuery) MinimumShouldMatch(minimumshouldmatch types.Mi return s } -// Query string in the simple query string syntax you wish to parse and use for -// search. func (s *_simpleQueryStringQuery) Query(query string) *_simpleQueryStringQuery { s.v.Query = query @@ -168,7 +141,6 @@ func (s *_simpleQueryStringQuery) QueryName_(queryname_ string) *_simpleQueryStr return s } -// Suffix appended to quoted text in the query string. func (s *_simpleQueryStringQuery) QuoteFieldSuffix(quotefieldsuffix string) *_simpleQueryStringQuery { s.v.QuoteFieldSuffix = "efieldsuffix diff --git a/typedapi/esdsl/simulatedactions.go b/typedapi/esdsl/simulatedactions.go index 55a7840df0..e9652673b3 100644 --- a/typedapi/esdsl/simulatedactions.go +++ b/typedapi/esdsl/simulatedactions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _simulatedActions struct { v *types.SimulatedActions diff --git a/typedapi/esdsl/sizefield.go b/typedapi/esdsl/sizefield.go index 1ede79ab28..a7bf869e59 100644 --- a/typedapi/esdsl/sizefield.go +++ b/typedapi/esdsl/sizefield.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _sizeField struct { v *types.SizeField diff --git a/typedapi/esdsl/slackaction.go b/typedapi/esdsl/slackaction.go index ae48d1a46f..bdac43583f 100644 --- a/typedapi/esdsl/slackaction.go +++ b/typedapi/esdsl/slackaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _slackAction struct { v *types.SlackAction diff --git a/typedapi/esdsl/slackattachment.go b/typedapi/esdsl/slackattachment.go index 08dbc53b73..ee1a286146 100644 --- a/typedapi/esdsl/slackattachment.go +++ b/typedapi/esdsl/slackattachment.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _slackAttachment struct { v *types.SlackAttachment diff --git a/typedapi/esdsl/slackattachmentfield.go b/typedapi/esdsl/slackattachmentfield.go index 9506402fcb..88693869f5 100644 --- a/typedapi/esdsl/slackattachmentfield.go +++ b/typedapi/esdsl/slackattachmentfield.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _slackAttachmentField struct { v *types.SlackAttachmentField diff --git a/typedapi/esdsl/slackdynamicattachment.go b/typedapi/esdsl/slackdynamicattachment.go index 901f327212..e66562740c 100644 --- a/typedapi/esdsl/slackdynamicattachment.go +++ b/typedapi/esdsl/slackdynamicattachment.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _slackDynamicAttachment struct { v *types.SlackDynamicAttachment diff --git a/typedapi/esdsl/slackmessage.go b/typedapi/esdsl/slackmessage.go index 5db07fe7c3..36b8cbfab2 100644 --- a/typedapi/esdsl/slackmessage.go +++ b/typedapi/esdsl/slackmessage.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _slackMessage struct { v *types.SlackMessage diff --git a/typedapi/esdsl/slicedscroll.go b/typedapi/esdsl/slicedscroll.go index fd7328f56b..acba070352 100644 --- a/typedapi/esdsl/slicedscroll.go +++ b/typedapi/esdsl/slicedscroll.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _slicedScroll struct { v *types.SlicedScroll diff --git a/typedapi/esdsl/slowlogsettings.go b/typedapi/esdsl/slowlogsettings.go index 07228c9b2f..1f055fa774 100644 --- a/typedapi/esdsl/slowlogsettings.go +++ b/typedapi/esdsl/slowlogsettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _slowlogSettings struct { v *types.SlowlogSettings diff --git a/typedapi/esdsl/slowlogtresholdlevels.go b/typedapi/esdsl/slowlogtresholdlevels.go index a512d88e39..99e2c11f6d 100644 --- a/typedapi/esdsl/slowlogtresholdlevels.go +++ b/typedapi/esdsl/slowlogtresholdlevels.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _slowlogTresholdLevels struct { v *types.SlowlogTresholdLevels diff --git a/typedapi/esdsl/slowlogtresholds.go b/typedapi/esdsl/slowlogtresholds.go index d2bf3acdf0..96f8cdc99d 100644 --- a/typedapi/esdsl/slowlogtresholds.go +++ b/typedapi/esdsl/slowlogtresholds.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _slowlogTresholds struct { v *types.SlowlogTresholds diff --git a/typedapi/esdsl/smoothingmodelcontainer.go b/typedapi/esdsl/smoothingmodelcontainer.go index 6b4412afda..df583a0271 100644 --- a/typedapi/esdsl/smoothingmodelcontainer.go +++ b/typedapi/esdsl/smoothingmodelcontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _smoothingModelContainer struct { @@ -46,8 +46,6 @@ func (s *_smoothingModelContainer) AdditionalSmoothingModelContainerProperty(key return s } -// A smoothing model that uses an additive smoothing where a constant (typically -// `1.0` or smaller) is added to all counts to balance weights. func (s *_smoothingModelContainer) Laplace(laplace types.LaplaceSmoothingModelVariant) *_smoothingModelContainer { s.v.Laplace = laplace.LaplaceSmoothingModelCaster() @@ -55,8 +53,6 @@ func (s *_smoothingModelContainer) Laplace(laplace types.LaplaceSmoothingModelVa return s } -// A smoothing model that takes the weighted mean of the unigrams, bigrams, and -// trigrams based on user supplied weights (lambdas). func (s *_smoothingModelContainer) LinearInterpolation(linearinterpolation types.LinearInterpolationSmoothingModelVariant) *_smoothingModelContainer { s.v.LinearInterpolation = linearinterpolation.LinearInterpolationSmoothingModelCaster() @@ -64,9 +60,6 @@ func (s *_smoothingModelContainer) LinearInterpolation(linearinterpolation types return s } -// A simple backoff model that backs off to lower order n-gram models if the -// higher order count is `0` and discounts the lower order n-gram model by a -// constant factor. func (s *_smoothingModelContainer) StupidBackoff(stupidbackoff types.StupidBackoffSmoothingModelVariant) *_smoothingModelContainer { s.v.StupidBackoff = stupidbackoff.StupidBackoffSmoothingModelCaster() diff --git a/typedapi/esdsl/snowballanalyzer.go b/typedapi/esdsl/snowballanalyzer.go index a30c625e1f..b4b9e9c313 100644 --- a/typedapi/esdsl/snowballanalyzer.go +++ b/typedapi/esdsl/snowballanalyzer.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snowballlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/snowballlanguage" ) type _snowballAnalyzer struct { diff --git a/typedapi/esdsl/snowballtokenfilter.go b/typedapi/esdsl/snowballtokenfilter.go index f418b457c9..1bdf4f437e 100644 --- a/typedapi/esdsl/snowballtokenfilter.go +++ b/typedapi/esdsl/snowballtokenfilter.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snowballlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/snowballlanguage" ) type _snowballTokenFilter struct { diff --git a/typedapi/esdsl/softdeletes.go b/typedapi/esdsl/softdeletes.go index 28bee27ed6..60cf65d965 100644 --- a/typedapi/esdsl/softdeletes.go +++ b/typedapi/esdsl/softdeletes.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _softDeletes struct { v *types.SoftDeletes @@ -32,7 +32,6 @@ func NewSoftDeletes() *_softDeletes { } -// Indicates whether soft deletes are enabled on the index. func (s *_softDeletes) Enabled(enabled bool) *_softDeletes { s.v.Enabled = &enabled @@ -40,13 +39,6 @@ func (s *_softDeletes) Enabled(enabled bool) *_softDeletes { return s } -// The maximum period to retain a shard history retention lease before it is -// considered expired. -// Shard history retention leases ensure that soft deletes are retained during -// merges on the Lucene -// index. If a soft delete is merged away before it can be replicated to a -// follower the following -// process will fail due to incomplete history on the leader. func (s *_softDeletes) RetentionLease(retentionlease types.RetentionLeaseVariant) *_softDeletes { s.v.RetentionLease = retentionlease.RetentionLeaseCaster() diff --git a/typedapi/esdsl/soranianalyzer.go b/typedapi/esdsl/soranianalyzer.go index 6e0dabff63..12d02d6e3d 100644 --- a/typedapi/esdsl/soranianalyzer.go +++ b/typedapi/esdsl/soranianalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _soraniAnalyzer struct { v *types.SoraniAnalyzer diff --git a/typedapi/esdsl/sort.go b/typedapi/esdsl/sort.go index 2e740022b9..976f49d973 100644 --- a/typedapi/esdsl/sort.go +++ b/typedapi/esdsl/sort.go @@ -16,13 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _sort struct { v types.Sort } diff --git a/typedapi/esdsl/sortcombinations.go b/typedapi/esdsl/sortcombinations.go index 1aa2213136..d81309a478 100644 --- a/typedapi/esdsl/sortcombinations.go +++ b/typedapi/esdsl/sortcombinations.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _sortCombinations struct { diff --git a/typedapi/esdsl/sortoptions.go b/typedapi/esdsl/sortoptions.go index d24a3c6586..98788a9412 100644 --- a/typedapi/esdsl/sortoptions.go +++ b/typedapi/esdsl/sortoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _sortOptions struct { v *types.SortOptions diff --git a/typedapi/esdsl/sortprocessor.go b/typedapi/esdsl/sortprocessor.go index 2e7d570a4a..0b9863933d 100644 --- a/typedapi/esdsl/sortprocessor.go +++ b/typedapi/esdsl/sortprocessor.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) type _sortProcessor struct { @@ -40,8 +40,6 @@ func NewSortProcessor() *_sortProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_sortProcessor) Description(description string) *_sortProcessor { s.v.Description = &description @@ -49,7 +47,6 @@ func (s *_sortProcessor) Description(description string) *_sortProcessor { return s } -// The field to be sorted. func (s *_sortProcessor) Field(field string) *_sortProcessor { s.v.Field = field @@ -57,7 +54,6 @@ func (s *_sortProcessor) Field(field string) *_sortProcessor { return s } -// Conditionally execute the processor. func (s *_sortProcessor) If(if_ types.ScriptVariant) *_sortProcessor { s.v.If = if_.ScriptCaster() @@ -65,7 +61,6 @@ func (s *_sortProcessor) If(if_ types.ScriptVariant) *_sortProcessor { return s } -// Ignore failures for the processor. func (s *_sortProcessor) IgnoreFailure(ignorefailure bool) *_sortProcessor { s.v.IgnoreFailure = &ignorefailure @@ -73,7 +68,6 @@ func (s *_sortProcessor) IgnoreFailure(ignorefailure bool) *_sortProcessor { return s } -// Handle failures for the processor. func (s *_sortProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_sortProcessor { for _, v := range onfailures { @@ -84,16 +78,12 @@ func (s *_sortProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant return s } -// The sort order to use. -// Accepts `"asc"` or `"desc"`. func (s *_sortProcessor) Order(order sortorder.SortOrder) *_sortProcessor { s.v.Order = &order return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_sortProcessor) Tag(tag string) *_sortProcessor { s.v.Tag = &tag @@ -101,8 +91,6 @@ func (s *_sortProcessor) Tag(tag string) *_sortProcessor { return s } -// The field to assign the sorted value to. -// By default, the field is updated in-place. func (s *_sortProcessor) TargetField(field string) *_sortProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/sourceconfig.go b/typedapi/esdsl/sourceconfig.go index 9e1661327f..4ea4957dfd 100644 --- a/typedapi/esdsl/sourceconfig.go +++ b/typedapi/esdsl/sourceconfig.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _sourceConfig struct { diff --git a/typedapi/esdsl/sourcefield.go b/typedapi/esdsl/sourcefield.go index 7de3a93791..ed13b5c68f 100644 --- a/typedapi/esdsl/sourcefield.go +++ b/typedapi/esdsl/sourcefield.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sourcefieldmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sourcefieldmode" ) type _sourceField struct { diff --git a/typedapi/esdsl/sourcefilter.go b/typedapi/esdsl/sourcefilter.go index 8215725ae7..82551cbf84 100644 --- a/typedapi/esdsl/sourcefilter.go +++ b/typedapi/esdsl/sourcefilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _sourceFilter struct { v *types.SourceFilter diff --git a/typedapi/esdsl/sourceindex.go b/typedapi/esdsl/sourceindex.go index 4d8f156fa5..49c424d98e 100644 --- a/typedapi/esdsl/sourceindex.go +++ b/typedapi/esdsl/sourceindex.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _sourceIndex struct { v *types.SourceIndex diff --git a/typedapi/esdsl/sourceonlyrepository.go b/typedapi/esdsl/sourceonlyrepository.go index 3faf81f282..73908f146d 100644 --- a/typedapi/esdsl/sourceonlyrepository.go +++ b/typedapi/esdsl/sourceonlyrepository.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _sourceOnlyRepository struct { v *types.SourceOnlyRepository @@ -36,7 +36,6 @@ func NewSourceOnlyRepository(settings types.SourceOnlyRepositorySettingsVariant) } -// The repository settings. func (s *_sourceOnlyRepository) Settings(settings types.SourceOnlyRepositorySettingsVariant) *_sourceOnlyRepository { s.v.Settings = *settings.SourceOnlyRepositorySettingsCaster() diff --git a/typedapi/esdsl/sourceonlyrepositorysettings.go b/typedapi/esdsl/sourceonlyrepositorysettings.go index e154e31ef2..3cc32a2d2f 100644 --- a/typedapi/esdsl/sourceonlyrepositorysettings.go +++ b/typedapi/esdsl/sourceonlyrepositorysettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _sourceOnlyRepositorySettings struct { v *types.SourceOnlyRepositorySettings @@ -32,16 +32,6 @@ func NewSourceOnlyRepositorySettings() *_sourceOnlyRepositorySettings { } -// Big files can be broken down into multiple smaller blobs in the blob store -// during snapshotting. -// It is not recommended to change this value from its default unless there is -// an explicit reason for limiting the size of blobs in the repository. -// Setting a value lower than the default can result in an increased number of -// API calls to the blob store during snapshot create and restore operations -// compared to using the default value and thus make both operations slower and -// more costly. -// Specify the chunk size as a byte unit, for example: `10MB`, `5KB`, 500B. -// The default varies by repository type. func (s *_sourceOnlyRepositorySettings) ChunkSize(bytesize types.ByteSizeVariant) *_sourceOnlyRepositorySettings { s.v.ChunkSize = *bytesize.ByteSizeCaster() @@ -49,9 +39,6 @@ func (s *_sourceOnlyRepositorySettings) ChunkSize(bytesize types.ByteSizeVariant return s } -// When set to `true`, metadata files are stored in compressed format. -// This setting doesn't affect index files that are already compressed by -// default. func (s *_sourceOnlyRepositorySettings) Compress(compress bool) *_sourceOnlyRepositorySettings { s.v.Compress = &compress @@ -59,10 +46,6 @@ func (s *_sourceOnlyRepositorySettings) Compress(compress bool) *_sourceOnlyRepo return s } -// The delegated repository type. For valid values, refer to the `type` -// parameter. -// Source repositories can use `settings` properties for its delegated -// repository type. func (s *_sourceOnlyRepositorySettings) DelegateType(delegatetype string) *_sourceOnlyRepositorySettings { s.v.DelegateType = &delegatetype @@ -70,8 +53,6 @@ func (s *_sourceOnlyRepositorySettings) DelegateType(delegatetype string) *_sour return s } -// The maximum number of snapshots the repository can contain. -// The default is `Integer.MAX_VALUE`, which is 2^31-1 or `2147483647`. func (s *_sourceOnlyRepositorySettings) MaxNumberOfSnapshots(maxnumberofsnapshots int) *_sourceOnlyRepositorySettings { s.v.MaxNumberOfSnapshots = &maxnumberofsnapshots @@ -79,9 +60,6 @@ func (s *_sourceOnlyRepositorySettings) MaxNumberOfSnapshots(maxnumberofsnapshot return s } -// The maximum snapshot restore rate per node. -// It defaults to unlimited. -// Note that restores are also throttled through recovery settings. func (s *_sourceOnlyRepositorySettings) MaxRestoreBytesPerSec(bytesize types.ByteSizeVariant) *_sourceOnlyRepositorySettings { s.v.MaxRestoreBytesPerSec = *bytesize.ByteSizeCaster() @@ -89,11 +67,6 @@ func (s *_sourceOnlyRepositorySettings) MaxRestoreBytesPerSec(bytesize types.Byt return s } -// The maximum snapshot creation rate per node. -// It defaults to 40mb per second. -// Note that if the recovery settings for managed services are set, then it -// defaults to unlimited, and the rate is additionally throttled through -// recovery settings. func (s *_sourceOnlyRepositorySettings) MaxSnapshotBytesPerSec(bytesize types.ByteSizeVariant) *_sourceOnlyRepositorySettings { s.v.MaxSnapshotBytesPerSec = *bytesize.ByteSizeCaster() @@ -101,21 +74,6 @@ func (s *_sourceOnlyRepositorySettings) MaxSnapshotBytesPerSec(bytesize types.By return s } -// If `true`, the repository is read-only. -// The cluster can retrieve and restore snapshots from the repository but not -// write to the repository or create snapshots in it. -// -// Only a cluster with write access can create snapshots in the repository. -// All other clusters connected to the repository should have the `readonly` -// parameter set to `true`. -// -// If `false`, the cluster can write to the repository and create snapshots in -// it. -// -// IMPORTANT: If you register the same snapshot repository with multiple -// clusters, only one cluster should have write access to the repository. -// Having multiple clusters write to the repository at the same time risks -// corrupting the contents of the repository. func (s *_sourceOnlyRepositorySettings) ReadOnly(readonly bool) *_sourceOnlyRepositorySettings { s.v.ReadOnly = &readonly diff --git a/typedapi/esdsl/spancontainingquery.go b/typedapi/esdsl/spancontainingquery.go index fe7b5c9d0f..d5b2a65877 100644 --- a/typedapi/esdsl/spancontainingquery.go +++ b/typedapi/esdsl/spancontainingquery.go @@ -16,18 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _spanContainingQuery struct { v *types.SpanContainingQuery } -// Accepts a list of span queries, but only returns those spans which also match -// a second span query. +// Returns matches which enclose another span query. func NewSpanContainingQuery(big types.SpanQueryVariant, little types.SpanQueryVariant) *_spanContainingQuery { tmp := &_spanContainingQuery{v: types.NewSpanContainingQuery()} @@ -40,8 +39,6 @@ func NewSpanContainingQuery(big types.SpanQueryVariant, little types.SpanQueryVa } -// Can be any span query. -// Matching spans from `big` that contain matches from `little` are returned. func (s *_spanContainingQuery) Big(big types.SpanQueryVariant) *_spanContainingQuery { s.v.Big = *big.SpanQueryCaster() @@ -49,11 +46,6 @@ func (s *_spanContainingQuery) Big(big types.SpanQueryVariant) *_spanContainingQ return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_spanContainingQuery) Boost(boost float32) *_spanContainingQuery { s.v.Boost = &boost @@ -61,8 +53,6 @@ func (s *_spanContainingQuery) Boost(boost float32) *_spanContainingQuery { return s } -// Can be any span query. -// Matching spans from `big` that contain matches from `little` are returned. func (s *_spanContainingQuery) Little(little types.SpanQueryVariant) *_spanContainingQuery { s.v.Little = *little.SpanQueryCaster() diff --git a/typedapi/esdsl/spanfieldmaskingquery.go b/typedapi/esdsl/spanfieldmaskingquery.go index beba616cfc..aca67aab44 100644 --- a/typedapi/esdsl/spanfieldmaskingquery.go +++ b/typedapi/esdsl/spanfieldmaskingquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _spanFieldMaskingQuery struct { v *types.SpanFieldMaskingQuery @@ -38,11 +38,6 @@ func NewSpanFieldMaskingQuery(query types.SpanQueryVariant) *_spanFieldMaskingQu } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_spanFieldMaskingQuery) Boost(boost float32) *_spanFieldMaskingQuery { s.v.Boost = &boost diff --git a/typedapi/esdsl/spanfirstquery.go b/typedapi/esdsl/spanfirstquery.go index b705025f3a..6092aa9b8d 100644 --- a/typedapi/esdsl/spanfirstquery.go +++ b/typedapi/esdsl/spanfirstquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _spanFirstQuery struct { v *types.SpanFirstQuery @@ -39,11 +39,6 @@ func NewSpanFirstQuery(end int, match types.SpanQueryVariant) *_spanFirstQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_spanFirstQuery) Boost(boost float32) *_spanFirstQuery { s.v.Boost = &boost @@ -51,7 +46,6 @@ func (s *_spanFirstQuery) Boost(boost float32) *_spanFirstQuery { return s } -// Controls the maximum end position permitted in a match. func (s *_spanFirstQuery) End(end int) *_spanFirstQuery { s.v.End = end @@ -59,7 +53,6 @@ func (s *_spanFirstQuery) End(end int) *_spanFirstQuery { return s } -// Can be any other span type query. func (s *_spanFirstQuery) Match(match types.SpanQueryVariant) *_spanFirstQuery { s.v.Match = *match.SpanQueryCaster() diff --git a/typedapi/esdsl/spangapquery.go b/typedapi/esdsl/spangapquery.go index 3bb327d048..57b1b25581 100644 --- a/typedapi/esdsl/spangapquery.go +++ b/typedapi/esdsl/spangapquery.go @@ -16,19 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _spanGapQuery struct { v types.SpanGapQuery } func NewSpanGapQuery(spangapquery map[string]int) *_spanGapQuery { - return &_spanGapQuery{v: make(map[string]int, 0)} + return &_spanGapQuery{v: spangapquery} } func (u *_spanGapQuery) SpanGapQueryCaster() *types.SpanGapQuery { diff --git a/typedapi/esdsl/spanishanalyzer.go b/typedapi/esdsl/spanishanalyzer.go index 0c1577d38e..c76ae7690f 100644 --- a/typedapi/esdsl/spanishanalyzer.go +++ b/typedapi/esdsl/spanishanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _spanishAnalyzer struct { v *types.SpanishAnalyzer diff --git a/typedapi/esdsl/spanmultitermquery.go b/typedapi/esdsl/spanmultitermquery.go index acf4eb9150..ab93cee529 100644 --- a/typedapi/esdsl/spanmultitermquery.go +++ b/typedapi/esdsl/spanmultitermquery.go @@ -16,18 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _spanMultiTermQuery struct { v *types.SpanMultiTermQuery } -// Allows you to wrap a multi term query (one of `wildcard`, `fuzzy`, `prefix`, -// `range`, or `regexp` query) as a `span` query, so it can be nested. +// Wraps a `term`, `range`, `prefix`, `wildcard`, `regexp`, or `fuzzy` query. func NewSpanMultiTermQuery(match types.QueryVariant) *_spanMultiTermQuery { tmp := &_spanMultiTermQuery{v: types.NewSpanMultiTermQuery()} @@ -38,11 +37,6 @@ func NewSpanMultiTermQuery(match types.QueryVariant) *_spanMultiTermQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_spanMultiTermQuery) Boost(boost float32) *_spanMultiTermQuery { s.v.Boost = &boost @@ -50,8 +44,6 @@ func (s *_spanMultiTermQuery) Boost(boost float32) *_spanMultiTermQuery { return s } -// Should be a multi term query (one of `wildcard`, `fuzzy`, `prefix`, `range`, -// or `regexp` query). func (s *_spanMultiTermQuery) Match(match types.QueryVariant) *_spanMultiTermQuery { s.v.Match = *match.QueryCaster() diff --git a/typedapi/esdsl/spannearquery.go b/typedapi/esdsl/spannearquery.go index d5cfcd270a..eb62b11519 100644 --- a/typedapi/esdsl/spannearquery.go +++ b/typedapi/esdsl/spannearquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _spanNearQuery struct { v *types.SpanNearQuery @@ -35,11 +35,6 @@ func NewSpanNearQuery() *_spanNearQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_spanNearQuery) Boost(boost float32) *_spanNearQuery { s.v.Boost = &boost @@ -47,7 +42,6 @@ func (s *_spanNearQuery) Boost(boost float32) *_spanNearQuery { return s } -// Array of one or more other span type queries. func (s *_spanNearQuery) Clauses(clauses ...types.SpanQueryVariant) *_spanNearQuery { for _, v := range clauses { @@ -58,7 +52,6 @@ func (s *_spanNearQuery) Clauses(clauses ...types.SpanQueryVariant) *_spanNearQu return s } -// Controls whether matches are required to be in-order. func (s *_spanNearQuery) InOrder(inorder bool) *_spanNearQuery { s.v.InOrder = &inorder @@ -73,7 +66,6 @@ func (s *_spanNearQuery) QueryName_(queryname_ string) *_spanNearQuery { return s } -// Controls the maximum number of intervening unmatched positions permitted. func (s *_spanNearQuery) Slop(slop int) *_spanNearQuery { s.v.Slop = &slop diff --git a/typedapi/esdsl/spannotquery.go b/typedapi/esdsl/spannotquery.go index b5aef5c6f4..4b75c27534 100644 --- a/typedapi/esdsl/spannotquery.go +++ b/typedapi/esdsl/spannotquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _spanNotQuery struct { v *types.SpanNotQuery @@ -41,11 +41,6 @@ func NewSpanNotQuery(exclude types.SpanQueryVariant, include types.SpanQueryVari } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_spanNotQuery) Boost(boost float32) *_spanNotQuery { s.v.Boost = &boost @@ -53,9 +48,6 @@ func (s *_spanNotQuery) Boost(boost float32) *_spanNotQuery { return s } -// The number of tokens from within the include span that can’t have overlap -// with the exclude span. -// Equivalent to setting both `pre` and `post`. func (s *_spanNotQuery) Dist(dist int) *_spanNotQuery { s.v.Dist = &dist @@ -63,7 +55,6 @@ func (s *_spanNotQuery) Dist(dist int) *_spanNotQuery { return s } -// Span query whose matches must not overlap those returned. func (s *_spanNotQuery) Exclude(exclude types.SpanQueryVariant) *_spanNotQuery { s.v.Exclude = *exclude.SpanQueryCaster() @@ -71,7 +62,6 @@ func (s *_spanNotQuery) Exclude(exclude types.SpanQueryVariant) *_spanNotQuery { return s } -// Span query whose matches are filtered. func (s *_spanNotQuery) Include(include types.SpanQueryVariant) *_spanNotQuery { s.v.Include = *include.SpanQueryCaster() @@ -79,8 +69,6 @@ func (s *_spanNotQuery) Include(include types.SpanQueryVariant) *_spanNotQuery { return s } -// The number of tokens after the include span that can’t have overlap with the -// exclude span. func (s *_spanNotQuery) Post(post int) *_spanNotQuery { s.v.Post = &post @@ -88,8 +76,6 @@ func (s *_spanNotQuery) Post(post int) *_spanNotQuery { return s } -// The number of tokens before the include span that can’t have overlap with the -// exclude span. func (s *_spanNotQuery) Pre(pre int) *_spanNotQuery { s.v.Pre = &pre diff --git a/typedapi/esdsl/spanorquery.go b/typedapi/esdsl/spanorquery.go index 7019643a14..51297b229e 100644 --- a/typedapi/esdsl/spanorquery.go +++ b/typedapi/esdsl/spanorquery.go @@ -16,28 +16,24 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _spanOrQuery struct { v *types.SpanOrQuery } -// Matches the union of its span clauses. +// Combines multiple span queries and returns documents which match any of the +// specified queries. func NewSpanOrQuery() *_spanOrQuery { return &_spanOrQuery{v: types.NewSpanOrQuery()} } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_spanOrQuery) Boost(boost float32) *_spanOrQuery { s.v.Boost = &boost @@ -45,7 +41,6 @@ func (s *_spanOrQuery) Boost(boost float32) *_spanOrQuery { return s } -// Array of one or more other span type queries. func (s *_spanOrQuery) Clauses(clauses ...types.SpanQueryVariant) *_spanOrQuery { for _, v := range clauses { diff --git a/typedapi/esdsl/spanquery.go b/typedapi/esdsl/spanquery.go index b65360901e..dab8fdf17c 100644 --- a/typedapi/esdsl/spanquery.go +++ b/typedapi/esdsl/spanquery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _spanQuery struct { @@ -46,8 +46,6 @@ func (s *_spanQuery) AdditionalSpanQueryProperty(key string, value json.RawMessa return s } -// Accepts a list of span queries, but only returns those spans which also match -// a second span query. func (s *_spanQuery) SpanContaining(spancontaining types.SpanContainingQueryVariant) *_spanQuery { s.v.SpanContaining = spancontaining.SpanContainingQueryCaster() @@ -55,7 +53,6 @@ func (s *_spanQuery) SpanContaining(spancontaining types.SpanContainingQueryVari return s } -// Allows queries like `span_near` or `span_or` across different fields. func (s *_spanQuery) SpanFieldMasking(spanfieldmasking types.SpanFieldMaskingQueryVariant) *_spanQuery { s.v.SpanFieldMasking = spanfieldmasking.SpanFieldMaskingQueryCaster() @@ -63,8 +60,6 @@ func (s *_spanQuery) SpanFieldMasking(spanfieldmasking types.SpanFieldMaskingQue return s } -// Accepts another span query whose matches must appear within the first N -// positions of the field. func (s *_spanQuery) SpanFirst(spanfirst types.SpanFirstQueryVariant) *_spanQuery { s.v.SpanFirst = spanfirst.SpanFirstQueryCaster() @@ -79,7 +74,6 @@ func (s *_spanQuery) SpanGap(spangapquery types.SpanGapQueryVariant) *_spanQuery return s } -// Wraps a `term`, `range`, `prefix`, `wildcard`, `regexp`, or `fuzzy` query. func (s *_spanQuery) SpanMulti(spanmulti types.SpanMultiTermQueryVariant) *_spanQuery { s.v.SpanMulti = spanmulti.SpanMultiTermQueryCaster() @@ -87,8 +81,6 @@ func (s *_spanQuery) SpanMulti(spanmulti types.SpanMultiTermQueryVariant) *_span return s } -// Accepts multiple span queries whose matches must be within the specified -// distance of each other, and possibly in the same order. func (s *_spanQuery) SpanNear(spannear types.SpanNearQueryVariant) *_spanQuery { s.v.SpanNear = spannear.SpanNearQueryCaster() @@ -96,7 +88,6 @@ func (s *_spanQuery) SpanNear(spannear types.SpanNearQueryVariant) *_spanQuery { return s } -// Wraps another span query, and excludes any documents which match that query. func (s *_spanQuery) SpanNot(spannot types.SpanNotQueryVariant) *_spanQuery { s.v.SpanNot = spannot.SpanNotQueryCaster() @@ -104,8 +95,6 @@ func (s *_spanQuery) SpanNot(spannot types.SpanNotQueryVariant) *_spanQuery { return s } -// Combines multiple span queries and returns documents which match any of the -// specified queries. func (s *_spanQuery) SpanOr(spanor types.SpanOrQueryVariant) *_spanQuery { s.v.SpanOr = spanor.SpanOrQueryCaster() @@ -113,7 +102,6 @@ func (s *_spanQuery) SpanOr(spanor types.SpanOrQueryVariant) *_spanQuery { return s } -// The equivalent of the `term` query but for use with other span queries. // SpanTerm is a single key dictionnary. // It will replace the current value on each call. func (s *_spanQuery) SpanTerm(key string, value types.SpanTermQueryVariant) *_spanQuery { @@ -126,8 +114,6 @@ func (s *_spanQuery) SpanTerm(key string, value types.SpanTermQueryVariant) *_sp return s } -// The result from a single span query is returned as long is its span falls -// within the spans returned by a list of other span queries. func (s *_spanQuery) SpanWithin(spanwithin types.SpanWithinQueryVariant) *_spanQuery { s.v.SpanWithin = spanwithin.SpanWithinQueryCaster() diff --git a/typedapi/esdsl/spantermquery.go b/typedapi/esdsl/spantermquery.go index 88cd5edcfa..28787043a6 100644 --- a/typedapi/esdsl/spantermquery.go +++ b/typedapi/esdsl/spantermquery.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _spanTermQuery struct { k string v *types.SpanTermQuery } -// The equivalent of the `term` query but for use with other span queries. +// Matches spans containing a term. func NewSpanTermQuery(field string, value types.FieldValueVariant) *_spanTermQuery { tmp := &_spanTermQuery{ k: field, @@ -38,11 +38,6 @@ func NewSpanTermQuery(field string, value types.FieldValueVariant) *_spanTermQue return tmp } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_spanTermQuery) Boost(boost float32) *_spanTermQuery { s.v.Boost = &boost diff --git a/typedapi/esdsl/spanwithinquery.go b/typedapi/esdsl/spanwithinquery.go index 25f746b341..ec8dfcc614 100644 --- a/typedapi/esdsl/spanwithinquery.go +++ b/typedapi/esdsl/spanwithinquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _spanWithinQuery struct { v *types.SpanWithinQuery @@ -39,8 +39,6 @@ func NewSpanWithinQuery(big types.SpanQueryVariant, little types.SpanQueryVarian } -// Can be any span query. -// Matching spans from `little` that are enclosed within `big` are returned. func (s *_spanWithinQuery) Big(big types.SpanQueryVariant) *_spanWithinQuery { s.v.Big = *big.SpanQueryCaster() @@ -48,11 +46,6 @@ func (s *_spanWithinQuery) Big(big types.SpanQueryVariant) *_spanWithinQuery { return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_spanWithinQuery) Boost(boost float32) *_spanWithinQuery { s.v.Boost = &boost @@ -60,8 +53,6 @@ func (s *_spanWithinQuery) Boost(boost float32) *_spanWithinQuery { return s } -// Can be any span query. -// Matching spans from `little` that are enclosed within `big` are returned. func (s *_spanWithinQuery) Little(little types.SpanQueryVariant) *_spanWithinQuery { s.v.Little = *little.SpanQueryCaster() diff --git a/typedapi/esdsl/sparsevectorproperty.go b/typedapi/esdsl/sparsevectorproperty.go index 8880d26594..244fcf72c9 100644 --- a/typedapi/esdsl/sparsevectorproperty.go +++ b/typedapi/esdsl/sparsevectorproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _sparseVectorProperty struct { @@ -70,7 +70,6 @@ func (s *_sparseVectorProperty) IgnoreAbove(ignoreabove int) *_sparseVectorPrope return s } -// Metadata about the field. func (s *_sparseVectorProperty) Meta(meta map[string]string) *_sparseVectorProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/sparsevectorquery.go b/typedapi/esdsl/sparsevectorquery.go index db2a23b345..a5d2763044 100644 --- a/typedapi/esdsl/sparsevectorquery.go +++ b/typedapi/esdsl/sparsevectorquery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _sparseVectorQuery struct { @@ -46,11 +46,6 @@ func (s *_sparseVectorQuery) AdditionalSparseVectorQueryProperty(key string, val return s } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_sparseVectorQuery) Boost(boost float32) *_sparseVectorQuery { s.v.Boost = &boost @@ -58,9 +53,6 @@ func (s *_sparseVectorQuery) Boost(boost float32) *_sparseVectorQuery { return s } -// The name of the field that contains the token-weight pairs to be searched -// against. -// This field must be a mapped sparse_vector field. func (s *_sparseVectorQuery) Field(field string) *_sparseVectorQuery { s.v.Field = field @@ -68,12 +60,6 @@ func (s *_sparseVectorQuery) Field(field string) *_sparseVectorQuery { return s } -// The inference ID to use to convert the query text into token-weight pairs. -// It must be the same inference ID that was used to create the tokens from the -// input text. -// Only one of inference_id and query_vector is allowed. -// If inference_id is specified, query must also be specified. -// Only one of inference_id or query_vector may be supplied in a request. func (s *_sparseVectorQuery) InferenceId(id string) *_sparseVectorQuery { s.v.InferenceId = &id @@ -81,11 +67,6 @@ func (s *_sparseVectorQuery) InferenceId(id string) *_sparseVectorQuery { return s } -// Whether to perform pruning, omitting the non-significant tokens from the -// query to improve query performance. -// If prune is true but the pruning_config is not specified, pruning will occur -// but default values will be used. -// Default: false func (s *_sparseVectorQuery) Prune(prune bool) *_sparseVectorQuery { s.v.Prune = &prune @@ -93,12 +74,6 @@ func (s *_sparseVectorQuery) Prune(prune bool) *_sparseVectorQuery { return s } -// Optional pruning configuration. -// If enabled, this will omit non-significant tokens from the query in order to -// improve query performance. -// This is only used if prune is set to true. -// If prune is set to true but pruning_config is not specified, default values -// will be used. func (s *_sparseVectorQuery) PruningConfig(pruningconfig types.TokenPruningConfigVariant) *_sparseVectorQuery { s.v.PruningConfig = pruningconfig.TokenPruningConfigCaster() @@ -106,8 +81,6 @@ func (s *_sparseVectorQuery) PruningConfig(pruningconfig types.TokenPruningConfi return s } -// The query text you want to use for search. -// If inference_id is specified, query must also be specified. func (s *_sparseVectorQuery) Query(query string) *_sparseVectorQuery { s.v.Query = &query @@ -122,8 +95,6 @@ func (s *_sparseVectorQuery) QueryName_(queryname_ string) *_sparseVectorQuery { return s } -// Dictionary of precomputed sparse vectors and their associated weights. -// Only one of inference_id or query_vector may be supplied in a request. func (s *_sparseVectorQuery) QueryVector(queryvector map[string]float32) *_sparseVectorQuery { s.v.QueryVector = queryvector diff --git a/typedapi/esdsl/splitprocessor.go b/typedapi/esdsl/splitprocessor.go index d9c7d7154b..9fae1503f8 100644 --- a/typedapi/esdsl/splitprocessor.go +++ b/typedapi/esdsl/splitprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _splitProcessor struct { v *types.SplitProcessor @@ -38,8 +38,6 @@ func NewSplitProcessor(separator string) *_splitProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_splitProcessor) Description(description string) *_splitProcessor { s.v.Description = &description @@ -47,7 +45,6 @@ func (s *_splitProcessor) Description(description string) *_splitProcessor { return s } -// The field to split. func (s *_splitProcessor) Field(field string) *_splitProcessor { s.v.Field = field @@ -55,7 +52,6 @@ func (s *_splitProcessor) Field(field string) *_splitProcessor { return s } -// Conditionally execute the processor. func (s *_splitProcessor) If(if_ types.ScriptVariant) *_splitProcessor { s.v.If = if_.ScriptCaster() @@ -63,7 +59,6 @@ func (s *_splitProcessor) If(if_ types.ScriptVariant) *_splitProcessor { return s } -// Ignore failures for the processor. func (s *_splitProcessor) IgnoreFailure(ignorefailure bool) *_splitProcessor { s.v.IgnoreFailure = &ignorefailure @@ -71,8 +66,6 @@ func (s *_splitProcessor) IgnoreFailure(ignorefailure bool) *_splitProcessor { return s } -// If `true` and `field` does not exist, the processor quietly exits without -// modifying the document. func (s *_splitProcessor) IgnoreMissing(ignoremissing bool) *_splitProcessor { s.v.IgnoreMissing = &ignoremissing @@ -80,7 +73,6 @@ func (s *_splitProcessor) IgnoreMissing(ignoremissing bool) *_splitProcessor { return s } -// Handle failures for the processor. func (s *_splitProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_splitProcessor { for _, v := range onfailures { @@ -91,7 +83,6 @@ func (s *_splitProcessor) OnFailure(onfailures ...types.ProcessorContainerVarian return s } -// Preserves empty trailing fields, if any. func (s *_splitProcessor) PreserveTrailing(preservetrailing bool) *_splitProcessor { s.v.PreserveTrailing = &preservetrailing @@ -99,7 +90,6 @@ func (s *_splitProcessor) PreserveTrailing(preservetrailing bool) *_splitProcess return s } -// A regex which matches the separator, for example, `,` or `\s+`. func (s *_splitProcessor) Separator(separator string) *_splitProcessor { s.v.Separator = separator @@ -107,8 +97,6 @@ func (s *_splitProcessor) Separator(separator string) *_splitProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_splitProcessor) Tag(tag string) *_splitProcessor { s.v.Tag = &tag @@ -116,8 +104,6 @@ func (s *_splitProcessor) Tag(tag string) *_splitProcessor { return s } -// The field to assign the split value to. -// By default, the field is updated in-place. func (s *_splitProcessor) TargetField(field string) *_splitProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/standardanalyzer.go b/typedapi/esdsl/standardanalyzer.go index 620ca905fa..90c291ce78 100644 --- a/typedapi/esdsl/standardanalyzer.go +++ b/typedapi/esdsl/standardanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _standardAnalyzer struct { v *types.StandardAnalyzer @@ -32,9 +32,6 @@ func NewStandardAnalyzer() *_standardAnalyzer { } -// The maximum token length. If a token is seen that exceeds this length then it -// is split at `max_token_length` intervals. -// Defaults to `255`. func (s *_standardAnalyzer) MaxTokenLength(maxtokenlength int) *_standardAnalyzer { s.v.MaxTokenLength = &maxtokenlength @@ -42,9 +39,6 @@ func (s *_standardAnalyzer) MaxTokenLength(maxtokenlength int) *_standardAnalyze return s } -// A pre-defined stop words list like `_english_` or an array containing a list -// of stop words. -// Defaults to `_none_`. func (s *_standardAnalyzer) Stopwords(stopwords ...string) *_standardAnalyzer { s.v.Stopwords = stopwords @@ -52,7 +46,6 @@ func (s *_standardAnalyzer) Stopwords(stopwords ...string) *_standardAnalyzer { return s } -// The path to a file containing stop words. func (s *_standardAnalyzer) StopwordsPath(stopwordspath string) *_standardAnalyzer { s.v.StopwordsPath = &stopwordspath diff --git a/typedapi/esdsl/standardretriever.go b/typedapi/esdsl/standardretriever.go index 9313c143f2..efdc341846 100644 --- a/typedapi/esdsl/standardretriever.go +++ b/typedapi/esdsl/standardretriever.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _standardRetriever struct { v *types.StandardRetriever @@ -33,8 +33,6 @@ func NewStandardRetriever() *_standardRetriever { } -// Collapses the top documents by a specified key into a single top document per -// key. func (s *_standardRetriever) Collapse(collapse types.FieldCollapseVariant) *_standardRetriever { s.v.Collapse = collapse.FieldCollapseCaster() @@ -42,7 +40,6 @@ func (s *_standardRetriever) Collapse(collapse types.FieldCollapseVariant) *_sta return s } -// Query to filter the documents that can match. func (s *_standardRetriever) Filter(filters ...types.QueryVariant) *_standardRetriever { s.v.Filter = make([]types.Query, len(filters)) @@ -53,8 +50,6 @@ func (s *_standardRetriever) Filter(filters ...types.QueryVariant) *_standardRet return s } -// Minimum _score for matching documents. Documents with a lower _score are not -// included in the top documents. func (s *_standardRetriever) MinScore(minscore float32) *_standardRetriever { s.v.MinScore = &minscore @@ -62,7 +57,6 @@ func (s *_standardRetriever) MinScore(minscore float32) *_standardRetriever { return s } -// Defines a query to retrieve a set of top documents. func (s *_standardRetriever) Query(query types.QueryVariant) *_standardRetriever { s.v.Query = query.QueryCaster() @@ -70,7 +64,6 @@ func (s *_standardRetriever) Query(query types.QueryVariant) *_standardRetriever return s } -// Defines a search after object parameter used for pagination. func (s *_standardRetriever) SearchAfter(sortresults ...types.FieldValueVariant) *_standardRetriever { for _, v := range sortresults { @@ -80,7 +73,6 @@ func (s *_standardRetriever) SearchAfter(sortresults ...types.FieldValueVariant) return s } -// A sort object that that specifies the order of matching documents. func (s *_standardRetriever) Sort(sorts ...types.SortCombinationsVariant) *_standardRetriever { for _, v := range sorts { @@ -90,7 +82,6 @@ func (s *_standardRetriever) Sort(sorts ...types.SortCombinationsVariant) *_stan return s } -// Maximum number of documents to collect for each shard. func (s *_standardRetriever) TerminateAfter(terminateafter int) *_standardRetriever { s.v.TerminateAfter = &terminateafter diff --git a/typedapi/esdsl/standardtokenizer.go b/typedapi/esdsl/standardtokenizer.go index 2a0de48c9a..ecd7d9e346 100644 --- a/typedapi/esdsl/standardtokenizer.go +++ b/typedapi/esdsl/standardtokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _standardTokenizer struct { v *types.StandardTokenizer diff --git a/typedapi/esdsl/statsaggregation.go b/typedapi/esdsl/statsaggregation.go index a85aa76f35..b359183feb 100644 --- a/typedapi/esdsl/statsaggregation.go +++ b/typedapi/esdsl/statsaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _statsAggregation struct { v *types.StatsAggregation @@ -34,7 +34,6 @@ func NewStatsAggregation() *_statsAggregation { } -// The field on which to run the aggregation. func (s *_statsAggregation) Field(field string) *_statsAggregation { s.v.Field = &field @@ -49,8 +48,6 @@ func (s *_statsAggregation) Format(format string) *_statsAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_statsAggregation) Missing(missing types.MissingVariant) *_statsAggregation { s.v.Missing = *missing.MissingCaster() diff --git a/typedapi/esdsl/statsbucketaggregation.go b/typedapi/esdsl/statsbucketaggregation.go index a76e335c62..02cc398165 100644 --- a/typedapi/esdsl/statsbucketaggregation.go +++ b/typedapi/esdsl/statsbucketaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _statsBucketAggregation struct { @@ -37,7 +37,6 @@ func NewStatsBucketAggregation() *_statsBucketAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_statsBucketAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_statsBucketAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_statsBucketAggregation) BucketsPath(bucketspath types.BucketsPathVaria return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_statsBucketAggregation) Format(format string) *_statsBucketAggregation { s.v.Format = &format @@ -55,7 +51,6 @@ func (s *_statsBucketAggregation) Format(format string) *_statsBucketAggregation return s } -// Policy to apply when gaps are found in the data. func (s *_statsBucketAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_statsBucketAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/stemmeroverridetokenfilter.go b/typedapi/esdsl/stemmeroverridetokenfilter.go index c5317682aa..c70f0936c5 100644 --- a/typedapi/esdsl/stemmeroverridetokenfilter.go +++ b/typedapi/esdsl/stemmeroverridetokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _stemmerOverrideTokenFilter struct { v *types.StemmerOverrideTokenFilter diff --git a/typedapi/esdsl/stemmertokenfilter.go b/typedapi/esdsl/stemmertokenfilter.go index efa9b6694f..0cd7fa926f 100644 --- a/typedapi/esdsl/stemmertokenfilter.go +++ b/typedapi/esdsl/stemmertokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _stemmerTokenFilter struct { v *types.StemmerTokenFilter diff --git a/typedapi/esdsl/stepkey.go b/typedapi/esdsl/stepkey.go index 6d8483204d..5d0d2fc479 100644 --- a/typedapi/esdsl/stepkey.go +++ b/typedapi/esdsl/stepkey.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _stepKey struct { v *types.StepKey @@ -36,7 +36,6 @@ func NewStepKey(phase string) *_stepKey { } -// The optional action to which the index will be moved. func (s *_stepKey) Action(action string) *_stepKey { s.v.Action = &action @@ -44,7 +43,6 @@ func (s *_stepKey) Action(action string) *_stepKey { return s } -// The optional step name to which the index will be moved. func (s *_stepKey) Name(name string) *_stepKey { s.v.Name = &name diff --git a/typedapi/esdsl/stopanalyzer.go b/typedapi/esdsl/stopanalyzer.go index 86f78c9994..25a8a98c16 100644 --- a/typedapi/esdsl/stopanalyzer.go +++ b/typedapi/esdsl/stopanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _stopAnalyzer struct { v *types.StopAnalyzer @@ -32,9 +32,6 @@ func NewStopAnalyzer() *_stopAnalyzer { } -// A pre-defined stop words list like `_english_` or an array containing a list -// of stop words. -// Defaults to `_none_`. func (s *_stopAnalyzer) Stopwords(stopwords ...string) *_stopAnalyzer { s.v.Stopwords = stopwords @@ -42,7 +39,6 @@ func (s *_stopAnalyzer) Stopwords(stopwords ...string) *_stopAnalyzer { return s } -// The path to a file containing stop words. func (s *_stopAnalyzer) StopwordsPath(stopwordspath string) *_stopAnalyzer { s.v.StopwordsPath = &stopwordspath diff --git a/typedapi/esdsl/stoptokenfilter.go b/typedapi/esdsl/stoptokenfilter.go index b2555fad3b..f703e7deee 100644 --- a/typedapi/esdsl/stoptokenfilter.go +++ b/typedapi/esdsl/stoptokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _stopTokenFilter struct { v *types.StopTokenFilter diff --git a/typedapi/esdsl/stopwords.go b/typedapi/esdsl/stopwords.go index 5541ffd7f9..ae16978209 100644 --- a/typedapi/esdsl/stopwords.go +++ b/typedapi/esdsl/stopwords.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _stopWords struct { diff --git a/typedapi/esdsl/storage.go b/typedapi/esdsl/storage.go index ed913d07d2..8deaf3f797 100644 --- a/typedapi/esdsl/storage.go +++ b/typedapi/esdsl/storage.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/storagetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/storagetype" ) type _storage struct { @@ -39,13 +39,6 @@ func NewStorage(type_ storagetype.StorageType) *_storage { } -// You can restrict the use of the mmapfs and the related hybridfs store type -// via the setting node.store.allow_mmap. -// This is a boolean setting indicating whether or not memory-mapping is -// allowed. The default is to allow it. This -// 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. func (s *_storage) AllowMmap(allowmmap bool) *_storage { s.v.AllowMmap = &allowmmap diff --git a/typedapi/esdsl/storedscript.go b/typedapi/esdsl/storedscript.go index 19dbceee58..40cf33189e 100644 --- a/typedapi/esdsl/storedscript.go +++ b/typedapi/esdsl/storedscript.go @@ -16,33 +16,29 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptlanguage" ) type _storedScript struct { v *types.StoredScript } -func NewStoredScript(lang scriptlanguage.ScriptLanguage, source string) *_storedScript { +func NewStoredScript(lang scriptlanguage.ScriptLanguage) *_storedScript { tmp := &_storedScript{v: types.NewStoredScript()} tmp.Lang(lang) - tmp.Source(source) - return tmp } -// The language the script is written in. -// For serach templates, use `mustache`. func (s *_storedScript) Lang(lang scriptlanguage.ScriptLanguage) *_storedScript { s.v.Lang = lang @@ -70,11 +66,9 @@ func (s *_storedScript) AddOption(key string, value string) *_storedScript { return s } -// The script source. -// For search templates, an object containing the search template. -func (s *_storedScript) Source(source string) *_storedScript { +func (s *_storedScript) Source(scriptsource types.ScriptSourceVariant) *_storedScript { - s.v.Source = source + s.v.Source = *scriptsource.ScriptSourceCaster() return s } diff --git a/typedapi/esdsl/stringifiedboolean.go b/typedapi/esdsl/stringifiedboolean.go index c7b64e36e3..32719b266c 100644 --- a/typedapi/esdsl/stringifiedboolean.go +++ b/typedapi/esdsl/stringifiedboolean.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _stringifiedboolean struct { diff --git a/typedapi/esdsl/stringifiedepochtimeunitmillis.go b/typedapi/esdsl/stringifiedepochtimeunitmillis.go index a108736ed8..63e3bf6d91 100644 --- a/typedapi/esdsl/stringifiedepochtimeunitmillis.go +++ b/typedapi/esdsl/stringifiedepochtimeunitmillis.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _stringifiedEpochTimeUnitMillis struct { diff --git a/typedapi/esdsl/stringifiedinteger.go b/typedapi/esdsl/stringifiedinteger.go index d9271282f2..0fb6bca763 100644 --- a/typedapi/esdsl/stringifiedinteger.go +++ b/typedapi/esdsl/stringifiedinteger.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _stringifiedinteger struct { diff --git a/typedapi/esdsl/stringstatsaggregation.go b/typedapi/esdsl/stringstatsaggregation.go index 5af8dfbbf7..8206667c99 100644 --- a/typedapi/esdsl/stringstatsaggregation.go +++ b/typedapi/esdsl/stringstatsaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _stringStatsAggregation struct { v *types.StringStatsAggregation @@ -34,7 +34,6 @@ func NewStringStatsAggregation() *_stringStatsAggregation { } -// The field on which to run the aggregation. func (s *_stringStatsAggregation) Field(field string) *_stringStatsAggregation { s.v.Field = &field @@ -42,8 +41,6 @@ func (s *_stringStatsAggregation) Field(field string) *_stringStatsAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_stringStatsAggregation) Missing(missing types.MissingVariant) *_stringStatsAggregation { s.v.Missing = *missing.MissingCaster() @@ -58,7 +55,6 @@ func (s *_stringStatsAggregation) Script(script types.ScriptVariant) *_stringSta return s } -// Shows the probability distribution for all characters. func (s *_stringStatsAggregation) ShowDistribution(showdistribution bool) *_stringStatsAggregation { s.v.ShowDistribution = &showdistribution diff --git a/typedapi/esdsl/stupidbackoffsmoothingmodel.go b/typedapi/esdsl/stupidbackoffsmoothingmodel.go index 7525d6be56..9ed43c2a91 100644 --- a/typedapi/esdsl/stupidbackoffsmoothingmodel.go +++ b/typedapi/esdsl/stupidbackoffsmoothingmodel.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _stupidBackoffSmoothingModel struct { v *types.StupidBackoffSmoothingModel @@ -39,7 +39,6 @@ func NewStupidBackoffSmoothingModel(discount types.Float64) *_stupidBackoffSmoot } -// A constant factor that the lower order n-gram model is discounted by. func (s *_stupidBackoffSmoothingModel) Discount(discount types.Float64) *_stupidBackoffSmoothingModel { s.v.Discount = discount diff --git a/typedapi/esdsl/suggestcontext.go b/typedapi/esdsl/suggestcontext.go index b1a3d325e4..6e78c80f33 100644 --- a/typedapi/esdsl/suggestcontext.go +++ b/typedapi/esdsl/suggestcontext.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _suggestContext struct { v *types.SuggestContext diff --git a/typedapi/esdsl/suggester.go b/typedapi/esdsl/suggester.go index b813aac68e..5c8da036b9 100644 --- a/typedapi/esdsl/suggester.go +++ b/typedapi/esdsl/suggester.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _suggester struct { v *types.Suggester @@ -53,8 +53,6 @@ func (s *_suggester) AddSuggester(key string, value types.FieldSuggesterVariant) return s } -// Global suggest text, to avoid repetition when the same text is used in -// several suggesters func (s *_suggester) Text(text string) *_suggester { s.v.Text = &text diff --git a/typedapi/esdsl/suggestfuzziness.go b/typedapi/esdsl/suggestfuzziness.go index 520aa0a0b2..9ac5880d8a 100644 --- a/typedapi/esdsl/suggestfuzziness.go +++ b/typedapi/esdsl/suggestfuzziness.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _suggestFuzziness struct { v *types.SuggestFuzziness @@ -32,7 +32,6 @@ func NewSuggestFuzziness() *_suggestFuzziness { } -// The fuzziness factor. func (s *_suggestFuzziness) Fuzziness(fuzziness types.FuzzinessVariant) *_suggestFuzziness { s.v.Fuzziness = *fuzziness.FuzzinessCaster() @@ -40,7 +39,6 @@ func (s *_suggestFuzziness) Fuzziness(fuzziness types.FuzzinessVariant) *_sugges return s } -// Minimum length of the input before fuzzy suggestions are returned. func (s *_suggestFuzziness) MinLength(minlength int) *_suggestFuzziness { s.v.MinLength = &minlength @@ -48,7 +46,6 @@ func (s *_suggestFuzziness) MinLength(minlength int) *_suggestFuzziness { return s } -// Minimum length of the input, which is not checked for fuzzy alternatives. func (s *_suggestFuzziness) PrefixLength(prefixlength int) *_suggestFuzziness { s.v.PrefixLength = &prefixlength @@ -56,7 +53,6 @@ func (s *_suggestFuzziness) PrefixLength(prefixlength int) *_suggestFuzziness { return s } -// If set to `true`, transpositions are counted as one change instead of two. func (s *_suggestFuzziness) Transpositions(transpositions bool) *_suggestFuzziness { s.v.Transpositions = &transpositions @@ -64,9 +60,6 @@ func (s *_suggestFuzziness) Transpositions(transpositions bool) *_suggestFuzzine return s } -// If `true`, all measurements (like fuzzy edit distance, transpositions, and -// lengths) are measured in Unicode code points instead of in bytes. -// This is slightly slower than raw bytes. func (s *_suggestFuzziness) UnicodeAware(unicodeaware bool) *_suggestFuzziness { s.v.UnicodeAware = &unicodeaware diff --git a/typedapi/esdsl/sumaggregation.go b/typedapi/esdsl/sumaggregation.go index c7bad072ab..63743fe9f7 100644 --- a/typedapi/esdsl/sumaggregation.go +++ b/typedapi/esdsl/sumaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _sumAggregation struct { v *types.SumAggregation @@ -34,7 +34,6 @@ func NewSumAggregation() *_sumAggregation { } -// The field on which to run the aggregation. func (s *_sumAggregation) Field(field string) *_sumAggregation { s.v.Field = &field @@ -49,8 +48,6 @@ func (s *_sumAggregation) Format(format string) *_sumAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_sumAggregation) Missing(missing types.MissingVariant) *_sumAggregation { s.v.Missing = *missing.MissingCaster() diff --git a/typedapi/esdsl/sumbucketaggregation.go b/typedapi/esdsl/sumbucketaggregation.go index 0b901c2c35..a039a6e306 100644 --- a/typedapi/esdsl/sumbucketaggregation.go +++ b/typedapi/esdsl/sumbucketaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) type _sumBucketAggregation struct { @@ -37,7 +37,6 @@ func NewSumBucketAggregation() *_sumBucketAggregation { } -// Path to the buckets that contain one set of values to correlate. func (s *_sumBucketAggregation) BucketsPath(bucketspath types.BucketsPathVariant) *_sumBucketAggregation { s.v.BucketsPath = *bucketspath.BucketsPathCaster() @@ -45,9 +44,6 @@ func (s *_sumBucketAggregation) BucketsPath(bucketspath types.BucketsPathVariant return s } -// `DecimalFormat` pattern for the output value. -// If specified, the formatted value is returned in the aggregation’s -// `value_as_string` property. func (s *_sumBucketAggregation) Format(format string) *_sumBucketAggregation { s.v.Format = &format @@ -55,7 +51,6 @@ func (s *_sumBucketAggregation) Format(format string) *_sumBucketAggregation { return s } -// Policy to apply when gaps are found in the data. func (s *_sumBucketAggregation) GapPolicy(gappolicy gappolicy.GapPolicy) *_sumBucketAggregation { s.v.GapPolicy = &gappolicy diff --git a/typedapi/esdsl/swedishanalyzer.go b/typedapi/esdsl/swedishanalyzer.go index f9a5a0b209..0b973f3994 100644 --- a/typedapi/esdsl/swedishanalyzer.go +++ b/typedapi/esdsl/swedishanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _swedishAnalyzer struct { v *types.SwedishAnalyzer diff --git a/typedapi/esdsl/synccontainer.go b/typedapi/esdsl/synccontainer.go index fab477c561..277187e1f1 100644 --- a/typedapi/esdsl/synccontainer.go +++ b/typedapi/esdsl/synccontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _syncContainer struct { @@ -46,8 +46,6 @@ func (s *_syncContainer) AdditionalSyncContainerProperty(key string, value json. return s } -// Specifies that the transform uses a time field to synchronize the source and -// destination indices. func (s *_syncContainer) Time(time types.TimeSyncVariant) *_syncContainer { s.v.Time = time.TimeSyncCaster() diff --git a/typedapi/esdsl/syncrulesfeature.go b/typedapi/esdsl/syncrulesfeature.go index 0451759126..3082c11d85 100644 --- a/typedapi/esdsl/syncrulesfeature.go +++ b/typedapi/esdsl/syncrulesfeature.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _syncRulesFeature struct { v *types.SyncRulesFeature @@ -32,7 +32,6 @@ func NewSyncRulesFeature() *_syncRulesFeature { } -// Indicates whether advanced sync rules are enabled. func (s *_syncRulesFeature) Advanced(advanced types.FeatureEnabledVariant) *_syncRulesFeature { s.v.Advanced = advanced.FeatureEnabledCaster() @@ -40,7 +39,6 @@ func (s *_syncRulesFeature) Advanced(advanced types.FeatureEnabledVariant) *_syn return s } -// Indicates whether basic sync rules are enabled. func (s *_syncRulesFeature) Basic(basic types.FeatureEnabledVariant) *_syncRulesFeature { s.v.Basic = basic.FeatureEnabledCaster() diff --git a/typedapi/esdsl/synonymgraphtokenfilter.go b/typedapi/esdsl/synonymgraphtokenfilter.go index 0f21f322d3..d4ac1be9cb 100644 --- a/typedapi/esdsl/synonymgraphtokenfilter.go +++ b/typedapi/esdsl/synonymgraphtokenfilter.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/synonymformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/synonymformat" ) type _synonymGraphTokenFilter struct { diff --git a/typedapi/esdsl/synonymrule.go b/typedapi/esdsl/synonymrule.go index dc108d3541..90792a2f0f 100644 --- a/typedapi/esdsl/synonymrule.go +++ b/typedapi/esdsl/synonymrule.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _synonymRule struct { v *types.SynonymRule @@ -32,9 +32,6 @@ func NewSynonymRule() *_synonymRule { } -// The identifier for the synonym rule. -// If you do not specify a synonym rule ID when you create a rule, an identifier -// is created automatically by Elasticsearch. func (s *_synonymRule) Id(id string) *_synonymRule { s.v.Id = &id @@ -42,7 +39,6 @@ func (s *_synonymRule) Id(id string) *_synonymRule { return s } -// The synonyms that conform the synonym rule in Solr format. func (s *_synonymRule) Synonyms(synonymstring string) *_synonymRule { s.v.Synonyms = synonymstring diff --git a/typedapi/esdsl/synonymtokenfilter.go b/typedapi/esdsl/synonymtokenfilter.go index deac1063f9..9365617f0d 100644 --- a/typedapi/esdsl/synonymtokenfilter.go +++ b/typedapi/esdsl/synonymtokenfilter.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/synonymformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/synonymformat" ) type _synonymTokenFilter struct { diff --git a/typedapi/esdsl/tablevaluescontainer.go b/typedapi/esdsl/tablevaluescontainer.go index 64e1d02f4f..6dfc4b55e7 100644 --- a/typedapi/esdsl/tablevaluescontainer.go +++ b/typedapi/esdsl/tablevaluescontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _tableValuesContainer struct { diff --git a/typedapi/esdsl/tablevaluesintegervalue.go b/typedapi/esdsl/tablevaluesintegervalue.go index a2980f0620..6562817edd 100644 --- a/typedapi/esdsl/tablevaluesintegervalue.go +++ b/typedapi/esdsl/tablevaluesintegervalue.go @@ -16,13 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _tableValuesIntegerValue struct { v types.TableValuesIntegerValue } diff --git a/typedapi/esdsl/tablevalueskeywordvalue.go b/typedapi/esdsl/tablevalueskeywordvalue.go index dbf7ac2ca3..ccd7f1078e 100644 --- a/typedapi/esdsl/tablevalueskeywordvalue.go +++ b/typedapi/esdsl/tablevalueskeywordvalue.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _tableValuesKeywordValue struct { diff --git a/typedapi/esdsl/tablevalueslongdouble.go b/typedapi/esdsl/tablevalueslongdouble.go index 1243dd6151..b2e0963b6d 100644 --- a/typedapi/esdsl/tablevalueslongdouble.go +++ b/typedapi/esdsl/tablevalueslongdouble.go @@ -16,13 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _tableValuesLongDouble struct { v types.TableValuesLongDouble } diff --git a/typedapi/esdsl/tablevalueslongvalue.go b/typedapi/esdsl/tablevalueslongvalue.go index 82423af423..e70dae1a30 100644 --- a/typedapi/esdsl/tablevalueslongvalue.go +++ b/typedapi/esdsl/tablevalueslongvalue.go @@ -16,13 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _tableValuesLongValue struct { v types.TableValuesLongValue } diff --git a/typedapi/esdsl/targetmeanencodingpreprocessor.go b/typedapi/esdsl/targetmeanencodingpreprocessor.go index 4e45b4e302..15f304259c 100644 --- a/typedapi/esdsl/targetmeanencodingpreprocessor.go +++ b/typedapi/esdsl/targetmeanencodingpreprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _targetMeanEncodingPreprocessor struct { v *types.TargetMeanEncodingPreprocessor diff --git a/typedapi/esdsl/tdigest.go b/typedapi/esdsl/tdigest.go index 3cb786bed4..b8cc01abbe 100644 --- a/typedapi/esdsl/tdigest.go +++ b/typedapi/esdsl/tdigest.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _tDigest struct { v *types.TDigest @@ -32,9 +32,6 @@ func NewTDigest() *_tDigest { } -// Limits the maximum number of nodes used by the underlying TDigest algorithm -// to `20 * compression`, enabling control of memory usage and approximation -// error. func (s *_tDigest) Compression(compression int) *_tDigest { s.v.Compression = &compression diff --git a/typedapi/esdsl/templateconfig.go b/typedapi/esdsl/templateconfig.go index 46fe0b819f..56faf4a14a 100644 --- a/typedapi/esdsl/templateconfig.go +++ b/typedapi/esdsl/templateconfig.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _templateConfig struct { @@ -36,8 +36,6 @@ func NewTemplateConfig() *_templateConfig { } -// If `true`, returns detailed information about score calculation as part of -// each hit. func (s *_templateConfig) Explain(explain bool) *_templateConfig { s.v.Explain = &explain @@ -45,8 +43,6 @@ func (s *_templateConfig) Explain(explain bool) *_templateConfig { return s } -// The ID of the search template to use. If no `source` is specified, -// this parameter is required. func (s *_templateConfig) Id(id string) *_templateConfig { s.v.Id = &id @@ -54,9 +50,6 @@ func (s *_templateConfig) Id(id string) *_templateConfig { return s } -// Key-value pairs used to replace Mustache variables in the template. -// The key is the variable name. -// The value is the variable value. func (s *_templateConfig) Params(params map[string]json.RawMessage) *_templateConfig { s.v.Params = params @@ -78,7 +71,6 @@ func (s *_templateConfig) AddParam(key string, value json.RawMessage) *_template return s } -// If `true`, the query execution is profiled. func (s *_templateConfig) Profile(profile bool) *_templateConfig { s.v.Profile = &profile @@ -86,13 +78,9 @@ func (s *_templateConfig) Profile(profile bool) *_templateConfig { return s } -// An inline search template. Supports the same parameters as the search API's -// request body. It also supports Mustache variables. If no `id` is specified, -// this -// parameter is required. -func (s *_templateConfig) Source(source string) *_templateConfig { +func (s *_templateConfig) Source(scriptsource types.ScriptSourceVariant) *_templateConfig { - s.v.Source = &source + s.v.Source = *scriptsource.ScriptSourceCaster() return s } diff --git a/typedapi/esdsl/terminateprocessor.go b/typedapi/esdsl/terminateprocessor.go index 114224c975..9f0a64c89a 100644 --- a/typedapi/esdsl/terminateprocessor.go +++ b/typedapi/esdsl/terminateprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _terminateProcessor struct { v *types.TerminateProcessor @@ -35,8 +35,6 @@ func NewTerminateProcessor() *_terminateProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_terminateProcessor) Description(description string) *_terminateProcessor { s.v.Description = &description @@ -44,7 +42,6 @@ func (s *_terminateProcessor) Description(description string) *_terminateProcess return s } -// Conditionally execute the processor. func (s *_terminateProcessor) If(if_ types.ScriptVariant) *_terminateProcessor { s.v.If = if_.ScriptCaster() @@ -52,7 +49,6 @@ func (s *_terminateProcessor) If(if_ types.ScriptVariant) *_terminateProcessor { return s } -// Ignore failures for the processor. func (s *_terminateProcessor) IgnoreFailure(ignorefailure bool) *_terminateProcessor { s.v.IgnoreFailure = &ignorefailure @@ -60,7 +56,6 @@ func (s *_terminateProcessor) IgnoreFailure(ignorefailure bool) *_terminateProce return s } -// Handle failures for the processor. func (s *_terminateProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_terminateProcessor { for _, v := range onfailures { @@ -71,8 +66,6 @@ func (s *_terminateProcessor) OnFailure(onfailures ...types.ProcessorContainerVa return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_terminateProcessor) Tag(tag string) *_terminateProcessor { s.v.Tag = &tag diff --git a/typedapi/esdsl/termquery.go b/typedapi/esdsl/termquery.go index 14d5732b09..865c891402 100644 --- a/typedapi/esdsl/termquery.go +++ b/typedapi/esdsl/termquery.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _termQuery struct { k string v *types.TermQuery } -// Returns documents that contain an exact term in a provided field. +// Returns users that contain an exact term in a provided field. // To return a document, the query term must exactly match the queried field's // value, including whitespace and capitalization. func NewTermQuery(field string, value types.FieldValueVariant) *_termQuery { @@ -40,11 +40,6 @@ func NewTermQuery(field string, value types.FieldValueVariant) *_termQuery { return tmp } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_termQuery) Boost(boost float32) *_termQuery { s.v.Boost = &boost @@ -52,10 +47,6 @@ func (s *_termQuery) Boost(boost float32) *_termQuery { return s } -// Allows ASCII case insensitive matching of the value with the indexed field -// values when set to `true`. -// When `false`, the case sensitivity of matching depends on the underlying -// field’s mapping. func (s *_termQuery) CaseInsensitive(caseinsensitive bool) *_termQuery { s.v.CaseInsensitive = &caseinsensitive @@ -70,7 +61,6 @@ func (s *_termQuery) QueryName_(queryname_ string) *_termQuery { return s } -// Term you wish to find in the provided field. func (s *_termQuery) Value(fieldvalue types.FieldValueVariant) *_termQuery { s.v.Value = *fieldvalue.FieldValueCaster() diff --git a/typedapi/esdsl/termrangequery.go b/typedapi/esdsl/termrangequery.go index 2d1c7c2f13..4aae5ab13a 100644 --- a/typedapi/esdsl/termrangequery.go +++ b/typedapi/esdsl/termrangequery.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/rangerelation" ) type _termRangeQuery struct { @@ -30,7 +30,7 @@ type _termRangeQuery struct { v *types.TermRangeQuery } -// Returns users that contain terms within a provided range. +// Returns documents that contain terms within a provided range. func NewTermRangeQuery(key string) *_termRangeQuery { return &_termRangeQuery{ k: key, @@ -38,11 +38,6 @@ func NewTermRangeQuery(key string) *_termRangeQuery { } } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_termRangeQuery) Boost(boost float32) *_termRangeQuery { s.v.Boost = &boost @@ -57,7 +52,6 @@ func (s *_termRangeQuery) From(from string) *_termRangeQuery { return s } -// Greater than. func (s *_termRangeQuery) Gt(gt string) *_termRangeQuery { s.v.Gt = > @@ -65,7 +59,6 @@ func (s *_termRangeQuery) Gt(gt string) *_termRangeQuery { return s } -// Greater than or equal to. func (s *_termRangeQuery) Gte(gte string) *_termRangeQuery { s.v.Gte = >e @@ -73,7 +66,6 @@ func (s *_termRangeQuery) Gte(gte string) *_termRangeQuery { return s } -// Less than. func (s *_termRangeQuery) Lt(lt string) *_termRangeQuery { s.v.Lt = < @@ -81,7 +73,6 @@ func (s *_termRangeQuery) Lt(lt string) *_termRangeQuery { return s } -// Less than or equal to. func (s *_termRangeQuery) Lte(lte string) *_termRangeQuery { s.v.Lte = <e @@ -96,7 +87,6 @@ func (s *_termRangeQuery) QueryName_(queryname_ string) *_termRangeQuery { return s } -// Indicates how the range query matches values for `range` fields. func (s *_termRangeQuery) Relation(relation rangerelation.RangeRelation) *_termRangeQuery { s.v.Relation = &relation diff --git a/typedapi/esdsl/termsaggregation.go b/typedapi/esdsl/termsaggregation.go index 6fa0818ffa..4762156bf9 100644 --- a/typedapi/esdsl/termsaggregation.go +++ b/typedapi/esdsl/termsaggregation.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationcollectmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationexecutionhint" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/missingorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termsaggregationcollectmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termsaggregationexecutionhint" ) type _termsAggregation struct { @@ -39,16 +39,12 @@ func NewTermsAggregation() *_termsAggregation { } -// Determines how child aggregations should be calculated: breadth-first or -// depth-first. func (s *_termsAggregation) CollectMode(collectmode termsaggregationcollectmode.TermsAggregationCollectMode) *_termsAggregation { s.v.CollectMode = &collectmode return s } -// Values to exclude. -// Accepts regular expressions and partitions. func (s *_termsAggregation) Exclude(termsexcludes ...string) *_termsAggregation { s.v.Exclude = termsexcludes @@ -56,15 +52,12 @@ func (s *_termsAggregation) Exclude(termsexcludes ...string) *_termsAggregation return s } -// Determines whether the aggregation will use field values directly or global -// ordinals. func (s *_termsAggregation) ExecutionHint(executionhint termsaggregationexecutionhint.TermsAggregationExecutionHint) *_termsAggregation { s.v.ExecutionHint = &executionhint return s } -// The field from which to return terms. func (s *_termsAggregation) Field(field string) *_termsAggregation { s.v.Field = &field @@ -79,8 +72,6 @@ func (s *_termsAggregation) Format(format string) *_termsAggregation { return s } -// Values to include. -// Accepts regular expressions and partitions. func (s *_termsAggregation) Include(termsinclude types.TermsIncludeVariant) *_termsAggregation { s.v.Include = *termsinclude.TermsIncludeCaster() @@ -88,7 +79,6 @@ func (s *_termsAggregation) Include(termsinclude types.TermsIncludeVariant) *_te return s } -// Only return values that are found in more than `min_doc_count` hits. func (s *_termsAggregation) MinDocCount(mindoccount int) *_termsAggregation { s.v.MinDocCount = &mindoccount @@ -96,8 +86,6 @@ func (s *_termsAggregation) MinDocCount(mindoccount int) *_termsAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_termsAggregation) Missing(missing types.MissingVariant) *_termsAggregation { s.v.Missing = *missing.MissingCaster() @@ -118,8 +106,6 @@ func (s *_termsAggregation) MissingOrder(missingorder missingorder.MissingOrder) return s } -// Specifies the sort order of the buckets. -// Defaults to sorting by descending document count. func (s *_termsAggregation) Order(aggregateorder types.AggregateOrderVariant) *_termsAggregation { s.v.Order = *aggregateorder.AggregateOrderCaster() @@ -134,10 +120,6 @@ func (s *_termsAggregation) Script(script types.ScriptVariant) *_termsAggregatio return s } -// Regulates the certainty a shard has if the term should actually be added to -// the candidate list or not with respect to the `min_doc_count`. -// Terms will only be considered if their local shard frequency within the set -// is higher than the `shard_min_doc_count`. func (s *_termsAggregation) ShardMinDocCount(shardmindoccount int64) *_termsAggregation { s.v.ShardMinDocCount = &shardmindoccount @@ -145,9 +127,6 @@ func (s *_termsAggregation) ShardMinDocCount(shardmindoccount int64) *_termsAggr return s } -// The number of candidate terms produced by each shard. -// By default, `shard_size` will be automatically estimated based on the number -// of shards and the `size` parameter. func (s *_termsAggregation) ShardSize(shardsize int) *_termsAggregation { s.v.ShardSize = &shardsize @@ -155,8 +134,6 @@ func (s *_termsAggregation) ShardSize(shardsize int) *_termsAggregation { return s } -// Set to `true` to return the `doc_count_error_upper_bound`, which is an upper -// bound to the error on the `doc_count` returned by each shard. func (s *_termsAggregation) ShowTermDocCountError(showtermdoccounterror bool) *_termsAggregation { s.v.ShowTermDocCountError = &showtermdoccounterror @@ -164,7 +141,6 @@ func (s *_termsAggregation) ShowTermDocCountError(showtermdoccounterror bool) *_ return s } -// The number of buckets returned out of the overall terms list. func (s *_termsAggregation) Size(size int) *_termsAggregation { s.v.Size = &size @@ -172,7 +148,6 @@ func (s *_termsAggregation) Size(size int) *_termsAggregation { return s } -// Coerced unmapped fields into the specified type. func (s *_termsAggregation) ValueType(valuetype string) *_termsAggregation { s.v.ValueType = &valuetype diff --git a/typedapi/esdsl/termsexclude.go b/typedapi/esdsl/termsexclude.go index bb72063174..bab6efeba7 100644 --- a/typedapi/esdsl/termsexclude.go +++ b/typedapi/esdsl/termsexclude.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _termsExclude struct { diff --git a/typedapi/esdsl/termsgrouping.go b/typedapi/esdsl/termsgrouping.go index 7dd541b296..d274996a8e 100644 --- a/typedapi/esdsl/termsgrouping.go +++ b/typedapi/esdsl/termsgrouping.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _termsGrouping struct { v *types.TermsGrouping @@ -32,9 +32,6 @@ func NewTermsGrouping() *_termsGrouping { } -// The set of fields that you wish to collect terms for. -// This array can contain fields that are both keyword and numerics. -// Order does not matter. func (s *_termsGrouping) Fields(fields ...string) *_termsGrouping { s.v.Fields = fields diff --git a/typedapi/esdsl/termsinclude.go b/typedapi/esdsl/termsinclude.go index 64d2a2f0a2..8c23d443cb 100644 --- a/typedapi/esdsl/termsinclude.go +++ b/typedapi/esdsl/termsinclude.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _termsInclude struct { diff --git a/typedapi/esdsl/termslookup.go b/typedapi/esdsl/termslookup.go index 68521b1508..a0e690c14c 100644 --- a/typedapi/esdsl/termslookup.go +++ b/typedapi/esdsl/termslookup.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _termsLookup struct { v *types.TermsLookup diff --git a/typedapi/esdsl/termspartition.go b/typedapi/esdsl/termspartition.go index 85037cca42..5b4df8975f 100644 --- a/typedapi/esdsl/termspartition.go +++ b/typedapi/esdsl/termspartition.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _termsPartition struct { v *types.TermsPartition @@ -38,7 +38,6 @@ func NewTermsPartition(numpartitions int64, partition int64) *_termsPartition { } -// The number of partitions. func (s *_termsPartition) NumPartitions(numpartitions int64) *_termsPartition { s.v.NumPartitions = numpartitions @@ -46,7 +45,6 @@ func (s *_termsPartition) NumPartitions(numpartitions int64) *_termsPartition { return s } -// The partition number for this request. func (s *_termsPartition) Partition(partition int64) *_termsPartition { s.v.Partition = partition diff --git a/typedapi/esdsl/termsquery.go b/typedapi/esdsl/termsquery.go index fd284b9b4b..a44a793f6b 100644 --- a/typedapi/esdsl/termsquery.go +++ b/typedapi/esdsl/termsquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _termsQuery struct { v *types.TermsQuery @@ -35,11 +35,6 @@ func NewTermsQuery() *_termsQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_termsQuery) Boost(boost float32) *_termsQuery { s.v.Boost = &boost diff --git a/typedapi/esdsl/termsqueryfield.go b/typedapi/esdsl/termsqueryfield.go index 8602353c48..08244910dc 100644 --- a/typedapi/esdsl/termsqueryfield.go +++ b/typedapi/esdsl/termsqueryfield.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _termsQueryField struct { diff --git a/typedapi/esdsl/termssetquery.go b/typedapi/esdsl/termssetquery.go index 72aaf5ae4d..cacd3680ca 100644 --- a/typedapi/esdsl/termssetquery.go +++ b/typedapi/esdsl/termssetquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _termsSetQuery struct { k string @@ -38,11 +38,6 @@ func NewTermsSetQuery(key string) *_termsSetQuery { } } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_termsSetQuery) Boost(boost float32) *_termsSetQuery { s.v.Boost = &boost @@ -50,8 +45,6 @@ func (s *_termsSetQuery) Boost(boost float32) *_termsSetQuery { return s } -// Specification describing number of matching terms required to return a -// document. func (s *_termsSetQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShouldMatchVariant) *_termsSetQuery { s.v.MinimumShouldMatch = *minimumshouldmatch.MinimumShouldMatchCaster() @@ -59,8 +52,6 @@ func (s *_termsSetQuery) MinimumShouldMatch(minimumshouldmatch types.MinimumShou return s } -// Numeric field containing the number of matching terms required to return a -// document. func (s *_termsSetQuery) MinimumShouldMatchField(field string) *_termsSetQuery { s.v.MinimumShouldMatchField = &field @@ -68,8 +59,6 @@ func (s *_termsSetQuery) MinimumShouldMatchField(field string) *_termsSetQuery { return s } -// Custom script containing the number of matching terms required to return a -// document. func (s *_termsSetQuery) MinimumShouldMatchScript(minimumshouldmatchscript types.ScriptVariant) *_termsSetQuery { s.v.MinimumShouldMatchScript = minimumshouldmatchscript.ScriptCaster() @@ -84,7 +73,6 @@ func (s *_termsSetQuery) QueryName_(queryname_ string) *_termsSetQuery { return s } -// Array of terms you wish to find in the provided field. func (s *_termsSetQuery) Terms(terms ...types.FieldValueVariant) *_termsSetQuery { for _, v := range terms { diff --git a/typedapi/esdsl/termsuggester.go b/typedapi/esdsl/termsuggester.go index a1fe325612..5e1ce09209 100644 --- a/typedapi/esdsl/termsuggester.go +++ b/typedapi/esdsl/termsuggester.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/stringdistance" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestsort" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/stringdistance" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/suggestmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/suggestsort" ) type _termSuggester struct { @@ -38,8 +38,6 @@ func NewTermSuggester() *_termSuggester { } -// The analyzer to analyze the suggest text with. -// Defaults to the search analyzer of the suggest field. func (s *_termSuggester) Analyzer(analyzer string) *_termSuggester { s.v.Analyzer = &analyzer @@ -47,8 +45,6 @@ func (s *_termSuggester) Analyzer(analyzer string) *_termSuggester { return s } -// The field to fetch the candidate suggestions from. -// Needs to be set globally or per suggestion. func (s *_termSuggester) Field(field string) *_termSuggester { s.v.Field = field @@ -63,9 +59,6 @@ func (s *_termSuggester) LowercaseTerms(lowercaseterms bool) *_termSuggester { return s } -// The maximum edit distance candidate suggestions can have in order to be -// considered as a suggestion. -// Can only be `1` or `2`. func (s *_termSuggester) MaxEdits(maxedits int) *_termSuggester { s.v.MaxEdits = &maxedits @@ -73,9 +66,6 @@ func (s *_termSuggester) MaxEdits(maxedits int) *_termSuggester { return s } -// A factor that is used to multiply with the shard_size in order to inspect -// more candidate spelling corrections on the shard level. -// Can improve accuracy at the cost of performance. func (s *_termSuggester) MaxInspections(maxinspections int) *_termSuggester { s.v.MaxInspections = &maxinspections @@ -83,11 +73,6 @@ func (s *_termSuggester) MaxInspections(maxinspections int) *_termSuggester { return s } -// The maximum threshold in number of documents in which a suggest text token -// can exist in order to be included. -// Can be a relative percentage number (for example `0.4`) or an absolute number -// to represent document frequencies. -// If a value higher than 1 is specified, then fractional can not be specified. func (s *_termSuggester) MaxTermFreq(maxtermfreq float32) *_termSuggester { s.v.MaxTermFreq = &maxtermfreq @@ -95,11 +80,6 @@ func (s *_termSuggester) MaxTermFreq(maxtermfreq float32) *_termSuggester { return s } -// The minimal threshold in number of documents a suggestion should appear in. -// This can improve quality by only suggesting high frequency terms. -// Can be specified as an absolute number or as a relative percentage of number -// of documents. -// If a value higher than 1 is specified, then the number cannot be fractional. func (s *_termSuggester) MinDocFreq(mindocfreq float32) *_termSuggester { s.v.MinDocFreq = &mindocfreq @@ -107,7 +87,6 @@ func (s *_termSuggester) MinDocFreq(mindocfreq float32) *_termSuggester { return s } -// The minimum length a suggest text term must have in order to be included. func (s *_termSuggester) MinWordLength(minwordlength int) *_termSuggester { s.v.MinWordLength = &minwordlength @@ -115,9 +94,6 @@ func (s *_termSuggester) MinWordLength(minwordlength int) *_termSuggester { return s } -// The number of minimal prefix characters that must match in order be a -// candidate for suggestions. -// Increasing this number improves spellcheck performance. func (s *_termSuggester) PrefixLength(prefixlength int) *_termSuggester { s.v.PrefixLength = &prefixlength @@ -125,8 +101,6 @@ func (s *_termSuggester) PrefixLength(prefixlength int) *_termSuggester { return s } -// Sets the maximum number of suggestions to be retrieved from each individual -// shard. func (s *_termSuggester) ShardSize(shardsize int) *_termSuggester { s.v.ShardSize = &shardsize @@ -134,7 +108,6 @@ func (s *_termSuggester) ShardSize(shardsize int) *_termSuggester { return s } -// The maximum corrections to be returned per suggest text token. func (s *_termSuggester) Size(size int) *_termSuggester { s.v.Size = &size @@ -142,31 +115,24 @@ func (s *_termSuggester) Size(size int) *_termSuggester { return s } -// Defines how suggestions should be sorted per suggest text term. func (s *_termSuggester) Sort(sort suggestsort.SuggestSort) *_termSuggester { s.v.Sort = &sort return s } -// The string distance implementation to use for comparing how similar suggested -// terms are. func (s *_termSuggester) StringDistance(stringdistance stringdistance.StringDistance) *_termSuggester { s.v.StringDistance = &stringdistance return s } -// Controls what suggestions are included or controls for what suggest text -// terms, suggestions should be suggested. func (s *_termSuggester) SuggestMode(suggestmode suggestmode.SuggestMode) *_termSuggester { s.v.SuggestMode = &suggestmode return s } -// The suggest text. -// Needs to be set globally or per suggestion. func (s *_termSuggester) Text(text string) *_termSuggester { s.v.Text = &text diff --git a/typedapi/esdsl/termvectorsfilter.go b/typedapi/esdsl/termvectorsfilter.go index e9afc45405..a1b78195f4 100644 --- a/typedapi/esdsl/termvectorsfilter.go +++ b/typedapi/esdsl/termvectorsfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _termVectorsFilter struct { v *types.TermVectorsFilter @@ -32,8 +32,6 @@ func NewTermVectorsFilter() *_termVectorsFilter { } -// Ignore words which occur in more than this many docs. -// Defaults to unbounded. func (s *_termVectorsFilter) MaxDocFreq(maxdocfreq int) *_termVectorsFilter { s.v.MaxDocFreq = &maxdocfreq @@ -41,7 +39,6 @@ func (s *_termVectorsFilter) MaxDocFreq(maxdocfreq int) *_termVectorsFilter { return s } -// The maximum number of terms that must be returned per field. func (s *_termVectorsFilter) MaxNumTerms(maxnumterms int) *_termVectorsFilter { s.v.MaxNumTerms = &maxnumterms @@ -49,8 +46,6 @@ func (s *_termVectorsFilter) MaxNumTerms(maxnumterms int) *_termVectorsFilter { return s } -// Ignore words with more than this frequency in the source doc. -// It defaults to unbounded. func (s *_termVectorsFilter) MaxTermFreq(maxtermfreq int) *_termVectorsFilter { s.v.MaxTermFreq = &maxtermfreq @@ -58,8 +53,6 @@ func (s *_termVectorsFilter) MaxTermFreq(maxtermfreq int) *_termVectorsFilter { return s } -// The maximum word length above which words will be ignored. -// Defaults to unbounded. func (s *_termVectorsFilter) MaxWordLength(maxwordlength int) *_termVectorsFilter { s.v.MaxWordLength = &maxwordlength @@ -67,7 +60,6 @@ func (s *_termVectorsFilter) MaxWordLength(maxwordlength int) *_termVectorsFilte return s } -// Ignore terms which do not occur in at least this many docs. func (s *_termVectorsFilter) MinDocFreq(mindocfreq int) *_termVectorsFilter { s.v.MinDocFreq = &mindocfreq @@ -75,7 +67,6 @@ func (s *_termVectorsFilter) MinDocFreq(mindocfreq int) *_termVectorsFilter { return s } -// Ignore words with less than this frequency in the source doc. func (s *_termVectorsFilter) MinTermFreq(mintermfreq int) *_termVectorsFilter { s.v.MinTermFreq = &mintermfreq @@ -83,7 +74,6 @@ func (s *_termVectorsFilter) MinTermFreq(mintermfreq int) *_termVectorsFilter { return s } -// The minimum word length below which words will be ignored. func (s *_termVectorsFilter) MinWordLength(minwordlength int) *_termVectorsFilter { s.v.MinWordLength = &minwordlength diff --git a/typedapi/esdsl/testpopulation.go b/typedapi/esdsl/testpopulation.go index ca67e025c8..d56e65c398 100644 --- a/typedapi/esdsl/testpopulation.go +++ b/typedapi/esdsl/testpopulation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _testPopulation struct { v *types.TestPopulation @@ -32,7 +32,6 @@ func NewTestPopulation() *_testPopulation { } -// The field to aggregate. func (s *_testPopulation) Field(field string) *_testPopulation { s.v.Field = field @@ -40,7 +39,6 @@ func (s *_testPopulation) Field(field string) *_testPopulation { return s } -// A filter used to define a set of records to run unpaired t-test on. func (s *_testPopulation) Filter(filter types.QueryVariant) *_testPopulation { s.v.Filter = filter.QueryCaster() diff --git a/typedapi/esdsl/textclassificationinferenceoptions.go b/typedapi/esdsl/textclassificationinferenceoptions.go index 0b7d925748..bdf403f3e6 100644 --- a/typedapi/esdsl/textclassificationinferenceoptions.go +++ b/typedapi/esdsl/textclassificationinferenceoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _textClassificationInferenceOptions struct { v *types.TextClassificationInferenceOptions @@ -33,8 +33,6 @@ func NewTextClassificationInferenceOptions() *_textClassificationInferenceOption } -// Classification labels to apply other than the stored labels. Must have the -// same deminsions as the default configured labels func (s *_textClassificationInferenceOptions) ClassificationLabels(classificationlabels ...string) *_textClassificationInferenceOptions { for _, v := range classificationlabels { @@ -45,7 +43,6 @@ func (s *_textClassificationInferenceOptions) ClassificationLabels(classificatio return s } -// Specifies the number of top class predictions to return. Defaults to 0. func (s *_textClassificationInferenceOptions) NumTopClasses(numtopclasses int) *_textClassificationInferenceOptions { s.v.NumTopClasses = &numtopclasses @@ -53,8 +50,6 @@ func (s *_textClassificationInferenceOptions) NumTopClasses(numtopclasses int) * return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_textClassificationInferenceOptions) ResultsField(resultsfield string) *_textClassificationInferenceOptions { s.v.ResultsField = &resultsfield @@ -62,7 +57,6 @@ func (s *_textClassificationInferenceOptions) ResultsField(resultsfield string) return s } -// The tokenization options func (s *_textClassificationInferenceOptions) Tokenization(tokenization types.TokenizationConfigContainerVariant) *_textClassificationInferenceOptions { s.v.Tokenization = tokenization.TokenizationConfigContainerCaster() @@ -70,6 +64,13 @@ func (s *_textClassificationInferenceOptions) Tokenization(tokenization types.To return s } +func (s *_textClassificationInferenceOptions) Vocabulary(vocabulary types.VocabularyVariant) *_textClassificationInferenceOptions { + + s.v.Vocabulary = vocabulary.VocabularyCaster() + + return s +} + func (s *_textClassificationInferenceOptions) InferenceConfigCreateContainerCaster() *types.InferenceConfigCreateContainer { container := types.NewInferenceConfigCreateContainer() diff --git a/typedapi/esdsl/textclassificationinferenceupdateoptions.go b/typedapi/esdsl/textclassificationinferenceupdateoptions.go index c62661219d..6ea2d24761 100644 --- a/typedapi/esdsl/textclassificationinferenceupdateoptions.go +++ b/typedapi/esdsl/textclassificationinferenceupdateoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _textClassificationInferenceUpdateOptions struct { v *types.TextClassificationInferenceUpdateOptions @@ -33,8 +33,6 @@ func NewTextClassificationInferenceUpdateOptions() *_textClassificationInference } -// Classification labels to apply other than the stored labels. Must have the -// same deminsions as the default configured labels func (s *_textClassificationInferenceUpdateOptions) ClassificationLabels(classificationlabels ...string) *_textClassificationInferenceUpdateOptions { for _, v := range classificationlabels { @@ -45,7 +43,6 @@ func (s *_textClassificationInferenceUpdateOptions) ClassificationLabels(classif return s } -// Specifies the number of top class predictions to return. Defaults to 0. func (s *_textClassificationInferenceUpdateOptions) NumTopClasses(numtopclasses int) *_textClassificationInferenceUpdateOptions { s.v.NumTopClasses = &numtopclasses @@ -53,8 +50,6 @@ func (s *_textClassificationInferenceUpdateOptions) NumTopClasses(numtopclasses return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_textClassificationInferenceUpdateOptions) ResultsField(resultsfield string) *_textClassificationInferenceUpdateOptions { s.v.ResultsField = &resultsfield @@ -62,7 +57,6 @@ func (s *_textClassificationInferenceUpdateOptions) ResultsField(resultsfield st return s } -// The tokenization options to update when inferring func (s *_textClassificationInferenceUpdateOptions) Tokenization(tokenization types.NlpTokenizationUpdateOptionsVariant) *_textClassificationInferenceUpdateOptions { s.v.Tokenization = tokenization.NlpTokenizationUpdateOptionsCaster() diff --git a/typedapi/esdsl/textembedding.go b/typedapi/esdsl/textembedding.go index 54594ee24f..707fc86ef5 100644 --- a/typedapi/esdsl/textembedding.go +++ b/typedapi/esdsl/textembedding.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _textEmbedding struct { v *types.TextEmbedding diff --git a/typedapi/esdsl/textembeddinginferenceoptions.go b/typedapi/esdsl/textembeddinginferenceoptions.go index 1d00bfa3f0..5d074cf622 100644 --- a/typedapi/esdsl/textembeddinginferenceoptions.go +++ b/typedapi/esdsl/textembeddinginferenceoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _textEmbeddingInferenceOptions struct { v *types.TextEmbeddingInferenceOptions @@ -37,7 +37,6 @@ func NewTextEmbeddingInferenceOptions(vocabulary types.VocabularyVariant) *_text } -// The number of dimensions in the embedding output func (s *_textEmbeddingInferenceOptions) EmbeddingSize(embeddingsize int) *_textEmbeddingInferenceOptions { s.v.EmbeddingSize = &embeddingsize @@ -45,8 +44,6 @@ func (s *_textEmbeddingInferenceOptions) EmbeddingSize(embeddingsize int) *_text return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_textEmbeddingInferenceOptions) ResultsField(resultsfield string) *_textEmbeddingInferenceOptions { s.v.ResultsField = &resultsfield @@ -54,7 +51,6 @@ func (s *_textEmbeddingInferenceOptions) ResultsField(resultsfield string) *_tex return s } -// The tokenization options func (s *_textEmbeddingInferenceOptions) Tokenization(tokenization types.TokenizationConfigContainerVariant) *_textEmbeddingInferenceOptions { s.v.Tokenization = tokenization.TokenizationConfigContainerCaster() diff --git a/typedapi/esdsl/textembeddinginferenceupdateoptions.go b/typedapi/esdsl/textembeddinginferenceupdateoptions.go index e0d6b94f6d..5e78f4fb49 100644 --- a/typedapi/esdsl/textembeddinginferenceupdateoptions.go +++ b/typedapi/esdsl/textembeddinginferenceupdateoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _textEmbeddingInferenceUpdateOptions struct { v *types.TextEmbeddingInferenceUpdateOptions @@ -33,8 +33,6 @@ func NewTextEmbeddingInferenceUpdateOptions() *_textEmbeddingInferenceUpdateOpti } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_textEmbeddingInferenceUpdateOptions) ResultsField(resultsfield string) *_textEmbeddingInferenceUpdateOptions { s.v.ResultsField = &resultsfield diff --git a/typedapi/esdsl/textexpansioninferenceoptions.go b/typedapi/esdsl/textexpansioninferenceoptions.go index 0b4f4c583c..712970fac8 100644 --- a/typedapi/esdsl/textexpansioninferenceoptions.go +++ b/typedapi/esdsl/textexpansioninferenceoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _textExpansionInferenceOptions struct { v *types.TextExpansionInferenceOptions @@ -37,8 +37,6 @@ func NewTextExpansionInferenceOptions(vocabulary types.VocabularyVariant) *_text } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_textExpansionInferenceOptions) ResultsField(resultsfield string) *_textExpansionInferenceOptions { s.v.ResultsField = &resultsfield @@ -46,7 +44,6 @@ func (s *_textExpansionInferenceOptions) ResultsField(resultsfield string) *_tex return s } -// The tokenization options func (s *_textExpansionInferenceOptions) Tokenization(tokenization types.TokenizationConfigContainerVariant) *_textExpansionInferenceOptions { s.v.Tokenization = tokenization.TokenizationConfigContainerCaster() diff --git a/typedapi/esdsl/textexpansioninferenceupdateoptions.go b/typedapi/esdsl/textexpansioninferenceupdateoptions.go index 18fadbae4b..18c3ae444e 100644 --- a/typedapi/esdsl/textexpansioninferenceupdateoptions.go +++ b/typedapi/esdsl/textexpansioninferenceupdateoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _textExpansionInferenceUpdateOptions struct { v *types.TextExpansionInferenceUpdateOptions @@ -33,8 +33,6 @@ func NewTextExpansionInferenceUpdateOptions() *_textExpansionInferenceUpdateOpti } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_textExpansionInferenceUpdateOptions) ResultsField(resultsfield string) *_textExpansionInferenceUpdateOptions { s.v.ResultsField = &resultsfield diff --git a/typedapi/esdsl/textexpansionquery.go b/typedapi/esdsl/textexpansionquery.go index b66e8d079d..a3071371ae 100644 --- a/typedapi/esdsl/textexpansionquery.go +++ b/typedapi/esdsl/textexpansionquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _textExpansionQuery struct { k string @@ -37,11 +37,6 @@ func NewTextExpansionQuery(key string) *_textExpansionQuery { } } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_textExpansionQuery) Boost(boost float32) *_textExpansionQuery { s.v.Boost = &boost @@ -49,7 +44,6 @@ func (s *_textExpansionQuery) Boost(boost float32) *_textExpansionQuery { return s } -// The text expansion NLP model to use func (s *_textExpansionQuery) ModelId(modelid string) *_textExpansionQuery { s.v.ModelId = modelid @@ -57,7 +51,6 @@ func (s *_textExpansionQuery) ModelId(modelid string) *_textExpansionQuery { return s } -// The query text func (s *_textExpansionQuery) ModelText(modeltext string) *_textExpansionQuery { s.v.ModelText = modeltext @@ -65,7 +58,6 @@ func (s *_textExpansionQuery) ModelText(modeltext string) *_textExpansionQuery { return s } -// Token pruning configurations func (s *_textExpansionQuery) PruningConfig(pruningconfig types.TokenPruningConfigVariant) *_textExpansionQuery { s.v.PruningConfig = pruningconfig.TokenPruningConfigCaster() diff --git a/typedapi/esdsl/textindexprefixes.go b/typedapi/esdsl/textindexprefixes.go index b824d68977..49d3696231 100644 --- a/typedapi/esdsl/textindexprefixes.go +++ b/typedapi/esdsl/textindexprefixes.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _textIndexPrefixes struct { v *types.TextIndexPrefixes diff --git a/typedapi/esdsl/textproperty.go b/typedapi/esdsl/textproperty.go index 6047d70e46..ace9da893b 100644 --- a/typedapi/esdsl/textproperty.go +++ b/typedapi/esdsl/textproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termvectoroption" + "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/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termvectoroption" ) type _textProperty struct { @@ -141,7 +141,6 @@ func (s *_textProperty) IndexPrefixes(indexprefixes types.TextIndexPrefixesVaria return s } -// Metadata about the field. func (s *_textProperty) Meta(meta map[string]string) *_textProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/textsimilarityreranker.go b/typedapi/esdsl/textsimilarityreranker.go index 8f8ae90f77..c30df40271 100644 --- a/typedapi/esdsl/textsimilarityreranker.go +++ b/typedapi/esdsl/textsimilarityreranker.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _textSimilarityReranker struct { v *types.TextSimilarityReranker @@ -38,8 +38,6 @@ func NewTextSimilarityReranker(retriever types.RetrieverContainerVariant) *_text } -// The document field to be used for text similarity comparisons. This field -// should contain the text that will be evaluated against the inference_text func (s *_textSimilarityReranker) Field(field string) *_textSimilarityReranker { s.v.Field = &field @@ -47,7 +45,6 @@ func (s *_textSimilarityReranker) Field(field string) *_textSimilarityReranker { return s } -// Query to filter the documents that can match. func (s *_textSimilarityReranker) Filter(filters ...types.QueryVariant) *_textSimilarityReranker { s.v.Filter = make([]types.Query, len(filters)) @@ -58,7 +55,6 @@ func (s *_textSimilarityReranker) Filter(filters ...types.QueryVariant) *_textSi return s } -// Unique identifier of the inference endpoint created using the inference API. func (s *_textSimilarityReranker) InferenceId(inferenceid string) *_textSimilarityReranker { s.v.InferenceId = &inferenceid @@ -66,7 +62,6 @@ func (s *_textSimilarityReranker) InferenceId(inferenceid string) *_textSimilari return s } -// The text snippet used as the basis for similarity comparison func (s *_textSimilarityReranker) InferenceText(inferencetext string) *_textSimilarityReranker { s.v.InferenceText = &inferencetext @@ -74,8 +69,6 @@ func (s *_textSimilarityReranker) InferenceText(inferencetext string) *_textSimi return s } -// Minimum _score for matching documents. Documents with a lower _score are not -// included in the top documents. func (s *_textSimilarityReranker) MinScore(minscore float32) *_textSimilarityReranker { s.v.MinScore = &minscore @@ -83,8 +76,6 @@ func (s *_textSimilarityReranker) MinScore(minscore float32) *_textSimilarityRer return s } -// This value determines how many documents we will consider from the nested -// retriever. func (s *_textSimilarityReranker) RankWindowSize(rankwindowsize int) *_textSimilarityReranker { s.v.RankWindowSize = &rankwindowsize @@ -92,8 +83,6 @@ func (s *_textSimilarityReranker) RankWindowSize(rankwindowsize int) *_textSimil return s } -// The nested retriever which will produce the first-level results, that will -// later be used for reranking. func (s *_textSimilarityReranker) Retriever(retriever types.RetrieverContainerVariant) *_textSimilarityReranker { s.v.Retriever = *retriever.RetrieverContainerCaster() diff --git a/typedapi/esdsl/texttoanalyze.go b/typedapi/esdsl/texttoanalyze.go index 21fc1bb96c..027371deb2 100644 --- a/typedapi/esdsl/texttoanalyze.go +++ b/typedapi/esdsl/texttoanalyze.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _textToAnalyze struct { diff --git a/typedapi/esdsl/thaianalyzer.go b/typedapi/esdsl/thaianalyzer.go index 97d14439d0..5511a4af92 100644 --- a/typedapi/esdsl/thaianalyzer.go +++ b/typedapi/esdsl/thaianalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _thaiAnalyzer struct { v *types.ThaiAnalyzer diff --git a/typedapi/esdsl/thaitokenizer.go b/typedapi/esdsl/thaitokenizer.go index 58dba84a08..5b7525b885 100644 --- a/typedapi/esdsl/thaitokenizer.go +++ b/typedapi/esdsl/thaitokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _thaiTokenizer struct { v *types.ThaiTokenizer diff --git a/typedapi/esdsl/throttlestate.go b/typedapi/esdsl/throttlestate.go index 380c8007cb..e619c4619b 100644 --- a/typedapi/esdsl/throttlestate.go +++ b/typedapi/esdsl/throttlestate.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _throttleState struct { v *types.ThrottleState diff --git a/typedapi/esdsl/timeofmonth.go b/typedapi/esdsl/timeofmonth.go index 7f57e7e41f..e572d51650 100644 --- a/typedapi/esdsl/timeofmonth.go +++ b/typedapi/esdsl/timeofmonth.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _timeOfMonth struct { v *types.TimeOfMonth diff --git a/typedapi/esdsl/timeofweek.go b/typedapi/esdsl/timeofweek.go index 3f8e339f3c..cda9a0e60e 100644 --- a/typedapi/esdsl/timeofweek.go +++ b/typedapi/esdsl/timeofweek.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/day" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/day" ) type _timeOfWeek struct { diff --git a/typedapi/esdsl/timeofyear.go b/typedapi/esdsl/timeofyear.go index 083c5afddf..929d42f959 100644 --- a/typedapi/esdsl/timeofyear.go +++ b/typedapi/esdsl/timeofyear.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/month" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/month" ) type _timeOfYear struct { diff --git a/typedapi/esdsl/timeseriesaggregation.go b/typedapi/esdsl/timeseriesaggregation.go index b6f779a174..f81dfe578d 100644 --- a/typedapi/esdsl/timeseriesaggregation.go +++ b/typedapi/esdsl/timeseriesaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _timeSeriesAggregation struct { v *types.TimeSeriesAggregation @@ -35,8 +35,6 @@ func NewTimeSeriesAggregation() *_timeSeriesAggregation { } -// Set to `true` to associate a unique string key with each bucket and returns -// the ranges as a hash rather than an array. func (s *_timeSeriesAggregation) Keyed(keyed bool) *_timeSeriesAggregation { s.v.Keyed = &keyed @@ -44,7 +42,6 @@ func (s *_timeSeriesAggregation) Keyed(keyed bool) *_timeSeriesAggregation { return s } -// The maximum number of results to return. func (s *_timeSeriesAggregation) Size(size int) *_timeSeriesAggregation { s.v.Size = &size diff --git a/typedapi/esdsl/timesync.go b/typedapi/esdsl/timesync.go index e63237f1a1..332378969b 100644 --- a/typedapi/esdsl/timesync.go +++ b/typedapi/esdsl/timesync.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _timeSync struct { v *types.TimeSync @@ -34,7 +34,6 @@ func NewTimeSync() *_timeSync { } -// The time delay between the current time and the latest input data time. func (s *_timeSync) Delay(duration types.DurationVariant) *_timeSync { s.v.Delay = *duration.DurationCaster() @@ -42,11 +41,6 @@ func (s *_timeSync) Delay(duration types.DurationVariant) *_timeSync { return s } -// The date field that is used to identify new documents in the source. In -// general, it’s a good idea to use a field -// that contains the ingest timestamp. If you use a different field, you might -// need to set the delay such that it -// accounts for data transmission delays. func (s *_timeSync) Field(field string) *_timeSync { s.v.Field = field diff --git a/typedapi/esdsl/tokencountproperty.go b/typedapi/esdsl/tokencountproperty.go index afba1419a4..79ca8b0bbe 100644 --- a/typedapi/esdsl/tokencountproperty.go +++ b/typedapi/esdsl/tokencountproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _tokenCountProperty struct { @@ -112,7 +112,6 @@ func (s *_tokenCountProperty) Index(index bool) *_tokenCountProperty { return s } -// Metadata about the field. func (s *_tokenCountProperty) Meta(meta map[string]string) *_tokenCountProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/tokenfilter.go b/typedapi/esdsl/tokenfilter.go index d454b4d3b9..e82a8f3fc7 100644 --- a/typedapi/esdsl/tokenfilter.go +++ b/typedapi/esdsl/tokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _tokenFilter struct { diff --git a/typedapi/esdsl/tokenfilterdefinition.go b/typedapi/esdsl/tokenfilterdefinition.go index 1005a54829..5b8208c51b 100644 --- a/typedapi/esdsl/tokenfilterdefinition.go +++ b/typedapi/esdsl/tokenfilterdefinition.go @@ -16,11 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" +) // This is provide all the types that are part of the union. type _tokenFilterDefinition struct { @@ -31,6 +35,13 @@ func NewTokenFilterDefinition() *_tokenFilterDefinition { return &_tokenFilterDefinition{v: nil} } +// UnknownTokenFilterDefinition is used to set the unknown value of the union. +// Highlited as @non_exhaustive in the specification. +func (u *_tokenFilterDefinition) UnknownTokenFilterDefinition(unknown json.RawMessage) *_tokenFilterDefinition { + u.v = unknown + return u +} + func (u *_tokenFilterDefinition) AsciiFoldingTokenFilter(asciifoldingtokenfilter types.AsciiFoldingTokenFilterVariant) *_tokenFilterDefinition { u.v = &asciifoldingtokenfilter diff --git a/typedapi/esdsl/tokenizationconfigcontainer.go b/typedapi/esdsl/tokenizationconfigcontainer.go index f9f1908d58..0a0f862710 100644 --- a/typedapi/esdsl/tokenizationconfigcontainer.go +++ b/typedapi/esdsl/tokenizationconfigcontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _tokenizationConfigContainer struct { @@ -46,7 +46,6 @@ func (s *_tokenizationConfigContainer) AdditionalTokenizationConfigContainerProp return s } -// Indicates BERT tokenization and its options func (s *_tokenizationConfigContainer) Bert(bert types.NlpBertTokenizationConfigVariant) *_tokenizationConfigContainer { s.v.Bert = bert.NlpBertTokenizationConfigCaster() @@ -54,7 +53,6 @@ func (s *_tokenizationConfigContainer) Bert(bert types.NlpBertTokenizationConfig return s } -// Indicates BERT Japanese tokenization and its options func (s *_tokenizationConfigContainer) BertJa(bertja types.NlpBertTokenizationConfigVariant) *_tokenizationConfigContainer { s.v.BertJa = bertja.NlpBertTokenizationConfigCaster() @@ -62,7 +60,6 @@ func (s *_tokenizationConfigContainer) BertJa(bertja types.NlpBertTokenizationCo return s } -// Indicates MPNET tokenization and its options func (s *_tokenizationConfigContainer) Mpnet(mpnet types.NlpBertTokenizationConfigVariant) *_tokenizationConfigContainer { s.v.Mpnet = mpnet.NlpBertTokenizationConfigCaster() @@ -70,7 +67,6 @@ func (s *_tokenizationConfigContainer) Mpnet(mpnet types.NlpBertTokenizationConf return s } -// Indicates RoBERTa tokenization and its options func (s *_tokenizationConfigContainer) Roberta(roberta types.NlpRobertaTokenizationConfigVariant) *_tokenizationConfigContainer { s.v.Roberta = roberta.NlpRobertaTokenizationConfigCaster() @@ -78,6 +74,13 @@ func (s *_tokenizationConfigContainer) Roberta(roberta types.NlpRobertaTokenizat return s } +func (s *_tokenizationConfigContainer) XlmRoberta(xlmroberta types.XlmRobertaTokenizationConfigVariant) *_tokenizationConfigContainer { + + s.v.XlmRoberta = xlmroberta.XlmRobertaTokenizationConfigCaster() + + return s +} + func (s *_tokenizationConfigContainer) TokenizationConfigContainerCaster() *types.TokenizationConfigContainer { return s.v } diff --git a/typedapi/esdsl/tokenizer.go b/typedapi/esdsl/tokenizer.go index 8b43a14a68..a898b4a38c 100644 --- a/typedapi/esdsl/tokenizer.go +++ b/typedapi/esdsl/tokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _tokenizer struct { diff --git a/typedapi/esdsl/tokenizerdefinition.go b/typedapi/esdsl/tokenizerdefinition.go index 53847b7d9e..06770dfe1a 100644 --- a/typedapi/esdsl/tokenizerdefinition.go +++ b/typedapi/esdsl/tokenizerdefinition.go @@ -16,11 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" +) // This is provide all the types that are part of the union. type _tokenizerDefinition struct { @@ -31,6 +35,13 @@ func NewTokenizerDefinition() *_tokenizerDefinition { return &_tokenizerDefinition{v: nil} } +// UnknownTokenizerDefinition is used to set the unknown value of the union. +// Highlited as @non_exhaustive in the specification. +func (u *_tokenizerDefinition) UnknownTokenizerDefinition(unknown json.RawMessage) *_tokenizerDefinition { + u.v = unknown + return u +} + func (u *_tokenizerDefinition) CharGroupTokenizer(chargrouptokenizer types.CharGroupTokenizerVariant) *_tokenizerDefinition { u.v = &chargrouptokenizer diff --git a/typedapi/esdsl/tokenpruningconfig.go b/typedapi/esdsl/tokenpruningconfig.go index 8522dffee8..edbe86a6be 100644 --- a/typedapi/esdsl/tokenpruningconfig.go +++ b/typedapi/esdsl/tokenpruningconfig.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _tokenPruningConfig struct { v *types.TokenPruningConfig @@ -38,7 +38,6 @@ func NewTokenPruningConfig() *_tokenPruningConfig { } -// Whether to only score pruned tokens, vs only scoring kept tokens. func (s *_tokenPruningConfig) OnlyScorePrunedTokens(onlyscoreprunedtokens bool) *_tokenPruningConfig { s.v.OnlyScorePrunedTokens = &onlyscoreprunedtokens @@ -46,9 +45,6 @@ func (s *_tokenPruningConfig) OnlyScorePrunedTokens(onlyscoreprunedtokens bool) return s } -// Tokens whose frequency is more than this threshold times the average -// frequency of all tokens in the specified field are considered outliers and -// pruned. func (s *_tokenPruningConfig) TokensFreqRatioThreshold(tokensfreqratiothreshold int) *_tokenPruningConfig { s.v.TokensFreqRatioThreshold = &tokensfreqratiothreshold @@ -56,8 +52,6 @@ func (s *_tokenPruningConfig) TokensFreqRatioThreshold(tokensfreqratiothreshold return s } -// Tokens whose weight is less than this threshold are considered nonsignificant -// and pruned. func (s *_tokenPruningConfig) TokensWeightThreshold(tokensweightthreshold float32) *_tokenPruningConfig { s.v.TokensWeightThreshold = &tokensweightthreshold diff --git a/typedapi/esdsl/toolcall.go b/typedapi/esdsl/toolcall.go index 5e804628f3..739c6c589b 100644 --- a/typedapi/esdsl/toolcall.go +++ b/typedapi/esdsl/toolcall.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _toolCall struct { v *types.ToolCall @@ -38,7 +38,6 @@ func NewToolCall(function types.ToolCallFunctionVariant, type_ string) *_toolCal } -// The function that the model called. func (s *_toolCall) Function(function types.ToolCallFunctionVariant) *_toolCall { s.v.Function = *function.ToolCallFunctionCaster() @@ -46,7 +45,6 @@ func (s *_toolCall) Function(function types.ToolCallFunctionVariant) *_toolCall return s } -// The identifier of the tool call. func (s *_toolCall) Id(id string) *_toolCall { s.v.Id = id @@ -54,7 +52,6 @@ func (s *_toolCall) Id(id string) *_toolCall { return s } -// The type of the tool call. func (s *_toolCall) Type(type_ string) *_toolCall { s.v.Type = type_ diff --git a/typedapi/esdsl/toolcallfunction.go b/typedapi/esdsl/toolcallfunction.go index c718d95f2e..14281b4b7b 100644 --- a/typedapi/esdsl/toolcallfunction.go +++ b/typedapi/esdsl/toolcallfunction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _toolCallFunction struct { v *types.ToolCallFunction @@ -38,7 +38,6 @@ func NewToolCallFunction(arguments string, name string) *_toolCallFunction { } -// The arguments to call the function with in JSON format. func (s *_toolCallFunction) Arguments(arguments string) *_toolCallFunction { s.v.Arguments = arguments @@ -46,7 +45,6 @@ func (s *_toolCallFunction) Arguments(arguments string) *_toolCallFunction { return s } -// The name of the function to call. func (s *_toolCallFunction) Name(name string) *_toolCallFunction { s.v.Name = name diff --git a/typedapi/esdsl/tophitsaggregation.go b/typedapi/esdsl/tophitsaggregation.go index 2c0cedc1ca..a5bf398ba7 100644 --- a/typedapi/esdsl/tophitsaggregation.go +++ b/typedapi/esdsl/tophitsaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _topHitsAggregation struct { v *types.TopHitsAggregation @@ -33,7 +33,6 @@ func NewTopHitsAggregation() *_topHitsAggregation { } -// Fields for which to return doc values. func (s *_topHitsAggregation) DocvalueFields(docvaluefields ...types.FieldAndFormatVariant) *_topHitsAggregation { for _, v := range docvaluefields { @@ -44,8 +43,6 @@ func (s *_topHitsAggregation) DocvalueFields(docvaluefields ...types.FieldAndFor return s } -// If `true`, returns detailed information about score computation as part of a -// hit. func (s *_topHitsAggregation) Explain(explain bool) *_topHitsAggregation { s.v.Explain = &explain @@ -53,7 +50,6 @@ func (s *_topHitsAggregation) Explain(explain bool) *_topHitsAggregation { return s } -// The field on which to run the aggregation. func (s *_topHitsAggregation) Field(field string) *_topHitsAggregation { s.v.Field = &field @@ -61,8 +57,6 @@ func (s *_topHitsAggregation) Field(field string) *_topHitsAggregation { return s } -// Array of wildcard (*) patterns. The request returns values for field names -// matching these patterns in the hits.fields property of the response. func (s *_topHitsAggregation) Fields(fields ...types.FieldAndFormatVariant) *_topHitsAggregation { for _, v := range fields { @@ -73,7 +67,6 @@ func (s *_topHitsAggregation) Fields(fields ...types.FieldAndFormatVariant) *_to return s } -// Starting document offset. func (s *_topHitsAggregation) From(from int) *_topHitsAggregation { s.v.From = &from @@ -81,8 +74,6 @@ func (s *_topHitsAggregation) From(from int) *_topHitsAggregation { return s } -// Specifies the highlighter to use for retrieving highlighted snippets from one -// or more fields in the search results. func (s *_topHitsAggregation) Highlight(highlight types.HighlightVariant) *_topHitsAggregation { s.v.Highlight = highlight.HighlightCaster() @@ -90,8 +81,6 @@ func (s *_topHitsAggregation) Highlight(highlight types.HighlightVariant) *_topH return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_topHitsAggregation) Missing(missing types.MissingVariant) *_topHitsAggregation { s.v.Missing = *missing.MissingCaster() @@ -106,7 +95,6 @@ func (s *_topHitsAggregation) Script(script types.ScriptVariant) *_topHitsAggreg return s } -// Returns the result of one or more script evaluations for each hit. func (s *_topHitsAggregation) ScriptFields(scriptfields map[string]types.ScriptField) *_topHitsAggregation { s.v.ScriptFields = scriptfields @@ -128,8 +116,6 @@ func (s *_topHitsAggregation) AddScriptField(key string, value types.ScriptField return s } -// If `true`, returns sequence number and primary term of the last modification -// of each hit. func (s *_topHitsAggregation) SeqNoPrimaryTerm(seqnoprimaryterm bool) *_topHitsAggregation { s.v.SeqNoPrimaryTerm = &seqnoprimaryterm @@ -137,7 +123,6 @@ func (s *_topHitsAggregation) SeqNoPrimaryTerm(seqnoprimaryterm bool) *_topHitsA return s } -// The maximum number of top matching hits to return per bucket. func (s *_topHitsAggregation) Size(size int) *_topHitsAggregation { s.v.Size = &size @@ -145,8 +130,6 @@ func (s *_topHitsAggregation) Size(size int) *_topHitsAggregation { return s } -// Sort order of the top matching hits. -// By default, the hits are sorted by the score of the main query. func (s *_topHitsAggregation) Sort(sorts ...types.SortCombinationsVariant) *_topHitsAggregation { for _, v := range sorts { @@ -156,7 +139,6 @@ func (s *_topHitsAggregation) Sort(sorts ...types.SortCombinationsVariant) *_top return s } -// Selects the fields of the source that are returned. func (s *_topHitsAggregation) Source_(sourceconfig types.SourceConfigVariant) *_topHitsAggregation { s.v.Source_ = *sourceconfig.SourceConfigCaster() @@ -164,8 +146,6 @@ func (s *_topHitsAggregation) Source_(sourceconfig types.SourceConfigVariant) *_ return s } -// Returns values for the specified stored fields (fields that use the `store` -// mapping option). func (s *_topHitsAggregation) StoredFields(fields ...string) *_topHitsAggregation { s.v.StoredFields = fields @@ -173,8 +153,6 @@ func (s *_topHitsAggregation) StoredFields(fields ...string) *_topHitsAggregatio return s } -// If `true`, calculates and returns document scores, even if the scores are not -// used for sorting. func (s *_topHitsAggregation) TrackScores(trackscores bool) *_topHitsAggregation { s.v.TrackScores = &trackscores @@ -182,7 +160,6 @@ func (s *_topHitsAggregation) TrackScores(trackscores bool) *_topHitsAggregation return s } -// If `true`, returns document version as part of a hit. func (s *_topHitsAggregation) Version(version bool) *_topHitsAggregation { s.v.Version = &version diff --git a/typedapi/esdsl/topleftbottomrightgeobounds.go b/typedapi/esdsl/topleftbottomrightgeobounds.go index cd48ddaa4a..f3adb96cee 100644 --- a/typedapi/esdsl/topleftbottomrightgeobounds.go +++ b/typedapi/esdsl/topleftbottomrightgeobounds.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _topLeftBottomRightGeoBounds struct { v *types.TopLeftBottomRightGeoBounds diff --git a/typedapi/esdsl/topmetricsaggregation.go b/typedapi/esdsl/topmetricsaggregation.go index 5b138abf87..df35fd378a 100644 --- a/typedapi/esdsl/topmetricsaggregation.go +++ b/typedapi/esdsl/topmetricsaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _topMetricsAggregation struct { v *types.TopMetricsAggregation @@ -34,7 +34,6 @@ func NewTopMetricsAggregation() *_topMetricsAggregation { } -// The field on which to run the aggregation. func (s *_topMetricsAggregation) Field(field string) *_topMetricsAggregation { s.v.Field = &field @@ -42,7 +41,6 @@ func (s *_topMetricsAggregation) Field(field string) *_topMetricsAggregation { return s } -// The fields of the top document to return. func (s *_topMetricsAggregation) Metrics(metrics ...types.TopMetricsValueVariant) *_topMetricsAggregation { s.v.Metrics = make([]types.TopMetricsValue, len(metrics)) @@ -53,8 +51,6 @@ func (s *_topMetricsAggregation) Metrics(metrics ...types.TopMetricsValueVariant return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_topMetricsAggregation) Missing(missing types.MissingVariant) *_topMetricsAggregation { s.v.Missing = *missing.MissingCaster() @@ -69,7 +65,6 @@ func (s *_topMetricsAggregation) Script(script types.ScriptVariant) *_topMetrics return s } -// The number of top documents from which to return metrics. func (s *_topMetricsAggregation) Size(size int) *_topMetricsAggregation { s.v.Size = &size @@ -77,7 +72,6 @@ func (s *_topMetricsAggregation) Size(size int) *_topMetricsAggregation { return s } -// The sort order of the documents. func (s *_topMetricsAggregation) Sort(sorts ...types.SortCombinationsVariant) *_topMetricsAggregation { for _, v := range sorts { diff --git a/typedapi/esdsl/topmetricsvalue.go b/typedapi/esdsl/topmetricsvalue.go index 67679277d0..2ac5f1a42d 100644 --- a/typedapi/esdsl/topmetricsvalue.go +++ b/typedapi/esdsl/topmetricsvalue.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _topMetricsValue struct { v *types.TopMetricsValue @@ -32,7 +32,6 @@ func NewTopMetricsValue() *_topMetricsValue { } -// A field to return as a metric. func (s *_topMetricsValue) Field(field string) *_topMetricsValue { s.v.Field = field diff --git a/typedapi/esdsl/toprightbottomleftgeobounds.go b/typedapi/esdsl/toprightbottomleftgeobounds.go index 76b3dec281..424e777b69 100644 --- a/typedapi/esdsl/toprightbottomleftgeobounds.go +++ b/typedapi/esdsl/toprightbottomleftgeobounds.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _topRightBottomLeftGeoBounds struct { v *types.TopRightBottomLeftGeoBounds diff --git a/typedapi/esdsl/trackhits.go b/typedapi/esdsl/trackhits.go index dc919078d9..88b4169f7a 100644 --- a/typedapi/esdsl/trackhits.go +++ b/typedapi/esdsl/trackhits.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _trackHits struct { diff --git a/typedapi/esdsl/trainedmodel.go b/typedapi/esdsl/trainedmodel.go index c2439c8228..73929fe246 100644 --- a/typedapi/esdsl/trainedmodel.go +++ b/typedapi/esdsl/trainedmodel.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _trainedModel struct { v *types.TrainedModel @@ -32,7 +32,6 @@ func NewTrainedModel() *_trainedModel { } -// The definition for an ensemble model func (s *_trainedModel) Ensemble(ensemble types.EnsembleVariant) *_trainedModel { s.v.Ensemble = ensemble.EnsembleCaster() @@ -40,7 +39,6 @@ func (s *_trainedModel) Ensemble(ensemble types.EnsembleVariant) *_trainedModel return s } -// The definition for a binary decision tree. func (s *_trainedModel) Tree(tree types.TrainedModelTreeVariant) *_trainedModel { s.v.Tree = tree.TrainedModelTreeCaster() @@ -48,11 +46,6 @@ func (s *_trainedModel) Tree(tree types.TrainedModelTreeVariant) *_trainedModel return s } -// The definition of a node in a tree. -// There are two major types of nodes: leaf nodes and not-leaf nodes. -// - Leaf nodes only need node_index and leaf_value defined. -// - All other nodes need split_feature, left_child, right_child, threshold, -// decision_type, and default_left defined. func (s *_trainedModel) TreeNode(treenode types.TrainedModelTreeNodeVariant) *_trainedModel { s.v.TreeNode = treenode.TrainedModelTreeNodeCaster() diff --git a/typedapi/esdsl/trainedmodelprefixstrings.go b/typedapi/esdsl/trainedmodelprefixstrings.go index 910c49e09b..b52666ee22 100644 --- a/typedapi/esdsl/trainedmodelprefixstrings.go +++ b/typedapi/esdsl/trainedmodelprefixstrings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _trainedModelPrefixStrings struct { v *types.TrainedModelPrefixStrings @@ -32,7 +32,6 @@ func NewTrainedModelPrefixStrings() *_trainedModelPrefixStrings { } -// String prepended to input at ingest func (s *_trainedModelPrefixStrings) Ingest(ingest string) *_trainedModelPrefixStrings { s.v.Ingest = &ingest @@ -40,7 +39,6 @@ func (s *_trainedModelPrefixStrings) Ingest(ingest string) *_trainedModelPrefixS return s } -// String prepended to input at search func (s *_trainedModelPrefixStrings) Search(search string) *_trainedModelPrefixStrings { s.v.Search = &search diff --git a/typedapi/esdsl/trainedmodeltree.go b/typedapi/esdsl/trainedmodeltree.go index cfe142748a..1e3317349e 100644 --- a/typedapi/esdsl/trainedmodeltree.go +++ b/typedapi/esdsl/trainedmodeltree.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _trainedModelTree struct { v *types.TrainedModelTree diff --git a/typedapi/esdsl/trainedmodeltreenode.go b/typedapi/esdsl/trainedmodeltreenode.go index 659fc00148..b561afd2ab 100644 --- a/typedapi/esdsl/trainedmodeltreenode.go +++ b/typedapi/esdsl/trainedmodeltreenode.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _trainedModelTreeNode struct { v *types.TrainedModelTreeNode diff --git a/typedapi/esdsl/transformcontainer.go b/typedapi/esdsl/transformcontainer.go index bd52c12cd7..f8fa3504fe 100644 --- a/typedapi/esdsl/transformcontainer.go +++ b/typedapi/esdsl/transformcontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _transformContainer struct { diff --git a/typedapi/esdsl/transformdestination.go b/typedapi/esdsl/transformdestination.go index 85a4fbada4..d370edc906 100644 --- a/typedapi/esdsl/transformdestination.go +++ b/typedapi/esdsl/transformdestination.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _transformDestination struct { v *types.TransformDestination @@ -32,11 +32,6 @@ func NewTransformDestination() *_transformDestination { } -// The destination index for the transform. The mappings of the destination -// index are deduced based on the source -// fields when possible. If alternate mappings are required, use the create -// index API prior to starting the -// transform. func (s *_transformDestination) Index(indexname string) *_transformDestination { s.v.Index = &indexname @@ -44,7 +39,6 @@ func (s *_transformDestination) Index(indexname string) *_transformDestination { return s } -// The unique identifier for an ingest pipeline. func (s *_transformDestination) Pipeline(pipeline string) *_transformDestination { s.v.Pipeline = &pipeline diff --git a/typedapi/esdsl/transformsource.go b/typedapi/esdsl/transformsource.go index 7197d79597..9b12939aa8 100644 --- a/typedapi/esdsl/transformsource.go +++ b/typedapi/esdsl/transformsource.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _transformSource struct { v *types.TransformSource @@ -32,14 +32,6 @@ func NewTransformSource() *_transformSource { } -// The source indices for the transform. It can be a single index, an index -// pattern (for example, `"my-index-*""`), an -// array of indices (for example, `["my-index-000001", "my-index-000002"]`), or -// an array of index patterns (for -// example, `["my-index-*", "my-other-index-*"]`. For remote indices use the -// syntax `"remote_name:index_name"`. If -// any indices are in remote clusters then the master node and at least one -// transform node must have the `remote_cluster_client` node role. func (s *_transformSource) Index(indices ...string) *_transformSource { s.v.Index = indices @@ -47,7 +39,6 @@ func (s *_transformSource) Index(indices ...string) *_transformSource { return s } -// A query clause that retrieves a subset of data from the source index. func (s *_transformSource) Query(query types.QueryVariant) *_transformSource { s.v.Query = query.QueryCaster() @@ -55,9 +46,6 @@ func (s *_transformSource) Query(query types.QueryVariant) *_transformSource { return s } -// Definitions of search-time runtime fields that can be used by the transform. -// For search runtime fields all data -// nodes, including remote nodes, must be 7.12 or later. func (s *_transformSource) RuntimeMappings(runtimefields types.RuntimeFieldsVariant) *_transformSource { s.v.RuntimeMappings = *runtimefields.RuntimeFieldsCaster() diff --git a/typedapi/esdsl/translog.go b/typedapi/esdsl/translog.go index 3b7c7c5c2b..83ba7fcd2a 100644 --- a/typedapi/esdsl/translog.go +++ b/typedapi/esdsl/translog.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/translogdurability" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/translogdurability" ) type _translog struct { @@ -35,24 +35,12 @@ func NewTranslog() *_translog { } -// Whether or not to `fsync` and commit the translog after every index, delete, -// update, or bulk request. func (s *_translog) Durability(durability translogdurability.TranslogDurability) *_translog { s.v.Durability = &durability return s } -// The translog stores all operations that are not yet safely persisted in -// Lucene (i.e., are not -// part of a Lucene commit point). Although these operations are available for -// reads, they will need -// to be replayed if the shard was stopped and had to be recovered. This setting -// controls the -// maximum total size of these operations, to prevent recoveries from taking too -// long. Once the -// maximum size has been reached a flush will happen, generating a new Lucene -// commit point. func (s *_translog) FlushThresholdSize(bytesize types.ByteSizeVariant) *_translog { s.v.FlushThresholdSize = *bytesize.ByteSizeCaster() @@ -67,9 +55,6 @@ func (s *_translog) Retention(retention types.TranslogRetentionVariant) *_transl return s } -// How often the translog is fsynced to disk and committed, regardless of write -// operations. -// Values less than 100ms are not allowed. func (s *_translog) SyncInterval(duration types.DurationVariant) *_translog { s.v.SyncInterval = *duration.DurationCaster() diff --git a/typedapi/esdsl/translogretention.go b/typedapi/esdsl/translogretention.go index 62819c6dd7..8330270761 100644 --- a/typedapi/esdsl/translogretention.go +++ b/typedapi/esdsl/translogretention.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _translogRetention struct { v *types.TranslogRetention @@ -32,15 +32,6 @@ func NewTranslogRetention() *_translogRetention { } -// This controls the maximum duration for which translog files are kept by each -// shard. Keeping more -// translog files increases the chance of performing an operation based sync -// when recovering replicas. If -// the translog files are not sufficient, replica recovery will fall back to a -// file based sync. This setting -// is ignored, and should not be set, if soft deletes are enabled. Soft deletes -// are enabled by default in -// indices created in Elasticsearch versions 7.0.0 and later. func (s *_translogRetention) Age(duration types.DurationVariant) *_translogRetention { s.v.Age = *duration.DurationCaster() @@ -48,15 +39,6 @@ func (s *_translogRetention) Age(duration types.DurationVariant) *_translogReten return s } -// This controls the total size of translog files to keep for each shard. -// Keeping more translog files increases -// the chance of performing an operation based sync when recovering a replica. -// If the translog files are not -// sufficient, replica recovery will fall back to a file based sync. This -// setting is ignored, and should not be -// set, if soft deletes are enabled. Soft deletes are enabled by default in -// indices created in Elasticsearch -// versions 7.0.0 and later. func (s *_translogRetention) Size(bytesize types.ByteSizeVariant) *_translogRetention { s.v.Size = *bytesize.ByteSizeCaster() diff --git a/typedapi/esdsl/triggercontainer.go b/typedapi/esdsl/triggercontainer.go index c57b82ee03..abe753445a 100644 --- a/typedapi/esdsl/triggercontainer.go +++ b/typedapi/esdsl/triggercontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _triggerContainer struct { diff --git a/typedapi/esdsl/trimprocessor.go b/typedapi/esdsl/trimprocessor.go index 9ec5bb0971..dc108b5c44 100644 --- a/typedapi/esdsl/trimprocessor.go +++ b/typedapi/esdsl/trimprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _trimProcessor struct { v *types.TrimProcessor @@ -36,8 +36,6 @@ func NewTrimProcessor() *_trimProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_trimProcessor) Description(description string) *_trimProcessor { s.v.Description = &description @@ -45,7 +43,6 @@ func (s *_trimProcessor) Description(description string) *_trimProcessor { return s } -// The string-valued field to trim whitespace from. func (s *_trimProcessor) Field(field string) *_trimProcessor { s.v.Field = field @@ -53,7 +50,6 @@ func (s *_trimProcessor) Field(field string) *_trimProcessor { return s } -// Conditionally execute the processor. func (s *_trimProcessor) If(if_ types.ScriptVariant) *_trimProcessor { s.v.If = if_.ScriptCaster() @@ -61,7 +57,6 @@ func (s *_trimProcessor) If(if_ types.ScriptVariant) *_trimProcessor { return s } -// Ignore failures for the processor. func (s *_trimProcessor) IgnoreFailure(ignorefailure bool) *_trimProcessor { s.v.IgnoreFailure = &ignorefailure @@ -69,8 +64,6 @@ func (s *_trimProcessor) IgnoreFailure(ignorefailure bool) *_trimProcessor { return s } -// If `true` and `field` does not exist, the processor quietly exits without -// modifying the document. func (s *_trimProcessor) IgnoreMissing(ignoremissing bool) *_trimProcessor { s.v.IgnoreMissing = &ignoremissing @@ -78,7 +71,6 @@ func (s *_trimProcessor) IgnoreMissing(ignoremissing bool) *_trimProcessor { return s } -// Handle failures for the processor. func (s *_trimProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_trimProcessor { for _, v := range onfailures { @@ -89,8 +81,6 @@ func (s *_trimProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_trimProcessor) Tag(tag string) *_trimProcessor { s.v.Tag = &tag @@ -98,8 +88,6 @@ func (s *_trimProcessor) Tag(tag string) *_trimProcessor { return s } -// The field to assign the trimmed value to. -// By default, the field is updated in-place. func (s *_trimProcessor) TargetField(field string) *_trimProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/trimtokenfilter.go b/typedapi/esdsl/trimtokenfilter.go index d7999f6028..f9b64ff5e4 100644 --- a/typedapi/esdsl/trimtokenfilter.go +++ b/typedapi/esdsl/trimtokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _trimTokenFilter struct { v *types.TrimTokenFilter diff --git a/typedapi/esdsl/truncatetokenfilter.go b/typedapi/esdsl/truncatetokenfilter.go index aea81e8ae8..3290c3cddf 100644 --- a/typedapi/esdsl/truncatetokenfilter.go +++ b/typedapi/esdsl/truncatetokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _truncateTokenFilter struct { v *types.TruncateTokenFilter diff --git a/typedapi/esdsl/ttestaggregation.go b/typedapi/esdsl/ttestaggregation.go index 94bbd530f4..e19818fb22 100644 --- a/typedapi/esdsl/ttestaggregation.go +++ b/typedapi/esdsl/ttestaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ttesttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ttesttype" ) type _tTestAggregation struct { @@ -38,7 +38,6 @@ func NewTTestAggregation() *_tTestAggregation { } -// Test population A. func (s *_tTestAggregation) A(a types.TestPopulationVariant) *_tTestAggregation { s.v.A = a.TestPopulationCaster() @@ -46,7 +45,6 @@ func (s *_tTestAggregation) A(a types.TestPopulationVariant) *_tTestAggregation return s } -// Test population B. func (s *_tTestAggregation) B(b types.TestPopulationVariant) *_tTestAggregation { s.v.B = b.TestPopulationCaster() @@ -54,7 +52,6 @@ func (s *_tTestAggregation) B(b types.TestPopulationVariant) *_tTestAggregation return s } -// The type of test. func (s *_tTestAggregation) Type(type_ ttesttype.TTestType) *_tTestAggregation { s.v.Type = &type_ diff --git a/typedapi/esdsl/turkishanalyzer.go b/typedapi/esdsl/turkishanalyzer.go index a5c150d81a..feb227a4d6 100644 --- a/typedapi/esdsl/turkishanalyzer.go +++ b/typedapi/esdsl/turkishanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _turkishAnalyzer struct { v *types.TurkishAnalyzer diff --git a/typedapi/esdsl/typemapping.go b/typedapi/esdsl/typemapping.go index bc4523b188..b1ef0e7fa1 100644 --- a/typedapi/esdsl/typemapping.go +++ b/typedapi/esdsl/typemapping.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/subobjects" + "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/subobjects" ) type _typeMapping struct { diff --git a/typedapi/esdsl/typequery.go b/typedapi/esdsl/typequery.go index fdda4d7e00..4e7166116c 100644 --- a/typedapi/esdsl/typequery.go +++ b/typedapi/esdsl/typequery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _typeQuery struct { v *types.TypeQuery @@ -36,11 +36,6 @@ func NewTypeQuery(value string) *_typeQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_typeQuery) Boost(boost float32) *_typeQuery { s.v.Boost = &boost diff --git a/typedapi/esdsl/uaxemailurltokenizer.go b/typedapi/esdsl/uaxemailurltokenizer.go index 95938f2f7a..2dc876218a 100644 --- a/typedapi/esdsl/uaxemailurltokenizer.go +++ b/typedapi/esdsl/uaxemailurltokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _uaxEmailUrlTokenizer struct { v *types.UaxEmailUrlTokenizer diff --git a/typedapi/esdsl/uniquetokenfilter.go b/typedapi/esdsl/uniquetokenfilter.go index 2be91361fa..90d2dbd665 100644 --- a/typedapi/esdsl/uniquetokenfilter.go +++ b/typedapi/esdsl/uniquetokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _uniqueTokenFilter struct { v *types.UniqueTokenFilter diff --git a/typedapi/esdsl/unsignedlongnumberproperty.go b/typedapi/esdsl/unsignedlongnumberproperty.go index 82f48576fc..a191a8ff55 100644 --- a/typedapi/esdsl/unsignedlongnumberproperty.go +++ b/typedapi/esdsl/unsignedlongnumberproperty.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "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/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) type _unsignedLongNumberProperty struct { @@ -114,7 +114,6 @@ func (s *_unsignedLongNumberProperty) Index(index bool) *_unsignedLongNumberProp return s } -// Metadata about the field. func (s *_unsignedLongNumberProperty) Meta(meta map[string]string) *_unsignedLongNumberProperty { s.v.Meta = meta @@ -190,8 +189,6 @@ func (s *_unsignedLongNumberProperty) SyntheticSourceKeep(syntheticsourcekeep sy return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_unsignedLongNumberProperty) TimeSeriesDimension(timeseriesdimension bool) *_unsignedLongNumberProperty { s.v.TimeSeriesDimension = ×eriesdimension @@ -199,8 +196,6 @@ func (s *_unsignedLongNumberProperty) TimeSeriesDimension(timeseriesdimension bo return s } -// For internal use by Elastic only. Marks the field as a time series dimension. -// Defaults to false. func (s *_unsignedLongNumberProperty) TimeSeriesMetric(timeseriesmetric timeseriesmetrictype.TimeSeriesMetricType) *_unsignedLongNumberProperty { s.v.TimeSeriesMetric = ×eriesmetric diff --git a/typedapi/esdsl/untypeddecayfunction.go b/typedapi/esdsl/untypeddecayfunction.go index e5639fe01d..eb2d34d12b 100644 --- a/typedapi/esdsl/untypeddecayfunction.go +++ b/typedapi/esdsl/untypeddecayfunction.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/multivaluemode" ) type _untypedDecayFunction struct { @@ -58,8 +58,6 @@ func (s *_untypedDecayFunction) AddDecayFunctionBase(key string, value types.Dec return s } -// Determines how the distance is calculated when a field used for computing the -// decay contains multiple values. func (s *_untypedDecayFunction) MultiValueMode(multivaluemode multivaluemode.MultiValueMode) *_untypedDecayFunction { s.v.MultiValueMode = &multivaluemode diff --git a/typedapi/esdsl/untypeddistancefeaturequery.go b/typedapi/esdsl/untypeddistancefeaturequery.go index 50c3cefb92..3eedf6d958 100644 --- a/typedapi/esdsl/untypeddistancefeaturequery.go +++ b/typedapi/esdsl/untypeddistancefeaturequery.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _untypedDistanceFeatureQuery struct { @@ -46,11 +46,6 @@ func NewUntypedDistanceFeatureQuery(origin json.RawMessage, pivot json.RawMessag } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_untypedDistanceFeatureQuery) Boost(boost float32) *_untypedDistanceFeatureQuery { s.v.Boost = &boost @@ -58,11 +53,6 @@ func (s *_untypedDistanceFeatureQuery) Boost(boost float32) *_untypedDistanceFea return s } -// Name of the field used to calculate distances. This field must meet the -// following criteria: -// be a `date`, `date_nanos` or `geo_point` field; -// have an `index` mapping parameter value of `true`, which is the default; -// have an `doc_values` mapping parameter value of `true`, which is the default. func (s *_untypedDistanceFeatureQuery) Field(field string) *_untypedDistanceFeatureQuery { s.v.Field = field @@ -70,12 +60,6 @@ func (s *_untypedDistanceFeatureQuery) Field(field string) *_untypedDistanceFeat return s } -// Date or point of origin used to calculate distances. -// If the `field` value is a `date` or `date_nanos` field, the `origin` value -// must be a date. -// Date Math, such as `now-1h`, is supported. -// If the field value is a `geo_point` field, the `origin` value must be a -// geopoint. func (s *_untypedDistanceFeatureQuery) Origin(origin json.RawMessage) *_untypedDistanceFeatureQuery { s.v.Origin = origin @@ -83,12 +67,6 @@ func (s *_untypedDistanceFeatureQuery) Origin(origin json.RawMessage) *_untypedD return s } -// Distance from the `origin` at which relevance scores receive half of the -// `boost` value. -// If the `field` value is a `date` or `date_nanos` field, the `pivot` value -// must be a time unit, such as `1h` or `10d`. If the `field` value is a -// `geo_point` field, the `pivot` value must be a distance unit, such as `1km` -// or `12m`. func (s *_untypedDistanceFeatureQuery) Pivot(pivot json.RawMessage) *_untypedDistanceFeatureQuery { s.v.Pivot = pivot diff --git a/typedapi/esdsl/untypedrangequery.go b/typedapi/esdsl/untypedrangequery.go index 7b599fde25..a7aeb145d2 100644 --- a/typedapi/esdsl/untypedrangequery.go +++ b/typedapi/esdsl/untypedrangequery.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/rangerelation" ) type _untypedRangeQuery struct { @@ -40,11 +40,6 @@ func NewUntypedRangeQuery(key string) *_untypedRangeQuery { } } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_untypedRangeQuery) Boost(boost float32) *_untypedRangeQuery { s.v.Boost = &boost @@ -52,7 +47,6 @@ func (s *_untypedRangeQuery) Boost(boost float32) *_untypedRangeQuery { return s } -// Date format used to convert `date` values in the query. func (s *_untypedRangeQuery) Format(dateformat string) *_untypedRangeQuery { s.v.Format = &dateformat @@ -67,7 +61,6 @@ func (s *_untypedRangeQuery) From(from json.RawMessage) *_untypedRangeQuery { return s } -// Greater than. func (s *_untypedRangeQuery) Gt(gt json.RawMessage) *_untypedRangeQuery { s.v.Gt = gt @@ -75,7 +68,6 @@ func (s *_untypedRangeQuery) Gt(gt json.RawMessage) *_untypedRangeQuery { return s } -// Greater than or equal to. func (s *_untypedRangeQuery) Gte(gte json.RawMessage) *_untypedRangeQuery { s.v.Gte = gte @@ -83,7 +75,6 @@ func (s *_untypedRangeQuery) Gte(gte json.RawMessage) *_untypedRangeQuery { return s } -// Less than. func (s *_untypedRangeQuery) Lt(lt json.RawMessage) *_untypedRangeQuery { s.v.Lt = lt @@ -91,7 +82,6 @@ func (s *_untypedRangeQuery) Lt(lt json.RawMessage) *_untypedRangeQuery { return s } -// Less than or equal to. func (s *_untypedRangeQuery) Lte(lte json.RawMessage) *_untypedRangeQuery { s.v.Lte = lte @@ -106,15 +96,12 @@ func (s *_untypedRangeQuery) QueryName_(queryname_ string) *_untypedRangeQuery { return s } -// Indicates how the range query matches values for `range` fields. func (s *_untypedRangeQuery) Relation(relation rangerelation.RangeRelation) *_untypedRangeQuery { s.v.Relation = &relation return s } -// Coordinated Universal Time (UTC) offset or IANA time zone used to convert -// `date` values in the query to UTC. func (s *_untypedRangeQuery) TimeZone(timezone string) *_untypedRangeQuery { s.v.TimeZone = &timezone diff --git a/typedapi/esdsl/updateaction.go b/typedapi/esdsl/updateaction.go index 3eeeef5323..20690a4f97 100644 --- a/typedapi/esdsl/updateaction.go +++ b/typedapi/esdsl/updateaction.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _updateAction struct { @@ -36,8 +36,6 @@ func NewUpdateAction() *_updateAction { } -// If true, the `result` in the response is set to 'noop' when no changes to the -// document occur. func (s *_updateAction) DetectNoop(detectnoop bool) *_updateAction { s.v.DetectNoop = &detectnoop @@ -45,7 +43,6 @@ func (s *_updateAction) DetectNoop(detectnoop bool) *_updateAction { return s } -// A partial update to an existing document. func (s *_updateAction) Doc(doc json.RawMessage) *_updateAction { s.v.Doc = doc @@ -53,7 +50,6 @@ func (s *_updateAction) Doc(doc json.RawMessage) *_updateAction { return s } -// Set to `true` to use the contents of `doc` as the value of `upsert`. func (s *_updateAction) DocAsUpsert(docasupsert bool) *_updateAction { s.v.DocAsUpsert = &docasupsert @@ -61,7 +57,6 @@ func (s *_updateAction) DocAsUpsert(docasupsert bool) *_updateAction { return s } -// The script to run to update the document. func (s *_updateAction) Script(script types.ScriptVariant) *_updateAction { s.v.Script = script.ScriptCaster() @@ -69,7 +64,6 @@ func (s *_updateAction) Script(script types.ScriptVariant) *_updateAction { return s } -// Set to `true` to run the script whether or not the document exists. func (s *_updateAction) ScriptedUpsert(scriptedupsert bool) *_updateAction { s.v.ScriptedUpsert = &scriptedupsert @@ -77,9 +71,6 @@ func (s *_updateAction) ScriptedUpsert(scriptedupsert bool) *_updateAction { return s } -// If `false`, source retrieval is turned off. -// You can also specify a comma-separated list of the fields you want to -// retrieve. func (s *_updateAction) Source_(sourceconfig types.SourceConfigVariant) *_updateAction { s.v.Source_ = *sourceconfig.SourceConfigCaster() @@ -87,9 +78,6 @@ func (s *_updateAction) Source_(sourceconfig types.SourceConfigVariant) *_update return s } -// If the document does not already exist, the contents of `upsert` are inserted -// as a new document. -// If the document exists, the `script` is run. func (s *_updateAction) Upsert(upsert json.RawMessage) *_updateAction { s.v.Upsert = upsert diff --git a/typedapi/esdsl/updateoperation.go b/typedapi/esdsl/updateoperation.go index 89f727cfc1..85b3660a90 100644 --- a/typedapi/esdsl/updateoperation.go +++ b/typedapi/esdsl/updateoperation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) type _updateOperation struct { @@ -37,7 +37,6 @@ func NewUpdateOperation() *_updateOperation { } -// The document ID. func (s *_updateOperation) Id_(id string) *_updateOperation { s.v.Id_ = &id @@ -59,7 +58,6 @@ func (s *_updateOperation) IfSeqNo(sequencenumber int64) *_updateOperation { return s } -// The name of the index or index alias to perform the action on. func (s *_updateOperation) Index_(indexname string) *_updateOperation { s.v.Index_ = &indexname @@ -67,7 +65,6 @@ func (s *_updateOperation) Index_(indexname string) *_updateOperation { return s } -// If `true`, the request's actions must target an index alias. func (s *_updateOperation) RequireAlias(requirealias bool) *_updateOperation { s.v.RequireAlias = &requirealias @@ -75,8 +72,6 @@ func (s *_updateOperation) RequireAlias(requirealias bool) *_updateOperation { return s } -// The number of times an update should be retried in the case of a version -// conflict. func (s *_updateOperation) RetryOnConflict(retryonconflict int) *_updateOperation { s.v.RetryOnConflict = &retryonconflict @@ -84,7 +79,6 @@ func (s *_updateOperation) RetryOnConflict(retryonconflict int) *_updateOperatio return s } -// A custom value used to route operations to a specific shard. func (s *_updateOperation) Routing(routing string) *_updateOperation { s.v.Routing = &routing diff --git a/typedapi/esdsl/uppercaseprocessor.go b/typedapi/esdsl/uppercaseprocessor.go index 10488b0d73..4c834604cb 100644 --- a/typedapi/esdsl/uppercaseprocessor.go +++ b/typedapi/esdsl/uppercaseprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _uppercaseProcessor struct { v *types.UppercaseProcessor @@ -35,8 +35,6 @@ func NewUppercaseProcessor() *_uppercaseProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_uppercaseProcessor) Description(description string) *_uppercaseProcessor { s.v.Description = &description @@ -44,7 +42,6 @@ func (s *_uppercaseProcessor) Description(description string) *_uppercaseProcess return s } -// The field to make uppercase. func (s *_uppercaseProcessor) Field(field string) *_uppercaseProcessor { s.v.Field = field @@ -52,7 +49,6 @@ func (s *_uppercaseProcessor) Field(field string) *_uppercaseProcessor { return s } -// Conditionally execute the processor. func (s *_uppercaseProcessor) If(if_ types.ScriptVariant) *_uppercaseProcessor { s.v.If = if_.ScriptCaster() @@ -60,7 +56,6 @@ func (s *_uppercaseProcessor) If(if_ types.ScriptVariant) *_uppercaseProcessor { return s } -// Ignore failures for the processor. func (s *_uppercaseProcessor) IgnoreFailure(ignorefailure bool) *_uppercaseProcessor { s.v.IgnoreFailure = &ignorefailure @@ -68,8 +63,6 @@ func (s *_uppercaseProcessor) IgnoreFailure(ignorefailure bool) *_uppercaseProce return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document. func (s *_uppercaseProcessor) IgnoreMissing(ignoremissing bool) *_uppercaseProcessor { s.v.IgnoreMissing = &ignoremissing @@ -77,7 +70,6 @@ func (s *_uppercaseProcessor) IgnoreMissing(ignoremissing bool) *_uppercaseProce return s } -// Handle failures for the processor. func (s *_uppercaseProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_uppercaseProcessor { for _, v := range onfailures { @@ -88,8 +80,6 @@ func (s *_uppercaseProcessor) OnFailure(onfailures ...types.ProcessorContainerVa return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_uppercaseProcessor) Tag(tag string) *_uppercaseProcessor { s.v.Tag = &tag @@ -97,8 +87,6 @@ func (s *_uppercaseProcessor) Tag(tag string) *_uppercaseProcessor { return s } -// The field to assign the converted value to. -// By default, the field is updated in-place. func (s *_uppercaseProcessor) TargetField(field string) *_uppercaseProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/uppercasetokenfilter.go b/typedapi/esdsl/uppercasetokenfilter.go index d70e7375a2..f7f7102709 100644 --- a/typedapi/esdsl/uppercasetokenfilter.go +++ b/typedapi/esdsl/uppercasetokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _uppercaseTokenFilter struct { v *types.UppercaseTokenFilter diff --git a/typedapi/esdsl/uripartsprocessor.go b/typedapi/esdsl/uripartsprocessor.go index a13993db92..9c2f04e271 100644 --- a/typedapi/esdsl/uripartsprocessor.go +++ b/typedapi/esdsl/uripartsprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _uriPartsProcessor struct { v *types.UriPartsProcessor @@ -36,8 +36,6 @@ func NewUriPartsProcessor() *_uriPartsProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_uriPartsProcessor) Description(description string) *_uriPartsProcessor { s.v.Description = &description @@ -45,7 +43,6 @@ func (s *_uriPartsProcessor) Description(description string) *_uriPartsProcessor return s } -// Field containing the URI string. func (s *_uriPartsProcessor) Field(field string) *_uriPartsProcessor { s.v.Field = field @@ -53,7 +50,6 @@ func (s *_uriPartsProcessor) Field(field string) *_uriPartsProcessor { return s } -// Conditionally execute the processor. func (s *_uriPartsProcessor) If(if_ types.ScriptVariant) *_uriPartsProcessor { s.v.If = if_.ScriptCaster() @@ -61,7 +57,6 @@ func (s *_uriPartsProcessor) If(if_ types.ScriptVariant) *_uriPartsProcessor { return s } -// Ignore failures for the processor. func (s *_uriPartsProcessor) IgnoreFailure(ignorefailure bool) *_uriPartsProcessor { s.v.IgnoreFailure = &ignorefailure @@ -69,8 +64,6 @@ func (s *_uriPartsProcessor) IgnoreFailure(ignorefailure bool) *_uriPartsProcess return s } -// If `true` and `field` does not exist, the processor quietly exits without -// modifying the document. func (s *_uriPartsProcessor) IgnoreMissing(ignoremissing bool) *_uriPartsProcessor { s.v.IgnoreMissing = &ignoremissing @@ -78,8 +71,6 @@ func (s *_uriPartsProcessor) IgnoreMissing(ignoremissing bool) *_uriPartsProcess return s } -// If `true`, the processor copies the unparsed URI to -// `.original`. func (s *_uriPartsProcessor) KeepOriginal(keeporiginal bool) *_uriPartsProcessor { s.v.KeepOriginal = &keeporiginal @@ -87,7 +78,6 @@ func (s *_uriPartsProcessor) KeepOriginal(keeporiginal bool) *_uriPartsProcessor return s } -// Handle failures for the processor. func (s *_uriPartsProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_uriPartsProcessor { for _, v := range onfailures { @@ -98,8 +88,6 @@ func (s *_uriPartsProcessor) OnFailure(onfailures ...types.ProcessorContainerVar return s } -// If `true`, the processor removes the `field` after parsing the URI string. -// If parsing fails, the processor does not remove the `field`. func (s *_uriPartsProcessor) RemoveIfSuccessful(removeifsuccessful bool) *_uriPartsProcessor { s.v.RemoveIfSuccessful = &removeifsuccessful @@ -107,8 +95,6 @@ func (s *_uriPartsProcessor) RemoveIfSuccessful(removeifsuccessful bool) *_uriPa return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_uriPartsProcessor) Tag(tag string) *_uriPartsProcessor { s.v.Tag = &tag @@ -116,7 +102,6 @@ func (s *_uriPartsProcessor) Tag(tag string) *_uriPartsProcessor { return s } -// Output field for the URI object. func (s *_uriPartsProcessor) TargetField(field string) *_uriPartsProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/urldecodeprocessor.go b/typedapi/esdsl/urldecodeprocessor.go index 5e080f3bda..c7b2db8b3e 100644 --- a/typedapi/esdsl/urldecodeprocessor.go +++ b/typedapi/esdsl/urldecodeprocessor.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _urlDecodeProcessor struct { v *types.UrlDecodeProcessor @@ -35,8 +35,6 @@ func NewUrlDecodeProcessor() *_urlDecodeProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_urlDecodeProcessor) Description(description string) *_urlDecodeProcessor { s.v.Description = &description @@ -44,7 +42,6 @@ func (s *_urlDecodeProcessor) Description(description string) *_urlDecodeProcess return s } -// The field to decode. func (s *_urlDecodeProcessor) Field(field string) *_urlDecodeProcessor { s.v.Field = field @@ -52,7 +49,6 @@ func (s *_urlDecodeProcessor) Field(field string) *_urlDecodeProcessor { return s } -// Conditionally execute the processor. func (s *_urlDecodeProcessor) If(if_ types.ScriptVariant) *_urlDecodeProcessor { s.v.If = if_.ScriptCaster() @@ -60,7 +56,6 @@ func (s *_urlDecodeProcessor) If(if_ types.ScriptVariant) *_urlDecodeProcessor { return s } -// Ignore failures for the processor. func (s *_urlDecodeProcessor) IgnoreFailure(ignorefailure bool) *_urlDecodeProcessor { s.v.IgnoreFailure = &ignorefailure @@ -68,8 +63,6 @@ func (s *_urlDecodeProcessor) IgnoreFailure(ignorefailure bool) *_urlDecodeProce return s } -// If `true` and `field` does not exist or is `null`, the processor quietly -// exits without modifying the document. func (s *_urlDecodeProcessor) IgnoreMissing(ignoremissing bool) *_urlDecodeProcessor { s.v.IgnoreMissing = &ignoremissing @@ -77,7 +70,6 @@ func (s *_urlDecodeProcessor) IgnoreMissing(ignoremissing bool) *_urlDecodeProce return s } -// Handle failures for the processor. func (s *_urlDecodeProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_urlDecodeProcessor { for _, v := range onfailures { @@ -88,8 +80,6 @@ func (s *_urlDecodeProcessor) OnFailure(onfailures ...types.ProcessorContainerVa return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_urlDecodeProcessor) Tag(tag string) *_urlDecodeProcessor { s.v.Tag = &tag @@ -97,8 +87,6 @@ func (s *_urlDecodeProcessor) Tag(tag string) *_urlDecodeProcessor { return s } -// The field to assign the converted value to. -// By default, the field is updated in-place. func (s *_urlDecodeProcessor) TargetField(field string) *_urlDecodeProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/useragentprocessor.go b/typedapi/esdsl/useragentprocessor.go index 3f5cf53f69..703c02b805 100644 --- a/typedapi/esdsl/useragentprocessor.go +++ b/typedapi/esdsl/useragentprocessor.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/useragentproperty" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/useragentproperty" ) type _userAgentProcessor struct { @@ -38,8 +38,6 @@ func NewUserAgentProcessor() *_userAgentProcessor { } -// Description of the processor. -// Useful for describing the purpose of the processor or its configuration. func (s *_userAgentProcessor) Description(description string) *_userAgentProcessor { s.v.Description = &description @@ -47,7 +45,6 @@ func (s *_userAgentProcessor) Description(description string) *_userAgentProcess return s } -// Extracts device type from the user agent string on a best-effort basis. func (s *_userAgentProcessor) ExtractDeviceType(extractdevicetype bool) *_userAgentProcessor { s.v.ExtractDeviceType = &extractdevicetype @@ -55,7 +52,6 @@ func (s *_userAgentProcessor) ExtractDeviceType(extractdevicetype bool) *_userAg return s } -// The field containing the user agent string. func (s *_userAgentProcessor) Field(field string) *_userAgentProcessor { s.v.Field = field @@ -63,7 +59,6 @@ func (s *_userAgentProcessor) Field(field string) *_userAgentProcessor { return s } -// Conditionally execute the processor. func (s *_userAgentProcessor) If(if_ types.ScriptVariant) *_userAgentProcessor { s.v.If = if_.ScriptCaster() @@ -71,7 +66,6 @@ func (s *_userAgentProcessor) If(if_ types.ScriptVariant) *_userAgentProcessor { return s } -// Ignore failures for the processor. func (s *_userAgentProcessor) IgnoreFailure(ignorefailure bool) *_userAgentProcessor { s.v.IgnoreFailure = &ignorefailure @@ -79,8 +73,6 @@ func (s *_userAgentProcessor) IgnoreFailure(ignorefailure bool) *_userAgentProce return s } -// If `true` and `field` does not exist, the processor quietly exits without -// modifying the document. func (s *_userAgentProcessor) IgnoreMissing(ignoremissing bool) *_userAgentProcessor { s.v.IgnoreMissing = &ignoremissing @@ -88,7 +80,6 @@ func (s *_userAgentProcessor) IgnoreMissing(ignoremissing bool) *_userAgentProce return s } -// Handle failures for the processor. func (s *_userAgentProcessor) OnFailure(onfailures ...types.ProcessorContainerVariant) *_userAgentProcessor { for _, v := range onfailures { @@ -99,7 +90,6 @@ func (s *_userAgentProcessor) OnFailure(onfailures ...types.ProcessorContainerVa return s } -// Controls what properties are added to `target_field`. func (s *_userAgentProcessor) Properties(properties ...useragentproperty.UserAgentProperty) *_userAgentProcessor { for _, v := range properties { @@ -110,11 +100,6 @@ func (s *_userAgentProcessor) Properties(properties ...useragentproperty.UserAge return s } -// The name of the file in the `config/ingest-user-agent` directory containing -// the regular expressions for parsing the user agent string. Both the directory -// and the file have to be created before starting Elasticsearch. If not -// specified, ingest-user-agent will use the `regexes.yaml` from uap-core it -// ships with. func (s *_userAgentProcessor) RegexFile(regexfile string) *_userAgentProcessor { s.v.RegexFile = ®exfile @@ -122,8 +107,6 @@ func (s *_userAgentProcessor) RegexFile(regexfile string) *_userAgentProcessor { return s } -// Identifier for the processor. -// Useful for debugging and metrics. func (s *_userAgentProcessor) Tag(tag string) *_userAgentProcessor { s.v.Tag = &tag @@ -131,7 +114,6 @@ func (s *_userAgentProcessor) Tag(tag string) *_userAgentProcessor { return s } -// The field that will be filled with the user agent details. func (s *_userAgentProcessor) TargetField(field string) *_userAgentProcessor { s.v.TargetField = &field diff --git a/typedapi/esdsl/userquerycontainer.go b/typedapi/esdsl/userquerycontainer.go index 833be047f9..43283fb861 100644 --- a/typedapi/esdsl/userquerycontainer.go +++ b/typedapi/esdsl/userquerycontainer.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _userQueryContainer struct { @@ -46,7 +46,6 @@ func (s *_userQueryContainer) AdditionalUserQueryContainerProperty(key string, v return s } -// matches users matching boolean combinations of other queries. func (s *_userQueryContainer) Bool(bool types.BoolQueryVariant) *_userQueryContainer { s.v.Bool = bool.BoolQueryCaster() @@ -54,7 +53,6 @@ func (s *_userQueryContainer) Bool(bool types.BoolQueryVariant) *_userQueryConta return s } -// Returns users that contain an indexed value for a field. func (s *_userQueryContainer) Exists(exists types.ExistsQueryVariant) *_userQueryContainer { s.v.Exists = exists.ExistsQueryCaster() @@ -62,8 +60,6 @@ func (s *_userQueryContainer) Exists(exists types.ExistsQueryVariant) *_userQuer return s } -// Returns users based on their IDs. -// This query uses the user document IDs stored in the `_id` field. func (s *_userQueryContainer) Ids(ids types.IdsQueryVariant) *_userQueryContainer { s.v.Ids = ids.IdsQueryCaster() @@ -71,8 +67,6 @@ func (s *_userQueryContainer) Ids(ids types.IdsQueryVariant) *_userQueryContaine return s } -// Returns users that match a provided text, number, date or boolean value. -// The provided text is analyzed before matching. // Match is a single key dictionnary. // It will replace the current value on each call. func (s *_userQueryContainer) Match(key string, value types.MatchQueryVariant) *_userQueryContainer { @@ -85,7 +79,6 @@ func (s *_userQueryContainer) Match(key string, value types.MatchQueryVariant) * return s } -// Matches all users, giving them all a `_score` of 1.0. func (s *_userQueryContainer) MatchAll(matchall types.MatchAllQueryVariant) *_userQueryContainer { s.v.MatchAll = matchall.MatchAllQueryCaster() @@ -93,7 +86,6 @@ func (s *_userQueryContainer) MatchAll(matchall types.MatchAllQueryVariant) *_us return s } -// Returns users that contain a specific prefix in a provided field. // Prefix is a single key dictionnary. // It will replace the current value on each call. func (s *_userQueryContainer) Prefix(key string, value types.PrefixQueryVariant) *_userQueryContainer { @@ -106,7 +98,6 @@ func (s *_userQueryContainer) Prefix(key string, value types.PrefixQueryVariant) return s } -// Returns users that contain terms within a provided range. // Range is a single key dictionnary. // It will replace the current value on each call. func (s *_userQueryContainer) Range(key string, value types.RangeQueryVariant) *_userQueryContainer { @@ -119,8 +110,6 @@ func (s *_userQueryContainer) Range(key string, value types.RangeQueryVariant) * return s } -// Returns users based on a provided query string, using a parser with a limited -// but fault-tolerant syntax. func (s *_userQueryContainer) SimpleQueryString(simplequerystring types.SimpleQueryStringQueryVariant) *_userQueryContainer { s.v.SimpleQueryString = simplequerystring.SimpleQueryStringQueryCaster() @@ -128,9 +117,6 @@ func (s *_userQueryContainer) SimpleQueryString(simplequerystring types.SimpleQu return s } -// Returns users that contain an exact term in a provided field. -// To return a document, the query term must exactly match the queried field's -// value, including whitespace and capitalization. // Term is a single key dictionnary. // It will replace the current value on each call. func (s *_userQueryContainer) Term(key string, value types.TermQueryVariant) *_userQueryContainer { @@ -143,9 +129,6 @@ func (s *_userQueryContainer) Term(key string, value types.TermQueryVariant) *_u return s } -// Returns users that contain one or more exact terms in a provided field. -// To return a document, one or more terms must exactly match a field value, -// including whitespace and capitalization. func (s *_userQueryContainer) Terms(terms types.TermsQueryVariant) *_userQueryContainer { s.v.Terms = terms.TermsQueryCaster() @@ -153,7 +136,6 @@ func (s *_userQueryContainer) Terms(terms types.TermsQueryVariant) *_userQueryCo return s } -// Returns users that contain terms matching a wildcard pattern. // Wildcard is a single key dictionnary. // It will replace the current value on each call. func (s *_userQueryContainer) Wildcard(key string, value types.WildcardQueryVariant) *_userQueryContainer { diff --git a/typedapi/esdsl/validation.go b/typedapi/esdsl/validation.go index 1f14b9adf5..3f6cdcb344 100644 --- a/typedapi/esdsl/validation.go +++ b/typedapi/esdsl/validation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // This is provide all the types that are part of the union. type _validation struct { diff --git a/typedapi/esdsl/valuecountaggregation.go b/typedapi/esdsl/valuecountaggregation.go index 2fd20210ea..da62ca577a 100644 --- a/typedapi/esdsl/valuecountaggregation.go +++ b/typedapi/esdsl/valuecountaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _valueCountAggregation struct { v *types.ValueCountAggregation @@ -34,7 +34,6 @@ func NewValueCountAggregation() *_valueCountAggregation { } -// The field on which to run the aggregation. func (s *_valueCountAggregation) Field(field string) *_valueCountAggregation { s.v.Field = &field @@ -49,8 +48,6 @@ func (s *_valueCountAggregation) Format(format string) *_valueCountAggregation { return s } -// The value to apply to documents that do not have a value. -// By default, documents without a value are ignored. func (s *_valueCountAggregation) Missing(missing types.MissingVariant) *_valueCountAggregation { s.v.Missing = *missing.MissingCaster() diff --git a/typedapi/esdsl/variablewidthhistogramaggregation.go b/typedapi/esdsl/variablewidthhistogramaggregation.go index ec791e2fe6..b698ebb737 100644 --- a/typedapi/esdsl/variablewidthhistogramaggregation.go +++ b/typedapi/esdsl/variablewidthhistogramaggregation.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _variableWidthHistogramAggregation struct { v *types.VariableWidthHistogramAggregation @@ -35,7 +35,6 @@ func NewVariableWidthHistogramAggregation() *_variableWidthHistogramAggregation } -// The target number of buckets. func (s *_variableWidthHistogramAggregation) Buckets(buckets int) *_variableWidthHistogramAggregation { s.v.Buckets = &buckets @@ -43,7 +42,6 @@ func (s *_variableWidthHistogramAggregation) Buckets(buckets int) *_variableWidt return s } -// The name of the field. func (s *_variableWidthHistogramAggregation) Field(field string) *_variableWidthHistogramAggregation { s.v.Field = &field @@ -51,9 +49,6 @@ func (s *_variableWidthHistogramAggregation) Field(field string) *_variableWidth return s } -// Specifies the number of individual documents that will be stored in memory on -// a shard before the initial bucketing algorithm is run. -// Defaults to `min(10 * shard_size, 50000)`. func (s *_variableWidthHistogramAggregation) InitialBuffer(initialbuffer int) *_variableWidthHistogramAggregation { s.v.InitialBuffer = &initialbuffer @@ -68,9 +63,6 @@ func (s *_variableWidthHistogramAggregation) Script(script types.ScriptVariant) return s } -// The number of buckets that the coordinating node will request from each -// shard. -// Defaults to `buckets * 50`. func (s *_variableWidthHistogramAggregation) ShardSize(shardsize int) *_variableWidthHistogramAggregation { s.v.ShardSize = &shardsize diff --git a/typedapi/esdsl/versionproperty.go b/typedapi/esdsl/versionproperty.go index 46bacf0398..ab3d8cfc1e 100644 --- a/typedapi/esdsl/versionproperty.go +++ b/typedapi/esdsl/versionproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _versionProperty struct { @@ -84,7 +84,6 @@ func (s *_versionProperty) IgnoreAbove(ignoreabove int) *_versionProperty { return s } -// Metadata about the field. func (s *_versionProperty) Meta(meta map[string]string) *_versionProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/vertexdefinition.go b/typedapi/esdsl/vertexdefinition.go index 08dc8eeb12..09cf1f641c 100644 --- a/typedapi/esdsl/vertexdefinition.go +++ b/typedapi/esdsl/vertexdefinition.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _vertexDefinition struct { v *types.VertexDefinition @@ -32,7 +32,6 @@ func NewVertexDefinition() *_vertexDefinition { } -// Prevents the specified terms from being included in the results. func (s *_vertexDefinition) Exclude(excludes ...string) *_vertexDefinition { for _, v := range excludes { @@ -43,7 +42,6 @@ func (s *_vertexDefinition) Exclude(excludes ...string) *_vertexDefinition { return s } -// Identifies a field in the documents of interest. func (s *_vertexDefinition) Field(field string) *_vertexDefinition { s.v.Field = field @@ -51,8 +49,6 @@ func (s *_vertexDefinition) Field(field string) *_vertexDefinition { return s } -// Identifies the terms of interest that form the starting points from which you -// want to spider out. func (s *_vertexDefinition) Include(includes ...types.VertexIncludeVariant) *_vertexDefinition { for _, v := range includes { @@ -63,9 +59,6 @@ func (s *_vertexDefinition) Include(includes ...types.VertexIncludeVariant) *_ve return s } -// Specifies how many documents must contain a pair of terms before it is -// considered to be a useful connection. -// This setting acts as a certainty threshold. func (s *_vertexDefinition) MinDocCount(mindoccount int64) *_vertexDefinition { s.v.MinDocCount = &mindoccount @@ -73,8 +66,6 @@ func (s *_vertexDefinition) MinDocCount(mindoccount int64) *_vertexDefinition { return s } -// Controls how many documents on a particular shard have to contain a pair of -// terms before the connection is returned for global consideration. func (s *_vertexDefinition) ShardMinDocCount(shardmindoccount int64) *_vertexDefinition { s.v.ShardMinDocCount = &shardmindoccount @@ -82,7 +73,6 @@ func (s *_vertexDefinition) ShardMinDocCount(shardmindoccount int64) *_vertexDef return s } -// Specifies the maximum number of vertex terms returned for each field. func (s *_vertexDefinition) Size(size int) *_vertexDefinition { s.v.Size = &size diff --git a/typedapi/esdsl/vertexinclude.go b/typedapi/esdsl/vertexinclude.go index b7c66121a3..b7224fa449 100644 --- a/typedapi/esdsl/vertexinclude.go +++ b/typedapi/esdsl/vertexinclude.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _vertexInclude struct { v *types.VertexInclude diff --git a/typedapi/esdsl/vocabulary.go b/typedapi/esdsl/vocabulary.go index 9787c1d757..8c59428fa9 100644 --- a/typedapi/esdsl/vocabulary.go +++ b/typedapi/esdsl/vocabulary.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _vocabulary struct { v *types.Vocabulary diff --git a/typedapi/esdsl/voyageaiservicesettings.go b/typedapi/esdsl/voyageaiservicesettings.go new file mode 100644 index 0000000000..7b6474462a --- /dev/null +++ b/typedapi/esdsl/voyageaiservicesettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _voyageAIServiceSettings struct { + v *types.VoyageAIServiceSettings +} + +func NewVoyageAIServiceSettings(modelid string) *_voyageAIServiceSettings { + + tmp := &_voyageAIServiceSettings{v: types.NewVoyageAIServiceSettings()} + + tmp.ModelId(modelid) + + return tmp + +} + +func (s *_voyageAIServiceSettings) Dimensions(dimensions int) *_voyageAIServiceSettings { + + s.v.Dimensions = &dimensions + + return s +} + +func (s *_voyageAIServiceSettings) EmbeddingType(embeddingtype float32) *_voyageAIServiceSettings { + + s.v.EmbeddingType = &embeddingtype + + return s +} + +func (s *_voyageAIServiceSettings) ModelId(modelid string) *_voyageAIServiceSettings { + + s.v.ModelId = modelid + + return s +} + +func (s *_voyageAIServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_voyageAIServiceSettings { + + s.v.RateLimit = ratelimit.RateLimitSettingCaster() + + return s +} + +func (s *_voyageAIServiceSettings) VoyageAIServiceSettingsCaster() *types.VoyageAIServiceSettings { + return s.v +} diff --git a/typedapi/esdsl/voyageaitasksettings.go b/typedapi/esdsl/voyageaitasksettings.go new file mode 100644 index 0000000000..709af9f4b8 --- /dev/null +++ b/typedapi/esdsl/voyageaitasksettings.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" + +type _voyageAITaskSettings struct { + v *types.VoyageAITaskSettings +} + +func NewVoyageAITaskSettings() *_voyageAITaskSettings { + + return &_voyageAITaskSettings{v: types.NewVoyageAITaskSettings()} + +} + +func (s *_voyageAITaskSettings) InputType(inputtype string) *_voyageAITaskSettings { + + s.v.InputType = &inputtype + + return s +} + +func (s *_voyageAITaskSettings) ReturnDocuments(returndocuments bool) *_voyageAITaskSettings { + + s.v.ReturnDocuments = &returndocuments + + return s +} + +func (s *_voyageAITaskSettings) TopK(topk int) *_voyageAITaskSettings { + + s.v.TopK = &topk + + return s +} + +func (s *_voyageAITaskSettings) Truncation(truncation bool) *_voyageAITaskSettings { + + s.v.Truncation = &truncation + + return s +} + +func (s *_voyageAITaskSettings) VoyageAITaskSettingsCaster() *types.VoyageAITaskSettings { + return s.v +} diff --git a/typedapi/esdsl/waitforsnapshotaction.go b/typedapi/esdsl/waitforsnapshotaction.go index b436c05ac7..ddbb05c661 100644 --- a/typedapi/esdsl/waitforsnapshotaction.go +++ b/typedapi/esdsl/waitforsnapshotaction.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _waitForSnapshotAction struct { v *types.WaitForSnapshotAction diff --git a/typedapi/esdsl/watch.go b/typedapi/esdsl/watch.go index 9cce35a5b4..1c308004be 100644 --- a/typedapi/esdsl/watch.go +++ b/typedapi/esdsl/watch.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _watch struct { v *types.Watch diff --git a/typedapi/esdsl/watcheraction.go b/typedapi/esdsl/watcheraction.go index 0d1f136144..bdb90b354a 100644 --- a/typedapi/esdsl/watcheraction.go +++ b/typedapi/esdsl/watcheraction.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/actiontype" ) type _watcherAction struct { diff --git a/typedapi/esdsl/watchercondition.go b/typedapi/esdsl/watchercondition.go index 854facd815..6bd7d91a6d 100644 --- a/typedapi/esdsl/watchercondition.go +++ b/typedapi/esdsl/watchercondition.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _watcherCondition struct { @@ -65,8 +65,6 @@ func (s *_watcherCondition) ArrayCompare(key string, value types.ArrayCompareCon return s } -// - func (s *_watcherCondition) Never(never types.NeverConditionVariant) *_watcherCondition { s.v.Never = never.NeverConditionCaster() diff --git a/typedapi/esdsl/watcherinput.go b/typedapi/esdsl/watcherinput.go index 4cbb35e881..3d3a149624 100644 --- a/typedapi/esdsl/watcherinput.go +++ b/typedapi/esdsl/watcherinput.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) type _watcherInput struct { diff --git a/typedapi/esdsl/watcherstatusactions.go b/typedapi/esdsl/watcherstatusactions.go index 5c158a43d5..fed7477daa 100644 --- a/typedapi/esdsl/watcherstatusactions.go +++ b/typedapi/esdsl/watcherstatusactions.go @@ -16,19 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" -// This is provide an API for type alias. type _watcherStatusActions struct { v types.WatcherStatusActions } -func NewWatcherStatusActions(watcherstatusactions map[string]types.ActionStatusVariant) *_watcherStatusActions { - return &_watcherStatusActions{v: make(map[string]types.ActionStatus, 0)} +func NewWatcherStatusActions(watcherstatusactions map[string]types.ActionStatus) *_watcherStatusActions { + return &_watcherStatusActions{v: watcherstatusactions} } func (u *_watcherStatusActions) WatcherStatusActionsCaster() *types.WatcherStatusActions { diff --git a/typedapi/esdsl/watchstatus.go b/typedapi/esdsl/watchstatus.go index 17b7042762..13aeb89074 100644 --- a/typedapi/esdsl/watchstatus.go +++ b/typedapi/esdsl/watchstatus.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _watchStatus struct { v *types.WatchStatus diff --git a/typedapi/esdsl/watsonxservicesettings.go b/typedapi/esdsl/watsonxservicesettings.go index 0c89f7b1ff..e9573b81ab 100644 --- a/typedapi/esdsl/watsonxservicesettings.go +++ b/typedapi/esdsl/watsonxservicesettings.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _watsonxServiceSettings struct { v *types.WatsonxServiceSettings @@ -44,16 +44,6 @@ func NewWatsonxServiceSettings(apikey string, apiversion string, modelid string, } -// 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 -// keys page. -// -// IMPORTANT: You need to provide the API key only once, during the inference -// model creation. -// The get inference endpoint API does not retrieve your API key. -// After creating the inference model, you cannot change the associated API key. -// If you want to use a different API key, delete the inference model and -// recreate it with the same name and the updated API key. func (s *_watsonxServiceSettings) ApiKey(apikey string) *_watsonxServiceSettings { s.v.ApiKey = apikey @@ -61,8 +51,6 @@ func (s *_watsonxServiceSettings) ApiKey(apikey string) *_watsonxServiceSettings return s } -// A version parameter that takes a version date in the format of `YYYY-MM-DD`. -// For the active version data parameters, refer to the Wastonx documentation. func (s *_watsonxServiceSettings) ApiVersion(apiversion string) *_watsonxServiceSettings { s.v.ApiVersion = apiversion @@ -70,9 +58,6 @@ func (s *_watsonxServiceSettings) ApiVersion(apiversion string) *_watsonxService return s } -// The name of the model to use for the inference task. -// Refer to the IBM Embedding Models section in the Watsonx documentation for -// the list of available text embedding models. func (s *_watsonxServiceSettings) ModelId(modelid string) *_watsonxServiceSettings { s.v.ModelId = modelid @@ -80,7 +65,6 @@ func (s *_watsonxServiceSettings) ModelId(modelid string) *_watsonxServiceSettin return s } -// The identifier of the IBM Cloud project to use for the inference task. func (s *_watsonxServiceSettings) ProjectId(projectid string) *_watsonxServiceSettings { s.v.ProjectId = projectid @@ -88,10 +72,6 @@ func (s *_watsonxServiceSettings) ProjectId(projectid string) *_watsonxServiceSe return s } -// This setting helps to minimize the number of rate limit errors returned from -// Watsonx. -// By default, the `watsonxai` service sets the number of requests allowed per -// minute to 120. func (s *_watsonxServiceSettings) RateLimit(ratelimit types.RateLimitSettingVariant) *_watsonxServiceSettings { s.v.RateLimit = ratelimit.RateLimitSettingCaster() @@ -99,7 +79,6 @@ func (s *_watsonxServiceSettings) RateLimit(ratelimit types.RateLimitSettingVari return s } -// The URL of the inference endpoint that you created on Watsonx. func (s *_watsonxServiceSettings) Url(url string) *_watsonxServiceSettings { s.v.Url = url diff --git a/typedapi/esdsl/webhookaction.go b/typedapi/esdsl/webhookaction.go index f8e708b7f6..2da00ad525 100644 --- a/typedapi/esdsl/webhookaction.go +++ b/typedapi/esdsl/webhookaction.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/httpinputmethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/connectionscheme" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/httpinputmethod" ) type _webhookAction struct { diff --git a/typedapi/esdsl/weightedaverageaggregation.go b/typedapi/esdsl/weightedaverageaggregation.go index b3e91c44b8..a1d524dc68 100644 --- a/typedapi/esdsl/weightedaverageaggregation.go +++ b/typedapi/esdsl/weightedaverageaggregation.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/valuetype" ) type _weightedAverageAggregation struct { @@ -37,7 +37,6 @@ func NewWeightedAverageAggregation() *_weightedAverageAggregation { } -// A numeric response formatter. func (s *_weightedAverageAggregation) Format(format string) *_weightedAverageAggregation { s.v.Format = &format @@ -45,7 +44,6 @@ func (s *_weightedAverageAggregation) Format(format string) *_weightedAverageAgg return s } -// Configuration for the field that provides the values. func (s *_weightedAverageAggregation) Value(value types.WeightedAverageValueVariant) *_weightedAverageAggregation { s.v.Value = value.WeightedAverageValueCaster() @@ -59,7 +57,6 @@ func (s *_weightedAverageAggregation) ValueType(valuetype valuetype.ValueType) * return s } -// Configuration for the field or script that provides the weights. func (s *_weightedAverageAggregation) Weight(weight types.WeightedAverageValueVariant) *_weightedAverageAggregation { s.v.Weight = weight.WeightedAverageValueCaster() diff --git a/typedapi/esdsl/weightedaveragevalue.go b/typedapi/esdsl/weightedaveragevalue.go index 4d63ba465f..823a9ebea8 100644 --- a/typedapi/esdsl/weightedaveragevalue.go +++ b/typedapi/esdsl/weightedaveragevalue.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _weightedAverageValue struct { v *types.WeightedAverageValue @@ -32,7 +32,6 @@ func NewWeightedAverageValue() *_weightedAverageValue { } -// The field from which to extract the values or weights. func (s *_weightedAverageValue) Field(field string) *_weightedAverageValue { s.v.Field = &field @@ -40,7 +39,6 @@ func (s *_weightedAverageValue) Field(field string) *_weightedAverageValue { return s } -// A value or weight to use if the field is missing. func (s *_weightedAverageValue) Missing(missing types.Float64) *_weightedAverageValue { s.v.Missing = &missing diff --git a/typedapi/esdsl/weightedtokensquery.go b/typedapi/esdsl/weightedtokensquery.go index b01532b0a1..d3192e4057 100644 --- a/typedapi/esdsl/weightedtokensquery.go +++ b/typedapi/esdsl/weightedtokensquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _weightedTokensQuery struct { k string @@ -36,11 +36,6 @@ func NewWeightedTokensQuery(key string) *_weightedTokensQuery { } } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_weightedTokensQuery) Boost(boost float32) *_weightedTokensQuery { s.v.Boost = &boost @@ -48,7 +43,6 @@ func (s *_weightedTokensQuery) Boost(boost float32) *_weightedTokensQuery { return s } -// Token pruning configurations func (s *_weightedTokensQuery) PruningConfig(pruningconfig types.TokenPruningConfigVariant) *_weightedTokensQuery { s.v.PruningConfig = pruningconfig.TokenPruningConfigCaster() @@ -63,7 +57,6 @@ func (s *_weightedTokensQuery) QueryName_(queryname_ string) *_weightedTokensQue return s } -// The tokens representing this query func (s *_weightedTokensQuery) Tokens(tokens map[string]float32) *_weightedTokensQuery { s.v.Tokens = tokens diff --git a/typedapi/esdsl/weights.go b/typedapi/esdsl/weights.go index fc458b1e82..2eecb2c80c 100644 --- a/typedapi/esdsl/weights.go +++ b/typedapi/esdsl/weights.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _weights struct { v *types.Weights diff --git a/typedapi/esdsl/whitespaceanalyzer.go b/typedapi/esdsl/whitespaceanalyzer.go index 2b898e7ee1..86a47599e8 100644 --- a/typedapi/esdsl/whitespaceanalyzer.go +++ b/typedapi/esdsl/whitespaceanalyzer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _whitespaceAnalyzer struct { v *types.WhitespaceAnalyzer diff --git a/typedapi/esdsl/whitespacetokenizer.go b/typedapi/esdsl/whitespacetokenizer.go index 423618ada7..73762ceced 100644 --- a/typedapi/esdsl/whitespacetokenizer.go +++ b/typedapi/esdsl/whitespacetokenizer.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _whitespaceTokenizer struct { v *types.WhitespaceTokenizer diff --git a/typedapi/esdsl/wildcardproperty.go b/typedapi/esdsl/wildcardproperty.go index cddae58a85..f73061904f 100644 --- a/typedapi/esdsl/wildcardproperty.go +++ b/typedapi/esdsl/wildcardproperty.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "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/syntheticsourcekeepenum" ) type _wildcardProperty struct { @@ -84,7 +84,6 @@ func (s *_wildcardProperty) IgnoreAbove(ignoreabove int) *_wildcardProperty { return s } -// Metadata about the field. func (s *_wildcardProperty) Meta(meta map[string]string) *_wildcardProperty { s.v.Meta = meta diff --git a/typedapi/esdsl/wildcardquery.go b/typedapi/esdsl/wildcardquery.go index 55be53ba4e..11b62dbc82 100644 --- a/typedapi/esdsl/wildcardquery.go +++ b/typedapi/esdsl/wildcardquery.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _wildcardQuery struct { k string v *types.WildcardQuery } -// Returns users that contain terms matching a wildcard pattern. +// Returns documents that contain terms matching a wildcard pattern. func NewWildcardQuery(field string, value string) *_wildcardQuery { tmp := &_wildcardQuery{ k: field, @@ -38,11 +38,6 @@ func NewWildcardQuery(field string, value string) *_wildcardQuery { return tmp } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_wildcardQuery) Boost(boost float32) *_wildcardQuery { s.v.Boost = &boost @@ -50,9 +45,6 @@ func (s *_wildcardQuery) Boost(boost float32) *_wildcardQuery { return s } -// Allows case insensitive matching of the pattern with the indexed field values -// when set to true. Default is false which means the case sensitivity of -// matching depends on the underlying field’s mapping. func (s *_wildcardQuery) CaseInsensitive(caseinsensitive bool) *_wildcardQuery { s.v.CaseInsensitive = &caseinsensitive @@ -67,7 +59,6 @@ func (s *_wildcardQuery) QueryName_(queryname_ string) *_wildcardQuery { return s } -// Method used to rewrite the query. func (s *_wildcardQuery) Rewrite(multitermqueryrewrite string) *_wildcardQuery { s.v.Rewrite = &multitermqueryrewrite @@ -75,8 +66,6 @@ func (s *_wildcardQuery) Rewrite(multitermqueryrewrite string) *_wildcardQuery { return s } -// Wildcard pattern for terms you wish to find in the provided field. Required, -// when wildcard is not set. func (s *_wildcardQuery) Value(value string) *_wildcardQuery { s.v.Value = &value @@ -84,8 +73,6 @@ func (s *_wildcardQuery) Value(value string) *_wildcardQuery { return s } -// Wildcard pattern for terms you wish to find in the provided field. Required, -// when value is not set. func (s *_wildcardQuery) Wildcard(wildcard string) *_wildcardQuery { s.v.Wildcard = &wildcard diff --git a/typedapi/esdsl/wktgeobounds.go b/typedapi/esdsl/wktgeobounds.go index 692fa604fa..03e8207958 100644 --- a/typedapi/esdsl/wktgeobounds.go +++ b/typedapi/esdsl/wktgeobounds.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _wktGeoBounds struct { v *types.WktGeoBounds diff --git a/typedapi/esdsl/worddelimitergraphtokenfilter.go b/typedapi/esdsl/worddelimitergraphtokenfilter.go index e26860e5fc..f7f5c31a7e 100644 --- a/typedapi/esdsl/worddelimitergraphtokenfilter.go +++ b/typedapi/esdsl/worddelimitergraphtokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _wordDelimiterGraphTokenFilter struct { v *types.WordDelimiterGraphTokenFilter diff --git a/typedapi/esdsl/worddelimitertokenfilter.go b/typedapi/esdsl/worddelimitertokenfilter.go index 9791631b67..175d6f66d3 100644 --- a/typedapi/esdsl/worddelimitertokenfilter.go +++ b/typedapi/esdsl/worddelimitertokenfilter.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _wordDelimiterTokenFilter struct { v *types.WordDelimiterTokenFilter diff --git a/typedapi/esdsl/wrapperquery.go b/typedapi/esdsl/wrapperquery.go index 581e5fdd96..05481586f5 100644 --- a/typedapi/esdsl/wrapperquery.go +++ b/typedapi/esdsl/wrapperquery.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _wrapperQuery struct { v *types.WrapperQuery @@ -37,11 +37,6 @@ func NewWrapperQuery(query string) *_wrapperQuery { } -// Floating point number used to decrease or increase the relevance scores of -// the query. -// Boost values are relative to the default value of 1.0. -// A boost value between 0 and 1.0 decreases the relevance score. -// A value greater than 1.0 increases the relevance score. func (s *_wrapperQuery) Boost(boost float32) *_wrapperQuery { s.v.Boost = &boost @@ -49,8 +44,6 @@ func (s *_wrapperQuery) Boost(boost float32) *_wrapperQuery { return s } -// A base64 encoded query. -// The binary data format can be any of JSON, YAML, CBOR or SMILE encodings func (s *_wrapperQuery) Query(query string) *_wrapperQuery { s.v.Query = query diff --git a/typedapi/esdsl/xlmrobertatokenizationconfig.go b/typedapi/esdsl/xlmrobertatokenizationconfig.go new file mode 100644 index 0000000000..2fd702f2ea --- /dev/null +++ b/typedapi/esdsl/xlmrobertatokenizationconfig.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package esdsl + +import ( + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenizationtruncate" +) + +type _xlmRobertaTokenizationConfig struct { + v *types.XlmRobertaTokenizationConfig +} + +func NewXlmRobertaTokenizationConfig() *_xlmRobertaTokenizationConfig { + + return &_xlmRobertaTokenizationConfig{v: types.NewXlmRobertaTokenizationConfig()} + +} + +func (s *_xlmRobertaTokenizationConfig) DoLowerCase(dolowercase bool) *_xlmRobertaTokenizationConfig { + + s.v.DoLowerCase = &dolowercase + + return s +} + +func (s *_xlmRobertaTokenizationConfig) MaxSequenceLength(maxsequencelength int) *_xlmRobertaTokenizationConfig { + + s.v.MaxSequenceLength = &maxsequencelength + + return s +} + +func (s *_xlmRobertaTokenizationConfig) Span(span int) *_xlmRobertaTokenizationConfig { + + s.v.Span = &span + + return s +} + +func (s *_xlmRobertaTokenizationConfig) Truncate(truncate tokenizationtruncate.TokenizationTruncate) *_xlmRobertaTokenizationConfig { + + s.v.Truncate = &truncate + return s +} + +func (s *_xlmRobertaTokenizationConfig) WithSpecialTokens(withspecialtokens bool) *_xlmRobertaTokenizationConfig { + + s.v.WithSpecialTokens = &withspecialtokens + + return s +} + +func (s *_xlmRobertaTokenizationConfig) TokenizationConfigContainerCaster() *types.TokenizationConfigContainer { + container := types.NewTokenizationConfigContainer() + + container.XlmRoberta = s.v + + return container +} + +func (s *_xlmRobertaTokenizationConfig) XlmRobertaTokenizationConfigCaster() *types.XlmRobertaTokenizationConfig { + return s.v +} diff --git a/typedapi/esdsl/zeroshotclassificationinferenceoptions.go b/typedapi/esdsl/zeroshotclassificationinferenceoptions.go index 6b74de998f..a7fe3e6686 100644 --- a/typedapi/esdsl/zeroshotclassificationinferenceoptions.go +++ b/typedapi/esdsl/zeroshotclassificationinferenceoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _zeroShotClassificationInferenceOptions struct { v *types.ZeroShotClassificationInferenceOptions @@ -33,9 +33,6 @@ func NewZeroShotClassificationInferenceOptions() *_zeroShotClassificationInferen } -// The zero shot classification labels indicating entailment, neutral, and -// contradiction -// Must contain exactly and only entailment, neutral, and contradiction func (s *_zeroShotClassificationInferenceOptions) ClassificationLabels(classificationlabels ...string) *_zeroShotClassificationInferenceOptions { for _, v := range classificationlabels { @@ -46,7 +43,6 @@ func (s *_zeroShotClassificationInferenceOptions) ClassificationLabels(classific return s } -// Hypothesis template used when tokenizing labels for prediction func (s *_zeroShotClassificationInferenceOptions) HypothesisTemplate(hypothesistemplate string) *_zeroShotClassificationInferenceOptions { s.v.HypothesisTemplate = &hypothesistemplate @@ -54,7 +50,6 @@ func (s *_zeroShotClassificationInferenceOptions) HypothesisTemplate(hypothesist return s } -// The labels to predict. func (s *_zeroShotClassificationInferenceOptions) Labels(labels ...string) *_zeroShotClassificationInferenceOptions { for _, v := range labels { @@ -65,7 +60,6 @@ func (s *_zeroShotClassificationInferenceOptions) Labels(labels ...string) *_zer return s } -// Indicates if more than one true label exists. func (s *_zeroShotClassificationInferenceOptions) MultiLabel(multilabel bool) *_zeroShotClassificationInferenceOptions { s.v.MultiLabel = &multilabel @@ -73,8 +67,6 @@ func (s *_zeroShotClassificationInferenceOptions) MultiLabel(multilabel bool) *_ return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_zeroShotClassificationInferenceOptions) ResultsField(resultsfield string) *_zeroShotClassificationInferenceOptions { s.v.ResultsField = &resultsfield @@ -82,7 +74,6 @@ func (s *_zeroShotClassificationInferenceOptions) ResultsField(resultsfield stri return s } -// The tokenization options to update when inferring func (s *_zeroShotClassificationInferenceOptions) Tokenization(tokenization types.TokenizationConfigContainerVariant) *_zeroShotClassificationInferenceOptions { s.v.Tokenization = tokenization.TokenizationConfigContainerCaster() diff --git a/typedapi/esdsl/zeroshotclassificationinferenceupdateoptions.go b/typedapi/esdsl/zeroshotclassificationinferenceupdateoptions.go index 3845102cb7..6a1c6fdba2 100644 --- a/typedapi/esdsl/zeroshotclassificationinferenceupdateoptions.go +++ b/typedapi/esdsl/zeroshotclassificationinferenceupdateoptions.go @@ -16,11 +16,11 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package esdsl -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" type _zeroShotClassificationInferenceUpdateOptions struct { v *types.ZeroShotClassificationInferenceUpdateOptions @@ -33,7 +33,6 @@ func NewZeroShotClassificationInferenceUpdateOptions() *_zeroShotClassificationI } -// The labels to predict. func (s *_zeroShotClassificationInferenceUpdateOptions) Labels(labels ...string) *_zeroShotClassificationInferenceUpdateOptions { for _, v := range labels { @@ -44,8 +43,6 @@ func (s *_zeroShotClassificationInferenceUpdateOptions) Labels(labels ...string) return s } -// Update the configured multi label option. Indicates if more than one true -// label exists. Defaults to the configured value. func (s *_zeroShotClassificationInferenceUpdateOptions) MultiLabel(multilabel bool) *_zeroShotClassificationInferenceUpdateOptions { s.v.MultiLabel = &multilabel @@ -53,8 +50,6 @@ func (s *_zeroShotClassificationInferenceUpdateOptions) MultiLabel(multilabel bo return s } -// The field that is added to incoming documents to contain the inference -// prediction. Defaults to predicted_value. func (s *_zeroShotClassificationInferenceUpdateOptions) ResultsField(resultsfield string) *_zeroShotClassificationInferenceUpdateOptions { s.v.ResultsField = &resultsfield @@ -62,7 +57,6 @@ func (s *_zeroShotClassificationInferenceUpdateOptions) ResultsField(resultsfiel return s } -// The tokenization options to update when inferring func (s *_zeroShotClassificationInferenceUpdateOptions) Tokenization(tokenization types.NlpTokenizationUpdateOptionsVariant) *_zeroShotClassificationInferenceUpdateOptions { s.v.Tokenization = tokenization.NlpTokenizationUpdateOptionsCaster() diff --git a/typedapi/esql/asyncquery/async_query.go b/typedapi/esql/asyncquery/async_query.go index 4f87b70fc2..b5e6c1fda4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run an async ES|QL query. // Asynchronously run an ES|QL (Elasticsearch query language) query, monitor its @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/esqlformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/esqlformat" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -183,12 +183,12 @@ func (r *AsyncQuery) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -301,6 +301,15 @@ func (r *AsyncQuery) Header(key, value string) *AsyncQuery { return r } +// AllowPartialResults If `true`, partial results will be returned if there are shard failures, but +// the query can continue to execute on other clusters and shards. +// API name: allow_partial_results +func (r *AsyncQuery) AllowPartialResults(allowpartialresults bool) *AsyncQuery { + r.values.Set("allow_partial_results", strconv.FormatBool(allowpartialresults)) + + return r +} + // Delimiter The character to use between values within a CSV row. // It is valid only for the CSV format. // API name: delimiter @@ -354,18 +363,6 @@ func (r *AsyncQuery) KeepOnCompletion(keeponcompletion bool) *AsyncQuery { return r } -// WaitForCompletionTimeout The period to wait for the request to finish. -// By default, the request waits for 1 second for the query results. -// If the query completes during this period, results are returned -// Otherwise, a query ID is returned that can later be used to retrieve the -// results. -// API name: wait_for_completion_timeout -func (r *AsyncQuery) WaitForCompletionTimeout(duration string) *AsyncQuery { - r.values.Set("wait_for_completion_timeout", duration) - - return r -} - // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace @@ -529,3 +526,20 @@ func (r *AsyncQuery) Tables(tables map[string]map[string]types.TableValuesContai r.req.Tables = tables return r } + +// The period to wait for the request to finish. +// By default, the request waits for 1 second for the query results. +// If the query completes during this period, results are returned +// Otherwise, a query ID is returned that can later be used to retrieve the +// results. +// API name: wait_for_completion_timeout +func (r *AsyncQuery) WaitForCompletionTimeout(duration types.DurationVariant) *AsyncQuery { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.WaitForCompletionTimeout = *duration.DurationCaster() + + return r +} diff --git a/typedapi/esql/asyncquery/request.go b/typedapi/esql/asyncquery/request.go index 43fd6385e3..2d25949a87 100644 --- a/typedapi/esql/asyncquery/request.go +++ b/typedapi/esql/asyncquery/request.go @@ -16,20 +16,24 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package asyncquery import ( + "bytes" "encoding/json" + "errors" "fmt" + "io" + "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package asyncquery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/async_query/AsyncQueryRequest.ts#L28-L125 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/esql/async_query/AsyncQueryRequest.ts#L28-L138 type Request struct { // Columnar By default, ES|QL returns results as rows. For example, FROM returns each @@ -64,6 +68,12 @@ type Request struct { // Tables Tables to use with the LOOKUP operation. The top level key is the table // name and the next level key is the column name. Tables map[string]map[string]types.TableValuesContainer `json:"tables,omitempty"` + // WaitForCompletionTimeout The period to wait for the request to finish. + // By default, the request waits for 1 second for the query results. + // If the query completes during this period, results are returned + // Otherwise, a query ID is returned that can later be used to retrieve the + // results. + WaitForCompletionTimeout types.Duration `json:"wait_for_completion_timeout,omitempty"` } // NewRequest returns a Request @@ -86,3 +96,111 @@ func (r *Request) FromJSON(data string) (*Request, error) { return &req, nil } + +func (s *Request) UnmarshalJSON(data []byte) error { + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "columnar": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "Columnar", err) + } + s.Columnar = &value + case bool: + s.Columnar = &v + } + + case "filter": + if err := dec.Decode(&s.Filter); err != nil { + return fmt.Errorf("%s | %w", "Filter", err) + } + + case "include_ccs_metadata": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "IncludeCcsMetadata", err) + } + s.IncludeCcsMetadata = &value + case bool: + s.IncludeCcsMetadata = &v + } + + case "locale": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Locale", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Locale = &o + + case "params": + if err := dec.Decode(&s.Params); err != nil { + return fmt.Errorf("%s | %w", "Params", err) + } + + case "profile": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "Profile", err) + } + s.Profile = &value + case bool: + s.Profile = &v + } + + case "query": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Query = o + + case "tables": + if s.Tables == nil { + s.Tables = make(map[string]map[string]types.TableValuesContainer, 0) + } + if err := dec.Decode(&s.Tables); err != nil { + return fmt.Errorf("%s | %w", "Tables", err) + } + + case "wait_for_completion_timeout": + if err := dec.Decode(&s.WaitForCompletionTimeout); err != nil { + return fmt.Errorf("%s | %w", "WaitForCompletionTimeout", err) + } + + } + } + return nil +} diff --git a/typedapi/esql/asyncquery/response.go b/typedapi/esql/asyncquery/response.go index 8dbf0993f9..f66d984421 100644 --- a/typedapi/esql/asyncquery/response.go +++ b/typedapi/esql/asyncquery/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/509f88ad09a267354d02bf5f9e960503fa9236b7 package asyncquery -// Response holds the response body struct for the package asyncquery +// Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/async_query/AsyncQueryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/509f88ad09a267354d02bf5f9e960503fa9236b7/specification/esql/query/QueryResponse.ts#L22-L25 type Response = []byte diff --git a/typedapi/esql/asyncquerydelete/async_query_delete.go b/typedapi/esql/asyncquerydelete/async_query_delete.go index 86ed253ce2..e937262d5e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete an async ES|QL query. // If the query is still running, it is cancelled. @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -154,7 +154,7 @@ func (r *AsyncQueryDelete) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/esql/asyncquerydelete/response.go b/typedapi/esql/asyncquerydelete/response.go index 4f223c3982..b98356a129 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package asyncquerydelete // Response holds the response body struct for the package asyncquerydelete // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/async_query_delete/AsyncQueryDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ea1b8e14f3..5b93498c2f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get async ES|QL query results. // Get the current status and available results or stored results for an ES|QL @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -146,7 +146,7 @@ func (r *AsyncQueryGet) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/esql/asyncqueryget/response.go b/typedapi/esql/asyncqueryget/response.go index 784764aff1..d4fe0c31e5 100644 --- a/typedapi/esql/asyncqueryget/response.go +++ b/typedapi/esql/asyncqueryget/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/509f88ad09a267354d02bf5f9e960503fa9236b7 package asyncqueryget -// Response holds the response body struct for the package asyncqueryget +// Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/async_query_get/AsyncQueryGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/509f88ad09a267354d02bf5f9e960503fa9236b7/specification/esql/query/QueryResponse.ts#L22-L25 type Response = []byte diff --git a/typedapi/esql/asyncquerystop/async_query_stop.go b/typedapi/esql/asyncquerystop/async_query_stop.go index ca897666bc..cfdab026b1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Stop async ES|QL query. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -148,7 +148,7 @@ func (r *AsyncQueryStop) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/esql/asyncquerystop/response.go b/typedapi/esql/asyncquerystop/response.go index 4668ced03a..d632617938 100644 --- a/typedapi/esql/asyncquerystop/response.go +++ b/typedapi/esql/asyncquerystop/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/509f88ad09a267354d02bf5f9e960503fa9236b7 package asyncquerystop -// Response holds the response body struct for the package asyncquerystop +// Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/async_query_stop/AsyncQueryStopResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/509f88ad09a267354d02bf5f9e960503fa9236b7/specification/esql/query/QueryResponse.ts#L22-L25 type Response = []byte diff --git a/typedapi/esql/query/helpers.go b/typedapi/esql/query/helpers.go index 47db6ae65d..0d3da7a686 100644 --- a/typedapi/esql/query/helpers.go +++ b/typedapi/esql/query/helpers.go @@ -25,7 +25,7 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/esqlformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/esqlformat" ) type metadata struct { diff --git a/typedapi/esql/query/query.go b/typedapi/esql/query/query.go index 94fd59f34c..083b31ae2f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run an ES|QL query. // Get search results for an ES|QL (Elasticsearch query language) query. @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/esqlformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/esqlformat" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -173,12 +173,12 @@ func (r *Query) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -319,6 +319,15 @@ func (r *Query) DropNullColumns(dropnullcolumns bool) *Query { return r } +// AllowPartialResults If `true`, partial results will be returned if there are shard failures, but +// the query can continue to execute on other clusters and shards. +// API name: allow_partial_results +func (r *Query) AllowPartialResults(allowpartialresults bool) *Query { + r.values.Set("allow_partial_results", strconv.FormatBool(allowpartialresults)) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/esql/query/request.go b/typedapi/esql/query/request.go index 9e7490eaf7..af1ea08c29 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package query @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/query/QueryRequest.ts#L27-L105 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/esql/query/QueryRequest.ts#L27-L110 type Request struct { // Columnar By default, ES|QL returns results as rows. For example, FROM returns each diff --git a/typedapi/esql/query/response.go b/typedapi/esql/query/response.go index f7323ab690..e8ac65dc67 100644 --- a/typedapi/esql/query/response.go +++ b/typedapi/esql/query/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/509f88ad09a267354d02bf5f9e960503fa9236b7 package query // Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/query/QueryResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/509f88ad09a267354d02bf5f9e960503fa9236b7/specification/esql/query/QueryResponse.ts#L22-L25 type Response = []byte diff --git a/typedapi/features/getfeatures/get_features.go b/typedapi/features/getfeatures/get_features.go index 6c343c3b8b..6cf24f79a8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the features. // Get a list of features that can be included in snapshots using the @@ -50,7 +50,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -156,7 +156,7 @@ func (r *GetFeatures) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/features/getfeatures/response.go b/typedapi/features/getfeatures/response.go index 78eb457005..c98318f3cc 100644 --- a/typedapi/features/getfeatures/response.go +++ b/typedapi/features/getfeatures/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getfeatures import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getfeatures // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/features/get_features/GetFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dc4d96b69d..8d588c0ac3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Reset the features. // Clear all of the state information stored in system indices by Elasticsearch @@ -57,7 +57,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -172,7 +172,7 @@ func (r *ResetFeatures) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/features/resetfeatures/response.go b/typedapi/features/resetfeatures/response.go index 219b759ffb..6475076171 100644 --- a/typedapi/features/resetfeatures/response.go +++ b/typedapi/features/resetfeatures/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package resetfeatures import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package resetfeatures // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/features/reset_features/ResetFeaturesResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f8418a266e..c48203c28b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get global checkpoints. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -145,12 +145,12 @@ func (r *GlobalCheckpoints) HttpRequest(ctx context.Context) (*http.Request, err if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/fleet/globalcheckpoints/response.go b/typedapi/fleet/globalcheckpoints/response.go index 411e3cc8d1..46d66ae041 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package globalcheckpoints // Response holds the response body struct for the package globalcheckpoints // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/fleet/global_checkpoints/GlobalCheckpointsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bb2c5675f3..b7bb9c65a6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run multiple Fleet searches. // Run several Fleet searches with a single API request. @@ -38,9 +38,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" ) const ( @@ -206,12 +206,12 @@ func (r *Msearch) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -389,8 +389,8 @@ func (r *Msearch) IgnoreUnavailable(ignoreunavailable bool) *Msearch { // MaxConcurrentSearches Maximum number of concurrent searches the multi search API can execute. // API name: max_concurrent_searches -func (r *Msearch) MaxConcurrentSearches(maxconcurrentsearches string) *Msearch { - r.values.Set("max_concurrent_searches", maxconcurrentsearches) +func (r *Msearch) MaxConcurrentSearches(maxconcurrentsearches int) *Msearch { + r.values.Set("max_concurrent_searches", strconv.Itoa(maxconcurrentsearches)) return r } @@ -398,8 +398,8 @@ func (r *Msearch) MaxConcurrentSearches(maxconcurrentsearches string) *Msearch { // MaxConcurrentShardRequests Maximum number of concurrent shard requests that each sub-search request // executes per node. // API name: max_concurrent_shard_requests -func (r *Msearch) MaxConcurrentShardRequests(maxconcurrentshardrequests string) *Msearch { - r.values.Set("max_concurrent_shard_requests", maxconcurrentshardrequests) +func (r *Msearch) MaxConcurrentShardRequests(maxconcurrentshardrequests int) *Msearch { + r.values.Set("max_concurrent_shard_requests", strconv.Itoa(maxconcurrentshardrequests)) return r } diff --git a/typedapi/fleet/msearch/request.go b/typedapi/fleet/msearch/request.go index 0998c61b21..ca49e68b14 100644 --- a/typedapi/fleet/msearch/request.go +++ b/typedapi/fleet/msearch/request.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package msearch import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/fleet/msearch/MultiSearchRequest.ts#L31-L126 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 014339da36..adcf732392 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package msearch @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package msearch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/fleet/msearch/MultiSearchResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8ce7a7d2aa..b7bf4d6298 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Creates a secret stored by Fleet. package postsecret @@ -119,7 +119,7 @@ func (r *PostSecret) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/fleet/search/request.go b/typedapi/fleet/search/request.go index 571d4ee608..3c3f007161 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package search @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/fleet/search/SearchRequest.ts#L54-L266 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/fleet/search/SearchRequest.ts#L54-L266 type Request struct { Aggregations map[string]types.Aggregations `json:"aggregations,omitempty"` Collapse *types.FieldCollapse `json:"collapse,omitempty"` @@ -57,7 +57,7 @@ type Request struct { // IndicesBoost Boosts the _score of documents from specified indices. IndicesBoost []map[string]types.Float64 `json:"indices_boost,omitempty"` // MinScore Minimum _score for matching documents. Documents with a lower _score are - // not included in the search results. + // not included in search results and results collected by aggregations. MinScore *types.Float64 `json:"min_score,omitempty"` // Pit Limits the search to a point in time (PIT). If you provide a PIT, you // cannot specify an in the request path. diff --git a/typedapi/fleet/search/response.go b/typedapi/fleet/search/response.go index 7c2adee915..3e3c0f935e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package search @@ -29,12 +29,12 @@ import ( "strconv" "strings" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/fleet/search/SearchResponse.ts#L33-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c3b2c2837b..faf666408a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run a Fleet search. // The purpose of the Fleet search API is to provide an API where the search @@ -38,11 +38,11 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/suggestmode" ) const ( @@ -198,12 +198,12 @@ func (r *Search) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -410,8 +410,8 @@ func (r *Search) Lenient(lenient bool) *Search { } // API name: max_concurrent_shard_requests -func (r *Search) MaxConcurrentShardRequests(maxconcurrentshardrequests string) *Search { - r.values.Set("max_concurrent_shard_requests", maxconcurrentshardrequests) +func (r *Search) MaxConcurrentShardRequests(maxconcurrentshardrequests int) *Search { + r.values.Set("max_concurrent_shard_requests", strconv.Itoa(maxconcurrentshardrequests)) return r } @@ -756,7 +756,7 @@ func (r *Search) IndicesBoost(indicesboost []map[string]types.Float64) *Search { } // Minimum _score for matching documents. Documents with a lower _score are -// not included in the search results. +// not included in search results and results collected by aggregations. // API name: min_score func (r *Search) MinScore(minscore types.Float64) *Search { // Initialize the request if it is not already initialized diff --git a/typedapi/graph/explore/explore.go b/typedapi/graph/explore/explore.go index 2fbb29fcbe..3687cc433d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Explore graph analytics. // Extract and summarize information about the documents and terms in an @@ -44,7 +44,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -206,12 +206,12 @@ func (r *Explore) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/graph/explore/request.go b/typedapi/graph/explore/request.go index d131bafd1c..5e47e0d935 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package explore @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package explore // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/graph/explore/GraphExploreRequest.ts#L28-L84 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 452843fe57..13664ad95d 100644 --- a/typedapi/graph/explore/response.go +++ b/typedapi/graph/explore/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package explore import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package explore // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/graph/explore/GraphExploreResponse.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c6bbda7d64..11fa3b3e2a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a lifecycle policy. // You cannot delete policies that are currently in use. If the policy is being @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -142,7 +142,7 @@ func (r *DeleteLifecycle) HttpRequest(ctx context.Context) (*http.Request, error req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ilm/deletelifecycle/response.go b/typedapi/ilm/deletelifecycle/response.go index b94df7a6cc..4452f3c44e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletelifecycle // Response holds the response body struct for the package deletelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/delete_lifecycle/DeleteLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0a09d60a6a..ed8998e2a9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Explain the lifecycle state. // Get the current lifecycle status for one or more indices. @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -150,7 +150,7 @@ func (r *ExplainLifecycle) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ilm/explainlifecycle/response.go b/typedapi/ilm/explainlifecycle/response.go index f0a9579b1a..d1be2a6631 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package explainlifecycle @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package explainlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/explain_lifecycle/ExplainLifecycleResponse.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 045aad9fed..dd39a7fc5d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get lifecycle policies. package getlifecycle @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -143,7 +143,7 @@ func (r *GetLifecycle) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ilm/getlifecycle/response.go b/typedapi/ilm/getlifecycle/response.go index c50e950a07..2f0acb8a6d 100644 --- a/typedapi/ilm/getlifecycle/response.go +++ b/typedapi/ilm/getlifecycle/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getlifecycle import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/get_lifecycle/GetLifecycleResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4565339ad4..574076e6df 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the ILM status. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -128,7 +128,7 @@ func (r *GetStatus) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ilm/getstatus/response.go b/typedapi/ilm/getstatus/response.go index f1774a291c..dc28753fc7 100644 --- a/typedapi/ilm/getstatus/response.go +++ b/typedapi/ilm/getstatus/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getstatus import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/lifecycleoperationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/lifecycleoperationmode" ) // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/get_status/GetIlmStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6a72978b3a..288fb190a7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Migrate to data tiers routing. // Switch the indices, ILM policies, and legacy, composable, and component @@ -53,7 +53,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -210,12 +210,12 @@ func (r *MigrateToDataTiers) HttpRequest(ctx context.Context) (*http.Request, er if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ilm/migratetodatatiers/request.go b/typedapi/ilm/migratetodatatiers/request.go index 59ed82e69e..595be350d0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package migratetodatatiers @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package migratetodatatiers // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/migrate_to_data_tiers/Request.ts#L23-L69 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5222a3ad1d..71d5996e67 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package migratetodatatiers @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package migratetodatatiers // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/migrate_to_data_tiers/Response.ts#L22-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2a5cc47b28..a2f1ca0ba9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Move to a lifecycle step. // Manually move an index into a specific step in the lifecycle policy and run @@ -57,7 +57,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -232,12 +232,12 @@ func (r *MoveToStep) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ilm/movetostep/request.go b/typedapi/ilm/movetostep/request.go index 0131c532f2..511b6eec96 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package movetostep @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package movetostep // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/move_to_step/MoveToStepRequest.ts#L24-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4bc76cace8..24c3baa10e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package movetostep // Response holds the response body struct for the package movetostep // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/move_to_step/MoveToStepResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b2ba2a88a7..d348a97741 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a lifecycle policy. // If the specified policy exists, it is replaced and the policy version is @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -196,12 +196,12 @@ func (r *PutLifecycle) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ilm/putlifecycle/request.go b/typedapi/ilm/putlifecycle/request.go index e02f2b4eb1..dfe9932ebf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putlifecycle @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/put_lifecycle/PutLifecycleRequest.ts#L25-L66 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 15fbd17f79..2017ff8b5b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putlifecycle // Response holds the response body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/put_lifecycle/PutLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a87c7f9a31..29139244b0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Remove policies from an index. // Remove the assigned lifecycle policies from an index or a data stream's @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *RemovePolicy) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ilm/removepolicy/response.go b/typedapi/ilm/removepolicy/response.go index 1fe9884ae7..c871279b37 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package removepolicy // Response holds the response body struct for the package removepolicy // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/remove_policy/RemovePolicyResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 698f9d15ed..01cdfcf1f4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package retry // Response holds the response body struct for the package retry // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/retry/RetryIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7e49cbac99..1c1dd02b57 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Retry a policy. // Retry running the lifecycle policy for an index that is in the ERROR step. @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -148,7 +148,7 @@ func (r *Retry) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ilm/start/response.go b/typedapi/ilm/start/response.go index 1a5529034c..eb2831dfa0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/start/StartIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5e3324240a..08bc25d0e1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Start the ILM plugin. // Start the index lifecycle management plugin if it is currently stopped. @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -132,7 +132,7 @@ func (r *Start) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ilm/stop/response.go b/typedapi/ilm/stop/response.go index 1b9fcd7a99..612916740b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/stop/StopIlmResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4b1a41e323..d07a6d7a2d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Stop the ILM plugin. // Halt all lifecycle management operations and stop the index lifecycle @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -142,7 +142,7 @@ func (r *Stop) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/addblock/add_block.go b/typedapi/indices/addblock/add_block.go index b2bc621f26..91f24999c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Add an index block. // @@ -37,8 +37,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -156,7 +156,7 @@ func (r *AddBlock) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/addblock/response.go b/typedapi/indices/addblock/response.go index 4ccb783851..1f41b3ad08 100644 --- a/typedapi/indices/addblock/response.go +++ b/typedapi/indices/addblock/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package addblock import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package addblock // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/add_block/IndicesAddBlockResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4a8f4e5e80..8307fa11ca 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get tokens from text analysis. // The analyze API performs analysis on a text string and returns the resulting @@ -43,7 +43,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -205,12 +205,12 @@ func (r *Analyze) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/analyze/request.go b/typedapi/indices/analyze/request.go index cdf7280708..c5f0ef3cfa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package analyze @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package analyze // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/analyze/IndicesAnalyzeRequest.ts#L27-L119 type Request struct { // Analyzer The name of the analyzer that should be applied to the provided `text`. diff --git a/typedapi/indices/analyze/response.go b/typedapi/indices/analyze/response.go index 874a599dd8..670b3586d2 100644 --- a/typedapi/indices/analyze/response.go +++ b/typedapi/indices/analyze/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package analyze import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package analyze // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/analyze/IndicesAnalyzeResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 40993c3679..038daf233c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Cancel a migration reindex operation. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -145,12 +145,12 @@ func (r *CancelMigrateReindex) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/cancelmigratereindex/response.go b/typedapi/indices/cancelmigratereindex/response.go index ae937bf6f8..1214b06df7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package cancelmigratereindex // Response holds the response body struct for the package cancelmigratereindex // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/cancel_migrate_reindex/MigrateCancelReindexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 862eaf110a..b9522fd643 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear the cache. // Clear the cache of one or more indices. @@ -40,8 +40,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -158,7 +158,7 @@ func (r *ClearCache) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/clearcache/response.go b/typedapi/indices/clearcache/response.go index ff6decbdf7..76ff584942 100644 --- a/typedapi/indices/clearcache/response.go +++ b/typedapi/indices/clearcache/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearcache import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package clearcache // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/clear_cache/IndicesClearCacheResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 801a55397a..15e81957a7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clone an index. // Clone an existing index into a new index. @@ -104,7 +104,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -335,12 +335,12 @@ func (r *Clone) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/clone/request.go b/typedapi/indices/clone/request.go index a0bdf42a96..7971cb3f54 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clone @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/clone/IndicesCloneRequest.ts#L27-L127 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 325538a65a..8bb341a662 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clone // Response holds the response body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/clone/IndicesCloneResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9ee956c5b9..25613d2de9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Close an index. // A closed index is blocked for read or write operations and does not allow all @@ -61,8 +61,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -193,7 +193,7 @@ func (r *Close) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/close/response.go b/typedapi/indices/close/response.go index f1a75207e3..57b28da61d 100644 --- a/typedapi/indices/close/response.go +++ b/typedapi/indices/close/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package close import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package close // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/close/CloseIndexResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 26159d778d..d4c49555c6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create an index. // You can use the create index API to add a new index to an Elasticsearch @@ -68,7 +68,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -250,12 +250,12 @@ func (r *Create) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/create/request.go b/typedapi/indices/create/request.go index bd3b6d614c..2dfa387b54 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package create @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/create/IndicesCreateRequest.ts#L28-L108 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/create/IndicesCreateRequest.ts#L28-L108 type Request struct { // Aliases Aliases for the index. diff --git a/typedapi/indices/create/response.go b/typedapi/indices/create/response.go index 88da66736b..d0673465bc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package create // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/create/IndicesCreateResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9ca4617b6f..421fe887f0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a data stream. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *CreateDataStream) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/createdatastream/response.go b/typedapi/indices/createdatastream/response.go index 9e4ef5da6e..de8b3e38b2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package createdatastream // Response holds the response body struct for the package createdatastream // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/create_data_stream/IndicesCreateDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c7a1f31627..e2459cc37c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create an index from a source index. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -201,12 +201,12 @@ func (r *CreateFrom) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/createfrom/request.go b/typedapi/indices/createfrom/request.go index 8039538385..3e5620faf4 100644 --- a/typedapi/indices/createfrom/request.go +++ b/typedapi/indices/createfrom/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package createfrom import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package createfrom // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/create_from/MigrateCreateFromRequest.ts#L25-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4c3321ad77..442bc2636a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package createfrom // Response holds the response body struct for the package createfrom // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/create_from/MigrateCreateFromResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 04b9168181..8e30f972f2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get data stream stats. // @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -148,7 +148,7 @@ func (r *DataStreamsStats) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/datastreamsstats/response.go b/typedapi/indices/datastreamsstats/response.go index f88f7aea13..cc6b6fc85a 100644 --- a/typedapi/indices/datastreamsstats/response.go +++ b/typedapi/indices/datastreamsstats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package datastreamsstats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package datastreamsstats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L25-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 770f87784f..c6f53df1e4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete indices. // Deleting an index deletes its documents, shards, and metadata. @@ -41,8 +41,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -151,7 +151,7 @@ func (r *Delete) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/delete/response.go b/typedapi/indices/delete/response.go index 140fb8a41d..7b14a21734 100644 --- a/typedapi/indices/delete/response.go +++ b/typedapi/indices/delete/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package delete import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/delete/IndicesDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e18815c470..eddedc43c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete an alias. // Removes a data stream or index from an alias. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -166,7 +166,7 @@ func (r *DeleteAlias) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/deletealias/response.go b/typedapi/indices/deletealias/response.go index 1ebee3c74e..5f2ba310f3 100644 --- a/typedapi/indices/deletealias/response.go +++ b/typedapi/indices/deletealias/response.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletealias // Response holds the response body struct for the package deletealias // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/delete_alias/IndicesDeleteAliasResponse.ts#L22-L25 type Response struct { // Acknowledged For a successful response, this value is always true. On failure, an diff --git a/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go b/typedapi/indices/deletedatalifecycle/delete_data_lifecycle.go index f75f84433f..c1446aba1e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete data stream lifecycles. // Removes the data stream lifecycle from a data stream, rendering it not @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -143,7 +143,7 @@ func (r *DeleteDataLifecycle) HttpRequest(ctx context.Context) (*http.Request, e req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/deletedatalifecycle/response.go b/typedapi/indices/deletedatalifecycle/response.go index 0da975cbce..7ad8885ed0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletedatalifecycle // Response holds the response body struct for the package deletedatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 84ad96e2ca..8822bd4de5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete data streams. // Deletes one or more data streams and their backing indices. @@ -34,8 +34,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -139,7 +139,7 @@ func (r *DeleteDataStream) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/deletedatastream/response.go b/typedapi/indices/deletedatastream/response.go index 4012dedab7..4e5aca82e0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletedatastream // Response holds the response body struct for the package deletedatastream // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/delete_data_stream/IndicesDeleteDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 aa9007da47..b422b5e5be 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete an index template. // The provided may contain multiple template names separated @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -146,7 +146,7 @@ func (r *DeleteIndexTemplate) HttpRequest(ctx context.Context) (*http.Request, e req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/deleteindextemplate/response.go b/typedapi/indices/deleteindextemplate/response.go index aa214e11ab..df64b7a782 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteindextemplate // Response holds the response body struct for the package deleteindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/delete_index_template/IndicesDeleteIndexTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f5f8c8edd7..fac4826c46 100644 --- a/typedapi/indices/deletetemplate/delete_template.go +++ b/typedapi/indices/deletetemplate/delete_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a legacy index template. package deletetemplate @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -136,7 +136,7 @@ func (r *DeleteTemplate) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/deletetemplate/response.go b/typedapi/indices/deletetemplate/response.go index d9c78a3873..f09c04ab02 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletetemplate // Response holds the response body struct for the package deletetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/delete_template/IndicesDeleteTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d63169160e..552ca61a9c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Analyze the index disk usage. // Analyze the disk usage of each field of an index or data stream. @@ -47,8 +47,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -165,7 +165,7 @@ func (r *DiskUsage) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/diskusage/response.go b/typedapi/indices/diskusage/response.go index 75f6ab2719..2caac994f7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package diskusage @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package diskusage // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/disk_usage/IndicesDiskUsageResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4d9ce25939..579a16712c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Downsample an index. // Aggregate a time series (TSDS) index and store pre-computed statistical @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -217,12 +217,12 @@ func (r *Downsample) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/downsample/request.go b/typedapi/indices/downsample/request.go index 868c8e2725..7eaf867992 100644 --- a/typedapi/indices/downsample/request.go +++ b/typedapi/indices/downsample/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package downsample import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package downsample // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/downsample/Request.ts#L24-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6e16732d03..b049ae8f0f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package downsample @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package downsample // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/downsample/Response.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 02bd0126af..35b146baff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Check indices. // Check if one or more indices, index aliases, or data streams exist. @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -135,7 +135,7 @@ func (r *Exists) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/existsalias/exists_alias.go b/typedapi/indices/existsalias/exists_alias.go index 24579a4342..29a25e6be3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Check aliases. // @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -159,7 +159,7 @@ func (r *ExistsAlias) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/existsindextemplate/exists_index_template.go b/typedapi/indices/existsindextemplate/exists_index_template.go index ee47fb6cc9..0bc467de58 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Check index templates. // @@ -138,7 +138,7 @@ func (r *ExistsIndexTemplate) HttpRequest(ctx context.Context) (*http.Request, e req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -251,6 +251,23 @@ func (r *ExistsIndexTemplate) _name(name string) *ExistsIndexTemplate { return r } +// Local If true, the request retrieves information from the local node only. Defaults +// to false, which means information is retrieved from the master node. +// API name: local +func (r *ExistsIndexTemplate) Local(local bool) *ExistsIndexTemplate { + r.values.Set("local", strconv.FormatBool(local)) + + return r +} + +// FlatSettings If true, returns settings in flat format. +// API name: flat_settings +func (r *ExistsIndexTemplate) FlatSettings(flatsettings bool) *ExistsIndexTemplate { + r.values.Set("flat_settings", strconv.FormatBool(flatsettings)) + + return r +} + // MasterTimeout Period to wait for a connection to the master node. If no response is // received before the timeout expires, the request fails and returns an error. // API name: master_timeout diff --git a/typedapi/indices/existstemplate/exists_template.go b/typedapi/indices/existstemplate/exists_template.go index 02e8d6bbe0..7da1522b81 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Check existence of index templates. // Get information about whether index templates exist. @@ -148,7 +148,7 @@ func (r *ExistsTemplate) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/explaindatalifecycle/explain_data_lifecycle.go b/typedapi/indices/explaindatalifecycle/explain_data_lifecycle.go index 88131af32f..0d4adf5091 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the status for a data stream lifecycle. // Get information about an index or data stream's current data stream lifecycle @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -146,7 +146,7 @@ func (r *ExplainDataLifecycle) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/explaindatalifecycle/response.go b/typedapi/indices/explaindatalifecycle/response.go index be3ed27262..874970c2a8 100644 --- a/typedapi/indices/explaindatalifecycle/response.go +++ b/typedapi/indices/explaindatalifecycle/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package explaindatalifecycle import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package explaindatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 19ec42959a..2d14e87760 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get field usage stats. // Get field usage information for each shard and field of an index. @@ -43,8 +43,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -157,7 +157,7 @@ func (r *FieldUsageStats) HttpRequest(ctx context.Context) (*http.Request, error req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -363,17 +363,6 @@ func (r *FieldUsageStats) Fields(fields ...string) *FieldUsageStats { return r } -// WaitForActiveShards The number of shard copies that must be active before proceeding with the -// operation. -// Set to all or any positive integer up to the total number of shards in the -// index (`number_of_replicas+1`). -// API name: wait_for_active_shards -func (r *FieldUsageStats) WaitForActiveShards(waitforactiveshards string) *FieldUsageStats { - r.values.Set("wait_for_active_shards", waitforactiveshards) - - return r -} - // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/indices/fieldusagestats/response.go b/typedapi/indices/fieldusagestats/response.go index 98a5ebe59c..2c28166eb8 100644 --- a/typedapi/indices/fieldusagestats/response.go +++ b/typedapi/indices/fieldusagestats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package fieldusagestats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package fieldusagestats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L28-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d357f44372..c7341b7ec3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Flush data streams or indices. // Flushing a data stream or index is the process of making sure that any data @@ -56,8 +56,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -186,7 +186,7 @@ func (r *Flush) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/flush/response.go b/typedapi/indices/flush/response.go index 31a683859e..bd6a33f0d9 100644 --- a/typedapi/indices/flush/response.go +++ b/typedapi/indices/flush/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package flush import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package flush // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/flush/IndicesFlushResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d09760a096..5f4ef70b5c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Force a merge. // Perform the force merge operation on the shards of one or more indices. @@ -113,8 +113,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -300,7 +300,7 @@ func (r *Forcemerge) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/forcemerge/response.go b/typedapi/indices/forcemerge/response.go index 967e8608f5..9fa43c260d 100644 --- a/typedapi/indices/forcemerge/response.go +++ b/typedapi/indices/forcemerge/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package forcemerge import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package forcemerge // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/forcemerge/IndicesForceMergeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2e3ee1f133..eace69afed 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get index information. // Get information about one or more indices. For data streams, the API returns @@ -36,9 +36,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/feature" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/feature" ) const ( @@ -142,7 +142,7 @@ func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/get/response.go b/typedapi/indices/get/response.go index 4d65405d1d..41cef41ef0 100644 --- a/typedapi/indices/get/response.go +++ b/typedapi/indices/get/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package get import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get/IndicesGetResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1ad0d774b7..d10135d5d2 100644 --- a/typedapi/indices/getalias/get_alias.go +++ b/typedapi/indices/getalias/get_alias.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get aliases. // Retrieves information for one or more data stream or index aliases. @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -174,7 +174,7 @@ func (r *GetAlias) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/getalias/response.go b/typedapi/indices/getalias/response.go index abc4a350b2..7401b1a7ae 100644 --- a/typedapi/indices/getalias/response.go +++ b/typedapi/indices/getalias/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getalias import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getalias // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_alias/IndicesGetAliasResponse.ts#L26-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/get_alias/IndicesGetAliasResponse.ts#L26-L35 type Response map[string]types.IndexAliases diff --git a/typedapi/indices/getdatalifecycle/get_data_lifecycle.go b/typedapi/indices/getdatalifecycle/get_data_lifecycle.go index 7da6d96be7..d09f757246 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get data stream lifecycles. // @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -143,7 +143,7 @@ func (r *GetDataLifecycle) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/getdatalifecycle/response.go b/typedapi/indices/getdatalifecycle/response.go index ebef0e2a33..7b167c6862 100644 --- a/typedapi/indices/getdatalifecycle/response.go +++ b/typedapi/indices/getdatalifecycle/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getdatalifecycle import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6c9eee5e62..ee03271401 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get data stream lifecycle stats. // Get statistics about the data streams that are managed by a data stream @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -128,7 +128,7 @@ func (r *GetDataLifecycleStats) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/getdatalifecyclestats/response.go b/typedapi/indices/getdatalifecyclestats/response.go index 02926ba1fa..8c231d8758 100644 --- a/typedapi/indices/getdatalifecyclestats/response.go +++ b/typedapi/indices/getdatalifecyclestats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getdatalifecyclestats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getdatalifecyclestats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L24-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0e4041901d..7e44b151ca 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get data streams. // @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -144,7 +144,7 @@ func (r *GetDataStream) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/getdatastream/response.go b/typedapi/indices/getdatastream/response.go index c39c92daf5..a1d70beb8c 100644 --- a/typedapi/indices/getdatastream/response.go +++ b/typedapi/indices/getdatastream/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getdatastream import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getdatastream // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_data_stream/IndicesGetDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 09b3132df5..561d4ee9df 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get mapping definitions. // Retrieves mapping definitions for one or more fields. @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -173,7 +173,7 @@ func (r *GetFieldMapping) HttpRequest(ctx context.Context) (*http.Request, error req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/getfieldmapping/response.go b/typedapi/indices/getfieldmapping/response.go index 4758e0cae7..95c335119e 100644 --- a/typedapi/indices/getfieldmapping/response.go +++ b/typedapi/indices/getfieldmapping/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getfieldmapping import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getfieldmapping // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_field_mapping/IndicesGetFieldMappingResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 593b82a856..24cc15c8a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get index templates. // Get information about one or more index templates. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -141,7 +141,7 @@ func (r *GetIndexTemplate) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/getindextemplate/response.go b/typedapi/indices/getindextemplate/response.go index cb3eaccbb9..286e718941 100644 --- a/typedapi/indices/getindextemplate/response.go +++ b/typedapi/indices/getindextemplate/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getindextemplate import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d86a90a66d..3a01d41819 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get mapping definitions. // For data streams, the API retrieves mappings for the stream’s backing @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -144,7 +144,7 @@ func (r *GetMapping) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/getmapping/response.go b/typedapi/indices/getmapping/response.go index 2ce008fb67..cd1c55a7da 100644 --- a/typedapi/indices/getmapping/response.go +++ b/typedapi/indices/getmapping/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getmapping import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getmapping // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a91a79d3e1..bcf39334d0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the migration reindexing status. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -145,12 +145,12 @@ func (r *GetMigrateReindexStatus) HttpRequest(ctx context.Context) (*http.Reques if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/getmigratereindexstatus/response.go b/typedapi/indices/getmigratereindexstatus/response.go index f6169709d2..bb838f6b20 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getmigratereindexstatus @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getmigratereindexstatus // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f9cdab335d..6e636e08b1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get index settings. // Get setting information for one or more indices. @@ -36,8 +36,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -177,7 +177,7 @@ func (r *GetSettings) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/getsettings/response.go b/typedapi/indices/getsettings/response.go index 5653ef26b3..fa68be016d 100644 --- a/typedapi/indices/getsettings/response.go +++ b/typedapi/indices/getsettings/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getsettings import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_settings/IndicesGetSettingsResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9aeb743538..45dbe63ede 100644 --- a/typedapi/indices/gettemplate/get_template.go +++ b/typedapi/indices/gettemplate/get_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get index templates. // Get information about one or more index templates. @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -149,7 +149,7 @@ func (r *GetTemplate) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/gettemplate/response.go b/typedapi/indices/gettemplate/response.go index 98f56cf461..17c9512fb8 100644 --- a/typedapi/indices/gettemplate/response.go +++ b/typedapi/indices/gettemplate/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package gettemplate import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package gettemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_template/IndicesGetTemplateResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 612f642fd2..1c554c7f74 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Reindex legacy backing indices. // @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/modeenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/modeenum" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -183,12 +183,12 @@ func (r *MigrateReindex) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/migratereindex/request.go b/typedapi/indices/migratereindex/request.go index 1bed2965fe..a73828528e 100644 --- a/typedapi/indices/migratereindex/request.go +++ b/typedapi/indices/migratereindex/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package migratereindex import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package migratereindex // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L23-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 00a4749cc7..6a449a847d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package migratereindex // Response holds the response body struct for the package migratereindex // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/migrate_reindex/MigrateReindexResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 24e75b492f..1832f7abc8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Convert an index alias to a data stream. // Converts an index alias to a data stream. @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -162,7 +162,7 @@ func (r *MigrateToDataStream) HttpRequest(ctx context.Context) (*http.Request, e req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/migratetodatastream/response.go b/typedapi/indices/migratetodatastream/response.go index 9a64754953..cc33935f49 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package migratetodatastream // Response holds the response body struct for the package migratetodatastream // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/migrate_to_data_stream/IndicesMigrateToDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 33eaecde64..a7f918110c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update data streams. // Performs one or more data stream modification actions in a single atomic @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -176,12 +176,12 @@ func (r *ModifyDataStream) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/modifydatastream/request.go b/typedapi/indices/modifydatastream/request.go index b8be16da3b..65b05fde15 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package modifydatastream @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package modifydatastream // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/modify_data_stream/IndicesModifyDataStreamRequest.ts#L23-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c076b01031..5b3d13bd0a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package modifydatastream // Response holds the response body struct for the package modifydatastream // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/modify_data_stream/IndicesModifyDataStreamResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 38d0932869..248e600ae5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Open a closed index. // For data streams, the API opens any closed backing indices. @@ -68,8 +68,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -207,7 +207,7 @@ func (r *Open) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/open/response.go b/typedapi/indices/open/response.go index db4fef1cbc..57aaa65832 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package open // Response holds the response body struct for the package open // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/open/IndicesOpenResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 95f7dd9e15..d3d854e65f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Promote a data stream. // Promote a data stream from a replicated data stream managed by cross-cluster @@ -51,7 +51,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -174,7 +174,7 @@ func (r *PromoteDataStream) HttpRequest(ctx context.Context) (*http.Request, err req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/promotedatastream/response.go b/typedapi/indices/promotedatastream/response.go index ebd708d979..4c6347981e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package promotedatastream @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package promotedatastream // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/promote_data_stream/IndicesPromoteDataStreamResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cd6c4868b8..522f1c3dad 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update an alias. // Adds a data stream or index to an alias. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -214,12 +214,12 @@ func (r *PutAlias) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/putalias/request.go b/typedapi/indices/putalias/request.go index a4f0f3f7cc..98557147f3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putalias @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putalias // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_alias/IndicesPutAliasRequest.ts#L25-L103 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f604582dcc..7f04075d12 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putalias // Response holds the response body struct for the package putalias // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_alias/IndicesPutAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a6745c7c05..d68796a8e8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update data stream lifecycles. // Update the data stream lifecycle of the specified data streams. @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -189,12 +189,12 @@ func (r *PutDataLifecycle) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/putdatalifecycle/request.go b/typedapi/indices/putdatalifecycle/request.go index 7bddc5ffa1..ecba4b8290 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putdatalifecycle @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleRequest.ts#L25-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ecdd21cca9..da07b67a68 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putdatalifecycle // Response holds the response body struct for the package putdatalifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_data_lifecycle/IndicesPutDataLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 16d2f6beaf..3352e3cfa9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update an index template. // Index templates define settings, mappings, and aliases that can be applied @@ -79,7 +79,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -274,12 +274,12 @@ func (r *PutIndexTemplate) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/putindextemplate/request.go b/typedapi/indices/putindextemplate/request.go index 74274b41d8..632ff2a209 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putindextemplate @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L157 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e4c7047aea..649605f144 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putindextemplate // Response holds the response body struct for the package putindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_index_template/IndicesPutIndexTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 af4e37822a..032d31d8e5 100644 --- a/typedapi/indices/putmapping/put_mapping.go +++ b/typedapi/indices/putmapping/put_mapping.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update field mappings. // Add new fields to an existing data stream or index. @@ -72,9 +72,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "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/expandwildcard" ) const ( @@ -262,12 +262,12 @@ func (r *PutMapping) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/putmapping/request.go b/typedapi/indices/putmapping/request.go index 8776fd4668..33617730ec 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putmapping @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" ) // Request holds the request body struct for the package putmapping // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L41-L181 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/put_mapping/IndicesPutMappingRequest.ts#L41-L181 type Request struct { // DateDetection Controls whether dynamic date detection is enabled. diff --git a/typedapi/indices/putmapping/response.go b/typedapi/indices/putmapping/response.go index 842596e90b..cb0d58f21b 100644 --- a/typedapi/indices/putmapping/response.go +++ b/typedapi/indices/putmapping/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putmapping import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package putmapping // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_mapping/IndicesPutMappingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 806c735516..14542e42e0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update index settings. // Changes dynamic index settings in real time. @@ -58,9 +58,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexcheckonstartup" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexcheckonstartup" ) const ( @@ -237,12 +237,12 @@ func (r *PutSettings) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -427,6 +427,16 @@ func (r *PutSettings) PreserveExisting(preserveexisting bool) *PutSettings { return r } +// Reopen Whether to close and reopen the index to apply non-dynamic settings. +// If set to `true` the indices to which the settings are being applied +// will be closed temporarily and then reopened in order to apply the changes. +// API name: reopen +func (r *PutSettings) Reopen(reopen bool) *PutSettings { + r.values.Set("reopen", strconv.FormatBool(reopen)) + + return r +} + // Timeout Period to wait for a response. If no response is received before the // // timeout expires, the request fails and returns an error. diff --git a/typedapi/indices/putsettings/request.go b/typedapi/indices/putsettings/request.go index 0e2174160f..f4b0511f2f 100644 --- a/typedapi/indices/putsettings/request.go +++ b/typedapi/indices/putsettings/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putsettings import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L118 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/put_settings/IndicesPutSettingsRequest.ts#L25-L125 type Request = types.IndexSettings // NewRequest returns a Request diff --git a/typedapi/indices/putsettings/response.go b/typedapi/indices/putsettings/response.go index 2231381088..ce2262ae13 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putsettings // Response holds the response body struct for the package putsettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_settings/IndicesPutSettingsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6b97de7da0..5b894f5b74 100644 --- a/typedapi/indices/puttemplate/put_template.go +++ b/typedapi/indices/puttemplate/put_template.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update an index template. // Index templates define settings, mappings, and aliases that can be applied @@ -65,7 +65,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -246,12 +246,12 @@ func (r *PutTemplate) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -390,6 +390,7 @@ func (r *PutTemplate) MasterTimeout(duration string) *PutTemplate { return r } +// Cause User defined reason for creating/updating the index template // API name: cause func (r *PutTemplate) Cause(cause string) *PutTemplate { r.values.Set("cause", cause) diff --git a/typedapi/indices/puttemplate/request.go b/typedapi/indices/puttemplate/request.go index e4dc48d06c..ed1c258a3b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package puttemplate @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package puttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_template/IndicesPutTemplateRequest.ts#L29-L123 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/put_template/IndicesPutTemplateRequest.ts#L29-L123 type Request struct { // Aliases Aliases for the index. diff --git a/typedapi/indices/puttemplate/response.go b/typedapi/indices/puttemplate/response.go index e0aaa72f2c..7785ad267a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package puttemplate // Response holds the response body struct for the package puttemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_template/IndicesPutTemplateResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f9b96da6ec..2dc43c16c7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get index recovery information. // Get information about ongoing and completed shard recoveries for one or more @@ -68,7 +68,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -209,7 +209,7 @@ func (r *Recovery) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/recovery/response.go b/typedapi/indices/recovery/response.go index 569ec14a6a..58801cc4c7 100644 --- a/typedapi/indices/recovery/response.go +++ b/typedapi/indices/recovery/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package recovery import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package recovery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/recovery/IndicesRecoveryResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4a58e9c87d..aac039da17 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Refresh an index. // A refresh makes recent operations performed on one or more indices available @@ -57,8 +57,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -188,7 +188,7 @@ func (r *Refresh) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/refresh/response.go b/typedapi/indices/refresh/response.go index f4a0f84762..1afe4a59bc 100644 --- a/typedapi/indices/refresh/response.go +++ b/typedapi/indices/refresh/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package refresh import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package refresh // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/refresh/IndicesRefreshResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 23f437e2c5..9b6f3e7e49 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Reload search analyzers. // Reload an index's search analyzers and their resources. @@ -56,8 +56,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -183,7 +183,7 @@ func (r *ReloadSearchAnalyzers) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -375,6 +375,14 @@ func (r *ReloadSearchAnalyzers) IgnoreUnavailable(ignoreunavailable bool) *Reloa return r } +// Resource Changed resource to reload analyzers from if applicable +// API name: resource +func (r *ReloadSearchAnalyzers) Resource(resource string) *ReloadSearchAnalyzers { + r.values.Set("resource", resource) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/indices/reloadsearchanalyzers/response.go b/typedapi/indices/reloadsearchanalyzers/response.go index 2b5d73301e..caf3b191fb 100644 --- a/typedapi/indices/reloadsearchanalyzers/response.go +++ b/typedapi/indices/reloadsearchanalyzers/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package reloadsearchanalyzers import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package reloadsearchanalyzers // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/reload_search_analyzers/ReloadSearchAnalyzersResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fe70ed9cf6..aee1c0cb79 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Resolve the cluster. // @@ -114,8 +114,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -306,7 +306,7 @@ func (r *ResolveCluster) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/resolvecluster/response.go b/typedapi/indices/resolvecluster/response.go index 217b6206a7..56b0c8dabe 100644 --- a/typedapi/indices/resolvecluster/response.go +++ b/typedapi/indices/resolvecluster/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package resolvecluster import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package resolvecluster // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0c2d2fa633..a938f020db 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Resolve indices. // Resolve the names and/or index patterns for indices, aliases, and data @@ -36,8 +36,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -145,7 +145,7 @@ func (r *ResolveIndex) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/resolveindex/response.go b/typedapi/indices/resolveindex/response.go index fdab454b33..c3ad31b238 100644 --- a/typedapi/indices/resolveindex/response.go +++ b/typedapi/indices/resolveindex/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package resolveindex import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package resolveindex // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/resolve_index/ResolveIndexResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7633e304ea..060cb98b54 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package rollover @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package rollover // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/rollover/IndicesRolloverRequest.ts#L29-L147 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 81ef812ef4..e70d7bd59f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package rollover // Response holds the response body struct for the package rollover // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/rollover/IndicesRolloverResponse.ts#L22-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a883577329..a7fc74db16 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Roll over to a new index. // TIP: It is recommended to use the index lifecycle rollover action to automate @@ -88,7 +88,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -312,12 +312,12 @@ func (r *Rollover) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -490,6 +490,16 @@ func (r *Rollover) WaitForActiveShards(waitforactiveshards string) *Rollover { return r } +// Lazy If set to true, the rollover action will only mark a data stream to signal +// that it needs to be rolled over at the next write. +// Only allowed on data streams. +// API name: lazy +func (r *Rollover) Lazy(lazy bool) *Rollover { + r.values.Set("lazy", strconv.FormatBool(lazy)) + + return r +} + // ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors // when they occur. // API name: error_trace diff --git a/typedapi/indices/segments/response.go b/typedapi/indices/segments/response.go index 77d93c0161..b1acbef3bf 100644 --- a/typedapi/indices/segments/response.go +++ b/typedapi/indices/segments/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package segments import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package segments // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/segments/IndicesSegmentsResponse.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bc1c48aa66..25c3487633 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get index segments. // Get low-level information about the Lucene segments in index shards. @@ -36,8 +36,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -146,7 +146,7 @@ func (r *Segments) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/shardstores/response.go b/typedapi/indices/shardstores/response.go index 2e83ad73fe..c004ef5fac 100644 --- a/typedapi/indices/shardstores/response.go +++ b/typedapi/indices/shardstores/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package shardstores import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package shardstores // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/shard_stores/IndicesShardStoresResponse.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a7d3273eca..b4732df597 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get index shard stores. // Get store information about replica shards in one or more indices. @@ -47,9 +47,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardstorestatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shardstorestatus" ) const ( @@ -169,7 +169,7 @@ func (r *ShardStores) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/shrink/request.go b/typedapi/indices/shrink/request.go index d7395b86d5..bd4e0e004b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package shrink @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package shrink // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/shrink/IndicesShrinkRequest.ts#L27-L113 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 023198fb9e..84690ce835 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package shrink // Response holds the response body struct for the package shrink // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/shrink/IndicesShrinkResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e93b3c25bd..fc25a6b0f0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Shrink an index. // Shrink an index into a new index with fewer primary shards. @@ -89,7 +89,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -305,12 +305,12 @@ func (r *Shrink) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/simulateindextemplate/response.go b/typedapi/indices/simulateindextemplate/response.go index 1435a36140..aa1603de50 100644 --- a/typedapi/indices/simulateindextemplate/response.go +++ b/typedapi/indices/simulateindextemplate/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package simulateindextemplate import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package simulateindextemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/simulate_index_template/IndicesSimulateIndexTemplateResponse.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7376e17cc8..f41895a5d7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Simulate an index. // Get the index configuration that would be applied to the specified index from @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -143,12 +143,12 @@ func (r *SimulateIndexTemplate) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -309,6 +309,24 @@ func (r *SimulateIndexTemplate) _name(name string) *SimulateIndexTemplate { return r } +// Create Whether the index template we optionally defined in the body should only be +// dry-run added if new or can also replace an existing one +// API name: create +func (r *SimulateIndexTemplate) Create(create bool) *SimulateIndexTemplate { + r.values.Set("create", strconv.FormatBool(create)) + + return r +} + +// Cause User defined reason for dry-run creating the new template for simulation +// purposes +// API name: cause +func (r *SimulateIndexTemplate) Cause(cause string) *SimulateIndexTemplate { + r.values.Set("cause", cause) + + return r +} + // MasterTimeout Period to wait for a connection to the master node. If no response is // received before the timeout expires, the request fails and returns an error. // API name: master_timeout diff --git a/typedapi/indices/simulatetemplate/request.go b/typedapi/indices/simulatetemplate/request.go index ebe605cec9..d93c0ab77b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package simulatetemplate @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package simulatetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/simulate_template/IndicesSimulateTemplateRequest.ts#L27-L131 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3480eb5cc5..abb827dffa 100644 --- a/typedapi/indices/simulatetemplate/response.go +++ b/typedapi/indices/simulatetemplate/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package simulatetemplate import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package simulatetemplate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L26-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 10291456c1..68017d7e80 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Simulate an index template. // Get the index configuration that would be applied by a particular index @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -195,12 +195,12 @@ func (r *SimulateTemplate) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -335,6 +335,15 @@ func (r *SimulateTemplate) Create(create bool) *SimulateTemplate { return r } +// Cause User defined reason for dry-run creating the new template for simulation +// purposes +// API name: cause +func (r *SimulateTemplate) Cause(cause string) *SimulateTemplate { + r.values.Set("cause", cause) + + return r +} + // MasterTimeout Period to wait for a connection to the master node. If no response is // received before the timeout expires, the request fails and returns an error. // API name: master_timeout diff --git a/typedapi/indices/split/request.go b/typedapi/indices/split/request.go index b79e4ee262..00dce06d48 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package split @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package split // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/split/IndicesSplitRequest.ts#L27-L113 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8a6339661d..893e480417 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package split // Response holds the response body struct for the package split // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/split/IndicesSplitResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5d6b38de45..62f8235e90 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Split an index. // Split an index into a new index with more primary shards. @@ -81,7 +81,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -289,12 +289,12 @@ func (r *Split) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/stats/response.go b/typedapi/indices/stats/response.go index b12313169b..acbe326413 100644 --- a/typedapi/indices/stats/response.go +++ b/typedapi/indices/stats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/IndicesStatsResponse.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 39f1d38eb3..ea62dce1bc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get index statistics. // For data streams, the API retrieves statistics for the stream's backing @@ -47,9 +47,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/level" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/level" ) const ( @@ -200,7 +200,7 @@ func (r *Stats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/updatealiases/request.go b/typedapi/indices/updatealiases/request.go index 082358b0a2..4fa4727155 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatealiases @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatealiases // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/update_aliases/IndicesUpdateAliasesRequest.ts#L24-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e600b7ed85..62454c1cc1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatealiases // Response holds the response body struct for the package updatealiases // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/update_aliases/IndicesUpdateAliasesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f038ddc38f..0080a58360 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update an alias. // Adds a data stream or index to an alias. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -172,12 +172,12 @@ func (r *UpdateAliases) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/indices/validatequery/request.go b/typedapi/indices/validatequery/request.go index 8a2326db2a..6ec5f0f8cd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package validatequery @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package validatequery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L123 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/validate_query/IndicesValidateQueryRequest.ts#L25-L123 type Request struct { // Query Query in the Lucene query string syntax. diff --git a/typedapi/indices/validatequery/response.go b/typedapi/indices/validatequery/response.go index f3553046c0..090b1b799e 100644 --- a/typedapi/indices/validatequery/response.go +++ b/typedapi/indices/validatequery/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package validatequery import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package validatequery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d2dc066b97..acdff778f0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Validate a query. // Validates a query without running it. @@ -35,9 +35,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" ) const ( @@ -195,12 +195,12 @@ func (r *ValidateQuery) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/inference/chatcompletionunified/chat_completion_unified.go b/typedapi/inference/chatcompletionunified/chat_completion_unified.go index c659840824..78e32b8683 100644 --- a/typedapi/inference/chatcompletionunified/chat_completion_unified.go +++ b/typedapi/inference/chatcompletionunified/chat_completion_unified.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Perform chat completion inference package chatcompletionunified @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -188,7 +188,7 @@ func (r *ChatCompletionUnified) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } diff --git a/typedapi/inference/chatcompletionunified/request.go b/typedapi/inference/chatcompletionunified/request.go index 238bb7025a..8ea2621deb 100644 --- a/typedapi/inference/chatcompletionunified/request.go +++ b/typedapi/inference/chatcompletionunified/request.go @@ -16,190 +16,22 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package chatcompletionunified import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "io" - "strconv" - - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package chatcompletionunified // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedRequest.ts#L26-L87 -type Request struct { - - // MaxCompletionTokens The upper bound limit for the number of tokens that can be generated for a - // completion request. - MaxCompletionTokens *int64 `json:"max_completion_tokens,omitempty"` - // Messages A list of objects representing the conversation. - Messages []types.Message `json:"messages"` - // Model The ID of the model to use. - Model *string `json:"model,omitempty"` - // Stop A sequence of strings to control when the model should stop generating - // additional tokens. - Stop []string `json:"stop,omitempty"` - // Temperature The sampling temperature to use. - Temperature *float32 `json:"temperature,omitempty"` - // ToolChoice Controls which tool is called by the model. - ToolChoice types.CompletionToolType `json:"tool_choice,omitempty"` - // Tools A list of tools that the model can call. - Tools []types.CompletionTool `json:"tools,omitempty"` - // TopP Nucleus sampling, an alternative to sampling with temperature. - TopP *float32 `json:"top_p,omitempty"` -} +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/chat_completion_unified/UnifiedRequest.ts#L24-L53 +type Request = types.RequestChatCompletion // NewRequest returns a Request func NewRequest() *Request { - r := &Request{} + r := types.NewRequestChatCompletion() return r } - -// FromJSON allows to load an arbitrary json into the request structure -func (r *Request) FromJSON(data string) (*Request, error) { - var req Request - err := json.Unmarshal([]byte(data), &req) - - if err != nil { - return nil, fmt.Errorf("could not deserialise json into Chatcompletionunified request: %w", err) - } - - return &req, nil -} - -func (s *Request) UnmarshalJSON(data []byte) error { - dec := json.NewDecoder(bytes.NewReader(data)) - - for { - t, err := dec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return err - } - - switch t { - - case "max_completion_tokens": - var tmp any - dec.Decode(&tmp) - switch v := tmp.(type) { - case string: - value, err := strconv.ParseInt(v, 10, 64) - if err != nil { - return fmt.Errorf("%s | %w", "MaxCompletionTokens", err) - } - s.MaxCompletionTokens = &value - case float64: - f := int64(v) - s.MaxCompletionTokens = &f - } - - case "messages": - if err := dec.Decode(&s.Messages); err != nil { - return fmt.Errorf("%s | %w", "Messages", err) - } - - case "model": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "Model", err) - } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.Model = &o - - case "stop": - if err := dec.Decode(&s.Stop); err != nil { - return fmt.Errorf("%s | %w", "Stop", err) - } - - case "temperature": - var tmp any - dec.Decode(&tmp) - switch v := tmp.(type) { - case string: - value, err := strconv.ParseFloat(v, 32) - if err != nil { - return fmt.Errorf("%s | %w", "Temperature", err) - } - f := float32(value) - s.Temperature = &f - case float64: - f := float32(v) - s.Temperature = &f - } - - case "tool_choice": - message := json.RawMessage{} - if err := dec.Decode(&message); err != nil { - return fmt.Errorf("%s | %w", "ToolChoice", err) - } - keyDec := json.NewDecoder(bytes.NewReader(message)) - toolchoice_field: - for { - t, err := keyDec.Token() - if err != nil { - if errors.Is(err, io.EOF) { - break - } - return fmt.Errorf("%s | %w", "ToolChoice", err) - } - - switch t { - - case "function", "type": - o := types.NewCompletionToolChoice() - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&o); err != nil { - return fmt.Errorf("%s | %w", "ToolChoice", err) - } - s.ToolChoice = o - break toolchoice_field - - } - } - if s.ToolChoice == nil { - localDec := json.NewDecoder(bytes.NewReader(message)) - if err := localDec.Decode(&s.ToolChoice); err != nil { - return fmt.Errorf("%s | %w", "ToolChoice", err) - } - } - - case "tools": - if err := dec.Decode(&s.Tools); err != nil { - return fmt.Errorf("%s | %w", "Tools", err) - } - - case "top_p": - var tmp any - dec.Decode(&tmp) - switch v := tmp.(type) { - case string: - value, err := strconv.ParseFloat(v, 32) - if err != nil { - return fmt.Errorf("%s | %w", "TopP", err) - } - f := float32(value) - s.TopP = &f - case float64: - f := float32(v) - s.TopP = &f - } - - } - } - return nil -} diff --git a/typedapi/inference/chatcompletionunified/response.go b/typedapi/inference/chatcompletionunified/response.go index 928e13a80b..56b0bd3588 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package chatcompletionunified // Response holds the response body struct for the package chatcompletionunified // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f22c15e514..a2fdfac095 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Perform completion inference on the service package completion @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -186,12 +186,12 @@ func (r *Completion) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/inference/completion/request.go b/typedapi/inference/completion/request.go index 0b8c564a6a..56a52f7777 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package completion @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package completion // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/completion/CompletionRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e867773fb9..95222a1c61 100644 --- a/typedapi/inference/completion/response.go +++ b/typedapi/inference/completion/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package completion import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package completion // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/completion/CompletionResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ffcf114dab..ea34caf252 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete an inference endpoint package delete @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -156,7 +156,7 @@ func (r *Delete) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/inference/delete/response.go b/typedapi/inference/delete/response.go index a5f3bacbb9..5b5b40c51f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/delete/DeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4cf3effe2a..75562bcb38 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get an inference endpoint package get @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -159,7 +159,7 @@ func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/inference/get/response.go b/typedapi/inference/get/response.go index f2c6b258fe..d5b7eb18d0 100644 --- a/typedapi/inference/get/response.go +++ b/typedapi/inference/get/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package get import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/get/GetResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/get/GetResponse.ts#L22-L26 type Response struct { Endpoints []types.InferenceEndpointInfo `json:"endpoints"` } diff --git a/typedapi/inference/put/put.go b/typedapi/inference/put/put.go index 1b6526910f..f5f0dda128 100644 --- a/typedapi/inference/put/put.go +++ b/typedapi/inference/put/put.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create an inference endpoint. // When you create an inference endpoint, the associated machine learning model @@ -53,7 +53,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -242,12 +242,12 @@ func (r *Put) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/inference/put/request.go b/typedapi/inference/put/request.go index 3dd160a9da..9e2f900db9 100644 --- a/typedapi/inference/put/request.go +++ b/typedapi/inference/put/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package put import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put/PutRequest.ts#L25-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put/PutRequest.ts#L25-L65 type Request = types.InferenceEndpoint // NewRequest returns a Request diff --git a/typedapi/inference/put/response.go b/typedapi/inference/put/response.go index 5476cd2086..93a8228845 100644 --- a/typedapi/inference/put/response.go +++ b/typedapi/inference/put/response.go @@ -16,20 +16,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package put import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" ) // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put/PutResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 new file mode 100644 index 0000000000..6201b9a910 --- /dev/null +++ b/typedapi/inference/putalibabacloud/put_alibabacloud.go @@ -0,0 +1,456 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create an AlibabaCloud AI Search inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `alibabacloud-ai-search` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putalibabacloud + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/alibabacloudservicetype" +) + +const ( + tasktypeMask = iota + 1 + + alibabacloudinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutAlibabacloud struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + alibabacloudinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutAlibabacloud type alias for index. +type NewPutAlibabacloud func(tasktype, alibabacloudinferenceid string) *PutAlibabacloud + +// NewPutAlibabacloudFunc returns a new instance of PutAlibabacloud with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutAlibabacloudFunc(tp elastictransport.Interface) NewPutAlibabacloud { + return func(tasktype, alibabacloudinferenceid string) *PutAlibabacloud { + n := New(tp) + + n._tasktype(tasktype) + + n._alibabacloudinferenceid(alibabacloudinferenceid) + + return n + } +} + +// Create an AlibabaCloud AI Search inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `alibabacloud-ai-search` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-alibabacloud +func New(tp elastictransport.Interface) *PutAlibabacloud { + r := &PutAlibabacloud{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutAlibabacloud) Raw(raw io.Reader) *PutAlibabacloud { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutAlibabacloud) Request(req *Request) *PutAlibabacloud { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutAlibabacloud) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutAlibabacloud: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|alibabacloudinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "alibabacloudinferenceid", r.alibabacloudinferenceid) + } + path.WriteString(r.alibabacloudinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutAlibabacloud) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_alibabacloud") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_alibabacloud") + if reader := instrument.RecordRequestBody(ctx, "inference.put_alibabacloud", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_alibabacloud") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutAlibabacloud query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putalibabacloud.Response +func (r PutAlibabacloud) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_alibabacloud") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutAlibabacloud headers map. +func (r *PutAlibabacloud) Header(key, value string) *PutAlibabacloud { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutAlibabacloud) _tasktype(tasktype string) *PutAlibabacloud { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// AlibabacloudInferenceId The unique identifier of the inference endpoint. +// API Name: alibabacloudinferenceid +func (r *PutAlibabacloud) _alibabacloudinferenceid(alibabacloudinferenceid string) *PutAlibabacloud { + r.paramSet |= alibabacloudinferenceidMask + r.alibabacloudinferenceid = alibabacloudinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutAlibabacloud) ErrorTrace(errortrace bool) *PutAlibabacloud { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutAlibabacloud) FilterPath(filterpaths ...string) *PutAlibabacloud { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutAlibabacloud) Human(human bool) *PutAlibabacloud { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutAlibabacloud) Pretty(pretty bool) *PutAlibabacloud { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutAlibabacloud) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutAlibabacloud { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `alibabacloud-ai-search`. +// API name: service +func (r *PutAlibabacloud) Service(service alibabacloudservicetype.AlibabaCloudServiceType) *PutAlibabacloud { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `alibabacloud-ai-search` service. +// API name: service_settings +func (r *PutAlibabacloud) ServiceSettings(servicesettings types.AlibabaCloudServiceSettingsVariant) *PutAlibabacloud { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.AlibabaCloudServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutAlibabacloud) TaskSettings(tasksettings types.AlibabaCloudTaskSettingsVariant) *PutAlibabacloud { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.AlibabaCloudTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putalibabacloud/request.go b/typedapi/inference/putalibabacloud/request.go new file mode 100644 index 0000000000..53f46dd761 --- /dev/null +++ b/typedapi/inference/putalibabacloud/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putalibabacloud + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/alibabacloudservicetype" +) + +// Request holds the request body struct for the package putalibabacloud +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_alibabacloud/PutAlibabaCloudRequest.ts#L30-L83 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `alibabacloud-ai-search`. + Service alibabacloudservicetype.AlibabaCloudServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `alibabacloud-ai-search` service. + ServiceSettings types.AlibabaCloudServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.AlibabaCloudTaskSettings `json:"task_settings,omitempty"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putalibabacloud request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putalibabacloud/response.go b/typedapi/inference/putalibabacloud/response.go new file mode 100644 index 0000000000..f1a0ea7114 --- /dev/null +++ b/typedapi/inference/putalibabacloud/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putalibabacloud + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putalibabacloud +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_alibabacloud/PutAlibabaCloudResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putamazonbedrock/put_amazonbedrock.go b/typedapi/inference/putamazonbedrock/put_amazonbedrock.go new file mode 100644 index 0000000000..d2db21d80b --- /dev/null +++ b/typedapi/inference/putamazonbedrock/put_amazonbedrock.go @@ -0,0 +1,472 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create an Amazon Bedrock inference endpoint. +// +// Creates an inference endpoint to perform an inference task with the +// `amazonbedrock` service. +// +// >info +// > You need to provide the access and secret keys only once, during the +// inference model creation. The get inference API does not retrieve your access +// or secret keys. After creating the inference model, you cannot change the +// associated key pairs. If you want to use a different access and secret key +// pair, delete the inference model and recreate it with the same name and the +// updated keys. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putamazonbedrock + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/amazonbedrockservicetype" +) + +const ( + tasktypeMask = iota + 1 + + amazonbedrockinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutAmazonbedrock struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + amazonbedrockinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutAmazonbedrock type alias for index. +type NewPutAmazonbedrock func(tasktype, amazonbedrockinferenceid string) *PutAmazonbedrock + +// NewPutAmazonbedrockFunc returns a new instance of PutAmazonbedrock with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutAmazonbedrockFunc(tp elastictransport.Interface) NewPutAmazonbedrock { + return func(tasktype, amazonbedrockinferenceid string) *PutAmazonbedrock { + n := New(tp) + + n._tasktype(tasktype) + + n._amazonbedrockinferenceid(amazonbedrockinferenceid) + + return n + } +} + +// Create an Amazon Bedrock inference endpoint. +// +// Creates an inference endpoint to perform an inference task with the +// `amazonbedrock` service. +// +// >info +// > You need to provide the access and secret keys only once, during the +// inference model creation. The get inference API does not retrieve your access +// or secret keys. After creating the inference model, you cannot change the +// associated key pairs. If you want to use a different access and secret key +// pair, delete the inference model and recreate it with the same name and the +// updated keys. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-amazonbedrock +func New(tp elastictransport.Interface) *PutAmazonbedrock { + r := &PutAmazonbedrock{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutAmazonbedrock) Raw(raw io.Reader) *PutAmazonbedrock { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutAmazonbedrock) Request(req *Request) *PutAmazonbedrock { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutAmazonbedrock) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutAmazonbedrock: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|amazonbedrockinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "amazonbedrockinferenceid", r.amazonbedrockinferenceid) + } + path.WriteString(r.amazonbedrockinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutAmazonbedrock) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_amazonbedrock") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_amazonbedrock") + if reader := instrument.RecordRequestBody(ctx, "inference.put_amazonbedrock", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_amazonbedrock") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutAmazonbedrock query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putamazonbedrock.Response +func (r PutAmazonbedrock) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_amazonbedrock") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutAmazonbedrock headers map. +func (r *PutAmazonbedrock) Header(key, value string) *PutAmazonbedrock { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutAmazonbedrock) _tasktype(tasktype string) *PutAmazonbedrock { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// AmazonbedrockInferenceId The unique identifier of the inference endpoint. +// API Name: amazonbedrockinferenceid +func (r *PutAmazonbedrock) _amazonbedrockinferenceid(amazonbedrockinferenceid string) *PutAmazonbedrock { + r.paramSet |= amazonbedrockinferenceidMask + r.amazonbedrockinferenceid = amazonbedrockinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutAmazonbedrock) ErrorTrace(errortrace bool) *PutAmazonbedrock { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutAmazonbedrock) FilterPath(filterpaths ...string) *PutAmazonbedrock { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutAmazonbedrock) Human(human bool) *PutAmazonbedrock { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutAmazonbedrock) Pretty(pretty bool) *PutAmazonbedrock { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutAmazonbedrock) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutAmazonbedrock { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `amazonbedrock`. +// API name: service +func (r *PutAmazonbedrock) Service(service amazonbedrockservicetype.AmazonBedrockServiceType) *PutAmazonbedrock { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `amazonbedrock` service. +// API name: service_settings +func (r *PutAmazonbedrock) ServiceSettings(servicesettings types.AmazonBedrockServiceSettingsVariant) *PutAmazonbedrock { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.AmazonBedrockServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutAmazonbedrock) TaskSettings(tasksettings types.AmazonBedrockTaskSettingsVariant) *PutAmazonbedrock { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.AmazonBedrockTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putamazonbedrock/request.go b/typedapi/inference/putamazonbedrock/request.go new file mode 100644 index 0000000000..ef01de9836 --- /dev/null +++ b/typedapi/inference/putamazonbedrock/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putamazonbedrock + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/amazonbedrockservicetype" +) + +// Request holds the request body struct for the package putamazonbedrock +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_amazonbedrock/PutAmazonBedrockRequest.ts#L30-L86 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `amazonbedrock`. + Service amazonbedrockservicetype.AmazonBedrockServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `amazonbedrock` service. + ServiceSettings types.AmazonBedrockServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.AmazonBedrockTaskSettings `json:"task_settings,omitempty"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putamazonbedrock request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putamazonbedrock/response.go b/typedapi/inference/putamazonbedrock/response.go new file mode 100644 index 0000000000..6860c5cd1a --- /dev/null +++ b/typedapi/inference/putamazonbedrock/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putamazonbedrock + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putamazonbedrock +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_amazonbedrock/PutAmazonBedrockResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putanthropic/put_anthropic.go b/typedapi/inference/putanthropic/put_anthropic.go new file mode 100644 index 0000000000..4749dfca2b --- /dev/null +++ b/typedapi/inference/putanthropic/put_anthropic.go @@ -0,0 +1,457 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create an Anthropic inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `anthropic` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putanthropic + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/anthropicservicetype" +) + +const ( + tasktypeMask = iota + 1 + + anthropicinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutAnthropic struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + anthropicinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutAnthropic type alias for index. +type NewPutAnthropic func(tasktype, anthropicinferenceid string) *PutAnthropic + +// NewPutAnthropicFunc returns a new instance of PutAnthropic with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutAnthropicFunc(tp elastictransport.Interface) NewPutAnthropic { + return func(tasktype, anthropicinferenceid string) *PutAnthropic { + n := New(tp) + + n._tasktype(tasktype) + + n._anthropicinferenceid(anthropicinferenceid) + + return n + } +} + +// Create an Anthropic inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `anthropic` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-anthropic +func New(tp elastictransport.Interface) *PutAnthropic { + r := &PutAnthropic{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutAnthropic) Raw(raw io.Reader) *PutAnthropic { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutAnthropic) Request(req *Request) *PutAnthropic { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutAnthropic) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutAnthropic: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|anthropicinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "anthropicinferenceid", r.anthropicinferenceid) + } + path.WriteString(r.anthropicinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutAnthropic) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_anthropic") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_anthropic") + if reader := instrument.RecordRequestBody(ctx, "inference.put_anthropic", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_anthropic") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutAnthropic query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putanthropic.Response +func (r PutAnthropic) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_anthropic") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutAnthropic headers map. +func (r *PutAnthropic) Header(key, value string) *PutAnthropic { + r.headers.Set(key, value) + + return r +} + +// TaskType The task type. +// The only valid task type for the model to perform is `completion`. +// API Name: tasktype +func (r *PutAnthropic) _tasktype(tasktype string) *PutAnthropic { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// AnthropicInferenceId The unique identifier of the inference endpoint. +// API Name: anthropicinferenceid +func (r *PutAnthropic) _anthropicinferenceid(anthropicinferenceid string) *PutAnthropic { + r.paramSet |= anthropicinferenceidMask + r.anthropicinferenceid = anthropicinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutAnthropic) ErrorTrace(errortrace bool) *PutAnthropic { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutAnthropic) FilterPath(filterpaths ...string) *PutAnthropic { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutAnthropic) Human(human bool) *PutAnthropic { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutAnthropic) Pretty(pretty bool) *PutAnthropic { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutAnthropic) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutAnthropic { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `anthropic`. +// API name: service +func (r *PutAnthropic) Service(service anthropicservicetype.AnthropicServiceType) *PutAnthropic { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `watsonxai` service. +// API name: service_settings +func (r *PutAnthropic) ServiceSettings(servicesettings types.AnthropicServiceSettingsVariant) *PutAnthropic { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.AnthropicServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutAnthropic) TaskSettings(tasksettings types.AnthropicTaskSettingsVariant) *PutAnthropic { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.AnthropicTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putanthropic/request.go b/typedapi/inference/putanthropic/request.go new file mode 100644 index 0000000000..49f34282a9 --- /dev/null +++ b/typedapi/inference/putanthropic/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putanthropic + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/anthropicservicetype" +) + +// Request holds the request body struct for the package putanthropic +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_anthropic/PutAnthropicRequest.ts#L30-L84 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `anthropic`. + Service anthropicservicetype.AnthropicServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `watsonxai` service. + ServiceSettings types.AnthropicServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.AnthropicTaskSettings `json:"task_settings,omitempty"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putanthropic request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putanthropic/response.go b/typedapi/inference/putanthropic/response.go new file mode 100644 index 0000000000..ea0fb37fe2 --- /dev/null +++ b/typedapi/inference/putanthropic/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putanthropic + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putanthropic +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_anthropic/PutAnthropicResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putazureaistudio/put_azureaistudio.go b/typedapi/inference/putazureaistudio/put_azureaistudio.go new file mode 100644 index 0000000000..8e24bd2664 --- /dev/null +++ b/typedapi/inference/putazureaistudio/put_azureaistudio.go @@ -0,0 +1,456 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create an Azure AI studio inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `azureaistudio` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putazureaistudio + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/azureaistudioservicetype" +) + +const ( + tasktypeMask = iota + 1 + + azureaistudioinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutAzureaistudio struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + azureaistudioinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutAzureaistudio type alias for index. +type NewPutAzureaistudio func(tasktype, azureaistudioinferenceid string) *PutAzureaistudio + +// NewPutAzureaistudioFunc returns a new instance of PutAzureaistudio with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutAzureaistudioFunc(tp elastictransport.Interface) NewPutAzureaistudio { + return func(tasktype, azureaistudioinferenceid string) *PutAzureaistudio { + n := New(tp) + + n._tasktype(tasktype) + + n._azureaistudioinferenceid(azureaistudioinferenceid) + + return n + } +} + +// Create an Azure AI studio inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `azureaistudio` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-azureaistudio +func New(tp elastictransport.Interface) *PutAzureaistudio { + r := &PutAzureaistudio{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutAzureaistudio) Raw(raw io.Reader) *PutAzureaistudio { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutAzureaistudio) Request(req *Request) *PutAzureaistudio { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutAzureaistudio) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutAzureaistudio: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|azureaistudioinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "azureaistudioinferenceid", r.azureaistudioinferenceid) + } + path.WriteString(r.azureaistudioinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutAzureaistudio) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_azureaistudio") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_azureaistudio") + if reader := instrument.RecordRequestBody(ctx, "inference.put_azureaistudio", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_azureaistudio") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutAzureaistudio query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putazureaistudio.Response +func (r PutAzureaistudio) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_azureaistudio") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutAzureaistudio headers map. +func (r *PutAzureaistudio) Header(key, value string) *PutAzureaistudio { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutAzureaistudio) _tasktype(tasktype string) *PutAzureaistudio { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// AzureaistudioInferenceId The unique identifier of the inference endpoint. +// API Name: azureaistudioinferenceid +func (r *PutAzureaistudio) _azureaistudioinferenceid(azureaistudioinferenceid string) *PutAzureaistudio { + r.paramSet |= azureaistudioinferenceidMask + r.azureaistudioinferenceid = azureaistudioinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutAzureaistudio) ErrorTrace(errortrace bool) *PutAzureaistudio { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutAzureaistudio) FilterPath(filterpaths ...string) *PutAzureaistudio { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutAzureaistudio) Human(human bool) *PutAzureaistudio { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutAzureaistudio) Pretty(pretty bool) *PutAzureaistudio { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutAzureaistudio) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutAzureaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `azureaistudio`. +// API name: service +func (r *PutAzureaistudio) Service(service azureaistudioservicetype.AzureAiStudioServiceType) *PutAzureaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `openai` service. +// API name: service_settings +func (r *PutAzureaistudio) ServiceSettings(servicesettings types.AzureAiStudioServiceSettingsVariant) *PutAzureaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.AzureAiStudioServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutAzureaistudio) TaskSettings(tasksettings types.AzureAiStudioTaskSettingsVariant) *PutAzureaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.AzureAiStudioTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putazureaistudio/request.go b/typedapi/inference/putazureaistudio/request.go new file mode 100644 index 0000000000..aec8c774b7 --- /dev/null +++ b/typedapi/inference/putazureaistudio/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putazureaistudio + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/azureaistudioservicetype" +) + +// Request holds the request body struct for the package putazureaistudio +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_azureaistudio/PutAzureAiStudioRequest.ts#L30-L83 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `azureaistudio`. + Service azureaistudioservicetype.AzureAiStudioServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `openai` service. + ServiceSettings types.AzureAiStudioServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.AzureAiStudioTaskSettings `json:"task_settings,omitempty"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putazureaistudio request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putazureaistudio/response.go b/typedapi/inference/putazureaistudio/response.go new file mode 100644 index 0000000000..b0ddb134a7 --- /dev/null +++ b/typedapi/inference/putazureaistudio/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putazureaistudio + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putazureaistudio +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_azureaistudio/PutAzureAiStudioResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putazureopenai/put_azureopenai.go b/typedapi/inference/putazureopenai/put_azureopenai.go new file mode 100644 index 0000000000..89f70e7285 --- /dev/null +++ b/typedapi/inference/putazureopenai/put_azureopenai.go @@ -0,0 +1,482 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create an Azure OpenAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `azureopenai` service. +// +// The list of chat completion models that you can choose from in your Azure +// OpenAI deployment include: +// +// * [GPT-4 and GPT-4 Turbo +// models](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-4-and-gpt-4-turbo-models) +// * +// [GPT-3.5](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-35) +// +// The list of embeddings models that you can choose from in your deployment can +// be found in the [Azure models +// documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#embeddings). +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putazureopenai + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/azureopenaiservicetype" +) + +const ( + tasktypeMask = iota + 1 + + azureopenaiinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutAzureopenai struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + azureopenaiinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutAzureopenai type alias for index. +type NewPutAzureopenai func(tasktype, azureopenaiinferenceid string) *PutAzureopenai + +// NewPutAzureopenaiFunc returns a new instance of PutAzureopenai with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutAzureopenaiFunc(tp elastictransport.Interface) NewPutAzureopenai { + return func(tasktype, azureopenaiinferenceid string) *PutAzureopenai { + n := New(tp) + + n._tasktype(tasktype) + + n._azureopenaiinferenceid(azureopenaiinferenceid) + + return n + } +} + +// Create an Azure OpenAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `azureopenai` service. +// +// The list of chat completion models that you can choose from in your Azure +// OpenAI deployment include: +// +// * [GPT-4 and GPT-4 Turbo +// models](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-4-and-gpt-4-turbo-models) +// * +// [GPT-3.5](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#gpt-35) +// +// The list of embeddings models that you can choose from in your deployment can +// be found in the [Azure models +// documentation](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models?tabs=global-standard%2Cstandard-chat-completions#embeddings). +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-azureopenai +func New(tp elastictransport.Interface) *PutAzureopenai { + r := &PutAzureopenai{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutAzureopenai) Raw(raw io.Reader) *PutAzureopenai { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutAzureopenai) Request(req *Request) *PutAzureopenai { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutAzureopenai) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutAzureopenai: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|azureopenaiinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "azureopenaiinferenceid", r.azureopenaiinferenceid) + } + path.WriteString(r.azureopenaiinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutAzureopenai) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_azureopenai") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_azureopenai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_azureopenai", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_azureopenai") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutAzureopenai query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putazureopenai.Response +func (r PutAzureopenai) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_azureopenai") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutAzureopenai headers map. +func (r *PutAzureopenai) Header(key, value string) *PutAzureopenai { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// NOTE: The `chat_completion` task type only supports streaming and only +// through the _stream API. +// API Name: tasktype +func (r *PutAzureopenai) _tasktype(tasktype string) *PutAzureopenai { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// AzureopenaiInferenceId The unique identifier of the inference endpoint. +// API Name: azureopenaiinferenceid +func (r *PutAzureopenai) _azureopenaiinferenceid(azureopenaiinferenceid string) *PutAzureopenai { + r.paramSet |= azureopenaiinferenceidMask + r.azureopenaiinferenceid = azureopenaiinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutAzureopenai) ErrorTrace(errortrace bool) *PutAzureopenai { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutAzureopenai) FilterPath(filterpaths ...string) *PutAzureopenai { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutAzureopenai) Human(human bool) *PutAzureopenai { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutAzureopenai) Pretty(pretty bool) *PutAzureopenai { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutAzureopenai) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutAzureopenai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `azureopenai`. +// API name: service +func (r *PutAzureopenai) Service(service azureopenaiservicetype.AzureOpenAIServiceType) *PutAzureopenai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `azureopenai` service. +// API name: service_settings +func (r *PutAzureopenai) ServiceSettings(servicesettings types.AzureOpenAIServiceSettingsVariant) *PutAzureopenai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.AzureOpenAIServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutAzureopenai) TaskSettings(tasksettings types.AzureOpenAITaskSettingsVariant) *PutAzureopenai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.AzureOpenAITaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putazureopenai/request.go b/typedapi/inference/putazureopenai/request.go new file mode 100644 index 0000000000..dd349f4296 --- /dev/null +++ b/typedapi/inference/putazureopenai/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putazureopenai + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/azureopenaiservicetype" +) + +// Request holds the request body struct for the package putazureopenai +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_azureopenai/PutAzureOpenAiRequest.ts#L30-L91 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `azureopenai`. + Service azureopenaiservicetype.AzureOpenAIServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `azureopenai` service. + ServiceSettings types.AzureOpenAIServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.AzureOpenAITaskSettings `json:"task_settings,omitempty"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putazureopenai request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putazureopenai/response.go b/typedapi/inference/putazureopenai/response.go new file mode 100644 index 0000000000..3b3795a07d --- /dev/null +++ b/typedapi/inference/putazureopenai/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putazureopenai + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putazureopenai +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_azureopenai/PutAzureOpenAiResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putcohere/put_cohere.go b/typedapi/inference/putcohere/put_cohere.go new file mode 100644 index 0000000000..a742a39f6c --- /dev/null +++ b/typedapi/inference/putcohere/put_cohere.go @@ -0,0 +1,456 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create a Cohere inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `cohere` +// service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putcohere + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cohereservicetype" +) + +const ( + tasktypeMask = iota + 1 + + cohereinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutCohere struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + cohereinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutCohere type alias for index. +type NewPutCohere func(tasktype, cohereinferenceid string) *PutCohere + +// NewPutCohereFunc returns a new instance of PutCohere with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutCohereFunc(tp elastictransport.Interface) NewPutCohere { + return func(tasktype, cohereinferenceid string) *PutCohere { + n := New(tp) + + n._tasktype(tasktype) + + n._cohereinferenceid(cohereinferenceid) + + return n + } +} + +// Create a Cohere inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `cohere` +// service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-cohere +func New(tp elastictransport.Interface) *PutCohere { + r := &PutCohere{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutCohere) Raw(raw io.Reader) *PutCohere { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutCohere) Request(req *Request) *PutCohere { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutCohere) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutCohere: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|cohereinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "cohereinferenceid", r.cohereinferenceid) + } + path.WriteString(r.cohereinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutCohere) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_cohere") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_cohere") + if reader := instrument.RecordRequestBody(ctx, "inference.put_cohere", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_cohere") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutCohere query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putcohere.Response +func (r PutCohere) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_cohere") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutCohere headers map. +func (r *PutCohere) Header(key, value string) *PutCohere { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutCohere) _tasktype(tasktype string) *PutCohere { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// CohereInferenceId The unique identifier of the inference endpoint. +// API Name: cohereinferenceid +func (r *PutCohere) _cohereinferenceid(cohereinferenceid string) *PutCohere { + r.paramSet |= cohereinferenceidMask + r.cohereinferenceid = cohereinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutCohere) ErrorTrace(errortrace bool) *PutCohere { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutCohere) FilterPath(filterpaths ...string) *PutCohere { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutCohere) Human(human bool) *PutCohere { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutCohere) Pretty(pretty bool) *PutCohere { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutCohere) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutCohere { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `cohere`. +// API name: service +func (r *PutCohere) Service(service cohereservicetype.CohereServiceType) *PutCohere { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. +// These settings are specific to the `cohere` service. +// API name: service_settings +func (r *PutCohere) ServiceSettings(servicesettings types.CohereServiceSettingsVariant) *PutCohere { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.CohereServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutCohere) TaskSettings(tasksettings types.CohereTaskSettingsVariant) *PutCohere { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.CohereTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putcohere/request.go b/typedapi/inference/putcohere/request.go new file mode 100644 index 0000000000..f86fe1a043 --- /dev/null +++ b/typedapi/inference/putcohere/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putcohere + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cohereservicetype" +) + +// Request holds the request body struct for the package putcohere +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_cohere/PutCohereRequest.ts#L30-L84 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `cohere`. + Service cohereservicetype.CohereServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. + // These settings are specific to the `cohere` service. + ServiceSettings types.CohereServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.CohereTaskSettings `json:"task_settings,omitempty"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putcohere request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putcohere/response.go b/typedapi/inference/putcohere/response.go new file mode 100644 index 0000000000..53fdeb301e --- /dev/null +++ b/typedapi/inference/putcohere/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putcohere + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putcohere +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_cohere/PutCohereResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putelasticsearch/put_elasticsearch.go b/typedapi/inference/putelasticsearch/put_elasticsearch.go new file mode 100644 index 0000000000..8783b9806d --- /dev/null +++ b/typedapi/inference/putelasticsearch/put_elasticsearch.go @@ -0,0 +1,485 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create an Elasticsearch inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `elasticsearch` service. +// +// > info +// > Your Elasticsearch deployment contains preconfigured ELSER and E5 inference +// endpoints, you only need to create the enpoints using the API if you want to +// customize the settings. +// +// If you use the ELSER or the E5 model through the `elasticsearch` service, the +// API request will automatically download and deploy the model if it isn't +// downloaded yet. +// +// > info +// > You might see a 502 bad gateway error in the response when using the Kibana +// Console. This error usually just reflects a timeout, while the model +// downloads in the background. You can check the download progress in the +// Machine Learning UI. If using the Python client, you can set the timeout +// parameter to a higher value. +// +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putelasticsearch + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/elasticsearchservicetype" +) + +const ( + tasktypeMask = iota + 1 + + elasticsearchinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutElasticsearch struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + elasticsearchinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutElasticsearch type alias for index. +type NewPutElasticsearch func(tasktype, elasticsearchinferenceid string) *PutElasticsearch + +// NewPutElasticsearchFunc returns a new instance of PutElasticsearch with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutElasticsearchFunc(tp elastictransport.Interface) NewPutElasticsearch { + return func(tasktype, elasticsearchinferenceid string) *PutElasticsearch { + n := New(tp) + + n._tasktype(tasktype) + + n._elasticsearchinferenceid(elasticsearchinferenceid) + + return n + } +} + +// Create an Elasticsearch inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `elasticsearch` service. +// +// > info +// > Your Elasticsearch deployment contains preconfigured ELSER and E5 inference +// endpoints, you only need to create the enpoints using the API if you want to +// customize the settings. +// +// If you use the ELSER or the E5 model through the `elasticsearch` service, the +// API request will automatically download and deploy the model if it isn't +// downloaded yet. +// +// > info +// > You might see a 502 bad gateway error in the response when using the Kibana +// Console. This error usually just reflects a timeout, while the model +// downloads in the background. You can check the download progress in the +// Machine Learning UI. If using the Python client, you can set the timeout +// parameter to a higher value. +// +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-elasticsearch +func New(tp elastictransport.Interface) *PutElasticsearch { + r := &PutElasticsearch{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutElasticsearch) Raw(raw io.Reader) *PutElasticsearch { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutElasticsearch) Request(req *Request) *PutElasticsearch { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutElasticsearch) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutElasticsearch: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|elasticsearchinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "elasticsearchinferenceid", r.elasticsearchinferenceid) + } + path.WriteString(r.elasticsearchinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutElasticsearch) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_elasticsearch") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_elasticsearch") + if reader := instrument.RecordRequestBody(ctx, "inference.put_elasticsearch", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_elasticsearch") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutElasticsearch query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putelasticsearch.Response +func (r PutElasticsearch) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_elasticsearch") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutElasticsearch headers map. +func (r *PutElasticsearch) Header(key, value string) *PutElasticsearch { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutElasticsearch) _tasktype(tasktype string) *PutElasticsearch { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// ElasticsearchInferenceId The unique identifier of the inference endpoint. +// The must not match the `model_id`. +// API Name: elasticsearchinferenceid +func (r *PutElasticsearch) _elasticsearchinferenceid(elasticsearchinferenceid string) *PutElasticsearch { + r.paramSet |= elasticsearchinferenceidMask + r.elasticsearchinferenceid = elasticsearchinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutElasticsearch) ErrorTrace(errortrace bool) *PutElasticsearch { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutElasticsearch) FilterPath(filterpaths ...string) *PutElasticsearch { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutElasticsearch) Human(human bool) *PutElasticsearch { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutElasticsearch) Pretty(pretty bool) *PutElasticsearch { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutElasticsearch) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutElasticsearch { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `elasticsearch`. +// API name: service +func (r *PutElasticsearch) Service(service elasticsearchservicetype.ElasticsearchServiceType) *PutElasticsearch { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `elasticsearch` service. +// API name: service_settings +func (r *PutElasticsearch) ServiceSettings(servicesettings types.ElasticsearchServiceSettingsVariant) *PutElasticsearch { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.ElasticsearchServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutElasticsearch) TaskSettings(tasksettings types.ElasticsearchTaskSettingsVariant) *PutElasticsearch { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.ElasticsearchTaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putelasticsearch/request.go b/typedapi/inference/putelasticsearch/request.go new file mode 100644 index 0000000000..1b1de4fd1a --- /dev/null +++ b/typedapi/inference/putelasticsearch/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putelasticsearch + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/elasticsearchservicetype" +) + +// Request holds the request body struct for the package putelasticsearch +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_elasticsearch/PutElasticsearchRequest.ts#L30-L91 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `elasticsearch`. + Service elasticsearchservicetype.ElasticsearchServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `elasticsearch` service. + ServiceSettings types.ElasticsearchServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.ElasticsearchTaskSettings `json:"task_settings,omitempty"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putelasticsearch request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putelasticsearch/response.go b/typedapi/inference/putelasticsearch/response.go new file mode 100644 index 0000000000..e84fc44e07 --- /dev/null +++ b/typedapi/inference/putelasticsearch/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putelasticsearch + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putelasticsearch +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_elasticsearch/PutElasticsearchResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putelser/put_elser.go b/typedapi/inference/putelser/put_elser.go new file mode 100644 index 0000000000..024ca90072 --- /dev/null +++ b/typedapi/inference/putelser/put_elser.go @@ -0,0 +1,470 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create an ELSER inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `elser` +// service. +// You can also deploy ELSER by using the Elasticsearch inference integration. +// +// > info +// > Your Elasticsearch deployment contains a preconfigured ELSER inference +// endpoint, you only need to create the enpoint using the API if you want to +// customize the settings. +// +// The API request will automatically download and deploy the ELSER model if it +// isn't already downloaded. +// +// > info +// > You might see a 502 bad gateway error in the response when using the Kibana +// Console. This error usually just reflects a timeout, while the model +// downloads in the background. You can check the download progress in the +// Machine Learning UI. If using the Python client, you can set the timeout +// parameter to a higher value. +// +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putelser + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/elserservicetype" +) + +const ( + tasktypeMask = iota + 1 + + elserinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutElser struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + elserinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutElser type alias for index. +type NewPutElser func(tasktype, elserinferenceid string) *PutElser + +// NewPutElserFunc returns a new instance of PutElser with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutElserFunc(tp elastictransport.Interface) NewPutElser { + return func(tasktype, elserinferenceid string) *PutElser { + n := New(tp) + + n._tasktype(tasktype) + + n._elserinferenceid(elserinferenceid) + + return n + } +} + +// Create an ELSER inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `elser` +// service. +// You can also deploy ELSER by using the Elasticsearch inference integration. +// +// > info +// > Your Elasticsearch deployment contains a preconfigured ELSER inference +// endpoint, you only need to create the enpoint using the API if you want to +// customize the settings. +// +// The API request will automatically download and deploy the ELSER model if it +// isn't already downloaded. +// +// > info +// > You might see a 502 bad gateway error in the response when using the Kibana +// Console. This error usually just reflects a timeout, while the model +// downloads in the background. You can check the download progress in the +// Machine Learning UI. If using the Python client, you can set the timeout +// parameter to a higher value. +// +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-elser +func New(tp elastictransport.Interface) *PutElser { + r := &PutElser{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutElser) Raw(raw io.Reader) *PutElser { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutElser) Request(req *Request) *PutElser { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutElser) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutElser: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|elserinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "elserinferenceid", r.elserinferenceid) + } + path.WriteString(r.elserinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutElser) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_elser") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_elser") + if reader := instrument.RecordRequestBody(ctx, "inference.put_elser", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_elser") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutElser query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putelser.Response +func (r PutElser) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_elser") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutElser headers map. +func (r *PutElser) Header(key, value string) *PutElser { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutElser) _tasktype(tasktype string) *PutElser { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// ElserInferenceId The unique identifier of the inference endpoint. +// API Name: elserinferenceid +func (r *PutElser) _elserinferenceid(elserinferenceid string) *PutElser { + r.paramSet |= elserinferenceidMask + r.elserinferenceid = elserinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutElser) ErrorTrace(errortrace bool) *PutElser { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutElser) FilterPath(filterpaths ...string) *PutElser { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutElser) Human(human bool) *PutElser { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutElser) Pretty(pretty bool) *PutElser { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutElser) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutElser { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `elser`. +// API name: service +func (r *PutElser) Service(service elserservicetype.ElserServiceType) *PutElser { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `elser` service. +// API name: service_settings +func (r *PutElser) ServiceSettings(servicesettings types.ElserServiceSettingsVariant) *PutElser { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.ElserServiceSettingsCaster() + + return r +} diff --git a/typedapi/inference/putelser/request.go b/typedapi/inference/putelser/request.go new file mode 100644 index 0000000000..cb35c78fb6 --- /dev/null +++ b/typedapi/inference/putelser/request.go @@ -0,0 +1,63 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putelser + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/elserservicetype" +) + +// Request holds the request body struct for the package putelser +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_elser/PutElserRequest.ts#L29-L86 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `elser`. + Service elserservicetype.ElserServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `elser` service. + ServiceSettings types.ElserServiceSettings `json:"service_settings"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putelser request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putelser/response.go b/typedapi/inference/putelser/response.go new file mode 100644 index 0000000000..7d11a0a78d --- /dev/null +++ b/typedapi/inference/putelser/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putelser + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putelser +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_elser/PutElserResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putgoogleaistudio/put_googleaistudio.go b/typedapi/inference/putgoogleaistudio/put_googleaistudio.go new file mode 100644 index 0000000000..7b14be56a3 --- /dev/null +++ b/typedapi/inference/putgoogleaistudio/put_googleaistudio.go @@ -0,0 +1,442 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create an Google AI Studio inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `googleaistudio` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putgoogleaistudio + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/googleaiservicetype" +) + +const ( + tasktypeMask = iota + 1 + + googleaistudioinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutGoogleaistudio struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + googleaistudioinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutGoogleaistudio type alias for index. +type NewPutGoogleaistudio func(tasktype, googleaistudioinferenceid string) *PutGoogleaistudio + +// NewPutGoogleaistudioFunc returns a new instance of PutGoogleaistudio with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutGoogleaistudioFunc(tp elastictransport.Interface) NewPutGoogleaistudio { + return func(tasktype, googleaistudioinferenceid string) *PutGoogleaistudio { + n := New(tp) + + n._tasktype(tasktype) + + n._googleaistudioinferenceid(googleaistudioinferenceid) + + return n + } +} + +// Create an Google AI Studio inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `googleaistudio` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-googleaistudio +func New(tp elastictransport.Interface) *PutGoogleaistudio { + r := &PutGoogleaistudio{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutGoogleaistudio) Raw(raw io.Reader) *PutGoogleaistudio { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutGoogleaistudio) Request(req *Request) *PutGoogleaistudio { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutGoogleaistudio) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutGoogleaistudio: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|googleaistudioinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "googleaistudioinferenceid", r.googleaistudioinferenceid) + } + path.WriteString(r.googleaistudioinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutGoogleaistudio) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_googleaistudio") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_googleaistudio") + if reader := instrument.RecordRequestBody(ctx, "inference.put_googleaistudio", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_googleaistudio") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutGoogleaistudio query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putgoogleaistudio.Response +func (r PutGoogleaistudio) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_googleaistudio") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutGoogleaistudio headers map. +func (r *PutGoogleaistudio) Header(key, value string) *PutGoogleaistudio { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutGoogleaistudio) _tasktype(tasktype string) *PutGoogleaistudio { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// GoogleaistudioInferenceId The unique identifier of the inference endpoint. +// API Name: googleaistudioinferenceid +func (r *PutGoogleaistudio) _googleaistudioinferenceid(googleaistudioinferenceid string) *PutGoogleaistudio { + r.paramSet |= googleaistudioinferenceidMask + r.googleaistudioinferenceid = googleaistudioinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutGoogleaistudio) ErrorTrace(errortrace bool) *PutGoogleaistudio { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutGoogleaistudio) FilterPath(filterpaths ...string) *PutGoogleaistudio { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutGoogleaistudio) Human(human bool) *PutGoogleaistudio { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutGoogleaistudio) Pretty(pretty bool) *PutGoogleaistudio { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutGoogleaistudio) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutGoogleaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `googleaistudio`. +// API name: service +func (r *PutGoogleaistudio) Service(service googleaiservicetype.GoogleAiServiceType) *PutGoogleaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `googleaistudio` service. +// API name: service_settings +func (r *PutGoogleaistudio) ServiceSettings(servicesettings types.GoogleAiStudioServiceSettingsVariant) *PutGoogleaistudio { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.GoogleAiStudioServiceSettingsCaster() + + return r +} diff --git a/typedapi/inference/putgoogleaistudio/request.go b/typedapi/inference/putgoogleaistudio/request.go new file mode 100644 index 0000000000..e85b64d63c --- /dev/null +++ b/typedapi/inference/putgoogleaistudio/request.go @@ -0,0 +1,63 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putgoogleaistudio + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/googleaiservicetype" +) + +// Request holds the request body struct for the package putgoogleaistudio +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_googleaistudio/PutGoogleAiStudioRequest.ts#L29-L77 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `googleaistudio`. + Service googleaiservicetype.GoogleAiServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `googleaistudio` service. + ServiceSettings types.GoogleAiStudioServiceSettings `json:"service_settings"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putgoogleaistudio request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putgoogleaistudio/response.go b/typedapi/inference/putgoogleaistudio/response.go new file mode 100644 index 0000000000..45b1473825 --- /dev/null +++ b/typedapi/inference/putgoogleaistudio/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putgoogleaistudio + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putgoogleaistudio +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_googleaistudio/PutGoogleAiStudioResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putgooglevertexai/put_googlevertexai.go b/typedapi/inference/putgooglevertexai/put_googlevertexai.go new file mode 100644 index 0000000000..f2425988f0 --- /dev/null +++ b/typedapi/inference/putgooglevertexai/put_googlevertexai.go @@ -0,0 +1,456 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create a Google Vertex AI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `googlevertexai` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putgooglevertexai + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/googlevertexaiservicetype" +) + +const ( + tasktypeMask = iota + 1 + + googlevertexaiinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutGooglevertexai struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + googlevertexaiinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutGooglevertexai type alias for index. +type NewPutGooglevertexai func(tasktype, googlevertexaiinferenceid string) *PutGooglevertexai + +// NewPutGooglevertexaiFunc returns a new instance of PutGooglevertexai with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutGooglevertexaiFunc(tp elastictransport.Interface) NewPutGooglevertexai { + return func(tasktype, googlevertexaiinferenceid string) *PutGooglevertexai { + n := New(tp) + + n._tasktype(tasktype) + + n._googlevertexaiinferenceid(googlevertexaiinferenceid) + + return n + } +} + +// Create a Google Vertex AI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `googlevertexai` service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-googlevertexai +func New(tp elastictransport.Interface) *PutGooglevertexai { + r := &PutGooglevertexai{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutGooglevertexai) Raw(raw io.Reader) *PutGooglevertexai { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutGooglevertexai) Request(req *Request) *PutGooglevertexai { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutGooglevertexai) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutGooglevertexai: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|googlevertexaiinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "googlevertexaiinferenceid", r.googlevertexaiinferenceid) + } + path.WriteString(r.googlevertexaiinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutGooglevertexai) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_googlevertexai") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_googlevertexai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_googlevertexai", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_googlevertexai") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutGooglevertexai query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putgooglevertexai.Response +func (r PutGooglevertexai) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_googlevertexai") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutGooglevertexai headers map. +func (r *PutGooglevertexai) Header(key, value string) *PutGooglevertexai { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutGooglevertexai) _tasktype(tasktype string) *PutGooglevertexai { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// GooglevertexaiInferenceId The unique identifier of the inference endpoint. +// API Name: googlevertexaiinferenceid +func (r *PutGooglevertexai) _googlevertexaiinferenceid(googlevertexaiinferenceid string) *PutGooglevertexai { + r.paramSet |= googlevertexaiinferenceidMask + r.googlevertexaiinferenceid = googlevertexaiinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutGooglevertexai) ErrorTrace(errortrace bool) *PutGooglevertexai { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutGooglevertexai) FilterPath(filterpaths ...string) *PutGooglevertexai { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutGooglevertexai) Human(human bool) *PutGooglevertexai { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutGooglevertexai) Pretty(pretty bool) *PutGooglevertexai { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutGooglevertexai) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutGooglevertexai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `googlevertexai`. +// API name: service +func (r *PutGooglevertexai) Service(service googlevertexaiservicetype.GoogleVertexAIServiceType) *PutGooglevertexai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `googlevertexai` service. +// API name: service_settings +func (r *PutGooglevertexai) ServiceSettings(servicesettings types.GoogleVertexAIServiceSettingsVariant) *PutGooglevertexai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.GoogleVertexAIServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutGooglevertexai) TaskSettings(tasksettings types.GoogleVertexAITaskSettingsVariant) *PutGooglevertexai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.GoogleVertexAITaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putgooglevertexai/request.go b/typedapi/inference/putgooglevertexai/request.go new file mode 100644 index 0000000000..7b44faa51c --- /dev/null +++ b/typedapi/inference/putgooglevertexai/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putgooglevertexai + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/googlevertexaiservicetype" +) + +// Request holds the request body struct for the package putgooglevertexai +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_googlevertexai/PutGoogleVertexAiRequest.ts#L30-L83 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `googlevertexai`. + Service googlevertexaiservicetype.GoogleVertexAIServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `googlevertexai` service. + ServiceSettings types.GoogleVertexAIServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.GoogleVertexAITaskSettings `json:"task_settings,omitempty"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putgooglevertexai request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putgooglevertexai/response.go b/typedapi/inference/putgooglevertexai/response.go new file mode 100644 index 0000000000..3e01650707 --- /dev/null +++ b/typedapi/inference/putgooglevertexai/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putgooglevertexai + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putgooglevertexai +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_googlevertexai/PutGoogleVertexAiResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/puthuggingface/put_hugging_face.go b/typedapi/inference/puthuggingface/put_hugging_face.go new file mode 100644 index 0000000000..3a59b6f0f2 --- /dev/null +++ b/typedapi/inference/puthuggingface/put_hugging_face.go @@ -0,0 +1,478 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create a Hugging Face inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `hugging_face` service. +// +// You must first create an inference endpoint on the Hugging Face endpoint page +// to get an endpoint URL. +// Select the model you want to use on the new endpoint creation page (for +// example `intfloat/e5-small-v2`), then select the sentence embeddings task +// under the advanced configuration section. +// Create the endpoint and copy the URL after the endpoint initialization has +// been finished. +// +// The following models are recommended for the Hugging Face service: +// +// * `all-MiniLM-L6-v2` +// * `all-MiniLM-L12-v2` +// * `all-mpnet-base-v2` +// * `e5-base-v2` +// * `e5-small-v2` +// * `multilingual-e5-base` +// * `multilingual-e5-small` +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package puthuggingface + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/huggingfaceservicetype" +) + +const ( + tasktypeMask = iota + 1 + + huggingfaceinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutHuggingFace struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + huggingfaceinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutHuggingFace type alias for index. +type NewPutHuggingFace func(tasktype, huggingfaceinferenceid string) *PutHuggingFace + +// NewPutHuggingFaceFunc returns a new instance of PutHuggingFace with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutHuggingFaceFunc(tp elastictransport.Interface) NewPutHuggingFace { + return func(tasktype, huggingfaceinferenceid string) *PutHuggingFace { + n := New(tp) + + n._tasktype(tasktype) + + n._huggingfaceinferenceid(huggingfaceinferenceid) + + return n + } +} + +// Create a Hugging Face inference endpoint. +// +// Create an inference endpoint to perform an inference task with the +// `hugging_face` service. +// +// You must first create an inference endpoint on the Hugging Face endpoint page +// to get an endpoint URL. +// Select the model you want to use on the new endpoint creation page (for +// example `intfloat/e5-small-v2`), then select the sentence embeddings task +// under the advanced configuration section. +// Create the endpoint and copy the URL after the endpoint initialization has +// been finished. +// +// The following models are recommended for the Hugging Face service: +// +// * `all-MiniLM-L6-v2` +// * `all-MiniLM-L12-v2` +// * `all-mpnet-base-v2` +// * `e5-base-v2` +// * `e5-small-v2` +// * `multilingual-e5-base` +// * `multilingual-e5-small` +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-hugging-face +func New(tp elastictransport.Interface) *PutHuggingFace { + r := &PutHuggingFace{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutHuggingFace) Raw(raw io.Reader) *PutHuggingFace { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutHuggingFace) Request(req *Request) *PutHuggingFace { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutHuggingFace) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutHuggingFace: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|huggingfaceinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "huggingfaceinferenceid", r.huggingfaceinferenceid) + } + path.WriteString(r.huggingfaceinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutHuggingFace) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_hugging_face") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_hugging_face") + if reader := instrument.RecordRequestBody(ctx, "inference.put_hugging_face", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_hugging_face") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutHuggingFace query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a puthuggingface.Response +func (r PutHuggingFace) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_hugging_face") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutHuggingFace headers map. +func (r *PutHuggingFace) Header(key, value string) *PutHuggingFace { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutHuggingFace) _tasktype(tasktype string) *PutHuggingFace { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// HuggingfaceInferenceId The unique identifier of the inference endpoint. +// API Name: huggingfaceinferenceid +func (r *PutHuggingFace) _huggingfaceinferenceid(huggingfaceinferenceid string) *PutHuggingFace { + r.paramSet |= huggingfaceinferenceidMask + r.huggingfaceinferenceid = huggingfaceinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutHuggingFace) ErrorTrace(errortrace bool) *PutHuggingFace { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutHuggingFace) FilterPath(filterpaths ...string) *PutHuggingFace { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutHuggingFace) Human(human bool) *PutHuggingFace { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutHuggingFace) Pretty(pretty bool) *PutHuggingFace { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutHuggingFace) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutHuggingFace { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `hugging_face`. +// API name: service +func (r *PutHuggingFace) Service(service huggingfaceservicetype.HuggingFaceServiceType) *PutHuggingFace { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `hugging_face` service. +// API name: service_settings +func (r *PutHuggingFace) ServiceSettings(servicesettings types.HuggingFaceServiceSettingsVariant) *PutHuggingFace { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.HuggingFaceServiceSettingsCaster() + + return r +} diff --git a/typedapi/inference/puthuggingface/request.go b/typedapi/inference/puthuggingface/request.go new file mode 100644 index 0000000000..2b604d8d23 --- /dev/null +++ b/typedapi/inference/puthuggingface/request.go @@ -0,0 +1,63 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package puthuggingface + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/huggingfaceservicetype" +) + +// Request holds the request body struct for the package puthuggingface +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_hugging_face/PutHuggingFaceRequest.ts#L29-L91 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `hugging_face`. + Service huggingfaceservicetype.HuggingFaceServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `hugging_face` service. + ServiceSettings types.HuggingFaceServiceSettings `json:"service_settings"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Puthuggingface request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/puthuggingface/response.go b/typedapi/inference/puthuggingface/response.go new file mode 100644 index 0000000000..e420335e66 --- /dev/null +++ b/typedapi/inference/puthuggingface/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package puthuggingface + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package puthuggingface +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_hugging_face/PutHuggingFaceResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putjinaai/put_jinaai.go b/typedapi/inference/putjinaai/put_jinaai.go new file mode 100644 index 0000000000..bf8f992a83 --- /dev/null +++ b/typedapi/inference/putjinaai/put_jinaai.go @@ -0,0 +1,464 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create an JinaAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `jinaai` +// service. +// +// To review the available `rerank` models, refer to . +// To review the available `text_embedding` models, refer to the +// . +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putjinaai + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/jinaaiservicetype" +) + +const ( + tasktypeMask = iota + 1 + + jinaaiinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutJinaai struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + jinaaiinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutJinaai type alias for index. +type NewPutJinaai func(tasktype, jinaaiinferenceid string) *PutJinaai + +// NewPutJinaaiFunc returns a new instance of PutJinaai with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutJinaaiFunc(tp elastictransport.Interface) NewPutJinaai { + return func(tasktype, jinaaiinferenceid string) *PutJinaai { + n := New(tp) + + n._tasktype(tasktype) + + n._jinaaiinferenceid(jinaaiinferenceid) + + return n + } +} + +// Create an JinaAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `jinaai` +// service. +// +// To review the available `rerank` models, refer to . +// To review the available `text_embedding` models, refer to the +// . +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-jinaai +func New(tp elastictransport.Interface) *PutJinaai { + r := &PutJinaai{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutJinaai) Raw(raw io.Reader) *PutJinaai { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutJinaai) Request(req *Request) *PutJinaai { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutJinaai) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutJinaai: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|jinaaiinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "jinaaiinferenceid", r.jinaaiinferenceid) + } + path.WriteString(r.jinaaiinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutJinaai) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_jinaai") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_jinaai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_jinaai", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_jinaai") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutJinaai query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putjinaai.Response +func (r PutJinaai) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_jinaai") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutJinaai headers map. +func (r *PutJinaai) Header(key, value string) *PutJinaai { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutJinaai) _tasktype(tasktype string) *PutJinaai { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// JinaaiInferenceId The unique identifier of the inference endpoint. +// API Name: jinaaiinferenceid +func (r *PutJinaai) _jinaaiinferenceid(jinaaiinferenceid string) *PutJinaai { + r.paramSet |= jinaaiinferenceidMask + r.jinaaiinferenceid = jinaaiinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutJinaai) ErrorTrace(errortrace bool) *PutJinaai { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutJinaai) FilterPath(filterpaths ...string) *PutJinaai { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutJinaai) Human(human bool) *PutJinaai { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutJinaai) Pretty(pretty bool) *PutJinaai { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutJinaai) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutJinaai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `jinaai`. +// API name: service +func (r *PutJinaai) Service(service jinaaiservicetype.JinaAIServiceType) *PutJinaai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `jinaai` service. +// API name: service_settings +func (r *PutJinaai) ServiceSettings(servicesettings types.JinaAIServiceSettingsVariant) *PutJinaai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.JinaAIServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutJinaai) TaskSettings(tasksettings types.JinaAITaskSettingsVariant) *PutJinaai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.JinaAITaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putjinaai/request.go b/typedapi/inference/putjinaai/request.go new file mode 100644 index 0000000000..1cc8d373d1 --- /dev/null +++ b/typedapi/inference/putjinaai/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putjinaai + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/jinaaiservicetype" +) + +// Request holds the request body struct for the package putjinaai +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_jinaai/PutJinaAiRequest.ts#L30-L86 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `jinaai`. + Service jinaaiservicetype.JinaAIServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `jinaai` service. + ServiceSettings types.JinaAIServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.JinaAITaskSettings `json:"task_settings,omitempty"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putjinaai request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putjinaai/response.go b/typedapi/inference/putjinaai/response.go new file mode 100644 index 0000000000..0aeb7a038d --- /dev/null +++ b/typedapi/inference/putjinaai/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putjinaai + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putjinaai +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_jinaai/PutJinaAiResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putmistral/put_mistral.go b/typedapi/inference/putmistral/put_mistral.go new file mode 100644 index 0000000000..18e64fc2a7 --- /dev/null +++ b/typedapi/inference/putmistral/put_mistral.go @@ -0,0 +1,443 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create a Mistral inference endpoint. +// +// Creates an inference endpoint to perform an inference task with the `mistral` +// service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putmistral + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/mistralservicetype" +) + +const ( + tasktypeMask = iota + 1 + + mistralinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutMistral struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + mistralinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutMistral type alias for index. +type NewPutMistral func(tasktype, mistralinferenceid string) *PutMistral + +// NewPutMistralFunc returns a new instance of PutMistral with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutMistralFunc(tp elastictransport.Interface) NewPutMistral { + return func(tasktype, mistralinferenceid string) *PutMistral { + n := New(tp) + + n._tasktype(tasktype) + + n._mistralinferenceid(mistralinferenceid) + + return n + } +} + +// Create a Mistral inference endpoint. +// +// Creates an inference endpoint to perform an inference task with the `mistral` +// service. +// +// When you create an inference endpoint, the associated machine learning model +// is automatically deployed if it is not already running. +// After creating the endpoint, wait for the model deployment to complete before +// using it. +// To verify the deployment status, use the get trained model statistics API. +// Look for `"state": "fully_allocated"` in the response and ensure that the +// `"allocation_count"` matches the `"target_allocation_count"`. +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-mistral +func New(tp elastictransport.Interface) *PutMistral { + r := &PutMistral{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutMistral) Raw(raw io.Reader) *PutMistral { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutMistral) Request(req *Request) *PutMistral { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutMistral) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutMistral: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|mistralinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "mistralinferenceid", r.mistralinferenceid) + } + path.WriteString(r.mistralinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutMistral) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_mistral") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_mistral") + if reader := instrument.RecordRequestBody(ctx, "inference.put_mistral", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_mistral") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutMistral query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putmistral.Response +func (r PutMistral) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_mistral") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutMistral headers map. +func (r *PutMistral) Header(key, value string) *PutMistral { + r.headers.Set(key, value) + + return r +} + +// TaskType The task type. +// The only valid task type for the model to perform is `text_embedding`. +// API Name: tasktype +func (r *PutMistral) _tasktype(tasktype string) *PutMistral { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// MistralInferenceId The unique identifier of the inference endpoint. +// API Name: mistralinferenceid +func (r *PutMistral) _mistralinferenceid(mistralinferenceid string) *PutMistral { + r.paramSet |= mistralinferenceidMask + r.mistralinferenceid = mistralinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutMistral) ErrorTrace(errortrace bool) *PutMistral { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutMistral) FilterPath(filterpaths ...string) *PutMistral { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutMistral) Human(human bool) *PutMistral { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutMistral) Pretty(pretty bool) *PutMistral { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutMistral) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutMistral { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `mistral`. +// API name: service +func (r *PutMistral) Service(service mistralservicetype.MistralServiceType) *PutMistral { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `mistral` service. +// API name: service_settings +func (r *PutMistral) ServiceSettings(servicesettings types.MistralServiceSettingsVariant) *PutMistral { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.MistralServiceSettingsCaster() + + return r +} diff --git a/typedapi/inference/putmistral/request.go b/typedapi/inference/putmistral/request.go new file mode 100644 index 0000000000..3ed4b9377d --- /dev/null +++ b/typedapi/inference/putmistral/request.go @@ -0,0 +1,63 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putmistral + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/mistralservicetype" +) + +// Request holds the request body struct for the package putmistral +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_mistral/PutMistralRequest.ts#L29-L78 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `mistral`. + Service mistralservicetype.MistralServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `mistral` service. + ServiceSettings types.MistralServiceSettings `json:"service_settings"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putmistral request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putmistral/response.go b/typedapi/inference/putmistral/response.go new file mode 100644 index 0000000000..0cadfb298a --- /dev/null +++ b/typedapi/inference/putmistral/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putmistral + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putmistral +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_mistral/PutMistralResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putopenai/put_openai.go b/typedapi/inference/putopenai/put_openai.go index aecb2160bc..220a94295d 100644 --- a/typedapi/inference/putopenai/put_openai.go +++ b/typedapi/inference/putopenai/put_openai.go @@ -16,12 +16,12 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create an OpenAI inference endpoint. // // Create an inference endpoint to perform an inference task with the `openai` -// service. +// service or `openai` compatible APIs. // // When you create an inference endpoint, the associated machine learning model // is automatically deployed if it is not already running. @@ -47,8 +47,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/servicetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/openaiservicetype" ) const ( @@ -103,7 +103,7 @@ func NewPutOpenaiFunc(tp elastictransport.Interface) NewPutOpenai { // Create an OpenAI inference endpoint. // // Create an inference endpoint to perform an inference task with the `openai` -// service. +// service or `openai` compatible APIs. // // When you create an inference endpoint, the associated machine learning model // is automatically deployed if it is not already running. @@ -115,7 +115,7 @@ func NewPutOpenaiFunc(tp elastictransport.Interface) NewPutOpenai { // Avoid creating multiple endpoints for the same model unless required, as each // endpoint consumes significant resources. // -// https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-openai.html +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-openai func New(tp elastictransport.Interface) *PutOpenai { r := &PutOpenai{ transport: tp, @@ -222,12 +222,12 @@ func (r *PutOpenai) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -420,7 +420,7 @@ func (r *PutOpenai) ChunkingSettings(chunkingsettings types.InferenceChunkingSet // The type of service supported for the specified task type. In this case, // `openai`. // API name: service -func (r *PutOpenai) Service(service servicetype.ServiceType) *PutOpenai { +func (r *PutOpenai) Service(service openaiservicetype.OpenAIServiceType) *PutOpenai { // Initialize the request if it is not already initialized if r.req == nil { r.req = NewRequest() diff --git a/typedapi/inference/putopenai/request.go b/typedapi/inference/putopenai/request.go index 16c3b68dbb..a949be3f09 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putopenai @@ -24,20 +24,20 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/servicetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/openaiservicetype" ) // Request holds the request body struct for the package putopenai // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put_openai/PutOpenAiRequest.ts#L28-L82 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_openai/PutOpenAiRequest.ts#L30-L84 type Request struct { // ChunkingSettings The chunking configuration object. ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` // Service The type of service supported for the specified task type. In this case, // `openai`. - Service servicetype.ServiceType `json:"service"` + Service openaiservicetype.OpenAIServiceType `json:"service"` // ServiceSettings Settings used to install the inference model. These settings are specific to // the `openai` service. ServiceSettings types.OpenAIServiceSettings `json:"service_settings"` diff --git a/typedapi/inference/putopenai/response.go b/typedapi/inference/putopenai/response.go index 31f690a637..895702db01 100644 --- a/typedapi/inference/putopenai/response.go +++ b/typedapi/inference/putopenai/response.go @@ -16,20 +16,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putopenai import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" ) // Response holds the response body struct for the package putopenai // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put_openai/PutOpenAiResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_openai/PutOpenAiResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object diff --git a/typedapi/inference/putvoyageai/put_voyageai.go b/typedapi/inference/putvoyageai/put_voyageai.go new file mode 100644 index 0000000000..7cbd90a8b1 --- /dev/null +++ b/typedapi/inference/putvoyageai/put_voyageai.go @@ -0,0 +1,442 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Create a VoyageAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `voyageai` +// service. +// +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +package putvoyageai + +import ( + gobytes "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + "github.com/elastic/elastic-transport-go/v8/elastictransport" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/voyageaiservicetype" +) + +const ( + tasktypeMask = iota + 1 + + voyageaiinferenceidMask +) + +// ErrBuildPath is returned in case of missing parameters within the build of the request. +var ErrBuildPath = errors.New("cannot build path, check for missing path parameters") + +type PutVoyageai struct { + transport elastictransport.Interface + + headers http.Header + values url.Values + path url.URL + + raw io.Reader + + req *Request + deferred []func(request *Request) error + buf *gobytes.Buffer + + paramSet int + + tasktype string + voyageaiinferenceid string + + spanStarted bool + + instrument elastictransport.Instrumentation +} + +// NewPutVoyageai type alias for index. +type NewPutVoyageai func(tasktype, voyageaiinferenceid string) *PutVoyageai + +// NewPutVoyageaiFunc returns a new instance of PutVoyageai with the provided transport. +// Used in the index of the library this allows to retrieve every apis in once place. +func NewPutVoyageaiFunc(tp elastictransport.Interface) NewPutVoyageai { + return func(tasktype, voyageaiinferenceid string) *PutVoyageai { + n := New(tp) + + n._tasktype(tasktype) + + n._voyageaiinferenceid(voyageaiinferenceid) + + return n + } +} + +// Create a VoyageAI inference endpoint. +// +// Create an inference endpoint to perform an inference task with the `voyageai` +// service. +// +// Avoid creating multiple endpoints for the same model unless required, as each +// endpoint consumes significant resources. +// +// https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-voyageai +func New(tp elastictransport.Interface) *PutVoyageai { + r := &PutVoyageai{ + transport: tp, + values: make(url.Values), + headers: make(http.Header), + + buf: gobytes.NewBuffer(nil), + } + + if instrumented, ok := r.transport.(elastictransport.Instrumented); ok { + if instrument := instrumented.InstrumentationEnabled(); instrument != nil { + r.instrument = instrument + } + } + + return r +} + +// Raw takes a json payload as input which is then passed to the http.Request +// If specified Raw takes precedence on Request method. +func (r *PutVoyageai) Raw(raw io.Reader) *PutVoyageai { + r.raw = raw + + return r +} + +// Request allows to set the request property with the appropriate payload. +func (r *PutVoyageai) Request(req *Request) *PutVoyageai { + r.req = req + + return r +} + +// HttpRequest returns the http.Request object built from the +// given parameters. +func (r *PutVoyageai) HttpRequest(ctx context.Context) (*http.Request, error) { + var path strings.Builder + var method string + var req *http.Request + + var err error + + if len(r.deferred) > 0 { + for _, f := range r.deferred { + deferredErr := f(r.req) + if deferredErr != nil { + return nil, deferredErr + } + } + } + + if r.raw == nil && r.req != nil { + + data, err := json.Marshal(r.req) + + if err != nil { + return nil, fmt.Errorf("could not serialise request for PutVoyageai: %w", err) + } + + r.buf.Write(data) + + } + + if r.buf.Len() > 0 { + r.raw = r.buf + } + + r.path.Scheme = "http" + + switch { + case r.paramSet == tasktypeMask|voyageaiinferenceidMask: + path.WriteString("/") + path.WriteString("_inference") + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "tasktype", r.tasktype) + } + path.WriteString(r.tasktype) + path.WriteString("/") + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordPathPart(ctx, "voyageaiinferenceid", r.voyageaiinferenceid) + } + path.WriteString(r.voyageaiinferenceid) + + method = http.MethodPut + } + + r.path.Path = path.String() + r.path.RawQuery = r.values.Encode() + + if r.path.Path == "" { + return nil, ErrBuildPath + } + + if ctx != nil { + req, err = http.NewRequestWithContext(ctx, method, r.path.String(), r.raw) + } else { + req, err = http.NewRequest(method, r.path.String(), r.raw) + } + + req.Header = r.headers.Clone() + + if req.Header.Get("Content-Type") == "" { + if r.raw != nil { + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") + } + } + + if req.Header.Get("Accept") == "" { + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") + } + + if err != nil { + return req, fmt.Errorf("could not build http.Request: %w", err) + } + + return req, nil +} + +// Perform runs the http.Request through the provided transport and returns an http.Response. +func (r PutVoyageai) Perform(providedCtx context.Context) (*http.Response, error) { + var ctx context.Context + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + if r.spanStarted == false { + ctx := instrument.Start(providedCtx, "inference.put_voyageai") + defer instrument.Close(ctx) + } + } + if ctx == nil { + ctx = providedCtx + } + + req, err := r.HttpRequest(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.BeforeRequest(req, "inference.put_voyageai") + if reader := instrument.RecordRequestBody(ctx, "inference.put_voyageai", r.raw); reader != nil { + req.Body = reader + } + } + res, err := r.transport.Perform(req) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.AfterRequest(req, "elasticsearch", "inference.put_voyageai") + } + if err != nil { + localErr := fmt.Errorf("an error happened during the PutVoyageai query execution: %w", err) + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, localErr) + } + return nil, localErr + } + + return res, nil +} + +// Do runs the request through the transport, handle the response and returns a putvoyageai.Response +func (r PutVoyageai) Do(providedCtx context.Context) (*Response, error) { + var ctx context.Context + r.spanStarted = true + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + ctx = instrument.Start(providedCtx, "inference.put_voyageai") + defer instrument.Close(ctx) + } + if ctx == nil { + ctx = providedCtx + } + + response := NewResponse() + + res, err := r.Perform(ctx) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + defer res.Body.Close() + + if res.StatusCode < 299 { + err = json.NewDecoder(res.Body).Decode(response) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + return response, nil + } + + errorResponse := types.NewElasticsearchError() + err = json.NewDecoder(res.Body).Decode(errorResponse) + if err != nil { + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, err) + } + return nil, err + } + + if errorResponse.Status == 0 { + errorResponse.Status = res.StatusCode + } + + if instrument, ok := r.instrument.(elastictransport.Instrumentation); ok { + instrument.RecordError(ctx, errorResponse) + } + return nil, errorResponse +} + +// Header set a key, value pair in the PutVoyageai headers map. +func (r *PutVoyageai) Header(key, value string) *PutVoyageai { + r.headers.Set(key, value) + + return r +} + +// TaskType The type of the inference task that the model will perform. +// API Name: tasktype +func (r *PutVoyageai) _tasktype(tasktype string) *PutVoyageai { + r.paramSet |= tasktypeMask + r.tasktype = tasktype + + return r +} + +// VoyageaiInferenceId The unique identifier of the inference endpoint. +// API Name: voyageaiinferenceid +func (r *PutVoyageai) _voyageaiinferenceid(voyageaiinferenceid string) *PutVoyageai { + r.paramSet |= voyageaiinferenceidMask + r.voyageaiinferenceid = voyageaiinferenceid + + return r +} + +// ErrorTrace When set to `true` Elasticsearch will include the full stack trace of errors +// when they occur. +// API name: error_trace +func (r *PutVoyageai) ErrorTrace(errortrace bool) *PutVoyageai { + r.values.Set("error_trace", strconv.FormatBool(errortrace)) + + return r +} + +// FilterPath Comma-separated list of filters in dot notation which reduce the response +// returned by Elasticsearch. +// API name: filter_path +func (r *PutVoyageai) FilterPath(filterpaths ...string) *PutVoyageai { + tmp := []string{} + for _, item := range filterpaths { + tmp = append(tmp, fmt.Sprintf("%v", item)) + } + r.values.Set("filter_path", strings.Join(tmp, ",")) + + return r +} + +// Human When set to `true` will return statistics in a format suitable for humans. +// For example `"exists_time": "1h"` for humans and +// `"eixsts_time_in_millis": 3600000` for computers. When disabled the human +// readable values will be omitted. This makes sense for responses being +// consumed +// only by machines. +// API name: human +func (r *PutVoyageai) Human(human bool) *PutVoyageai { + r.values.Set("human", strconv.FormatBool(human)) + + return r +} + +// Pretty If set to `true` the returned JSON will be "pretty-formatted". Only use +// this option for debugging only. +// API name: pretty +func (r *PutVoyageai) Pretty(pretty bool) *PutVoyageai { + r.values.Set("pretty", strconv.FormatBool(pretty)) + + return r +} + +// The chunking configuration object. +// API name: chunking_settings +func (r *PutVoyageai) ChunkingSettings(chunkingsettings types.InferenceChunkingSettingsVariant) *PutVoyageai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ChunkingSettings = chunkingsettings.InferenceChunkingSettingsCaster() + + return r +} + +// The type of service supported for the specified task type. In this case, +// `voyageai`. +// API name: service +func (r *PutVoyageai) Service(service voyageaiservicetype.VoyageAIServiceType) *PutVoyageai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + r.req.Service = service + return r +} + +// Settings used to install the inference model. These settings are specific to +// the `voyageai` service. +// API name: service_settings +func (r *PutVoyageai) ServiceSettings(servicesettings types.VoyageAIServiceSettingsVariant) *PutVoyageai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.ServiceSettings = *servicesettings.VoyageAIServiceSettingsCaster() + + return r +} + +// Settings to configure the inference task. +// These settings are specific to the task type you specified. +// API name: task_settings +func (r *PutVoyageai) TaskSettings(tasksettings types.VoyageAITaskSettingsVariant) *PutVoyageai { + // Initialize the request if it is not already initialized + if r.req == nil { + r.req = NewRequest() + } + + r.req.TaskSettings = tasksettings.VoyageAITaskSettingsCaster() + + return r +} diff --git a/typedapi/inference/putvoyageai/request.go b/typedapi/inference/putvoyageai/request.go new file mode 100644 index 0000000000..ac5a13dcae --- /dev/null +++ b/typedapi/inference/putvoyageai/request.go @@ -0,0 +1,66 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putvoyageai + +import ( + "encoding/json" + "fmt" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/voyageaiservicetype" +) + +// Request holds the request body struct for the package putvoyageai +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_voyageai/PutVoyageAIRequest.ts#L30-L79 +type Request struct { + + // ChunkingSettings The chunking configuration object. + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // Service The type of service supported for the specified task type. In this case, + // `voyageai`. + Service voyageaiservicetype.VoyageAIServiceType `json:"service"` + // ServiceSettings Settings used to install the inference model. These settings are specific to + // the `voyageai` service. + ServiceSettings types.VoyageAIServiceSettings `json:"service_settings"` + // TaskSettings Settings to configure the inference task. + // These settings are specific to the task type you specified. + TaskSettings *types.VoyageAITaskSettings `json:"task_settings,omitempty"` +} + +// NewRequest returns a Request +func NewRequest() *Request { + r := &Request{} + + return r +} + +// FromJSON allows to load an arbitrary json into the request structure +func (r *Request) FromJSON(data string) (*Request, error) { + var req Request + err := json.Unmarshal([]byte(data), &req) + + if err != nil { + return nil, fmt.Errorf("could not deserialise json into Putvoyageai request: %w", err) + } + + return &req, nil +} diff --git a/typedapi/inference/putvoyageai/response.go b/typedapi/inference/putvoyageai/response.go new file mode 100644 index 0000000000..5ce480f409 --- /dev/null +++ b/typedapi/inference/putvoyageai/response.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package putvoyageai + +import ( + "encoding/json" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" +) + +// Response holds the response body struct for the package putvoyageai +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_voyageai/PutVoyageAIResponse.ts#L22-L25 +type Response struct { + + // ChunkingSettings Chunking configuration object + ChunkingSettings *types.InferenceChunkingSettings `json:"chunking_settings,omitempty"` + // InferenceId The inference Id + InferenceId string `json:"inference_id"` + // Service The service type + Service string `json:"service"` + // ServiceSettings Settings specific to the service + ServiceSettings json.RawMessage `json:"service_settings"` + // TaskSettings Task settings specific to the service and task type + TaskSettings json.RawMessage `json:"task_settings,omitempty"` + // TaskType The task type + TaskType tasktype.TaskType `json:"task_type"` +} + +// NewResponse returns a Response +func NewResponse() *Response { + r := &Response{} + return r +} diff --git a/typedapi/inference/putwatsonx/put_watsonx.go b/typedapi/inference/putwatsonx/put_watsonx.go index 9cc73ded35..b046d0e281 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a Watsonx inference endpoint. // @@ -51,8 +51,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/servicetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/watsonxservicetype" ) const ( @@ -230,12 +230,12 @@ func (r *PutWatsonx) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -414,7 +414,7 @@ func (r *PutWatsonx) Pretty(pretty bool) *PutWatsonx { // The type of service supported for the specified task type. In this case, // `watsonxai`. // API name: service -func (r *PutWatsonx) Service(service servicetype.ServiceType) *PutWatsonx { +func (r *PutWatsonx) Service(service watsonxservicetype.WatsonxServiceType) *PutWatsonx { // Initialize the request if it is not already initialized if r.req == nil { r.req = NewRequest() diff --git a/typedapi/inference/putwatsonx/request.go b/typedapi/inference/putwatsonx/request.go index e174266094..5e1ef734f5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putwatsonx @@ -24,18 +24,18 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/servicetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/watsonxservicetype" ) // Request holds the request body struct for the package putwatsonx // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put_watsonx/PutWatsonxRequest.ts#L24-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_watsonx/PutWatsonxRequest.ts#L28-L74 type Request struct { // Service The type of service supported for the specified task type. In this case, // `watsonxai`. - Service servicetype.ServiceType `json:"service"` + Service watsonxservicetype.WatsonxServiceType `json:"service"` // ServiceSettings Settings used to install the inference model. These settings are specific to // the `watsonxai` service. ServiceSettings types.WatsonxServiceSettings `json:"service_settings"` diff --git a/typedapi/inference/putwatsonx/response.go b/typedapi/inference/putwatsonx/response.go index 319e5b318a..ea46103eac 100644 --- a/typedapi/inference/putwatsonx/response.go +++ b/typedapi/inference/putwatsonx/response.go @@ -16,20 +16,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putwatsonx import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" ) // Response holds the response body struct for the package putwatsonx // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put_watsonx/PutWatsonxResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/put_watsonx/PutWatsonxResponse.ts#L22-L25 type Response struct { // ChunkingSettings Chunking configuration object diff --git a/typedapi/inference/rerank/request.go b/typedapi/inference/rerank/request.go index a3afe8f1d3..07b0fe4094 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package rerank @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package rerank // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/rerank/RerankRequest.ts#L25-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 08d0894553..f787269c38 100644 --- a/typedapi/inference/rerank/rerank.go +++ b/typedapi/inference/rerank/rerank.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Perform rereanking inference on the service package rerank @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -186,12 +186,12 @@ func (r *Rerank) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/inference/rerank/response.go b/typedapi/inference/rerank/response.go index ca3f76675b..e7674f6788 100644 --- a/typedapi/inference/rerank/response.go +++ b/typedapi/inference/rerank/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package rerank import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package rerank // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/rerank/RerankResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 22ea5c745b..625e263141 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package sparseembedding @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package sparseembedding // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/sparse_embedding/SparseEmbeddingRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1e5684ad61..eda69fe2d2 100644 --- a/typedapi/inference/sparseembedding/response.go +++ b/typedapi/inference/sparseembedding/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package sparseembedding import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package sparseembedding // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/sparse_embedding/SparseEmbeddingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 01c7326d54..9c7abfb317 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Perform sparse embedding inference on the service package sparseembedding @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -186,12 +186,12 @@ func (r *SparseEmbedding) HttpRequest(ctx context.Context) (*http.Request, error if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/inference/streamcompletion/request.go b/typedapi/inference/streamcompletion/request.go index d5f1f5fc12..c18f651408 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package streamcompletion @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package streamcompletion // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/stream_completion/StreamInferenceRequest.ts#L24-L63 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/stream_completion/StreamInferenceRequest.ts#L24-L63 type Request struct { // Input The text on which you want to perform the inference task. diff --git a/typedapi/inference/streamcompletion/response.go b/typedapi/inference/streamcompletion/response.go index 2431b1f1ff..ca2814d05a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package streamcompletion // Response holds the response body struct for the package streamcompletion // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/stream_completion/StreamInferenceResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7653eef686..1fc057c2a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Perform streaming inference. // Get real-time responses for completion tasks by delivering answers @@ -50,7 +50,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -220,7 +220,7 @@ func (r *StreamCompletion) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } diff --git a/typedapi/inference/textembedding/request.go b/typedapi/inference/textembedding/request.go index 1c8872a4fc..29b1282410 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package textembedding @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package textembedding // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/text_embedding/TextEmbeddingRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0fbf06f6d3..1e38a2871e 100644 --- a/typedapi/inference/textembedding/response.go +++ b/typedapi/inference/textembedding/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package textembedding import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package textembedding // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/text_embedding/TextEmbeddingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7ca03ea20f..79b7292f4d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Perform text embedding inference on the service package textembedding @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -186,12 +186,12 @@ func (r *TextEmbedding) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/inference/update/request.go b/typedapi/inference/update/request.go index 7a234d3e01..6de5ebbcf5 100644 --- a/typedapi/inference/update/request.go +++ b/typedapi/inference/update/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package update import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/update/UpdateInferenceRequest.ts#L25-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b87bb40128..05c1319a4f 100644 --- a/typedapi/inference/update/response.go +++ b/typedapi/inference/update/response.go @@ -16,20 +16,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package update import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" ) // Response holds the response body struct for the package update // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/update/UpdateInferenceResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3abc95f532..002235b7d8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update an inference endpoint. // @@ -48,7 +48,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -236,12 +236,12 @@ func (r *Update) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go b/typedapi/ingest/deletegeoipdatabase/delete_geoip_database.go index 0fe33abd03..87127b71b6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete GeoIP database configurations. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *DeleteGeoipDatabase) HttpRequest(ctx context.Context) (*http.Request, e req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/deletegeoipdatabase/response.go b/typedapi/ingest/deletegeoipdatabase/response.go index 6f57772927..77fb571e4e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletegeoipdatabase // Response holds the response body struct for the package deletegeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/delete_geoip_database/DeleteGeoipDatabaseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c10574be37..0cd6ed5618 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete IP geolocation database configurations. package deleteiplocationdatabase @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *DeleteIpLocationDatabase) HttpRequest(ctx context.Context) (*http.Reque req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/deleteiplocationdatabase/response.go b/typedapi/ingest/deleteiplocationdatabase/response.go index cb0826f85c..89d59b3885 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteiplocationdatabase // Response holds the response body struct for the package deleteiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/delete_ip_location_database/DeleteIpLocationDatabaseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3c844df98f..2bc74cfaab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete pipelines. // Delete one or more ingest pipelines. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *DeletePipeline) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/deletepipeline/response.go b/typedapi/ingest/deletepipeline/response.go index 28459ab43f..8426156ad2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletepipeline // Response holds the response body struct for the package deletepipeline // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/delete_pipeline/DeletePipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 738f9a8a91..8b274455d3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get GeoIP statistics. // Get download statistics for GeoIP2 databases that are used with the GeoIP @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -130,7 +130,7 @@ func (r *GeoIpStats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/geoipstats/response.go b/typedapi/ingest/geoipstats/response.go index ac1c418247..5e007b0243 100644 --- a/typedapi/ingest/geoipstats/response.go +++ b/typedapi/ingest/geoipstats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package geoipstats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package geoipstats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/geo_ip_stats/IngestGeoIpStatsResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 46929fd06a..6aff3038c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get GeoIP database configurations. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -151,7 +151,7 @@ func (r *GetGeoipDatabase) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/getgeoipdatabase/response.go b/typedapi/ingest/getgeoipdatabase/response.go index b3dbc64a63..9a07363548 100644 --- a/typedapi/ingest/getgeoipdatabase/response.go +++ b/typedapi/ingest/getgeoipdatabase/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getgeoipdatabase import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getgeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1c85a14dc7..b7e7dafea6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get IP geolocation database configurations. package getiplocationdatabase @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -147,7 +147,7 @@ func (r *GetIpLocationDatabase) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/getiplocationdatabase/response.go b/typedapi/ingest/getiplocationdatabase/response.go index 7119ff2b50..0badbdf553 100644 --- a/typedapi/ingest/getiplocationdatabase/response.go +++ b/typedapi/ingest/getiplocationdatabase/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getiplocationdatabase import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1239600385..84264ea36f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get pipelines. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -149,7 +149,7 @@ func (r *GetPipeline) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/getpipeline/response.go b/typedapi/ingest/getpipeline/response.go index 1759d6ae47..1020011597 100644 --- a/typedapi/ingest/getpipeline/response.go +++ b/typedapi/ingest/getpipeline/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getpipeline import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/get_pipeline/GetPipelineResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d48efcf92c..362e07133c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run a grok processor. // Extract structured fields out of a single text field within a document. @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -136,7 +136,7 @@ func (r *ProcessorGrok) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/processorgrok/response.go b/typedapi/ingest/processorgrok/response.go index f43298ee78..e65f5b0ef2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package processorgrok // Response holds the response body struct for the package processorgrok // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/processor_grok/GrokProcessorPatternsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c1e6abab6b..6377945636 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a GeoIP database configuration. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -192,12 +192,12 @@ func (r *PutGeoipDatabase) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/putgeoipdatabase/request.go b/typedapi/ingest/putgeoipdatabase/request.go index 19edaf1042..e30f925ef2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putgeoipdatabase @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putgeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/put_geoip_database/PutGeoipDatabaseRequest.ts#L25-L66 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e18f906a4e..26adf1c92a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putgeoipdatabase // Response holds the response body struct for the package putgeoipdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/put_geoip_database/PutGeoipDatabaseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bf60ec6192..a395175b19 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update an IP geolocation database configuration. package putiplocationdatabase @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -188,12 +188,12 @@ func (r *PutIpLocationDatabase) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/putiplocationdatabase/request.go b/typedapi/ingest/putiplocationdatabase/request.go index 733e64cb2f..32d6a27038 100644 --- a/typedapi/ingest/putiplocationdatabase/request.go +++ b/typedapi/ingest/putiplocationdatabase/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putiplocationdatabase import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/put_ip_location_database/PutIpLocationDatabaseRequest.ts#L25-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3b3e174bfa..f9e927d277 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putiplocationdatabase // Response holds the response body struct for the package putiplocationdatabase // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/put_ip_location_database/PutIpLocationDatabaseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f13a98f716..b76b03fd14 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a pipeline. // Changes made using this API take effect immediately. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -188,12 +188,12 @@ func (r *PutPipeline) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ingest/putpipeline/request.go b/typedapi/ingest/putpipeline/request.go index 5eae787609..0fbc9cb274 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putpipeline @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/put_pipeline/PutPipelineRequest.ts#L25-L90 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c7ff50df34..074abb8313 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putpipeline // Response holds the response body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/put_pipeline/PutPipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4fc68e1036..bbab207f5c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package simulate @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package simulate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/simulate/SimulatePipelineRequest.ts#L25-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5cf87d5235..ad693a5dc6 100644 --- a/typedapi/ingest/simulate/response.go +++ b/typedapi/ingest/simulate/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package simulate import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package simulate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/simulate/SimulatePipelineResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a43d5a41a0..917394cc31 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Simulate a pipeline. // @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -203,12 +203,12 @@ func (r *Simulate) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/license/delete/delete.go b/typedapi/license/delete/delete.go index 560f5c9818..89499479d4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete the license. // @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -132,7 +132,7 @@ func (r *Delete) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/license/delete/response.go b/typedapi/license/delete/response.go index 8071906892..d7b9bf4895 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/delete/DeleteLicenseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0f983eebe1..1f9d6a61b6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get license information. // @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -140,7 +140,7 @@ func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/license/get/response.go b/typedapi/license/get/response.go index 5d4692d6fe..63a1b2d877 100644 --- a/typedapi/license/get/response.go +++ b/typedapi/license/get/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package get import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/get/GetLicenseResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2a0ad719d7..766ea17754 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the basic license status. package getbasicstatus @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -124,7 +124,7 @@ func (r *GetBasicStatus) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/license/getbasicstatus/response.go b/typedapi/license/getbasicstatus/response.go index bc6e4037f6..bd51af7c89 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getbasicstatus // Response holds the response body struct for the package getbasicstatus // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/get_basic_status/GetBasicLicenseStatusResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c9898afb47..f577aaf4f0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the trial status. package gettrialstatus @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -124,7 +124,7 @@ func (r *GetTrialStatus) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/license/gettrialstatus/response.go b/typedapi/license/gettrialstatus/response.go index c94368c32d..3770e885b0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package gettrialstatus // Response holds the response body struct for the package gettrialstatus // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/get_trial_status/GetTrialLicenseStatusResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0cb5e0af4d..5fcce0b137 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update the license. // @@ -48,7 +48,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -198,12 +198,12 @@ func (r *Post) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/license/post/request.go b/typedapi/license/post/request.go index 1b30fa9cbc..5975de8ceb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package post @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/post/PostLicenseRequest.ts#L24-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dad6605b46..3903ea2481 100644 --- a/typedapi/license/post/response.go +++ b/typedapi/license/post/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package post import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensestatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/licensestatus" ) // Response holds the response body struct for the package post // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/post/PostLicenseResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9005cd5520..828dbc2fde 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Start a basic license. // @@ -46,7 +46,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -150,7 +150,7 @@ func (r *PostStartBasic) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/license/poststartbasic/response.go b/typedapi/license/poststartbasic/response.go index e4c87f8546..0286420c16 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package poststartbasic @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/licensetype" ) // Response holds the response body struct for the package poststartbasic // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/post_start_basic/StartBasicLicenseResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2098f8be23..85a6497870 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Start a trial. // Start a 30-day trial, which gives access to all subscription features. @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -142,7 +142,7 @@ func (r *PostStartTrial) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/license/poststarttrial/response.go b/typedapi/license/poststarttrial/response.go index b1ea0c466c..a2a95320bb 100644 --- a/typedapi/license/poststarttrial/response.go +++ b/typedapi/license/poststarttrial/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package poststarttrial import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/licensetype" ) // Response holds the response body struct for the package poststarttrial // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/post_start_trial/StartTrialLicenseResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dd4a01fb6b..56b0396d02 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a Logstash pipeline. // Delete a pipeline that is used for Logstash Central Management. @@ -142,7 +142,7 @@ func (r *DeletePipeline) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/logstash/getpipeline/get_pipeline.go b/typedapi/logstash/getpipeline/get_pipeline.go index e44b90b722..47de61278f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get Logstash pipelines. // Get pipelines that are used for Logstash Central Management. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -145,7 +145,7 @@ func (r *GetPipeline) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/logstash/getpipeline/response.go b/typedapi/logstash/getpipeline/response.go index 75434e8028..d2c5f60ecf 100644 --- a/typedapi/logstash/getpipeline/response.go +++ b/typedapi/logstash/getpipeline/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getpipeline import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/logstash/get_pipeline/LogstashGetPipelineResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a670636d3b..df8a51ff98 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a Logstash pipeline. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -192,12 +192,12 @@ func (r *PutPipeline) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/logstash/putpipeline/request.go b/typedapi/logstash/putpipeline/request.go index cee5fec9bd..b558f771ee 100644 --- a/typedapi/logstash/putpipeline/request.go +++ b/typedapi/logstash/putpipeline/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putpipeline import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putpipeline // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/logstash/put_pipeline/LogstashPutPipelineRequest.ts#L24-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 26473f0ad0..48c852cc12 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get deprecation information. // Get information about different cluster, node, and index level settings that @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -155,7 +155,7 @@ func (r *Deprecations) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/migration/deprecations/response.go b/typedapi/migration/deprecations/response.go index 60aea05f93..8fb24d71fb 100644 --- a/typedapi/migration/deprecations/response.go +++ b/typedapi/migration/deprecations/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deprecations import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package deprecations // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/migration/deprecations/DeprecationInfoResponse.ts#L23-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bd09613124..e3ef19c747 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get feature migration information. // Version upgrades sometimes require changes to how features store @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -138,7 +138,7 @@ func (r *GetFeatureUpgradeStatus) HttpRequest(ctx context.Context) (*http.Reques req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/migration/getfeatureupgradestatus/response.go b/typedapi/migration/getfeatureupgradestatus/response.go index 08a800cfba..4eb4d1ccab 100644 --- a/typedapi/migration/getfeatureupgradestatus/response.go +++ b/typedapi/migration/getfeatureupgradestatus/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getfeatureupgradestatus import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/migrationstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/migrationstatus" ) // Response holds the response body struct for the package getfeatureupgradestatus // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fd05a56761..cb37cc93c1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Start the feature migration. // Version upgrades sometimes require changes to how features store @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -142,7 +142,7 @@ func (r *PostFeatureUpgrade) HttpRequest(ctx context.Context) (*http.Request, er req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/migration/postfeatureupgrade/response.go b/typedapi/migration/postfeatureupgrade/response.go index d971255834..f7fd758e6c 100644 --- a/typedapi/migration/postfeatureupgrade/response.go +++ b/typedapi/migration/postfeatureupgrade/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package postfeatureupgrade import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package postfeatureupgrade // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dc545bda85..a0b7a32113 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear trained model deployment cache. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -157,12 +157,12 @@ func (r *ClearTrainedModelDeploymentCache) HttpRequest(ctx context.Context) (*ht if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/cleartrainedmodeldeploymentcache/response.go b/typedapi/ml/cleartrainedmodeldeploymentcache/response.go index 08777c7e33..ede6132727 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package cleartrainedmodeldeploymentcache // Response holds the response body struct for the package cleartrainedmodeldeploymentcache // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/clear_trained_model_deployment_cache/MlClearTrainedModelDeploymentCacheResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0720a043a5..e027b00535 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Close anomaly detection jobs. // @@ -51,7 +51,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -222,12 +222,12 @@ func (r *CloseJob) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/closejob/request.go b/typedapi/ml/closejob/request.go index f14ce4625b..77eea2446e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package closejob @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package closejob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/close_job/MlCloseJobRequest.ts#L24-L85 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9d964d1a79..ec464242ee 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package closejob // Response holds the response body struct for the package closejob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/close_job/MlCloseJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dde8f02d46..a048ff2f74 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a calendar. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -142,7 +142,7 @@ func (r *DeleteCalendar) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deletecalendar/response.go b/typedapi/ml/deletecalendar/response.go index 0329d2ce7d..2ce7fd660b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletecalendar // Response holds the response body struct for the package deletecalendar // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_calendar/MlDeleteCalendarResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 45fe6ea0f9..a6a7f58810 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete events from a calendar. package deletecalendarevent @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -151,7 +151,7 @@ func (r *DeleteCalendarEvent) HttpRequest(ctx context.Context) (*http.Request, e req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deletecalendarevent/response.go b/typedapi/ml/deletecalendarevent/response.go index d1a2f6b7a1..3bbcaae35d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletecalendarevent // Response holds the response body struct for the package deletecalendarevent // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_calendar_event/MlDeleteCalendarEventResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 75282af368..2726d3a50f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete anomaly jobs from a calendar. package deletecalendarjob @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -151,7 +151,7 @@ func (r *DeleteCalendarJob) HttpRequest(ctx context.Context) (*http.Request, err req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deletecalendarjob/response.go b/typedapi/ml/deletecalendarjob/response.go index 9eb89073d7..aae74b2539 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletecalendarjob @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package deletecalendarjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_calendar_job/MlDeleteCalendarJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 76d965c901..65e2dbf127 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a datafeed. package deletedatafeed @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -138,7 +138,7 @@ func (r *DeleteDatafeed) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deletedatafeed/response.go b/typedapi/ml/deletedatafeed/response.go index 47d3ece596..7fab3870a3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletedatafeed // Response holds the response body struct for the package deletedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_datafeed/MlDeleteDatafeedResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 249bb53554..4e1c0d103f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a data frame analytics job. package deletedataframeanalytics @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *DeleteDataFrameAnalytics) HttpRequest(ctx context.Context) (*http.Reque req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deletedataframeanalytics/response.go b/typedapi/ml/deletedataframeanalytics/response.go index 566c5a5b2a..7d835983fc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletedataframeanalytics // Response holds the response body struct for the package deletedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_data_frame_analytics/MlDeleteDataFrameAnalyticsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 131f1e978b..3fe269cabd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete expired ML data. // @@ -43,7 +43,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -209,12 +209,12 @@ func (r *DeleteExpiredData) HttpRequest(ctx context.Context) (*http.Request, err if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deleteexpireddata/request.go b/typedapi/ml/deleteexpireddata/request.go index ff0ba5b7f8..41bc9ca5f3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteexpireddata @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package deleteexpireddata // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_expired_data/MlDeleteExpiredDataRequest.ts#L25-L85 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 33c1d47381..1f70a7bbbc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteexpireddata // Response holds the response body struct for the package deleteexpireddata // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_expired_data/MlDeleteExpiredDataResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 466ac767ee..9054ea8320 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a filter. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *DeleteFilter) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deletefilter/response.go b/typedapi/ml/deletefilter/response.go index d57588f626..eb379a3804 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletefilter // Response holds the response body struct for the package deletefilter // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_filter/MlDeleteFilterResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 95edd555db..5c64af0fbd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete forecasts from a job. // @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -174,7 +174,7 @@ func (r *DeleteForecast) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deleteforecast/response.go b/typedapi/ml/deleteforecast/response.go index 592413684b..6eee31ecda 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteforecast // Response holds the response body struct for the package deleteforecast // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_forecast/MlDeleteForecastResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6a44736f9d..2fc04ff436 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete an anomaly detection job. // @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -152,7 +152,7 @@ func (r *DeleteJob) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deletejob/response.go b/typedapi/ml/deletejob/response.go index 837022c430..3a1787946d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletejob // Response holds the response body struct for the package deletejob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_job/MlDeleteJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f8f06520ca..d82a7d843f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a model snapshot. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -159,7 +159,7 @@ func (r *DeleteModelSnapshot) HttpRequest(ctx context.Context) (*http.Request, e req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deletemodelsnapshot/response.go b/typedapi/ml/deletemodelsnapshot/response.go index 3b923a924c..55c7629738 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletemodelsnapshot // Response holds the response body struct for the package deletemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_model_snapshot/MlDeleteModelSnapshotResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 07663d9345..6de9b44f65 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete an unreferenced trained model. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *DeleteTrainedModel) HttpRequest(ctx context.Context) (*http.Request, er req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deletetrainedmodel/response.go b/typedapi/ml/deletetrainedmodel/response.go index aea4e2e9e9..223e8f8b69 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletetrainedmodel // Response holds the response body struct for the package deletetrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_trained_model/MlDeleteTrainedModelResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 72bdabcfe7..a1f2ef0ccc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a trained model alias. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -160,12 +160,12 @@ func (r *DeleteTrainedModelAlias) HttpRequest(ctx context.Context) (*http.Reques if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/deletetrainedmodelalias/response.go b/typedapi/ml/deletetrainedmodelalias/response.go index f50062564c..782ba43cab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletetrainedmodelalias // Response holds the response body struct for the package deletetrainedmodelalias // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/delete_trained_model_alias/MlDeleteTrainedModelAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 24c0ad80de..1192b1a333 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Estimate job model memory usage. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -184,12 +184,12 @@ func (r *EstimateModelMemory) HttpRequest(ctx context.Context) (*http.Request, e if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/estimatemodelmemory/request.go b/typedapi/ml/estimatemodelmemory/request.go index 24eb542a5d..54c0ebc493 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package estimatemodelmemory @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package estimatemodelmemory // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/estimate_model_memory/MlEstimateModelMemoryRequest.ts#L26-L71 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 33150ac1cb..17eabd6a36 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package estimatemodelmemory // Response holds the response body struct for the package estimatemodelmemory // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/estimate_model_memory/MlEstimateModelMemoryResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5d649bf88f..2e58b0bdd5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Evaluate data frame analytics. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -184,12 +184,12 @@ func (r *EvaluateDataFrame) HttpRequest(ctx context.Context) (*http.Request, err if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/evaluatedataframe/request.go b/typedapi/ml/evaluatedataframe/request.go index c697152690..2c787389bd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package evaluatedataframe @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package evaluatedataframe // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/MlEvaluateDataFrameRequest.ts#L25-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 aeebd3faca..1b8373b4fa 100644 --- a/typedapi/ml/evaluatedataframe/response.go +++ b/typedapi/ml/evaluatedataframe/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package evaluatedataframe import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package evaluatedataframe // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts#L26-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 604a27e83b..0d6181f033 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Explain data frame analytics config. // @@ -43,7 +43,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -217,12 +217,12 @@ func (r *ExplainDataFrameAnalytics) HttpRequest(ctx context.Context) (*http.Requ if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/explaindataframeanalytics/request.go b/typedapi/ml/explaindataframeanalytics/request.go index 39e8e13fd1..71a43dd828 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package explaindataframeanalytics @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package explaindataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsRequest.ts#L30-L120 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a27370921c..6fe2fb5b6e 100644 --- a/typedapi/ml/explaindataframeanalytics/response.go +++ b/typedapi/ml/explaindataframeanalytics/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package explaindataframeanalytics import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package explaindataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/explain_data_frame_analytics/MlExplainDataFrameAnalyticsResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0b0c62bc3b..0c43dfb8f8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Force buffered data to be processed. // The flush jobs API is only applicable when sending data for analysis using @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -204,12 +204,12 @@ func (r *FlushJob) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/flushjob/request.go b/typedapi/ml/flushjob/request.go index 28ccd55ebc..4e9ab13bef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package flushjob @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package flushjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/flush_job/MlFlushJobRequest.ts#L24-L108 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/flush_job/MlFlushJobRequest.ts#L24-L108 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 997c3c81b3..b642779850 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package flushjob // Response holds the response body struct for the package flushjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/flush_job/MlFlushJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 54b90faafe..ff26a619f3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Predict future behavior of a time series. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -198,12 +198,12 @@ func (r *Forecast) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/forecast/request.go b/typedapi/ml/forecast/request.go index 4bff334a8a..c45e5c7b40 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package forecast @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package forecast // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/forecast/MlForecastJobRequest.ts#L24-L95 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6bd7d42944..7bc22b3483 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package forecast // Response holds the response body struct for the package forecast // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/forecast/MlForecastJobResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c605fde76f..a2d1a32216 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get anomaly detection job results for buckets. // The API presents a chronological view of the records, grouped by bucket. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -218,12 +218,12 @@ func (r *GetBuckets) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getbuckets/request.go b/typedapi/ml/getbuckets/request.go index 5fe86afa94..d8d4499e56 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getbuckets @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package getbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_buckets/MlGetBucketsRequest.ts#L26-L145 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e5cd9243bf..65c5311c11 100644 --- a/typedapi/ml/getbuckets/response.go +++ b/typedapi/ml/getbuckets/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getbuckets import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_buckets/MlGetBucketsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 21412ef45b..5295b00744 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get info about events in calendars. package getcalendarevents @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *GetCalendarEvents) HttpRequest(ctx context.Context) (*http.Request, err req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getcalendarevents/response.go b/typedapi/ml/getcalendarevents/response.go index 2839c09c0a..282a5b4e58 100644 --- a/typedapi/ml/getcalendarevents/response.go +++ b/typedapi/ml/getcalendarevents/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getcalendarevents import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_calendar_events/MlGetCalendarEventsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b4b6eb0eaf..121329254c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get calendar configuration info. package getcalendars @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -191,12 +191,12 @@ func (r *GetCalendars) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getcalendars/request.go b/typedapi/ml/getcalendars/request.go index 1f005b14a9..8dd19862d0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getcalendars @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package getcalendars // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_calendars/MlGetCalendarsRequest.ts#L25-L63 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7fcb31f452..d034c21acf 100644 --- a/typedapi/ml/getcalendars/response.go +++ b/typedapi/ml/getcalendars/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getcalendars import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getcalendars // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_calendars/MlGetCalendarsResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a3404fd1e6..ede5fa2afa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get anomaly detection job results for categories. package getcategories @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -216,12 +216,12 @@ func (r *GetCategories) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getcategories/request.go b/typedapi/ml/getcategories/request.go index 5ca0c29d29..7e0474a327 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getcategories @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package getcategories // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_categories/MlGetCategoriesRequest.ts#L25-L82 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dc56c64f09..a5c25e4bb7 100644 --- a/typedapi/ml/getcategories/response.go +++ b/typedapi/ml/getcategories/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getcategories import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getcategories // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_categories/MlGetCategoriesResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1c90ed26fd..c3c77c980a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get datafeeds configuration info. // You can get information for multiple datafeeds in a single API request by @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -153,7 +153,7 @@ func (r *GetDatafeeds) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getdatafeeds/response.go b/typedapi/ml/getdatafeeds/response.go index 3b1a673680..328afcd808 100644 --- a/typedapi/ml/getdatafeeds/response.go +++ b/typedapi/ml/getdatafeeds/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getdatafeeds import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getdatafeeds // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_datafeeds/MlGetDatafeedsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f6af8491eb..b76556e5a8 100644 --- a/typedapi/ml/getdatafeedstats/get_datafeed_stats.go +++ b/typedapi/ml/getdatafeedstats/get_datafeed_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get datafeeds usage info. // You can get statistics for multiple datafeeds in a single API request by @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -159,7 +159,7 @@ func (r *GetDatafeedStats) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getdatafeedstats/response.go b/typedapi/ml/getdatafeedstats/response.go index 167777cb73..aad25fb3a1 100644 --- a/typedapi/ml/getdatafeedstats/response.go +++ b/typedapi/ml/getdatafeedstats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getdatafeedstats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getdatafeedstats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_datafeed_stats/MlGetDatafeedStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 668ba5d8af..2579123500 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get data frame analytics job configuration info. // You can get information for multiple data frame analytics jobs in a single @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -153,7 +153,7 @@ func (r *GetDataFrameAnalytics) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getdataframeanalytics/response.go b/typedapi/ml/getdataframeanalytics/response.go index f67baedb2c..742fe202d8 100644 --- a/typedapi/ml/getdataframeanalytics/response.go +++ b/typedapi/ml/getdataframeanalytics/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getdataframeanalytics import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_data_frame_analytics/MlGetDataFrameAnalyticsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3819f4c2f8..70c5357f19 100644 --- a/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go +++ b/typedapi/ml/getdataframeanalyticsstats/get_data_frame_analytics_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get data frame analytics jobs usage info. package getdataframeanalyticsstats @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -151,7 +151,7 @@ func (r *GetDataFrameAnalyticsStats) HttpRequest(ctx context.Context) (*http.Req req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getdataframeanalyticsstats/response.go b/typedapi/ml/getdataframeanalyticsstats/response.go index 55fd4a2675..5cf23d75c6 100644 --- a/typedapi/ml/getdataframeanalyticsstats/response.go +++ b/typedapi/ml/getdataframeanalyticsstats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getdataframeanalyticsstats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getdataframeanalyticsstats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_data_frame_analytics_stats/MlGetDataFrameAnalyticsStatsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 424c000e2b..999f98d6ce 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get filters. // You can get a single filter or all filters. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -145,7 +145,7 @@ func (r *GetFilters) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getfilters/response.go b/typedapi/ml/getfilters/response.go index d430df7202..db4de52687 100644 --- a/typedapi/ml/getfilters/response.go +++ b/typedapi/ml/getfilters/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getfilters import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getfilters // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_filters/MlGetFiltersResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 df211fef81..985ab045a1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get anomaly detection job results for influencers. // Influencers are the entities that have contributed to, or are to blame for, @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -196,12 +196,12 @@ func (r *GetInfluencers) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getinfluencers/request.go b/typedapi/ml/getinfluencers/request.go index 2bbecaf76a..2fe4c98e10 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getinfluencers @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package getinfluencers // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_influencers/MlGetInfluencersRequest.ts#L26-L105 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5860f3de0a..c7d969b870 100644 --- a/typedapi/ml/getinfluencers/response.go +++ b/typedapi/ml/getinfluencers/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getinfluencers import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getinfluencers // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_influencers/MlGetInfluencersResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 155cb5c919..2605b9f0a5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get anomaly detection jobs configuration info. // You can get information for multiple anomaly detection jobs in a single API @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -151,7 +151,7 @@ func (r *GetJobs) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getjobs/response.go b/typedapi/ml/getjobs/response.go index 1313f365f8..ccaecb8718 100644 --- a/typedapi/ml/getjobs/response.go +++ b/typedapi/ml/getjobs/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getjobs import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getjobs // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_jobs/MlGetJobsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1c861b36a6..6705c7f2ea 100644 --- a/typedapi/ml/getjobstats/get_job_stats.go +++ b/typedapi/ml/getjobstats/get_job_stats.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get anomaly detection jobs usage info. package getjobstats @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -147,7 +147,7 @@ func (r *GetJobStats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getjobstats/response.go b/typedapi/ml/getjobstats/response.go index 1a87f6767f..40082a0f46 100644 --- a/typedapi/ml/getjobstats/response.go +++ b/typedapi/ml/getjobstats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getjobstats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getjobstats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_job_stats/MlGetJobStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 905a39488f..c37d5aab81 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get machine learning memory usage info. // Get information about how machine learning jobs and trained models are using @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -153,7 +153,7 @@ func (r *GetMemoryStats) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getmemorystats/response.go b/typedapi/ml/getmemorystats/response.go index 82d794d580..10d07f3a6c 100644 --- a/typedapi/ml/getmemorystats/response.go +++ b/typedapi/ml/getmemorystats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getmemorystats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getmemorystats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_memory_stats/MlGetMemoryStatsResponse.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2d00124485..fc9f59a834 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get model snapshots info. package getmodelsnapshots @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -212,12 +212,12 @@ func (r *GetModelSnapshots) HttpRequest(ctx context.Context) (*http.Request, err if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getmodelsnapshots/request.go b/typedapi/ml/getmodelsnapshots/request.go index 2503014d49..7ccaef99c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getmodelsnapshots @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package getmodelsnapshots // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_model_snapshots/MlGetModelSnapshotsRequest.ts#L26-L108 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 37da34bb06..7dc15cbbdd 100644 --- a/typedapi/ml/getmodelsnapshots/response.go +++ b/typedapi/ml/getmodelsnapshots/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getmodelsnapshots import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getmodelsnapshots // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_model_snapshots/MlGetModelSnapshotsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9374b890ca..a5e3eeac0f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get anomaly detection job model snapshot upgrade usage info. package getmodelsnapshotupgradestats @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -155,7 +155,7 @@ func (r *GetModelSnapshotUpgradeStats) HttpRequest(ctx context.Context) (*http.R req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getmodelsnapshotupgradestats/response.go b/typedapi/ml/getmodelsnapshotupgradestats/response.go index 98c53be5c1..7644b4cd6a 100644 --- a/typedapi/ml/getmodelsnapshotupgradestats/response.go +++ b/typedapi/ml/getmodelsnapshotupgradestats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getmodelsnapshotupgradestats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getmodelsnapshotupgradestats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_model_snapshot_upgrade_stats/MlGetModelSnapshotUpgradeStatsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3970ce5423..1a306cbc7d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get overall bucket results. // @@ -52,7 +52,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -226,12 +226,12 @@ func (r *GetOverallBuckets) HttpRequest(ctx context.Context) (*http.Request, err if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getoverallbuckets/request.go b/typedapi/ml/getoverallbuckets/request.go index 761477e4e3..42f2a2d082 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getoverallbuckets @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package getoverallbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L153 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/get_overall_buckets/MlGetOverallBucketsRequest.ts#L25-L153 type Request struct { // AllowNoMatch Refer to the description for the `allow_no_match` query parameter. diff --git a/typedapi/ml/getoverallbuckets/response.go b/typedapi/ml/getoverallbuckets/response.go index 1b24ff8289..4999b9754a 100644 --- a/typedapi/ml/getoverallbuckets/response.go +++ b/typedapi/ml/getoverallbuckets/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getoverallbuckets import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getoverallbuckets // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_overall_buckets/MlGetOverallBucketsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0967751a30..394853b016 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get anomaly records for an anomaly detection job. // Records contain the detailed analytical results. They describe the anomalous @@ -44,7 +44,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -210,12 +210,12 @@ func (r *GetRecords) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/getrecords/request.go b/typedapi/ml/getrecords/request.go index 0b7078bcf4..1f294887fa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getrecords @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package getrecords // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_records/MlGetAnomalyRecordsRequest.ts#L26-L135 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bf784aadf2..2b5f727837 100644 --- a/typedapi/ml/getrecords/response.go +++ b/typedapi/ml/getrecords/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getrecords import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getrecords // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_records/MlGetAnomalyRecordsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5b1ea18075..88ec5d199c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get trained model configuration info. package gettrainedmodels @@ -33,8 +33,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/include" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/include" ) const ( @@ -144,7 +144,7 @@ func (r *GetTrainedModels) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/gettrainedmodels/response.go b/typedapi/ml/gettrainedmodels/response.go index 02874fd6e1..bfb6e9aa59 100644 --- a/typedapi/ml/gettrainedmodels/response.go +++ b/typedapi/ml/gettrainedmodels/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package gettrainedmodels import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package gettrainedmodels // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_trained_models/MlGetTrainedModelResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 56ede03bbe..27f03a73d4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get trained models usage info. // You can get usage information for multiple trained @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -153,7 +153,7 @@ func (r *GetTrainedModelsStats) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/gettrainedmodelsstats/response.go b/typedapi/ml/gettrainedmodelsstats/response.go index 892f7fc450..f09a13c447 100644 --- a/typedapi/ml/gettrainedmodelsstats/response.go +++ b/typedapi/ml/gettrainedmodelsstats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package gettrainedmodelsstats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package gettrainedmodelsstats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_trained_models_stats/MlGetTrainedModelStatsResponse.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 156c7f9828..70c649d790 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Evaluate a trained model. package infertrainedmodel @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -188,12 +188,12 @@ func (r *InferTrainedModel) HttpRequest(ctx context.Context) (*http.Request, err if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/infertrainedmodel/request.go b/typedapi/ml/infertrainedmodel/request.go index b17c27b5ff..c6c2e7f287 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package infertrainedmodel @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package infertrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8620d39f5f..ae269676d6 100644 --- a/typedapi/ml/infertrainedmodel/response.go +++ b/typedapi/ml/infertrainedmodel/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package infertrainedmodel import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package infertrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/infer_trained_model/MlInferTrainedModelResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f4cfdc95a4..6eef8facc4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get machine learning information. // Get defaults and limits used by machine learning. @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -138,7 +138,7 @@ func (r *Info) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/info/response.go b/typedapi/ml/info/response.go index cd4b0c906c..4e4724924c 100644 --- a/typedapi/ml/info/response.go +++ b/typedapi/ml/info/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package info import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/info/MlInfoResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2540bd8e0e..7cb253391f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Open anomaly detection jobs. // @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -202,12 +202,12 @@ func (r *OpenJob) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/openjob/request.go b/typedapi/ml/openjob/request.go index c7754fec84..47723698a3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package openjob @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package openjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/open_job/MlOpenJobRequest.ts#L24-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a6a7aae024..4aa82229c8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package openjob // Response holds the response body struct for the package openjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/open_job/MlOpenJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3a613233f5..376acba0cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Add scheduled events to the calendar. package postcalendarevents @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -188,12 +188,12 @@ func (r *PostCalendarEvents) HttpRequest(ctx context.Context) (*http.Request, er if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/postcalendarevents/request.go b/typedapi/ml/postcalendarevents/request.go index 1b64155d8a..c8e603ec83 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package postcalendarevents @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package postcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/post_calendar_events/MlPostCalendarEventsRequest.ts#L24-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2c60680ee3..4ac39b5f57 100644 --- a/typedapi/ml/postcalendarevents/response.go +++ b/typedapi/ml/postcalendarevents/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package postcalendarevents import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package postcalendarevents // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/post_calendar_events/MlPostCalendarEventsResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 93a9b3054a..6e69dc8951 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Send data to an anomaly detection job for analysis. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -198,12 +198,12 @@ func (r *PostData) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/postdata/request.go b/typedapi/ml/postdata/request.go index 2f4e57371e..c975465578 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package postdata @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package postdata // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/post_data/MlPostJobDataRequest.ts#L24-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7b7506c96d..f068543498 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package postdata // Response holds the response body struct for the package postdata // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/post_data/MlPostJobDataResponse.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3f641ab9b6..4de292eb82 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Preview a datafeed. // This API returns the first "page" of search results from a datafeed. @@ -47,7 +47,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -221,12 +221,12 @@ func (r *PreviewDatafeed) HttpRequest(ctx context.Context) (*http.Request, error if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/previewdatafeed/request.go b/typedapi/ml/previewdatafeed/request.go index 4fb0a248fb..f5e12acf3c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package previewdatafeed @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package previewdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/preview_datafeed/MlPreviewDatafeedRequest.ts#L26-L81 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b3d4327eaf..b5c4f421fa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package previewdatafeed @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package previewdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/preview_datafeed/MlPreviewDatafeedResponse.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 29dbd73d6b..66d7c045c5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Preview features used by data frame analytics. // Preview the extracted features used by a data frame analytics config. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -201,12 +201,12 @@ func (r *PreviewDataFrameAnalytics) HttpRequest(ctx context.Context) (*http.Requ if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/previewdataframeanalytics/request.go b/typedapi/ml/previewdataframeanalytics/request.go index 09eca6d44d..ee3283b86b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package previewdataframeanalytics @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package previewdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsRequest.ts#L24-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f29005c663..654a465b44 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package previewdataframeanalytics // Response holds the response body struct for the package previewdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/preview_data_frame_analytics/MlPreviewDataFrameAnalyticsResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2420afa696..62a742cca1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a calendar. package putcalendar @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -186,12 +186,12 @@ func (r *PutCalendar) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/putcalendar/request.go b/typedapi/ml/putcalendar/request.go index 58b22430f7..9d2d2a86ca 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putcalendar @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putcalendar // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_calendar/MlPutCalendarRequest.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f40dfce0fd..adf1e13cbc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putcalendar @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package putcalendar // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_calendar/MlPutCalendarResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b48ad59429..fdb07cc316 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Add anomaly detection job to calendar. package putcalendarjob @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -151,7 +151,7 @@ func (r *PutCalendarJob) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/putcalendarjob/response.go b/typedapi/ml/putcalendarjob/response.go index 76ee6ecdb5..2319f6259b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putcalendarjob @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package putcalendarjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_calendar_job/MlPutCalendarJobResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6a85930de1..cddf0f2f97 100644 --- a/typedapi/ml/putdatafeed/put_datafeed.go +++ b/typedapi/ml/putdatafeed/put_datafeed.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a datafeed. // Datafeeds retrieve data from Elasticsearch for analysis by an anomaly @@ -52,8 +52,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -223,12 +223,12 @@ func (r *PutDatafeed) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/putdatafeed/request.go b/typedapi/ml/putdatafeed/request.go index ccba1b2f72..88f6c37ae4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putdatafeed @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_datafeed/MlPutDatafeedRequest.ts#L37-L184 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ee47d849ce..781b8cb51e 100644 --- a/typedapi/ml/putdatafeed/response.go +++ b/typedapi/ml/putdatafeed/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putdatafeed import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package putdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_datafeed/MlPutDatafeedResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 23a25054dd..0ece5b50ca 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a data frame analytics job. // This API creates a data frame analytics job that performs an analysis on the @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -210,12 +210,12 @@ func (r *PutDataFrameAnalytics) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/putdataframeanalytics/request.go b/typedapi/ml/putdataframeanalytics/request.go index 70ea9245ca..6fadfbc113 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putdataframeanalytics @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsRequest.ts#L30-L155 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 740b77b0c2..904178ddbd 100644 --- a/typedapi/ml/putdataframeanalytics/response.go +++ b/typedapi/ml/putdataframeanalytics/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putdataframeanalytics import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package putdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_data_frame_analytics/MlPutDataFrameAnalyticsResponse.ts#L31-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d3075595fa..1d9f316781 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a filter. // A filter contains a list of strings. It can be used by one or more anomaly @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -194,12 +194,12 @@ func (r *PutFilter) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/putfilter/request.go b/typedapi/ml/putfilter/request.go index cdb8f8410d..8201772773 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putfilter @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package putfilter // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_filter/MlPutFilterRequest.ts#L23-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e81566502c..d0b802cc3b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putfilter // Response holds the response body struct for the package putfilter // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_filter/MlPutFilterResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8359af8869..641cf13ad8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create an anomaly detection job. // @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -197,12 +197,12 @@ func (r *PutJob) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/putjob/request.go b/typedapi/ml/putjob/request.go index fbc1e76da3..c4505b0255 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putjob @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_job/MlPutJobRequest.ts#L30-L157 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_job/MlPutJobRequest.ts#L30-L157 type Request struct { // AllowLazyOpen Advanced configuration option. Specifies whether this job can open when there diff --git a/typedapi/ml/putjob/response.go b/typedapi/ml/putjob/response.go index d5354861f7..48a5fe29ac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putjob @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_job/MlPutJobResponse.ts#L29-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8037b02c97..ac07c6456b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a trained model. // Enable you to supply a trained model that is not created by data frame @@ -36,8 +36,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainedmodeltype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/trainedmodeltype" ) const ( @@ -191,12 +191,12 @@ func (r *PutTrainedModel) HttpRequest(ctx context.Context) (*http.Request, error if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/puttrainedmodel/request.go b/typedapi/ml/puttrainedmodel/request.go index 1ec77bf653..d8632d6a10 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package puttrainedmodel @@ -24,13 +24,13 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainedmodeltype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/trainedmodeltype" ) // Request holds the request body struct for the package puttrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/MlPutTrainedModelRequest.ts#L31-L135 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a94f18007d..29b4611f65 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package puttrainedmodel @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainedmodeltype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/trainedmodeltype" ) // Response holds the response body struct for the package puttrainedmodel // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/MlPutTrainedModelResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. @@ -69,8 +69,9 @@ type Response struct { ModelPackage *types.ModelPackageConfig `json:"model_package,omitempty"` ModelSizeBytes types.ByteSize `json:"model_size_bytes,omitempty"` // ModelType The model type - ModelType *trainedmodeltype.TrainedModelType `json:"model_type,omitempty"` - PrefixStrings *types.TrainedModelPrefixStrings `json:"prefix_strings,omitempty"` + ModelType *trainedmodeltype.TrainedModelType `json:"model_type,omitempty"` + PlatformArchitecture *string `json:"platform_architecture,omitempty"` + PrefixStrings *types.TrainedModelPrefixStrings `json:"prefix_strings,omitempty"` // Tags A comma delimited string of tags. A trained model can have many tags, or // none. Tags []string `json:"tags"` @@ -247,6 +248,18 @@ func (s *Response) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "ModelType", err) } + case "platform_architecture": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "PlatformArchitecture", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.PlatformArchitecture = &o + case "prefix_strings": if err := dec.Decode(&s.PrefixStrings); err != nil { return fmt.Errorf("%s | %w", "PrefixStrings", err) diff --git a/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go b/typedapi/ml/puttrainedmodelalias/put_trained_model_alias.go index 36af41a79c..71baf3d411 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a trained model alias. // A trained model alias is a logical name used to reference a single trained @@ -49,7 +49,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -184,12 +184,12 @@ func (r *PutTrainedModelAlias) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/puttrainedmodelalias/response.go b/typedapi/ml/puttrainedmodelalias/response.go index 24987298c2..4b0f8a96e0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package puttrainedmodelalias // Response holds the response body struct for the package puttrainedmodelalias // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model_alias/MlPutTrainedModelAliasResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 64002c7071..01455b400d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create part of a trained model definition. package puttrainedmodeldefinitionpart @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -199,12 +199,12 @@ func (r *PutTrainedModelDefinitionPart) HttpRequest(ctx context.Context) (*http. if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/puttrainedmodeldefinitionpart/request.go b/typedapi/ml/puttrainedmodeldefinitionpart/request.go index c82034d528..c19182e201 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package puttrainedmodeldefinitionpart @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package puttrainedmodeldefinitionpart // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartRequest.ts#L24-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c999c1bab1..c2ecf1f112 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package puttrainedmodeldefinitionpart // Response holds the response body struct for the package puttrainedmodeldefinitionpart // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model_definition_part/MlPutTrainedModelDefinitionPartResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 68c6d3e5f1..a04c76f5f4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a trained model vocabulary. // This API is supported only for natural language processing (NLP) models. @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -194,12 +194,12 @@ func (r *PutTrainedModelVocabulary) HttpRequest(ctx context.Context) (*http.Requ if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/puttrainedmodelvocabulary/request.go b/typedapi/ml/puttrainedmodelvocabulary/request.go index cbd29a4de6..5d32aa41a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package puttrainedmodelvocabulary @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package puttrainedmodelvocabulary // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyRequest.ts#L24-L68 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3bc3e48a20..bda8580949 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package puttrainedmodelvocabulary // Response holds the response body struct for the package puttrainedmodelvocabulary // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model_vocabulary/MlPutTrainedModelVocabularyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 07de90a8e4..c0b88a1332 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Reset an anomaly detection job. // All model state and results are deleted. The job is ready to start over as if @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -148,7 +148,7 @@ func (r *ResetJob) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/resetjob/response.go b/typedapi/ml/resetjob/response.go index 68098bf996..c2380743ba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package resetjob // Response holds the response body struct for the package resetjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/reset_job/MlResetJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 00b41f4ff2..382a98b0c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package revertmodelsnapshot @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package revertmodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/revert_model_snapshot/MlRevertModelSnapshotRequest.ts#L23-L77 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e392d74515..278bb901d6 100644 --- a/typedapi/ml/revertmodelsnapshot/response.go +++ b/typedapi/ml/revertmodelsnapshot/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package revertmodelsnapshot import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package revertmodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/revert_model_snapshot/MlRevertModelSnapshotResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ccc882d8ea..49f87253c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Revert to a snapshot. // The machine learning features react quickly to anomalous input, learning new @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -215,12 +215,12 @@ func (r *RevertModelSnapshot) HttpRequest(ctx context.Context) (*http.Request, e if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/setupgrademode/response.go b/typedapi/ml/setupgrademode/response.go index 2cd77de099..1d09d7fa51 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package setupgrademode // Response holds the response body struct for the package setupgrademode // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/set_upgrade_mode/MlSetUpgradeModeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fc2c716a1b..31f27d71cb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Set upgrade_mode for ML indices. // Sets a cluster wide upgrade_mode setting that prepares machine learning @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -148,7 +148,7 @@ func (r *SetUpgradeMode) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/startdatafeed/request.go b/typedapi/ml/startdatafeed/request.go index 4e204d4540..9c12e26960 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package startdatafeed @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package startdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/start_datafeed/MlStartDatafeedRequest.ts#L24-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d678c5c93d..df1eca763f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package startdatafeed @@ -31,7 +31,7 @@ import ( // Response holds the response body struct for the package startdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/start_datafeed/MlStartDatafeedResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 da9f6b180f..683a8da57a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Start datafeeds. // @@ -53,7 +53,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -226,12 +226,12 @@ func (r *StartDatafeed) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/startdataframeanalytics/response.go b/typedapi/ml/startdataframeanalytics/response.go index dcca1058c7..2ef4b27c9b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package startdataframeanalytics // Response holds the response body struct for the package startdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/start_data_frame_analytics/MlStartDataFrameAnalyticsResponse.ts#L22-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d831988a51..186577b926 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Start a data frame analytics job. // A data frame analytics job can be started and stopped multiple times @@ -44,7 +44,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -165,12 +165,12 @@ func (r *StartDataFrameAnalytics) HttpRequest(ctx context.Context) (*http.Reques if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/starttrainedmodeldeployment/request.go b/typedapi/ml/starttrainedmodeldeployment/request.go index 9295b3f4f1..0a11aab417 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package starttrainedmodeldeployment @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package starttrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentRequest.ts#L30-L111 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4afcae577f..e9229b4b19 100644 --- a/typedapi/ml/starttrainedmodeldeployment/response.go +++ b/typedapi/ml/starttrainedmodeldeployment/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package starttrainedmodeldeployment import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package starttrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/start_trained_model_deployment/MlStartTrainedModelDeploymentResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0f54fa9f3a..f341209fd9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Start a trained model deployment. // It allocates the model to every machine learning node. @@ -35,9 +35,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentallocationstate" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainingpriority" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/deploymentallocationstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/trainingpriority" ) const ( @@ -194,12 +194,12 @@ func (r *StartTrainedModelDeployment) HttpRequest(ctx context.Context) (*http.Re if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/stopdatafeed/request.go b/typedapi/ml/stopdatafeed/request.go index dc086030f2..a0940a766c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stopdatafeed @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package stopdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/stop_datafeed/MlStopDatafeedRequest.ts#L24-L86 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c990fb6e67..4623334f74 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stopdatafeed // Response holds the response body struct for the package stopdatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/stop_datafeed/MlStopDatafeedResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3bbcae7de8..2582b75f3a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Stop datafeeds. // A datafeed that is stopped ceases to retrieve data from Elasticsearch. A @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -194,12 +194,12 @@ func (r *StopDatafeed) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/stopdataframeanalytics/response.go b/typedapi/ml/stopdataframeanalytics/response.go index 354d8df9a9..94e4d3bda6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stopdataframeanalytics // Response holds the response body struct for the package stopdataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/stop_data_frame_analytics/MlStopDataFrameAnalyticsResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 44ae5f617f..02dd73407c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Stop data frame analytics jobs. // A data frame analytics job can be started and stopped multiple times @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -147,12 +147,12 @@ func (r *StopDataFrameAnalytics) HttpRequest(ctx context.Context) (*http.Request if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/stoptrainedmodeldeployment/response.go b/typedapi/ml/stoptrainedmodeldeployment/response.go index 479a3709d8..fc6f8c1e8f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stoptrainedmodeldeployment // Response holds the response body struct for the package stoptrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/stop_trained_model_deployment/MlStopTrainedModelDeploymentResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d4646cfbc5..51c793091f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Stop a trained model deployment. package stoptrainedmodeldeployment @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -143,12 +143,12 @@ func (r *StopTrainedModelDeployment) HttpRequest(ctx context.Context) (*http.Req if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/updatedatafeed/request.go b/typedapi/ml/updatedatafeed/request.go index 9083aa42e6..104661977a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatedatafeed @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L170 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/update_datafeed/MlUpdateDatafeedRequest.ts#L31-L170 type Request struct { // Aggregations If set, the datafeed performs aggregation searches. Support for aggregations diff --git a/typedapi/ml/updatedatafeed/response.go b/typedapi/ml/updatedatafeed/response.go index fb9c0535cf..79177f34c7 100644 --- a/typedapi/ml/updatedatafeed/response.go +++ b/typedapi/ml/updatedatafeed/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatedatafeed import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package updatedatafeed // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_datafeed/MlUpdateDatafeedResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c2d57e3133..286d28f3de 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update a datafeed. // You must stop and start the datafeed for the changes to be applied. @@ -40,8 +40,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -201,12 +201,12 @@ func (r *UpdateDatafeed) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/updatedataframeanalytics/request.go b/typedapi/ml/updatedataframeanalytics/request.go index d90b048167..6855690839 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatedataframeanalytics @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsRequest.ts#L24-L80 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3d179adbf2..941860958c 100644 --- a/typedapi/ml/updatedataframeanalytics/response.go +++ b/typedapi/ml/updatedataframeanalytics/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatedataframeanalytics import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package updatedataframeanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_data_frame_analytics/MlUpdateDataFrameAnalyticsResponse.ts#L30-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3e7d76d7ea..eb872e412c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update a data frame analytics job. package updatedataframeanalytics @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -190,12 +190,12 @@ func (r *UpdateDataFrameAnalytics) HttpRequest(ctx context.Context) (*http.Reque if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/updatefilter/request.go b/typedapi/ml/updatefilter/request.go index 549497b0f8..2a85cc599a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatefilter @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatefilter // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_filter/MlUpdateFilterRequest.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d8d57c52eb..2c792a06cb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatefilter // Response holds the response body struct for the package updatefilter // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_filter/MlUpdateFilterResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0cfd8d1c86..f5f89d0370 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update a filter. // Updates the description of a filter, adds items, or removes items from the @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -192,12 +192,12 @@ func (r *UpdateFilter) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/updatejob/request.go b/typedapi/ml/updatejob/request.go index 0a6dd28348..ada6bacc02 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatejob @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatejob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_job/MlUpdateJobRequest.ts#L33-L147 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 54f1092176..8113226dad 100644 --- a/typedapi/ml/updatejob/response.go +++ b/typedapi/ml/updatejob/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatejob import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package updatejob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_job/MlUpdateJobResponse.ts#L29-L53 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8f31bedc73..b60c80b5ae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update an anomaly detection job. // Updates certain properties of an anomaly detection job. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -190,12 +190,12 @@ func (r *UpdateJob) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/updatemodelsnapshot/request.go b/typedapi/ml/updatemodelsnapshot/request.go index d02e93108e..a012ba74f9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatemodelsnapshot @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_model_snapshot/MlUpdateModelSnapshotRequest.ts#L23-L63 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f3764b73df..91a329c767 100644 --- a/typedapi/ml/updatemodelsnapshot/response.go +++ b/typedapi/ml/updatemodelsnapshot/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatemodelsnapshot import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package updatemodelsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_model_snapshot/MlUpdateModelSnapshotResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9478a537e3..94e9706608 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update a snapshot. // Updates certain properties of a snapshot. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -203,12 +203,12 @@ func (r *UpdateModelSnapshot) HttpRequest(ctx context.Context) (*http.Request, e if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/updatetrainedmodeldeployment/request.go b/typedapi/ml/updatetrainedmodeldeployment/request.go index 2dd32b7384..a4697cc1bf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatetrainedmodeldeployment @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatetrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentRequest.ts#L25-L78 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2ad72a8895..3fa7f78348 100644 --- a/typedapi/ml/updatetrainedmodeldeployment/response.go +++ b/typedapi/ml/updatetrainedmodeldeployment/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatetrainedmodeldeployment import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package updatetrainedmodeldeployment // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/update_trained_model_deployment/MlUpdateTrainedModelDeploymentResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1832e05f67..3e85b7100e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update a trained model deployment. package updatetrainedmodeldeployment @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -190,12 +190,12 @@ func (r *UpdateTrainedModelDeployment) HttpRequest(ctx context.Context) (*http.R if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/upgradejobsnapshot/response.go b/typedapi/ml/upgradejobsnapshot/response.go index cdd3511b7f..6bf6d98262 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package upgradejobsnapshot // Response holds the response body struct for the package upgradejobsnapshot // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/upgrade_job_snapshot/MlUpgradeJobSnapshotResponse.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 97a6b19f9b..bf583bd5e9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Upgrade a snapshot. // Upgrade an anomaly detection model snapshot to the latest major version. @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -171,7 +171,7 @@ func (r *UpgradeJobSnapshot) HttpRequest(ctx context.Context) (*http.Request, er req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/validate/request.go b/typedapi/ml/validate/request.go index 5913e24dd8..2e39f52263 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package validate @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package validate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/validate/MlValidateJobRequest.ts#L27-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d1d686ca73..f9a7393a4e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package validate // Response holds the response body struct for the package validate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/validate/MlValidateJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6a9c74aeba..d15545b2a7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Validate an anomaly detection job. package validate @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -174,12 +174,12 @@ func (r *Validate) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ml/validatedetector/request.go b/typedapi/ml/validatedetector/request.go index 39987a197e..0cf8c76532 100644 --- a/typedapi/ml/validatedetector/request.go +++ b/typedapi/ml/validatedetector/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package validatedetector import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package validatedetector // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/validate_detector/MlValidateDetectorRequest.ts#L23-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 df57769fe7..4eb89ebd81 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package validatedetector // Response holds the response body struct for the package validatedetector // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/validate_detector/MlValidateDetectorResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f742c23c53..86699ca5c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Validate an anomaly detection job. package validatedetector @@ -34,8 +34,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/excludefrequent" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/excludefrequent" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -177,12 +177,12 @@ func (r *ValidateDetector) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/monitoring/bulk/bulk.go b/typedapi/monitoring/bulk/bulk.go index b23de5f68e..65c94d0dc6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Send monitoring data. // This API is used by the monitoring features to send monitoring data. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -198,12 +198,12 @@ func (r *Bulk) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/monitoring/bulk/helpers.go b/typedapi/monitoring/bulk/helpers.go index f211ae040f..927be62a43 100644 --- a/typedapi/monitoring/bulk/helpers.go +++ b/typedapi/monitoring/bulk/helpers.go @@ -21,7 +21,7 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // CreateOp is a helper function to add a CreateOperation to the current bulk request. diff --git a/typedapi/monitoring/bulk/helpers_test.go b/typedapi/monitoring/bulk/helpers_test.go index 5cc6c15046..823a545b36 100644 --- a/typedapi/monitoring/bulk/helpers_test.go +++ b/typedapi/monitoring/bulk/helpers_test.go @@ -23,7 +23,7 @@ import ( "math" "testing" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) func TestBulk_CreateOp(t *testing.T) { diff --git a/typedapi/monitoring/bulk/request.go b/typedapi/monitoring/bulk/request.go index c70fd80cb8..87ba90d292 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package bulk // Request holds the request body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/monitoring/bulk/BulkMonitoringRequest.ts#L24-L73 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8371517862..afcdeb6092 100644 --- a/typedapi/monitoring/bulk/response.go +++ b/typedapi/monitoring/bulk/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package bulk import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package bulk // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/monitoring/bulk/BulkMonitoringResponse.ts#L23-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 18c9ee3776..f2d36d77b2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear the archived repositories metering. // Clear the archived repositories metering information in the cluster. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -151,7 +151,7 @@ func (r *ClearRepositoriesMeteringArchive) HttpRequest(ctx context.Context) (*ht req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/nodes/clearrepositoriesmeteringarchive/response.go b/typedapi/nodes/clearrepositoriesmeteringarchive/response.go index e9ee6baa1b..fc39b86126 100644 --- a/typedapi/nodes/clearrepositoriesmeteringarchive/response.go +++ b/typedapi/nodes/clearrepositoriesmeteringarchive/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearrepositoriesmeteringarchive import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package clearrepositoriesmeteringarchive // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/clear_repositories_metering_archive/ClearRepositoriesMeteringArchiveResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 938b70cbcd..5a005e7123 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get cluster repositories metering. // Get repositories metering information for a cluster. @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -150,7 +150,7 @@ func (r *GetRepositoriesMeteringInfo) HttpRequest(ctx context.Context) (*http.Re req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/nodes/getrepositoriesmeteringinfo/response.go b/typedapi/nodes/getrepositoriesmeteringinfo/response.go index df8e9e5f85..81fa3f1abc 100644 --- a/typedapi/nodes/getrepositoriesmeteringinfo/response.go +++ b/typedapi/nodes/getrepositoriesmeteringinfo/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getrepositoriesmeteringinfo import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getrepositoriesmeteringinfo // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/get_repositories_metering_info/GetRepositoriesMeteringInfoResponse.ts#L36-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9dfc8ee3e1..947bf13c8c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the hot threads for nodes. // Get a breakdown of the hot threads on each selected node in the cluster. @@ -36,8 +36,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/threadtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/threadtype" ) const ( diff --git a/typedapi/nodes/hotthreads/response.go b/typedapi/nodes/hotthreads/response.go index ae0324d341..21a6dd460c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package hotthreads // Response holds the response body struct for the package hotthreads // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/hot_threads/NodesHotThreadsResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d91866c9a4..2aac7d0e53 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get node information. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -176,7 +176,7 @@ func (r *Info) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/nodes/info/response.go b/typedapi/nodes/info/response.go index 3467c11bf7..db3e94305b 100644 --- a/typedapi/nodes/info/response.go +++ b/typedapi/nodes/info/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package info import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/NodesInfoResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0a53a20b27..59a096aea3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Reload the keystore on nodes in the cluster. // @@ -51,7 +51,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -225,12 +225,12 @@ func (r *ReloadSecureSettings) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/nodes/reloadsecuresettings/request.go b/typedapi/nodes/reloadsecuresettings/request.go index de876bc091..b92cf07323 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package reloadsecuresettings @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package reloadsecuresettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/reload_secure_settings/ReloadSecureSettingsRequest.ts#L24-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cd798f6f68..d553b38d86 100644 --- a/typedapi/nodes/reloadsecuresettings/response.go +++ b/typedapi/nodes/reloadsecuresettings/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package reloadsecuresettings import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package reloadsecuresettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/reload_secure_settings/ReloadSecureSettingsResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e429311045..f11bf02bba 100644 --- a/typedapi/nodes/stats/response.go +++ b/typedapi/nodes/stats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/stats/NodesStatsResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e5e000e8af..330587f934 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get node statistics. // Get statistics for nodes in a cluster. @@ -36,8 +36,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/level" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/level" ) const ( @@ -232,7 +232,7 @@ func (r *Stats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/nodes/usage/response.go b/typedapi/nodes/usage/response.go index 24fb428b6b..c622cc2312 100644 --- a/typedapi/nodes/usage/response.go +++ b/typedapi/nodes/usage/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package usage import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package usage // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/usage/NodesUsageResponse.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 856a92a092..7e94cffbc6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get feature usage information. package usage @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -178,7 +178,7 @@ func (r *Usage) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/profiling/flamegraph/flamegraph.go b/typedapi/profiling/flamegraph/flamegraph.go index f60409f9ed..b67fffcf7c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Extracts a UI-optimized structure to render flamegraphs from Universal // Profiling. @@ -124,12 +124,12 @@ func (r *Flamegraph) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/profiling/stacktraces/stacktraces.go b/typedapi/profiling/stacktraces/stacktraces.go index e1b5b474be..b5fcada826 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Extracts raw stacktrace information from Universal Profiling. package stacktraces @@ -122,12 +122,12 @@ func (r *Stacktraces) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/profiling/status/status.go b/typedapi/profiling/status/status.go index 9997e989a1..d10005f1e1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Returns basic information about the status of Universal Profiling. package status @@ -121,7 +121,7 @@ func (r *Status) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/profiling/topnfunctions/topn_functions.go b/typedapi/profiling/topnfunctions/topn_functions.go index fca91872c7..f759a0d435 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Extracts a list of topN functions from Universal Profiling. package topnfunctions @@ -124,12 +124,12 @@ func (r *TopnFunctions) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/queryrules/deleterule/delete_rule.go b/typedapi/queryrules/deleterule/delete_rule.go index bbed1a046a..f0107b156c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a query rule. // Delete a query rule within a query ruleset. @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -155,7 +155,7 @@ func (r *DeleteRule) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/queryrules/deleterule/response.go b/typedapi/queryrules/deleterule/response.go index dc724a2bf1..a3441b14cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleterule // Response holds the response body struct for the package deleterule // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/delete_rule/QueryRuleDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2deab9272b..19daf611da 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a query ruleset. // Remove a query ruleset and its associated data. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *DeleteRuleset) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/queryrules/deleteruleset/response.go b/typedapi/queryrules/deleteruleset/response.go index 2616acebcc..900a7415ec 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteruleset // Response holds the response body struct for the package deleteruleset // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/delete_ruleset/QueryRulesetDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 89d0e9ceb6..382cd51674 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a query rule. // Get details about a query rule within a query ruleset. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -151,7 +151,7 @@ func (r *GetRule) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/queryrules/getrule/response.go b/typedapi/queryrules/getrule/response.go index b64b43c9f1..4afa69badc 100644 --- a/typedapi/queryrules/getrule/response.go +++ b/typedapi/queryrules/getrule/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getrule import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/queryruletype" ) // Response holds the response body struct for the package getrule // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/get_rule/QueryRuleGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9cf68a54a3..038106ffae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a query ruleset. // Get details about a query ruleset. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -138,7 +138,7 @@ func (r *GetRuleset) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/queryrules/getruleset/response.go b/typedapi/queryrules/getruleset/response.go index 73870afa9a..67168918cf 100644 --- a/typedapi/queryrules/getruleset/response.go +++ b/typedapi/queryrules/getruleset/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getruleset import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getruleset // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/get_ruleset/QueryRulesetGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7f773cdca7..592bdcedc3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get all query rulesets. // Get summarized information about the query rulesets. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -124,7 +124,7 @@ func (r *ListRulesets) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/queryrules/listrulesets/response.go b/typedapi/queryrules/listrulesets/response.go index eb5895ed62..138f851a56 100644 --- a/typedapi/queryrules/listrulesets/response.go +++ b/typedapi/queryrules/listrulesets/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package listrulesets import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package listrulesets // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/list_rulesets/QueryRulesetListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fccc2c8066..35a0e7ff70 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a query rule. // Create or update a query rule within a query ruleset. @@ -42,8 +42,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/queryruletype" ) const ( @@ -214,12 +214,12 @@ func (r *PutRule) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/queryrules/putrule/request.go b/typedapi/queryrules/putrule/request.go index 5cf702966b..41fd2c6340 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putrule @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/queryruletype" ) // Request holds the request body struct for the package putrule // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/put_rule/QueryRulePutRequest.ts#L28-L79 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1b6e233768..f91667933e 100644 --- a/typedapi/queryrules/putrule/response.go +++ b/typedapi/queryrules/putrule/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putrule import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package putrule // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/put_rule/QueryRulePutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 087cff6a32..725e4f4205 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a query ruleset. // There is a limit of 100 rules per ruleset. @@ -44,7 +44,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -204,12 +204,12 @@ func (r *PutRuleset) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/queryrules/putruleset/request.go b/typedapi/queryrules/putruleset/request.go index 569227b566..1ed042a3e6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putruleset @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putruleset // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/put_ruleset/QueryRulesetPutRequest.ts#L23-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 95cebb9d32..730e4cac97 100644 --- a/typedapi/queryrules/putruleset/response.go +++ b/typedapi/queryrules/putruleset/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putruleset import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package putruleset // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/put_ruleset/QueryRulesetPutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5f40b47b08..7f20839416 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package test @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package test // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/test/QueryRulesetTestRequest.ts#L24-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 34a1c70785..03a588822f 100644 --- a/typedapi/queryrules/test/response.go +++ b/typedapi/queryrules/test/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package test import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package test // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/test/QueryRulesetTestResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2457844d42..01eaa3a875 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Test a query ruleset. // Evaluate match criteria against a query ruleset to identify the rules that @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -190,12 +190,12 @@ func (r *Test) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/rollup/deletejob/delete_job.go b/typedapi/rollup/deletejob/delete_job.go index feaa3971bd..d8f8d7a701 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a rollup job. // @@ -63,7 +63,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -198,7 +198,7 @@ func (r *DeleteJob) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/rollup/deletejob/response.go b/typedapi/rollup/deletejob/response.go index 47d7258457..32ecb12530 100644 --- a/typedapi/rollup/deletejob/response.go +++ b/typedapi/rollup/deletejob/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletejob import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package deletejob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/delete_job/DeleteRollupJobResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1d98443044..6a8c23e646 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get rollup job information. // Get the configuration, stats, and status of rollup jobs. @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -157,7 +157,7 @@ func (r *GetJobs) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/rollup/getjobs/response.go b/typedapi/rollup/getjobs/response.go index 71ad49c9c4..2bee0c3686 100644 --- a/typedapi/rollup/getjobs/response.go +++ b/typedapi/rollup/getjobs/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getjobs import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getjobs // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_jobs/GetRollupJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9eb228895d..788f2e39d8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the rollup job capabilities. // Get the capabilities of any rollup jobs that have been configured for a @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -167,7 +167,7 @@ func (r *GetRollupCaps) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/rollup/getrollupcaps/response.go b/typedapi/rollup/getrollupcaps/response.go index b24c94b9e1..1614932edc 100644 --- a/typedapi/rollup/getrollupcaps/response.go +++ b/typedapi/rollup/getrollupcaps/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getrollupcaps import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getrollupcaps // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_rollup_caps/GetRollupCapabilitiesResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3951686a9e..dab4a6466a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the rollup index capabilities. // Get the rollup capabilities of all jobs inside of a rollup index. @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -154,7 +154,7 @@ func (r *GetRollupIndexCaps) HttpRequest(ctx context.Context) (*http.Request, er req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/rollup/getrollupindexcaps/response.go b/typedapi/rollup/getrollupindexcaps/response.go index 0ec65b8722..19ef31158d 100644 --- a/typedapi/rollup/getrollupindexcaps/response.go +++ b/typedapi/rollup/getrollupindexcaps/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getrollupindexcaps import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getrollupindexcaps // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_rollup_index_caps/GetRollupIndexCapabilitiesResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8bff0480c3..ce3a3d6ab2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a rollup job. // @@ -50,7 +50,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -218,12 +218,12 @@ func (r *PutJob) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/rollup/putjob/request.go b/typedapi/rollup/putjob/request.go index 6cf252be5f..bbb7d9a7c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putjob @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/put_job/CreateRollupJobRequest.ts#L27-L105 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cd66ed2b65..80bdc1dcf6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putjob // Response holds the response body struct for the package putjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/put_job/CreateRollupJobResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b388e1b3a6..9bd47e013e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package rollupsearch @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package rollupsearch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/rollup_search/RollupSearchRequest.ts#L27-L109 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/rollup_search/RollupSearchRequest.ts#L27-L109 type Request struct { // Aggregations Specifies aggregations. diff --git a/typedapi/rollup/rollupsearch/response.go b/typedapi/rollup/rollupsearch/response.go index 0f68621aa3..f6ed16298f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package rollupsearch @@ -29,12 +29,12 @@ import ( "strconv" "strings" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package rollupsearch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/rollup_search/RollupSearchResponse.ts#L27-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 450c186e2f..f761960f19 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Search rolled-up data. // The rollup search endpoint is needed because, internally, rolled-up documents @@ -79,7 +79,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -274,12 +274,12 @@ func (r *RollupSearch) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/rollup/startjob/response.go b/typedapi/rollup/startjob/response.go index c6d6ce6b36..273579ea07 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package startjob // Response holds the response body struct for the package startjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/start_job/StartRollupJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e431c62802..351aa16951 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Start rollup jobs. // If you try to start a job that does not exist, an exception occurs. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *StartJob) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/rollup/stopjob/response.go b/typedapi/rollup/stopjob/response.go index af4b664e31..12f0bf2dea 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stopjob // Response holds the response body struct for the package stopjob // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/stop_job/StopRollupJobResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9c0b317928..4d44bd50ae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Stop rollup jobs. // If you try to stop a job that does not exist, an exception occurs. @@ -48,7 +48,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -170,7 +170,7 @@ func (r *StopJob) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchablesnapshots/cachestats/cache_stats.go b/typedapi/searchablesnapshots/cachestats/cache_stats.go index ba8dce30a3..d44a94bf81 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get cache statistics. // Get statistics about the shared cache for partially mounted indices. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -149,7 +149,7 @@ func (r *CacheStats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchablesnapshots/cachestats/response.go b/typedapi/searchablesnapshots/cachestats/response.go index 0b78f2a4eb..abaadeab73 100644 --- a/typedapi/searchablesnapshots/cachestats/response.go +++ b/typedapi/searchablesnapshots/cachestats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package cachestats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package cachestats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/searchable_snapshots/cache_stats/Response.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1ab62a3373..5731443154 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear the cache. // Clear indices and data streams from the shared cache for partially mounted @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -152,7 +152,7 @@ func (r *ClearCache) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchablesnapshots/clearcache/response.go b/typedapi/searchablesnapshots/clearcache/response.go index 319bd76ea3..d3111b4d6d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearcache @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package clearcache // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheResponse.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 caf38f7517..2e8db894a8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Mount a snapshot. // Mount a snapshot as a searchable snapshot index. @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -205,12 +205,12 @@ func (r *Mount) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchablesnapshots/mount/request.go b/typedapi/searchablesnapshots/mount/request.go index 36d4d217ed..eadba43d76 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package mount @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package mount // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/searchable_snapshots/mount/SearchableSnapshotsMountRequest.ts#L26-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c44697808e..f08f9cb4c4 100644 --- a/typedapi/searchablesnapshots/mount/response.go +++ b/typedapi/searchablesnapshots/mount/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package mount import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package mount // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/searchable_snapshots/mount/SearchableSnapshotsMountResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 310648aebe..f7335ecdef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stats @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/searchable_snapshots/stats/SearchableSnapshotsStatsResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d87ff23dc6..9e09f67fda 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get searchable snapshot statistics. package stats @@ -33,8 +33,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/statslevel" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/statslevel" ) const ( @@ -144,7 +144,7 @@ func (r *Stats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchapplication/delete/delete.go b/typedapi/searchapplication/delete/delete.go index 462ca1ae0a..2d10778d4b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a search application. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *Delete) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchapplication/delete/response.go b/typedapi/searchapplication/delete/response.go index c930c3c07c..58ebf13cbe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/delete/SearchApplicationsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5cf84573ee..6d3e392b2f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a behavioral analytics collection. // The associated data stream is also deleted. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *DeleteBehavioralAnalytics) HttpRequest(ctx context.Context) (*http.Requ req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchapplication/deletebehavioralanalytics/response.go b/typedapi/searchapplication/deletebehavioralanalytics/response.go index 72ed1ba1ca..0525a661a1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletebehavioralanalytics // Response holds the response body struct for the package deletebehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/delete_behavioral_analytics/BehavioralAnalyticsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a0ab303d8a..e0b3fb619e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get search application details. package get @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -138,7 +138,7 @@ func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchapplication/get/response.go b/typedapi/searchapplication/get/response.go index 1f1fba2488..caa8801f75 100644 --- a/typedapi/searchapplication/get/response.go +++ b/typedapi/searchapplication/get/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package get import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/get/SearchApplicationsGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1a4324127e..ffc62acbb5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get behavioral analytics collections. package getbehavioralanalytics @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -143,7 +143,7 @@ func (r *GetBehavioralAnalytics) HttpRequest(ctx context.Context) (*http.Request req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchapplication/getbehavioralanalytics/response.go b/typedapi/searchapplication/getbehavioralanalytics/response.go index 5435bc44fa..73789fa980 100644 --- a/typedapi/searchapplication/getbehavioralanalytics/response.go +++ b/typedapi/searchapplication/getbehavioralanalytics/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getbehavioralanalytics import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getbehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 77b0ee0f3b..9b4959f567 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get search applications. // Get information about search applications. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -126,7 +126,7 @@ func (r *List) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchapplication/list/response.go b/typedapi/searchapplication/list/response.go index dfccb2d016..f938b52f02 100644 --- a/typedapi/searchapplication/list/response.go +++ b/typedapi/searchapplication/list/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package list import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/list/SearchApplicationsListResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e0d80a90d7..1566552216 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a behavioral analytics collection event. package postbehavioralanalyticsevent @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -206,12 +206,12 @@ func (r *PostBehavioralAnalyticsEvent) HttpRequest(ctx context.Context) (*http.R if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchapplication/postbehavioralanalyticsevent/request.go b/typedapi/searchapplication/postbehavioralanalyticsevent/request.go index 0081f09c19..b386748a0a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package postbehavioralanalyticsevent @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package postbehavioralanalyticsevent // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostRequest.ts#L24-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2eb4603225..4b826f2807 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package postbehavioralanalyticsevent @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package postbehavioralanalyticsevent // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/post_behavioral_analytics_event/BehavioralAnalyticsEventPostResponse.ts#L22-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 132f12dd92..4abe423828 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a search application. package put @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -186,12 +186,12 @@ func (r *Put) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchapplication/put/request.go b/typedapi/searchapplication/put/request.go index a2782f90cc..d72b1ca914 100644 --- a/typedapi/searchapplication/put/request.go +++ b/typedapi/searchapplication/put/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package put import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/put/SearchApplicationsPutRequest.ts#L23-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 aaa8d0e9c5..7c265c4dcf 100644 --- a/typedapi/searchapplication/put/response.go +++ b/typedapi/searchapplication/put/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package put import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package put // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/put/SearchApplicationsPutResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 99bbc75f30..5f02029a5d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a behavioral analytics collection. package putbehavioralanalytics @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -138,7 +138,7 @@ func (r *PutBehavioralAnalytics) HttpRequest(ctx context.Context) (*http.Request req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchapplication/putbehavioralanalytics/response.go b/typedapi/searchapplication/putbehavioralanalytics/response.go index e7ed5468da..0b00fdec54 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putbehavioralanalytics // Response holds the response body struct for the package putbehavioralanalytics // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/put_behavioral_analytics/BehavioralAnalyticsPutResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d437ae0147..734529a07a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Render a search application query. // Generate an Elasticsearch query using the specified query parameters and the @@ -44,7 +44,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -208,12 +208,12 @@ func (r *RenderQuery) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/searchapplication/renderquery/request.go b/typedapi/searchapplication/renderquery/request.go index 977c24f185..473b64fcab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package renderquery @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package renderquery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/render_query/SearchApplicationsRenderQueryRequest.ts#L24-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d04085c53d..3925792a6a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package renderquery // Response holds the response body struct for the package renderquery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/render_query/SearchApplicationsRenderQueryResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 640e1e409c..a5402a5929 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package search @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/search/SearchApplicationsSearchRequest.ts#L24-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 14e2f0d430..c6a63dab81 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package search @@ -29,12 +29,12 @@ import ( "strconv" "strings" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package search // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/search/SearchApplicationsSearchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2fe5f9f193..2049f0b372 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run a search application search. // Generate and run an Elasticsearch query that uses the specified query @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -198,12 +198,12 @@ func (r *Search) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/activateuserprofile/activate_user_profile.go b/typedapi/security/activateuserprofile/activate_user_profile.go index 7cbbd51692..b61fdf280f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Activate a user profile. // @@ -57,8 +57,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/granttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/granttype" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -221,12 +221,12 @@ func (r *ActivateUserProfile) HttpRequest(ctx context.Context) (*http.Request, e if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/activateuserprofile/request.go b/typedapi/security/activateuserprofile/request.go index 79a37542fc..568ae45801 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package activateuserprofile @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/granttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/granttype" ) // Request holds the request body struct for the package activateuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/activate_user_profile/Request.ts#L23-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b2b7f2151e..005b4b51c2 100644 --- a/typedapi/security/activateuserprofile/response.go +++ b/typedapi/security/activateuserprofile/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package activateuserprofile import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package activateuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/activate_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bac1ad41c2..7643b2e7ba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Authenticate a user. // @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -142,7 +142,7 @@ func (r *Authenticate) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/authenticate/response.go b/typedapi/security/authenticate/response.go index 7945119cf0..068efe675f 100644 --- a/typedapi/security/authenticate/response.go +++ b/typedapi/security/authenticate/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package authenticate import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package authenticate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/authenticate/SecurityAuthenticateResponse.ts#L24-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f24abcbd6d..4ffc2c59d4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Bulk delete roles. // @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -183,12 +183,12 @@ func (r *BulkDeleteRole) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/bulkdeleterole/request.go b/typedapi/security/bulkdeleterole/request.go index 96b2b7f324..a445f7b461 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package bulkdeleterole @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package bulkdeleterole // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/bulk_delete_role/SecurityBulkDeleteRoleRequest.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d7818d44fc..53f94ffb0b 100644 --- a/typedapi/security/bulkdeleterole/response.go +++ b/typedapi/security/bulkdeleterole/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package bulkdeleterole import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package bulkdeleterole // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/bulk_delete_role/SecurityBulkDeleteRoleResponse.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6dcc577264..ec79248b0f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Bulk create or update roles. // @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -183,12 +183,12 @@ func (r *BulkPutRole) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/bulkputrole/request.go b/typedapi/security/bulkputrole/request.go index a7c54344db..e58eee15c5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package bulkputrole @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package bulkputrole // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/bulk_put_role/SecurityBulkPutRoleRequest.ts#L25-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2e40b36c15..f8b9e17139 100644 --- a/typedapi/security/bulkputrole/response.go +++ b/typedapi/security/bulkputrole/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package bulkputrole import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package bulkputrole // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/bulk_put_role/SecurityBulkPutRoleResponse.ts#L22-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7a630303b2..43fc8f3fd3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Bulk update API keys. // Update the attributes for multiple API keys. @@ -61,7 +61,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -228,12 +228,12 @@ func (r *BulkUpdateApiKeys) HttpRequest(ctx context.Context) (*http.Request, err if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/bulkupdateapikeys/request.go b/typedapi/security/bulkupdateapikeys/request.go index 6e88886ac9..1083695ec4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package bulkupdateapikeys @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package bulkupdateapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequest.ts#L26-L83 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d773a2a66d..6c42318b73 100644 --- a/typedapi/security/bulkupdateapikeys/response.go +++ b/typedapi/security/bulkupdateapikeys/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package bulkupdateapikeys import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package bulkupdateapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysResponse.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 11defdb13d..db646c660a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Change passwords. // @@ -36,8 +36,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -200,12 +200,12 @@ func (r *ChangePassword) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/changepassword/request.go b/typedapi/security/changepassword/request.go index 5cecd74df7..2a2426fb4b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package changepassword @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package changepassword // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/change_password/SecurityChangePasswordRequest.ts#L23-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b412a49b43..0130a880f2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package changepassword // Response holds the response body struct for the package changepassword // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/change_password/SecurityChangePasswordResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ff91582802..59c543329b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear the API key cache. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -148,7 +148,7 @@ func (r *ClearApiKeyCache) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/clearapikeycache/response.go b/typedapi/security/clearapikeycache/response.go index d96335b0ce..73485cc774 100644 --- a/typedapi/security/clearapikeycache/response.go +++ b/typedapi/security/clearapikeycache/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearapikeycache import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package clearapikeycache // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/clear_api_key_cache/SecurityClearApiKeyCacheResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f1abe40c21..fdf9669fc9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear the privileges cache. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -148,7 +148,7 @@ func (r *ClearCachedPrivileges) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/clearcachedprivileges/response.go b/typedapi/security/clearcachedprivileges/response.go index 2c27718a0b..7e6dd4651d 100644 --- a/typedapi/security/clearcachedprivileges/response.go +++ b/typedapi/security/clearcachedprivileges/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearcachedprivileges import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package clearcachedprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/clear_cached_privileges/SecurityClearCachedPrivilegesResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dea8c0e6bb..6a92e04349 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear the user cache. // @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -158,7 +158,7 @@ func (r *ClearCachedRealms) HttpRequest(ctx context.Context) (*http.Request, err req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/clearcachedrealms/response.go b/typedapi/security/clearcachedrealms/response.go index 9927fe29e1..1a12e1e757 100644 --- a/typedapi/security/clearcachedrealms/response.go +++ b/typedapi/security/clearcachedrealms/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearcachedrealms import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package clearcachedrealms // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/clear_cached_realms/SecurityClearCachedRealmsResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 eada77eeaa..a068df42ff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear the roles cache. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *ClearCachedRoles) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/clearcachedroles/response.go b/typedapi/security/clearcachedroles/response.go index 7815a5a562..cb1d8e3b82 100644 --- a/typedapi/security/clearcachedroles/response.go +++ b/typedapi/security/clearcachedroles/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearcachedroles import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package clearcachedroles // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/clear_cached_roles/ClearCachedRolesResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 09feda8b06..d2c9b12d7d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear service account token caches. // @@ -44,7 +44,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -188,7 +188,7 @@ func (r *ClearCachedServiceTokens) HttpRequest(ctx context.Context) (*http.Reque req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/clearcachedservicetokens/response.go b/typedapi/security/clearcachedservicetokens/response.go index 6ed09814c7..c054e77774 100644 --- a/typedapi/security/clearcachedservicetokens/response.go +++ b/typedapi/security/clearcachedservicetokens/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearcachedservicetokens import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package clearcachedservicetokens // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/clear_cached_service_tokens/ClearCachedServiceTokensResponse.ts#L25-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0c547a6bee..50adee90fc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create an API key. // @@ -53,8 +53,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -211,12 +211,12 @@ func (r *CreateApiKey) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/createapikey/request.go b/typedapi/security/createapikey/request.go index 063fe016a8..6e8ce663a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package createapikey @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package createapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/create_api_key/SecurityCreateApiKeyRequest.ts#L26-L86 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 57facbd040..d827ee46c4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package createapikey // Response holds the response body struct for the package createapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/create_api_key/SecurityCreateApiKeyResponse.ts#L23-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 de1304c20d..2160b88e55 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a cross-cluster API key. // @@ -62,7 +62,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -230,12 +230,12 @@ func (r *CreateCrossClusterApiKey) HttpRequest(ctx context.Context) (*http.Reque if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/createcrossclusterapikey/request.go b/typedapi/security/createcrossclusterapikey/request.go index d91b09e84e..b02601a1d2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package createcrossclusterapikey @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package createcrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyRequest.ts#L25-L80 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a03afaabab..04b128a11b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package createcrossclusterapikey // Response holds the response body struct for the package createcrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/create_cross_cluster_api_key/CreateCrossClusterApiKeyResponse.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b781527e30..3e39f37569 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a service account token. // @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -198,7 +198,7 @@ func (r *CreateServiceToken) HttpRequest(ctx context.Context) (*http.Request, er req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/createservicetoken/response.go b/typedapi/security/createservicetoken/response.go index fbb28efa6e..5497141f7e 100644 --- a/typedapi/security/createservicetoken/response.go +++ b/typedapi/security/createservicetoken/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package createservicetoken import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package createservicetoken // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/create_service_token/CreateServiceTokenResponse.ts#L22-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 922c9a721c..60b8fb4e09 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delegate PKI authentication. // @@ -54,7 +54,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -211,7 +211,7 @@ func (r *DelegatePki) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/delegatepki/request.go b/typedapi/security/delegatepki/request.go index 74202707b7..2c406fa14e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package delegatepki @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package delegatepki // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/delegate_pki/SecurityDelegatePkiRequest.ts#L22-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 963f68fc14..e39be903cd 100644 --- a/typedapi/security/delegatepki/response.go +++ b/typedapi/security/delegatepki/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package delegatepki import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package delegatepki // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L24-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 51c473175d..212fd37c57 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete application privileges. // @@ -40,8 +40,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -164,7 +164,7 @@ func (r *DeletePrivileges) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/deleteprivileges/response.go b/typedapi/security/deleteprivileges/response.go index dea7298929..f5d304664c 100644 --- a/typedapi/security/deleteprivileges/response.go +++ b/typedapi/security/deleteprivileges/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteprivileges import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package deleteprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/delete_privileges/SecurityDeletePrivilegesResponse.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2162e24218..ed51886449 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete roles. // @@ -38,8 +38,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -149,7 +149,7 @@ func (r *DeleteRole) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/deleterole/response.go b/typedapi/security/deleterole/response.go index 3c665574cd..7d96144578 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleterole // Response holds the response body struct for the package deleterole // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/delete_role/SecurityDeleteRoleResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e0e279c4f1..cb922070e0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete role mappings. // @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -151,7 +151,7 @@ func (r *DeleteRoleMapping) HttpRequest(ctx context.Context) (*http.Request, err req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/deleterolemapping/response.go b/typedapi/security/deleterolemapping/response.go index 9bee74610c..46de68fcd6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleterolemapping // Response holds the response body struct for the package deleterolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/delete_role_mapping/SecurityDeleteRoleMappingResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cda6896980..5a814bfa82 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete service account tokens. // @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -169,7 +169,7 @@ func (r *DeleteServiceToken) HttpRequest(ctx context.Context) (*http.Request, er req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/deleteservicetoken/response.go b/typedapi/security/deleteservicetoken/response.go index 9480236849..37342db2a6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteservicetoken // Response holds the response body struct for the package deleteservicetoken // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/delete_service_token/DeleteServiceTokenResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5e47d97e14..23ba1ea1e9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete users. // @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -143,7 +143,7 @@ func (r *DeleteUser) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/deleteuser/response.go b/typedapi/security/deleteuser/response.go index f46fd68f8c..12795d0442 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteuser // Response holds the response body struct for the package deleteuser // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/delete_user/SecurityDeleteUserResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0833a6bead..fd018252b5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Disable users. // @@ -37,8 +37,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -149,7 +149,7 @@ func (r *DisableUser) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/disableuser/response.go b/typedapi/security/disableuser/response.go index 688f4b816c..dd525f4272 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package disableuser // Response holds the response body struct for the package disableuser // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/disable_user/SecurityDisableUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dbd6d19a40..fac77aa54e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Disable a user profile. // @@ -46,8 +46,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -167,7 +167,7 @@ func (r *DisableUserProfile) HttpRequest(ctx context.Context) (*http.Request, er req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/disableuserprofile/response.go b/typedapi/security/disableuserprofile/response.go index 542b735168..ae9197bbc9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package disableuserprofile // Response holds the response body struct for the package disableuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/disable_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 55c22b73d4..f02790ffb1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Enable users. // @@ -36,8 +36,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -147,7 +147,7 @@ func (r *EnableUser) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/enableuser/response.go b/typedapi/security/enableuser/response.go index 1a135e7ed3..5f2abd2dd4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package enableuser // Response holds the response body struct for the package enableuser // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/enable_user/SecurityEnableUserResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 85f46e994f..d1f14f0012 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Enable a user profile. // @@ -46,8 +46,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -167,7 +167,7 @@ func (r *EnableUserProfile) HttpRequest(ctx context.Context) (*http.Request, err req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/enableuserprofile/response.go b/typedapi/security/enableuserprofile/response.go index 2be25e1f93..57e33036d3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package enableuserprofile // Response holds the response body struct for the package enableuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/enable_user_profile/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8ad0935d7c..ce7daa4fdf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Enroll Kibana. // @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -141,12 +141,12 @@ func (r *EnrollKibana) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/enrollkibana/response.go b/typedapi/security/enrollkibana/response.go index c7ebc0e616..cd192490b6 100644 --- a/typedapi/security/enrollkibana/response.go +++ b/typedapi/security/enrollkibana/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package enrollkibana import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package enrollkibana // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/enroll_kibana/Response.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 71b5f3ac41..07f2cfa1de 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Enroll a node. // @@ -43,7 +43,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -147,12 +147,12 @@ func (r *EnrollNode) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/enrollnode/response.go b/typedapi/security/enrollnode/response.go index 186f257692..8831bf67dc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package enrollnode // Response holds the response body struct for the package enrollnode // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/enroll_node/Response.ts#L20-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f0f07dbb79..3d4169deac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get API key information. // @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -138,7 +138,7 @@ func (r *GetApiKey) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/getapikey/response.go b/typedapi/security/getapikey/response.go index bc77ac482f..e2976ab6f6 100644 --- a/typedapi/security/getapikey/response.go +++ b/typedapi/security/getapikey/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getapikey import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_api_key/SecurityGetApiKeyResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 57af84eea4..0e96012b04 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get builtin privileges. // @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -132,7 +132,7 @@ func (r *GetBuiltinPrivileges) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/getbuiltinprivileges/response.go b/typedapi/security/getbuiltinprivileges/response.go index 6ced071a91..d03cf69e1b 100644 --- a/typedapi/security/getbuiltinprivileges/response.go +++ b/typedapi/security/getbuiltinprivileges/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getbuiltinprivileges import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/remoteclusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/remoteclusterprivilege" ) // Response holds the response body struct for the package getbuiltinprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_builtin_privileges/SecurityGetBuiltinPrivilegesResponse.ts#L26-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0328b9a106..864eb0de70 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get application privileges. // @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -179,7 +179,7 @@ func (r *GetPrivileges) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/getprivileges/response.go b/typedapi/security/getprivileges/response.go index 8fe8bf779f..5c14d3afc8 100644 --- a/typedapi/security/getprivileges/response.go +++ b/typedapi/security/getprivileges/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getprivileges import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_privileges/SecurityGetPrivilegesResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4d72ab9a01..eb392ecafd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get roles. // @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -153,7 +153,7 @@ func (r *GetRole) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/getrole/response.go b/typedapi/security/getrole/response.go index 0060d6c14d..ef3a97afa7 100644 --- a/typedapi/security/getrole/response.go +++ b/typedapi/security/getrole/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getrole import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getrole // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_role/SecurityGetRoleResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d622d2d376..23073c9d41 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get role mappings. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -155,7 +155,7 @@ func (r *GetRoleMapping) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/getrolemapping/response.go b/typedapi/security/getrolemapping/response.go index adb4175164..f5323af037 100644 --- a/typedapi/security/getrolemapping/response.go +++ b/typedapi/security/getrolemapping/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getrolemapping import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_role_mapping/SecurityGetRoleMappingResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 703d581bab..1ffb424bff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get service accounts. // @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -175,7 +175,7 @@ func (r *GetServiceAccounts) HttpRequest(ctx context.Context) (*http.Request, er req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/getserviceaccounts/response.go b/typedapi/security/getserviceaccounts/response.go index 1af51d1a58..d747fb8a6d 100644 --- a/typedapi/security/getserviceaccounts/response.go +++ b/typedapi/security/getserviceaccounts/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getserviceaccounts import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getserviceaccounts // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_service_accounts/GetServiceAccountsResponse.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f911b85c74..c874870b00 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get service account credentials. // @@ -46,7 +46,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -177,7 +177,7 @@ func (r *GetServiceCredentials) HttpRequest(ctx context.Context) (*http.Request, req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/getservicecredentials/response.go b/typedapi/security/getservicecredentials/response.go index 0b9c7130fa..cb56ab2f41 100644 --- a/typedapi/security/getservicecredentials/response.go +++ b/typedapi/security/getservicecredentials/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getservicecredentials import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getservicecredentials // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_service_credentials/GetServiceCredentialsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2534129b44..3cbff4e3c1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get security index settings. // @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -143,12 +143,12 @@ func (r *GetSettings) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/getsettings/response.go b/typedapi/security/getsettings/response.go index 5cafba9a20..ae7373d1e2 100644 --- a/typedapi/security/getsettings/response.go +++ b/typedapi/security/getsettings/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getsettings import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_settings/SecurityGetSettingsResponse.ts#L21-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e8c068d463..c5a6cdfc16 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a token. // @@ -56,8 +56,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/accesstokengranttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/accesstokengranttype" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -219,12 +219,12 @@ func (r *GetToken) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/gettoken/request.go b/typedapi/security/gettoken/request.go index 0bee5ca763..7c271f7d18 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package gettoken @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/accesstokengranttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/accesstokengranttype" ) // Request holds the request body struct for the package gettoken // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_token/GetUserAccessTokenRequest.ts#L25-L90 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f8f6692ba9..aff4c5ebc5 100644 --- a/typedapi/security/gettoken/response.go +++ b/typedapi/security/gettoken/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package gettoken import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package gettoken // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_token/GetUserAccessTokenResponse.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a6eb42f48f..c58df4d127 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get users. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -147,7 +147,7 @@ func (r *GetUser) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/getuser/response.go b/typedapi/security/getuser/response.go index 37b84ee650..306420f560 100644 --- a/typedapi/security/getuser/response.go +++ b/typedapi/security/getuser/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getuser import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getuser // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_user/SecurityGetUserResponse.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2c9968c9fe..035c96ef81 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get user privileges. // @@ -39,7 +39,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -138,7 +138,7 @@ func (r *GetUserPrivileges) HttpRequest(ctx context.Context) (*http.Request, err req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/getuserprivileges/response.go b/typedapi/security/getuserprivileges/response.go index 0260d9794c..18916c523f 100644 --- a/typedapi/security/getuserprivileges/response.go +++ b/typedapi/security/getuserprivileges/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getuserprivileges import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getuserprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_user_privileges/SecurityGetUserPrivilegesResponse.ts#L28-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6513bc6240..5be393b40c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a user profile. // @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -154,7 +154,7 @@ func (r *GetUserProfile) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/getuserprofile/response.go b/typedapi/security/getuserprofile/response.go index c13b0e2cbd..e6336e3d59 100644 --- a/typedapi/security/getuserprofile/response.go +++ b/typedapi/security/getuserprofile/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getuserprofile import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_user_profile/Response.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 30bce7e5c6..2f054641f5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Grant an API key. // @@ -65,8 +65,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/apikeygranttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/apikeygranttype" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -237,12 +237,12 @@ func (r *GrantApiKey) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/grantapikey/request.go b/typedapi/security/grantapikey/request.go index 654327df0d..40ab853d7f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package grantapikey @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/apikeygranttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/apikeygranttype" ) // Request holds the request body struct for the package grantapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/grant_api_key/SecurityGrantApiKeyRequest.ts#L24-L92 type Request struct { // AccessToken The user's access token. diff --git a/typedapi/security/grantapikey/response.go b/typedapi/security/grantapikey/response.go index c8118159a4..a8cd846776 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package grantapikey // Response holds the response body struct for the package grantapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/grant_api_key/SecurityGrantApiKeyResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5b3cce3e0b..fd6073de00 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Check user privileges. // @@ -38,8 +38,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" ) const ( @@ -204,12 +204,12 @@ func (r *HasPrivileges) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/hasprivileges/request.go b/typedapi/security/hasprivileges/request.go index 8b08ffbc4a..c857497b83 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package hasprivileges @@ -24,13 +24,13 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" ) // Request holds the request body struct for the package hasprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/has_privileges/SecurityHasPrivilegesRequest.ts#L25-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0c4bd745dc..b1cc78c196 100644 --- a/typedapi/security/hasprivileges/response.go +++ b/typedapi/security/hasprivileges/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package hasprivileges import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package hasprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/has_privileges/SecurityHasPrivilegesResponse.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6691476391..c0c2af8032 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Check user profile privileges. // @@ -43,7 +43,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -192,12 +192,12 @@ func (r *HasPrivilegesUserProfile) HttpRequest(ctx context.Context) (*http.Reque if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/hasprivilegesuserprofile/request.go b/typedapi/security/hasprivilegesuserprofile/request.go index f104ab0a01..ece0b1c61a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package hasprivilegesuserprofile @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package hasprivilegesuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/has_privileges_user_profile/Request.ts#L24-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 318b45e184..e08a60e8ec 100644 --- a/typedapi/security/hasprivilegesuserprofile/response.go +++ b/typedapi/security/hasprivilegesuserprofile/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package hasprivilegesuserprofile import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package hasprivilegesuserprofile // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/has_privileges_user_profile/Response.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bce4124ec3..3d75e5c932 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Invalidate API keys. // @@ -56,7 +56,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -216,12 +216,12 @@ func (r *InvalidateApiKey) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/invalidateapikey/request.go b/typedapi/security/invalidateapikey/request.go index 883fa371de..52c2726690 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package invalidateapikey @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package invalidateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/invalidate_api_key/SecurityInvalidateApiKeyRequest.ts#L23-L82 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4df1a78a41..15c71145db 100644 --- a/typedapi/security/invalidateapikey/response.go +++ b/typedapi/security/invalidateapikey/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package invalidateapikey import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package invalidateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/invalidate_api_key/SecurityInvalidateApiKeyResponse.ts#L23-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 46c1697910..4ecc106040 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Invalidate a token. // @@ -51,7 +51,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -208,12 +208,12 @@ func (r *InvalidateToken) HttpRequest(ctx context.Context) (*http.Request, error if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/invalidatetoken/request.go b/typedapi/security/invalidatetoken/request.go index ce58b1f3d2..53319f922b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package invalidatetoken @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package invalidatetoken // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/invalidate_token/SecurityInvalidateTokenRequest.ts#L23-L71 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6cd9218369..4eb20ae070 100644 --- a/typedapi/security/invalidatetoken/response.go +++ b/typedapi/security/invalidatetoken/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package invalidatetoken import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package invalidatetoken // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/invalidate_token/SecurityInvalidateTokenResponse.ts#L23-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e7df859b63..54a049ee40 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Authenticate OpenID Connect. // @@ -44,7 +44,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -194,12 +194,12 @@ func (r *OidcAuthenticate) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/oidcauthenticate/request.go b/typedapi/security/oidcauthenticate/request.go index 3b0ee71bd2..710173446b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package oidcauthenticate @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package oidcauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/oidc_authenticate/Request.ts#L22-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ffbefa26f9..2ef4029f23 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package oidcauthenticate // Response holds the response body struct for the package oidcauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/oidc_authenticate/Response.ts#L22-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 340eae7f5c..adfa53becb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Logout of OpenID Connect. // @@ -48,7 +48,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -202,12 +202,12 @@ func (r *OidcLogout) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -364,28 +364,28 @@ func (r *OidcLogout) Pretty(pretty bool) *OidcLogout { return r } -// The access token to be invalidated. -// API name: access_token -func (r *OidcLogout) AccessToken(accesstoken string) *OidcLogout { +// The refresh token to be invalidated. +// API name: refresh_token +func (r *OidcLogout) RefreshToken(refreshtoken string) *OidcLogout { // Initialize the request if it is not already initialized if r.req == nil { r.req = NewRequest() } - r.req.AccessToken = accesstoken + r.req.RefreshToken = &refreshtoken return r } -// The refresh token to be invalidated. -// API name: refresh_token -func (r *OidcLogout) RefreshToken(refreshtoken string) *OidcLogout { +// The access token to be invalidated. +// API name: token +func (r *OidcLogout) Token(token string) *OidcLogout { // Initialize the request if it is not already initialized if r.req == nil { r.req = NewRequest() } - r.req.RefreshToken = &refreshtoken + r.req.Token = token return r } diff --git a/typedapi/security/oidclogout/request.go b/typedapi/security/oidclogout/request.go index b0a7884dca..a18aed4603 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package oidclogout @@ -27,13 +27,13 @@ import ( // Request holds the request body struct for the package oidclogout // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/oidc_logout/Request.ts#L22-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/oidc_logout/Request.ts#L22-L52 type Request struct { - // AccessToken The access token to be invalidated. - AccessToken string `json:"access_token"` // RefreshToken The refresh token to be invalidated. RefreshToken *string `json:"refresh_token,omitempty"` + // Token The access token to be invalidated. + Token string `json:"token"` } // NewRequest returns a Request diff --git a/typedapi/security/oidclogout/response.go b/typedapi/security/oidclogout/response.go index 605b99cd4f..c224184a20 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package oidclogout // Response holds the response body struct for the package oidclogout // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/oidc_logout/Response.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 648a119fa9..8aa669ce00 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Prepare OpenID connect authentication. // @@ -47,7 +47,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -200,12 +200,12 @@ func (r *OidcPrepareAuthentication) HttpRequest(ctx context.Context) (*http.Requ if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/oidcprepareauthentication/request.go b/typedapi/security/oidcprepareauthentication/request.go index c3133b0307..49aa55bca7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package oidcprepareauthentication @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package oidcprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/oidc_prepare_authentication/Request.ts#L22-L71 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 82e385aa04..5f752d31ea 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package oidcprepareauthentication // Response holds the response body struct for the package oidcprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/oidc_prepare_authentication/Response.ts#L20-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f98daa9f66..38cb28c7f6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update application privileges. // @@ -58,8 +58,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -221,12 +221,12 @@ func (r *PutPrivileges) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/putprivileges/request.go b/typedapi/security/putprivileges/request.go index d48411eb7a..ee75103f9f 100644 --- a/typedapi/security/putprivileges/request.go +++ b/typedapi/security/putprivileges/request.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putprivileges import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/put_privileges/SecurityPutPrivilegesRequest.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ea38acef91..9a88768991 100644 --- a/typedapi/security/putprivileges/response.go +++ b/typedapi/security/putprivileges/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putprivileges import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package putprivileges // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/put_privileges/SecurityPutPrivilegesResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9f5e7c6540..96dd2b34c6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update roles. // @@ -40,9 +40,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -200,12 +200,12 @@ func (r *PutRole) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/putrole/request.go b/typedapi/security/putrole/request.go index 0af4df3bec..65f0ed0dd8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putrole @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" ) // Request holds the request body struct for the package putrole // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/put_role/SecurityPutRoleRequest.ts#L32-L111 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 44a5dded38..060cdf68e1 100644 --- a/typedapi/security/putrole/response.go +++ b/typedapi/security/putrole/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putrole import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package putrole // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/put_role/SecurityPutRoleResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c4b8c54a4b..d93106b643 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update role mappings. // @@ -72,8 +72,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -263,12 +263,12 @@ func (r *PutRoleMapping) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/putrolemapping/request.go b/typedapi/security/putrolemapping/request.go index 691ee88fa4..26d13110bb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putrolemapping @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/put_role_mapping/SecurityPutRoleMappingRequest.ts#L25-L103 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bd0b8b354e..a827741436 100644 --- a/typedapi/security/putrolemapping/response.go +++ b/typedapi/security/putrolemapping/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putrolemapping import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package putrolemapping // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/put_role_mapping/SecurityPutRoleMappingResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 437ae7d43a..10920503e5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update users. // @@ -40,8 +40,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -199,12 +199,12 @@ func (r *PutUser) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/putuser/request.go b/typedapi/security/putuser/request.go index 59869e40cd..386520aea6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putuser @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putuser // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/put_user/SecurityPutUserRequest.ts#L23-L101 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 afb2ce66cd..9b4f63ba8f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putuser // Response holds the response body struct for the package putuser // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/put_user/SecurityPutUserResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 093eb995c5..2ac2ea4890 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Find API keys with a query. // @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -196,12 +196,12 @@ func (r *QueryApiKeys) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/queryapikeys/request.go b/typedapi/security/queryapikeys/request.go index 3ef5f46b07..91cdaac681 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package queryapikeys @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package queryapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L124 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/query_api_keys/QueryApiKeysRequest.ts#L26-L124 type Request struct { // Aggregations Any aggregations to run over the corpus of returned API keys. diff --git a/typedapi/security/queryapikeys/response.go b/typedapi/security/queryapikeys/response.go index 9d1bdbee49..1819d77712 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package queryapikeys @@ -29,12 +29,12 @@ import ( "strconv" "strings" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package queryapikeys // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_api_keys/QueryApiKeysResponse.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c171e485d8..698702f7b9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Find roles with a query. // @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -190,12 +190,12 @@ func (r *QueryRole) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/queryrole/request.go b/typedapi/security/queryrole/request.go index a38848821c..684b78dc70 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package queryrole @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package queryrole // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_role/QueryRolesRequest.ts#L25-L85 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c90b1d2243..3398944699 100644 --- a/typedapi/security/queryrole/response.go +++ b/typedapi/security/queryrole/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package queryrole import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package queryrole // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_role/QueryRolesResponse.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ab486ce20b..67db8d1d90 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Find users with a query. // @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -188,12 +188,12 @@ func (r *QueryUser) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/queryuser/request.go b/typedapi/security/queryuser/request.go index 99c145b94a..a7854a8445 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package queryuser @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package queryuser // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_user/SecurityQueryUserRequest.ts#L25-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e27e538021..5d2695a225 100644 --- a/typedapi/security/queryuser/response.go +++ b/typedapi/security/queryuser/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package queryuser import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package queryuser // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_user/SecurityQueryUserResponse.ts#L23-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9831c05aaa..11d6d884af 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package samlauthenticate @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package samlauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/saml_authenticate/Request.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 99f62767fe..a3f5dfec54 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package samlauthenticate // Response holds the response body struct for the package samlauthenticate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/saml_authenticate/Response.ts#L22-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bf3bcaa9b1..ef519efd40 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Authenticate SAML. // @@ -58,7 +58,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -222,12 +222,12 @@ func (r *SamlAuthenticate) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/samlcompletelogout/request.go b/typedapi/security/samlcompletelogout/request.go index 587534d73f..eec81bd111 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package samlcompletelogout @@ -31,7 +31,7 @@ import ( // Request holds the request body struct for the package samlcompletelogout // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/saml_complete_logout/Request.ts#L23-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 de38f3ed6a..7d47196780 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Logout of SAML completely. // @@ -207,12 +207,12 @@ func (r *SamlCompleteLogout) HttpRequest(ctx context.Context) (*http.Request, er if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/samlinvalidate/request.go b/typedapi/security/samlinvalidate/request.go index 1f208ac996..858577a254 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package samlinvalidate @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samlinvalidate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/saml_invalidate/Request.ts#L22-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8dbcffeb90..e9b6e6af2d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package samlinvalidate // Response holds the response body struct for the package samlinvalidate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/saml_invalidate/Response.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 84bfbc4d56..fda3b53fa6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Invalidate SAML. // @@ -50,7 +50,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -206,12 +206,12 @@ func (r *SamlInvalidate) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/samllogout/request.go b/typedapi/security/samllogout/request.go index d166f0a849..731206b3fd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package samllogout @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samllogout // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/saml_logout/Request.ts#L22-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6fca359ec7..602658e44c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package samllogout // Response holds the response body struct for the package samllogout // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/saml_logout/Response.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fe025193da..a2443cbaf7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Logout of SAML. // @@ -48,7 +48,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -202,12 +202,12 @@ func (r *SamlLogout) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/samlprepareauthentication/request.go b/typedapi/security/samlprepareauthentication/request.go index 54299424f8..63d36c73e9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package samlprepareauthentication @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package samlprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/saml_prepare_authentication/Request.ts#L22-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 05e9d540e2..07d07cee32 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package samlprepareauthentication // Response holds the response body struct for the package samlprepareauthentication // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/saml_prepare_authentication/Response.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 45067205f2..f90b149d70 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Prepare SAML authentication. // @@ -56,7 +56,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -218,12 +218,12 @@ func (r *SamlPrepareAuthentication) HttpRequest(ctx context.Context) (*http.Requ if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/samlserviceprovidermetadata/response.go b/typedapi/security/samlserviceprovidermetadata/response.go index ee5ba10865..e7f3451c24 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package samlserviceprovidermetadata // Response holds the response body struct for the package samlserviceprovidermetadata // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/saml_service_provider_metadata/Response.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9fef266d27..3692dbd2e2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create SAML service provider metadata. // @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -155,12 +155,12 @@ func (r *SamlServiceProviderMetadata) HttpRequest(ctx context.Context) (*http.Re if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/suggestuserprofiles/request.go b/typedapi/security/suggestuserprofiles/request.go index 579168f90b..fb1611d7fa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package suggestuserprofiles @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package suggestuserprofiles // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/suggest_user_profiles/Request.ts#L24-L81 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 68f08b39f4..6c55739739 100644 --- a/typedapi/security/suggestuserprofiles/response.go +++ b/typedapi/security/suggestuserprofiles/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package suggestuserprofiles import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package suggestuserprofiles // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/suggest_user_profiles/Response.ts#L29-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 349b94b2b9..f5fa816635 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Suggest a user profile. // @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -190,12 +190,12 @@ func (r *SuggestUserProfiles) HttpRequest(ctx context.Context) (*http.Request, e if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/updateapikey/request.go b/typedapi/security/updateapikey/request.go index d7580a0998..d484214833 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateapikey @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/update_api_key/Request.ts#L26-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 53880bacd1..7211122359 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateapikey // Response holds the response body struct for the package updateapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/update_api_key/Response.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cff30e739e..8b2c2f2004 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update an API key. // @@ -66,7 +66,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -250,12 +250,12 @@ func (r *UpdateApiKey) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/updatecrossclusterapikey/request.go b/typedapi/security/updatecrossclusterapikey/request.go index b073e0fb58..d1761e6747 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatecrossclusterapikey @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatecrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L83 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyRequest.ts#L25-L83 type Request struct { // Access The access to be granted to this API key. diff --git a/typedapi/security/updatecrossclusterapikey/response.go b/typedapi/security/updatecrossclusterapikey/response.go index 4818645572..1ca861704b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatecrossclusterapikey // Response holds the response body struct for the package updatecrossclusterapikey // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/update_cross_cluster_api_key/UpdateCrossClusterApiKeyResponse.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2a37c31f39..c9eb032a88 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update a cross-cluster API key. // @@ -58,7 +58,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -236,12 +236,12 @@ func (r *UpdateCrossClusterApiKey) HttpRequest(ctx context.Context) (*http.Reque if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/updatesettings/request.go b/typedapi/security/updatesettings/request.go index 45f2230015..330c270159 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatesettings @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/update_settings/SecurityUpdateSettingsRequest.ts#L24-L71 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1eedf628f0..ab1143db0c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatesettings // Response holds the response body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/update_settings/SecurityUpdateSettingsResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c0b30d5e98..05bedb0e82 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update security index settings. // @@ -47,7 +47,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -198,12 +198,12 @@ func (r *UpdateSettings) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/security/updateuserprofiledata/request.go b/typedapi/security/updateuserprofiledata/request.go index d7c2f3e6ec..58733c5034 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateuserprofiledata @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updateuserprofiledata // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/update_user_profile_data/Request.ts#L27-L98 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ac138f3834..5e631a0aef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updateuserprofiledata // Response holds the response body struct for the package updateuserprofiledata // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/update_user_profile_data/Response.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4a17188cd0..efb36e6784 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update user profile data. // @@ -58,8 +58,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) const ( @@ -237,12 +237,12 @@ func (r *UpdateUserProfileData) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/shutdown/deletenode/delete_node.go b/typedapi/shutdown/deletenode/delete_node.go index b02cb5888d..247222f51c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Cancel node shutdown preparations. // Remove a node from the shutdown list so it can resume normal operations. @@ -44,8 +44,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) const ( @@ -162,12 +162,12 @@ func (r *DeleteNode) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/shutdown/deletenode/response.go b/typedapi/shutdown/deletenode/response.go index 042865d6f4..13655a4599 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletenode // Response holds the response body struct for the package deletenode // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/shutdown/delete_node/ShutdownDeleteNodeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f7664e9108..dde782128e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the shutdown status. // @@ -44,8 +44,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" ) const ( @@ -167,12 +167,12 @@ func (r *GetNode) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/shutdown/getnode/response.go b/typedapi/shutdown/getnode/response.go index 5a73420161..8a90beab7e 100644 --- a/typedapi/shutdown/getnode/response.go +++ b/typedapi/shutdown/getnode/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getnode import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getnode // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 400c30ce4f..f7d23f8270 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Prepare a node to be shut down. // @@ -57,9 +57,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeunit" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/type_" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/type_" ) const ( @@ -234,12 +234,12 @@ func (r *PutNode) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/shutdown/putnode/request.go b/typedapi/shutdown/putnode/request.go index 045e63da1f..1b80ac193d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putnode @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/type_" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/type_" ) // Request holds the request body struct for the package putnode // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/shutdown/put_node/ShutdownPutNodeRequest.ts#L25-L108 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f861109880..cc9412b252 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putnode // Response holds the response body struct for the package putnode // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/shutdown/put_node/ShutdownPutNodeResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 447f272215..3f6792e7f6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Simulate data ingestion. // Run ingest pipelines against a set of provided documents, optionally with @@ -67,7 +67,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -257,12 +257,12 @@ func (r *Ingest) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/simulate/ingest/request.go b/typedapi/simulate/ingest/request.go index a234f79dfc..d3ff7ac9ac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package ingest @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package ingest // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/simulate/ingest/SimulateIngestRequest.ts#L29-L100 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 653c219ce8..c5e4939e9f 100644 --- a/typedapi/simulate/ingest/response.go +++ b/typedapi/simulate/ingest/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package ingest import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package ingest // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/simulate/ingest/SimulateIngestResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5fa3feb3d8..b97c5c2e4b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a policy. // Delete a snapshot lifecycle policy definition. @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *DeleteLifecycle) HttpRequest(ctx context.Context) (*http.Request, error req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/slm/deletelifecycle/response.go b/typedapi/slm/deletelifecycle/response.go index e83525f8a8..972335c470 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletelifecycle // Response holds the response body struct for the package deletelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/delete_lifecycle/DeleteSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 61313694d5..7e9ec04522 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run a policy. // Immediately create a snapshot according to the snapshot lifecycle policy @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -150,7 +150,7 @@ func (r *ExecuteLifecycle) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/slm/executelifecycle/response.go b/typedapi/slm/executelifecycle/response.go index d168c384d4..15daf52291 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package executelifecycle // Response holds the response body struct for the package executelifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/execute_lifecycle/ExecuteSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d0d65ad707..83fa9ad40e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run a retention policy. // Manually apply the retention policy to force immediate removal of snapshots @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -130,7 +130,7 @@ func (r *ExecuteRetention) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/slm/executeretention/response.go b/typedapi/slm/executeretention/response.go index 22c576e865..ecb7518bf5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package executeretention // Response holds the response body struct for the package executeretention // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/execute_retention/ExecuteRetentionResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cdeae877de..f05e08993b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get policy information. // Get snapshot lifecycle policy definitions and information about the latest @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -147,7 +147,7 @@ func (r *GetLifecycle) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/slm/getlifecycle/response.go b/typedapi/slm/getlifecycle/response.go index 4493bf035f..6d5121324b 100644 --- a/typedapi/slm/getlifecycle/response.go +++ b/typedapi/slm/getlifecycle/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getlifecycle import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/get_lifecycle/GetSnapshotLifecycleResponse.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8137eed4cc..bfe04d9429 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get snapshot lifecycle management statistics. // Get global and policy-level statistics about actions taken by snapshot @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -128,7 +128,7 @@ func (r *GetStats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/slm/getstats/response.go b/typedapi/slm/getstats/response.go index 90eabb6e18..5ba42a29d3 100644 --- a/typedapi/slm/getstats/response.go +++ b/typedapi/slm/getstats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getstats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getstats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts#L23-L36 type Response struct { PolicyStats []string `json:"policy_stats"` RetentionDeletionTime types.Duration `json:"retention_deletion_time"` diff --git a/typedapi/slm/getstatus/get_status.go b/typedapi/slm/getstatus/get_status.go index e9dc50bee7..8ced8fe424 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the snapshot lifecycle management status. package getstatus @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -124,7 +124,7 @@ func (r *GetStatus) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/slm/getstatus/response.go b/typedapi/slm/getstatus/response.go index f52f496d1f..ff49909f71 100644 --- a/typedapi/slm/getstatus/response.go +++ b/typedapi/slm/getstatus/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getstatus import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/lifecycleoperationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/lifecycleoperationmode" ) // Response holds the response body struct for the package getstatus // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/get_status/GetSnapshotLifecycleManagementStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 567a45bbb5..2617da7817 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a policy. // Create or update a snapshot lifecycle policy. @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -192,12 +192,12 @@ func (r *PutLifecycle) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/slm/putlifecycle/request.go b/typedapi/slm/putlifecycle/request.go index b1f6aa5983..0efb4b3828 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putlifecycle @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/put_lifecycle/PutSnapshotLifecycleRequest.ts#L26-L89 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3fea82b9bf..c8aa16b72a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putlifecycle // Response holds the response body struct for the package putlifecycle // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/put_lifecycle/PutSnapshotLifecycleResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 28b40ffb77..9e9f56daf7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/start/StartSnapshotLifecycleManagementResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e1552bad81..473b462112 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Start snapshot lifecycle management. // Snapshot lifecycle management (SLM) starts automatically when a cluster is @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -132,7 +132,7 @@ func (r *Start) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/slm/stop/response.go b/typedapi/slm/stop/response.go index 03ced05168..c0eb54d299 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/stop/StopSnapshotLifecycleManagementResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e9f1e88f6f..ec6e374125 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Stop snapshot lifecycle management. // Stop all snapshot lifecycle management (SLM) operations and the SLM plugin. @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -148,7 +148,7 @@ func (r *Stop) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/cleanuprepository/cleanup_repository.go b/typedapi/snapshot/cleanuprepository/cleanup_repository.go index 5cb487d26d..0a028519a1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clean up the snapshot repository. // Trigger the review of the contents of a snapshot repository and delete any @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -142,7 +142,7 @@ func (r *CleanupRepository) HttpRequest(ctx context.Context) (*http.Request, err req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/cleanuprepository/response.go b/typedapi/snapshot/cleanuprepository/response.go index fed034676a..44debccda6 100644 --- a/typedapi/snapshot/cleanuprepository/response.go +++ b/typedapi/snapshot/cleanuprepository/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package cleanuprepository import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package cleanuprepository // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e88882bcc1..76565454a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clone a snapshot. // Clone part of all of a snapshot into another snapshot in the same repository. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -210,12 +210,12 @@ func (r *Clone) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { @@ -367,16 +367,6 @@ func (r *Clone) MasterTimeout(duration string) *Clone { return r } -// Timeout The period of time to wait for a response. -// If no response is received before the timeout expires, the request fails and -// returns an error. -// API name: timeout -func (r *Clone) Timeout(duration string) *Clone { - 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/snapshot/clone/request.go b/typedapi/snapshot/clone/request.go index cb74d54ff4..c2d407701b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clone @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/clone/SnapshotCloneRequest.ts#L24-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1a34414e55..98a146858b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clone // Response holds the response body struct for the package clone // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/clone/SnapshotCloneResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 11cd7e3ffe..da1c70e65e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a snapshot. // Take a snapshot of a cluster or of data streams and indices. @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) const ( @@ -198,12 +198,12 @@ func (r *Create) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/create/request.go b/typedapi/snapshot/create/request.go index 932b657f95..d97ae24037 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package create @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) // Request holds the request body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/create/SnapshotCreateRequest.ts#L24-L126 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0afc026fce..8ec6fc46f5 100644 --- a/typedapi/snapshot/create/response.go +++ b/typedapi/snapshot/create/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package create import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package create // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/create/SnapshotCreateResponse.ts#L22-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1f53edd589..4c0453c400 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a snapshot repository. // IMPORTANT: If you are migrating searchable snapshots, the repository name @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -206,12 +206,12 @@ func (r *CreateRepository) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/createrepository/request.go b/typedapi/snapshot/createrepository/request.go index 8147d30cbf..80673bc4f6 100644 --- a/typedapi/snapshot/createrepository/request.go +++ b/typedapi/snapshot/createrepository/request.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package createrepository import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package createrepository // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/create_repository/SnapshotCreateRepositoryRequest.ts#L25-L79 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c3edd95fb6..251f720b90 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package createrepository // Response holds the response body struct for the package createrepository // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/create_repository/SnapshotCreateRepositoryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 796e2a7ff4..9dfa994696 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete snapshots. package delete @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -147,7 +147,7 @@ func (r *Delete) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/delete/response.go b/typedapi/snapshot/delete/response.go index b59a05597e..544855d11c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package delete // Response holds the response body struct for the package delete // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/delete/SnapshotDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7200b34932..246d969e66 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete snapshot repositories. // When a repository is unregistered, Elasticsearch removes only the reference @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -142,7 +142,7 @@ func (r *DeleteRepository) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/deleterepository/response.go b/typedapi/snapshot/deleterepository/response.go index 0211f44e64..23514dfaad 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleterepository // Response holds the response body struct for the package deleterepository // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/delete_repository/SnapshotDeleteRepositoryResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8d9098d454..ab36363496 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get snapshot information. // @@ -40,9 +40,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snapshotsort" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/snapshotsort" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) const ( @@ -163,7 +163,7 @@ func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/get/response.go b/typedapi/snapshot/get/response.go index 73a452f5ef..4b32a278bb 100644 --- a/typedapi/snapshot/get/response.go +++ b/typedapi/snapshot/get/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package get import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/get/SnapshotGetResponse.ts#L25-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 848a81238a..067e7d7515 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get snapshot repository information. package getrepository @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -139,7 +139,7 @@ func (r *GetRepository) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/getrepository/response.go b/typedapi/snapshot/getrepository/response.go index c7cee11454..00c92e0bc0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getrepository @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getrepository // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/get_repository/SnapshotGetRepositoryResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1b8ec2f96c..30695d5de2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Analyze a snapshot repository. // Analyze the performance characteristics and any incorrect behaviour found in @@ -207,7 +207,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -486,7 +486,7 @@ func (r *RepositoryAnalyze) HttpRequest(ctx context.Context) (*http.Request, err req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/repositoryanalyze/response.go b/typedapi/snapshot/repositoryanalyze/response.go index 3a37c4a070..ddecc6e181 100644 --- a/typedapi/snapshot/repositoryanalyze/response.go +++ b/typedapi/snapshot/repositoryanalyze/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package repositoryanalyze import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package repositoryanalyze // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L24-L108 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4b14581580..97c1fa8100 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Verify the repository integrity. // Verify the integrity of the contents of a snapshot repository. @@ -97,7 +97,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -266,7 +266,7 @@ func (r *RepositoryVerifyIntegrity) HttpRequest(ctx context.Context) (*http.Requ req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/repositoryverifyintegrity/response.go b/typedapi/snapshot/repositoryverifyintegrity/response.go index af338553b6..1250058cea 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package repositoryverifyintegrity @@ -26,7 +26,7 @@ import ( // Response holds the response body struct for the package repositoryverifyintegrity // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/repository_verify_integrity/SnapshotRepositoryVerifyIntegrityResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 05b7aec462..f35f080bf9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package restore @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package restore // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/restore/SnapshotRestoreRequest.ts#L25-L175 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 506f168767..0d101cacba 100644 --- a/typedapi/snapshot/restore/response.go +++ b/typedapi/snapshot/restore/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package restore import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package restore // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/restore/SnapshotRestoreResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e3484b471c..019744067f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Restore a snapshot. // Restore a snapshot of a cluster or data streams and indices. @@ -60,7 +60,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -249,12 +249,12 @@ func (r *Restore) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/status/response.go b/typedapi/snapshot/status/response.go index 4ed461a982..f1fcbe1b05 100644 --- a/typedapi/snapshot/status/response.go +++ b/typedapi/snapshot/status/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package status import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package status // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/status/SnapshotStatusResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fed633e9f7..13c1f4c19d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the snapshot status. // Get a detailed description of the current state for each shard participating @@ -58,7 +58,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -215,7 +215,7 @@ func (r *Status) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/snapshot/verifyrepository/response.go b/typedapi/snapshot/verifyrepository/response.go index 01c23a4306..81bd26eaa9 100644 --- a/typedapi/snapshot/verifyrepository/response.go +++ b/typedapi/snapshot/verifyrepository/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package verifyrepository import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package verifyrepository // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9694c31ea0..df74ef9fd1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Verify a snapshot repository. // Check for common misconfigurations in a snapshot repository. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *VerifyRepository) HttpRequest(ctx context.Context) (*http.Request, erro req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/some/pointers.go b/typedapi/some/pointers.go index d644730638..5d77d13547 100755 --- a/typedapi/some/pointers.go +++ b/typedapi/some/pointers.go @@ -19,7 +19,7 @@ // on primitive types for the TypedAPI. package some -import "github.com/elastic/go-elasticsearch/v8/typedapi/types" +import "github.com/elastic/go-elasticsearch/v9/typedapi/types" // String returns a pointer to a string func String(value string) *string { diff --git a/typedapi/sql/clearcursor/clear_cursor.go b/typedapi/sql/clearcursor/clear_cursor.go index bb179e1430..4db0082d88 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Clear an SQL search cursor. package clearcursor @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -172,12 +172,12 @@ func (r *ClearCursor) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/sql/clearcursor/request.go b/typedapi/sql/clearcursor/request.go index ba04ce1b11..e8b66f7df5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearcursor @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package clearcursor // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/sql/clear_cursor/ClearSqlCursorRequest.ts#L22-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c913ec31ef..137bfcbf46 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package clearcursor // Response holds the response body struct for the package clearcursor // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/sql/clear_cursor/ClearSqlCursorResponse.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8e4048c736..350dfd38d1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete an async SQL search. // Delete an async SQL search or a stored synchronous SQL search. @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -156,7 +156,7 @@ func (r *DeleteAsync) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/sql/deleteasync/response.go b/typedapi/sql/deleteasync/response.go index 6511919354..7d5b57274b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deleteasync // Response holds the response body struct for the package deleteasync // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/sql/delete_async/SqlDeleteAsyncResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8ccaa9daf6..1c6e3b1dc8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get async SQL search results. // Get the current status and available results for an async SQL search or @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -148,7 +148,7 @@ func (r *GetAsync) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/sql/getasync/response.go b/typedapi/sql/getasync/response.go index cfba2b931e..9065471c08 100644 --- a/typedapi/sql/getasync/response.go +++ b/typedapi/sql/getasync/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getasync import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getasync // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/sql/get_async/SqlGetAsyncResponse.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1c986393b7..3064c8c58d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get the async SQL search status. // Get the current status of an async SQL search or a stored synchronous SQL @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -144,7 +144,7 @@ func (r *GetAsyncStatus) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/sql/getasyncstatus/response.go b/typedapi/sql/getasyncstatus/response.go index e983ae8d9b..d3a8e225da 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getasyncstatus // Response holds the response body struct for the package getasyncstatus // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/sql/get_async_status/SqlGetAsyncStatusResponse.ts#L23-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9e3cc02cff..d3eed97cf8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get SQL search results. // Run an SQL request. @@ -35,8 +35,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sqlformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sqlformat" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -173,12 +173,12 @@ func (r *Query) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/sql/query/request.go b/typedapi/sql/query/request.go index f54950d2f3..54f0fb93ac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package query @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/sql/query/QuerySqlRequest.ts#L28-L152 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/sql/query/QuerySqlRequest.ts#L28-L152 type Request struct { // AllowPartialSearchResults If `true`, the response has partial results when there are shard request diff --git a/typedapi/sql/query/response.go b/typedapi/sql/query/response.go index 75c7aa57ce..bd8c2c65e0 100644 --- a/typedapi/sql/query/response.go +++ b/typedapi/sql/query/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package query import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package query // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/sql/query/QuerySqlResponse.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a2c181b62c..58eda2fe31 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package translate @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package translate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/sql/translate/TranslateSqlRequest.ts#L25-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e642de869c..544398d46d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package translate @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package translate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/sql/translate/TranslateSqlResponse.ts#L27-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5a60ee5927..e728db009a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Translate SQL into Elasticsearch queries. // Translate an SQL search into a search API request containing Query DSL. @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -178,12 +178,12 @@ func (r *Translate) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ssl/certificates/certificates.go b/typedapi/ssl/certificates/certificates.go index 7ed3bc7ea1..28f4595ea9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get SSL certificates. // @@ -62,7 +62,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -182,7 +182,7 @@ func (r *Certificates) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/ssl/certificates/response.go b/typedapi/ssl/certificates/response.go index 1691c0a68a..504737fe37 100644 --- a/typedapi/ssl/certificates/response.go +++ b/typedapi/ssl/certificates/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package certificates import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package certificates // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ssl/certificates/GetCertificatesResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 120963f736..a63f2c3dd0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a synonym set. // @@ -58,7 +58,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -186,7 +186,7 @@ func (r *DeleteSynonym) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/synonyms/deletesynonym/response.go b/typedapi/synonyms/deletesynonym/response.go index 263d6b7d23..fd429d3ecb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletesynonym // Response holds the response body struct for the package deletesynonym // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/delete_synonym/SynonymsDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 845378fc57..a90c66613d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a synonym rule. // Delete a synonym rule from a synonym set. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -150,12 +150,12 @@ func (r *DeleteSynonymRule) HttpRequest(ctx context.Context) (*http.Request, err if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/synonyms/deletesynonymrule/response.go b/typedapi/synonyms/deletesynonymrule/response.go index cb1f883015..2ea103bf89 100644 --- a/typedapi/synonyms/deletesynonymrule/response.go +++ b/typedapi/synonyms/deletesynonymrule/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletesynonymrule import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package deletesynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/delete_synonym_rule/SynonymRuleDeleteResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c7f8851e95..8b8617f8b7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a synonym set. package getsynonym @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -136,7 +136,7 @@ func (r *GetSynonym) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/synonyms/getsynonym/response.go b/typedapi/synonyms/getsynonym/response.go index fb0e3c0cae..fe1ddd66b5 100644 --- a/typedapi/synonyms/getsynonym/response.go +++ b/typedapi/synonyms/getsynonym/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getsynonym import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/get_synonym/SynonymsGetResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6f5dc565a4..1e7bcf2d3c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a synonym rule. // Get a synonym rule from a synonym set. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -150,12 +150,12 @@ func (r *GetSynonymRule) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/synonyms/getsynonymrule/response.go b/typedapi/synonyms/getsynonymrule/response.go index eb06453b88..b056a1f12c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getsynonymrule // Response holds the response body struct for the package getsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/get_synonym_rule/SynonymRuleGetResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b3b6a4ab1b..99ded84e33 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get all synonym sets. // Get a summary of all defined synonym sets. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -124,7 +124,7 @@ func (r *GetSynonymsSets) HttpRequest(ctx context.Context) (*http.Request, error req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/synonyms/getsynonymssets/response.go b/typedapi/synonyms/getsynonymssets/response.go index 529e9b4191..ca25a2f2f2 100644 --- a/typedapi/synonyms/getsynonymssets/response.go +++ b/typedapi/synonyms/getsynonymssets/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getsynonymssets import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getsynonymssets // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 01239b4a23..85eff84b3f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a synonym set. // Synonyms sets are limited to a maximum of 10,000 synonym rules per set. @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -200,12 +200,12 @@ func (r *PutSynonym) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/synonyms/putsynonym/request.go b/typedapi/synonyms/putsynonym/request.go index 0b9e7e052f..ddc65a8038 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putsynonym @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/synonyms/put_synonym/SynonymsPutRequest.ts#L23-L55 type Request struct { // SynonymsSet The synonym rules definitions for the synonyms set. diff --git a/typedapi/synonyms/putsynonym/response.go b/typedapi/synonyms/putsynonym/response.go index 78e1032ffb..da375ce048 100644 --- a/typedapi/synonyms/putsynonym/response.go +++ b/typedapi/synonyms/putsynonym/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putsynonym import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package putsynonym // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/put_synonym/SynonymsPutResponse.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cda8cccae9..9446119f34 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a synonym rule. // Create or update a synonym rule in a synonym set. @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -207,12 +207,12 @@ func (r *PutSynonymRule) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/synonyms/putsynonymrule/request.go b/typedapi/synonyms/putsynonymrule/request.go index 4504517c57..d5930f7e98 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putsynonymrule @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package putsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/put_synonym_rule/SynonymRulePutRequest.ts#L23-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 934c9722c0..3bb0dbc33e 100644 --- a/typedapi/synonyms/putsynonymrule/response.go +++ b/typedapi/synonyms/putsynonymrule/response.go @@ -16,18 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putsynonymrule import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // Response holds the response body struct for the package putsynonymrule // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/put_synonym_rule/SynonymRulePutResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f98aa07dc4..6b301c40c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Cancel a task. // @@ -52,7 +52,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -181,7 +181,7 @@ func (r *Cancel) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/tasks/cancel/response.go b/typedapi/tasks/cancel/response.go index af3062dde1..bc40384a17 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package cancel @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package cancel // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/tasks/cancel/CancelTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ea61c31068..c77ace2031 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get task information. // Get information about a task currently running in the cluster. @@ -41,7 +41,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -152,7 +152,7 @@ func (r *Get) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/tasks/get/response.go b/typedapi/tasks/get/response.go index bb7d6d8b2f..1767e80b34 100644 --- a/typedapi/tasks/get/response.go +++ b/typedapi/tasks/get/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package get import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package get // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/tasks/get/GetTaskResponse.ts#L24-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3353cdbb02..24d8711b64 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get all tasks. // Get information about the tasks currently running on one or more nodes in the @@ -101,8 +101,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/groupby" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/groupby" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -259,7 +259,7 @@ func (r *List) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/tasks/list/response.go b/typedapi/tasks/list/response.go index 37e18c88c7..387ec13700 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package list @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package list // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/tasks/list/ListTasksResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 805956f363..3a3873eb69 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Find the structure of a text field. // Find the structure of a text field in an Elasticsearch index. @@ -59,9 +59,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ecscompatibilitytype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/formattype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ecscompatibilitytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/formattype" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -178,7 +178,7 @@ func (r *FindFieldStructure) HttpRequest(ctx context.Context) (*http.Request, er req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/textstructure/findfieldstructure/response.go b/typedapi/textstructure/findfieldstructure/response.go index 8d3d942aa7..7ea7592384 100644 --- a/typedapi/textstructure/findfieldstructure/response.go +++ b/typedapi/textstructure/findfieldstructure/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package findfieldstructure import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ecscompatibilitytype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/formattype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ecscompatibilitytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/formattype" ) // Response holds the response body struct for the package findfieldstructure // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/find_field_structure/FindFieldStructureResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 50f637b726..e6da787114 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Find the structure of text messages. // Find the structure of a list of text messages. @@ -62,9 +62,9 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ecscompatibilitytype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/formattype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ecscompatibilitytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/formattype" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -230,12 +230,12 @@ func (r *FindMessageStructure) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/textstructure/findmessagestructure/request.go b/typedapi/textstructure/findmessagestructure/request.go index 3da65d0485..bcf8b8779d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package findmessagestructure @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package findmessagestructure // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/find_message_structure/FindMessageStructureRequest.ts#L25-L174 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 943cbba83a..bd509a58ea 100644 --- a/typedapi/textstructure/findmessagestructure/response.go +++ b/typedapi/textstructure/findmessagestructure/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package findmessagestructure import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ecscompatibilitytype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/formattype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ecscompatibilitytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/formattype" ) // Response holds the response body struct for the package findmessagestructure // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/find_message_structure/FindMessageStructureResponse.ts#L31-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 df344f75cd..13a5ba8674 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Find the structure of a text file. // The text file must contain data that is suitable to be ingested into @@ -60,7 +60,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -229,12 +229,12 @@ func (r *FindStructure) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+x-ndjson;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/textstructure/findstructure/request.go b/typedapi/textstructure/findstructure/request.go index 72af95d8e6..39ae20c657 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package findstructure @@ -26,7 +26,7 @@ import ( // Request holds the request body struct for the package findstructure // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/find_structure/FindStructureRequest.ts#L24-L207 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/text_structure/find_structure/FindStructureRequest.ts#L24-L207 type Request = []json.RawMessage // NewRequest returns a Request diff --git a/typedapi/textstructure/findstructure/response.go b/typedapi/textstructure/findstructure/response.go index 8b23e5abd7..ef70eb20e0 100644 --- a/typedapi/textstructure/findstructure/response.go +++ b/typedapi/textstructure/findstructure/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package findstructure import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package findstructure // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/find_structure/FindStructureResponse.ts#L27-L97 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 43d8c8c56c..350e1dcf1f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package testgrokpattern @@ -30,7 +30,7 @@ import ( // Request holds the request body struct for the package testgrokpattern // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/test_grok_pattern/TestGrokPatternRequest.ts#L23-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 20fc80add5..fd576ab256 100644 --- a/typedapi/textstructure/testgrokpattern/response.go +++ b/typedapi/textstructure/testgrokpattern/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package testgrokpattern import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package testgrokpattern // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/test_grok_pattern/TestGrokPatternResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9cfc5bea5f..3f04ac3696 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Test a Grok pattern. // Test a Grok pattern on one or more lines of text. @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -178,12 +178,12 @@ func (r *TestGrokPattern) HttpRequest(ctx context.Context) (*http.Request, error if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/deletetransform/delete_transform.go b/typedapi/transform/deletetransform/delete_transform.go index b3bd95f8a9..9a8f3c9d88 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a transform. package deletetransform @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -136,7 +136,7 @@ func (r *DeleteTransform) HttpRequest(ctx context.Context) (*http.Request, error req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/deletetransform/response.go b/typedapi/transform/deletetransform/response.go index aea89774bf..0f95774621 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletetransform // Response holds the response body struct for the package deletetransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/delete_transform/DeleteTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ad92907a0d..057a43600c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Retrieves transform usage information for transform nodes. package getnodestats @@ -121,7 +121,7 @@ func (r *GetNodeStats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/gettransform/get_transform.go b/typedapi/transform/gettransform/get_transform.go index c85c9c03b4..ae22616796 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get transforms. // Get configuration information for transforms. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -141,7 +141,7 @@ func (r *GetTransform) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/gettransform/response.go b/typedapi/transform/gettransform/response.go index 21229b69a5..599bae6486 100644 --- a/typedapi/transform/gettransform/response.go +++ b/typedapi/transform/gettransform/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package gettransform import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package gettransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/get_transform/GetTransformResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0d40a01e68..262f121225 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get transform stats. // @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -142,7 +142,7 @@ func (r *GetTransformStats) HttpRequest(ctx context.Context) (*http.Request, err req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/gettransformstats/response.go b/typedapi/transform/gettransformstats/response.go index 65b00df4c7..cfae556536 100644 --- a/typedapi/transform/gettransformstats/response.go +++ b/typedapi/transform/gettransformstats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package gettransformstats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package gettransformstats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/get_transform_stats/GetTransformStatsResponse.ts#L23-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c2e00b1bc1..9b53175bcb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Preview a transform. // Generates a preview of the results that you will get when you create a @@ -42,7 +42,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -207,12 +207,12 @@ func (r *PreviewTransform) HttpRequest(ctx context.Context) (*http.Request, erro if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/previewtransform/request.go b/typedapi/transform/previewtransform/request.go index 923f02fde7..1ee10c5d73 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package previewtransform @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package previewtransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/preview_transform/PreviewTransformRequest.ts#L33-L119 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 819b649772..bb306e1c57 100644 --- a/typedapi/transform/previewtransform/response.go +++ b/typedapi/transform/previewtransform/response.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package previewtransform import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package previewtransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/preview_transform/PreviewTransformResponse.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 55b423ae89..ffb170a76c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create a transform. // Creates a transform. @@ -68,7 +68,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -252,12 +252,12 @@ func (r *PutTransform) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/puttransform/request.go b/typedapi/transform/puttransform/request.go index c50d5de243..aa411b5a42 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package puttransform @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package puttransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/put_transform/PutTransformRequest.ts#L33-L130 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5d6a38c23f..b949871b9f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package puttransform // Response holds the response body struct for the package puttransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/put_transform/PutTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 18ef86e7c1..9e2202cd63 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Reset a transform. // @@ -37,7 +37,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -146,7 +146,7 @@ func (r *ResetTransform) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/resettransform/response.go b/typedapi/transform/resettransform/response.go index e1cfbfe9b7..e405302ecd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package resettransform // Response holds the response body struct for the package resettransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/reset_transform/ResetTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2e5a0cd8c4..9079a25fdc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package schedulenowtransform // Response holds the response body struct for the package schedulenowtransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/schedule_now_transform/ScheduleNowTransformResponse.ts#L21-L23 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6899c105db..8c8d25da79 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Schedule a transform to start now. // @@ -40,7 +40,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -153,12 +153,12 @@ func (r *ScheduleNowTransform) HttpRequest(ctx context.Context) (*http.Request, if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/starttransform/response.go b/typedapi/transform/starttransform/response.go index b1e820a661..1cf0f90680 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package starttransform // Response holds the response body struct for the package starttransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/start_transform/StartTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b504d04693..ee1ac40f36 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Start a transform. // @@ -60,7 +60,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -192,7 +192,7 @@ func (r *StartTransform) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/stoptransform/response.go b/typedapi/transform/stoptransform/response.go index a14b6d2e39..dd7edb9e6d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stoptransform // Response holds the response body struct for the package stoptransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/stop_transform/StopTransformResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e3a4f4a48a..ce05eca919 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Stop transforms. // Stops one or more transforms. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -140,7 +140,7 @@ func (r *StopTransform) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/updatetransform/request.go b/typedapi/transform/updatetransform/request.go index 569bbe243e..e92d63144f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatetransform @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package updatetransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/update_transform/UpdateTransformRequest.ts#L31-L113 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8dfaab2bc2..30bdcc208c 100644 --- a/typedapi/transform/updatetransform/response.go +++ b/typedapi/transform/updatetransform/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatetransform import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package updatetransform // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/update_transform/UpdateTransformResponse.ts#L33-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3eb1b4ad6f..ceb3720d39 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update a transform. // Updates certain properties of a transform. @@ -45,7 +45,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -208,12 +208,12 @@ func (r *UpdateTransform) HttpRequest(ctx context.Context) (*http.Request, error if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/transform/upgradetransforms/response.go b/typedapi/transform/upgradetransforms/response.go index dc29f3dec0..b950bedf50 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package upgradetransforms // Response holds the response body struct for the package upgradetransforms // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/upgrade_transforms/UpgradeTransformsResponse.ts#L25-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e88df3d659..2814c2a541 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Upgrade all transforms. // @@ -56,7 +56,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -171,12 +171,12 @@ func (r *UpgradeTransforms) HttpRequest(ctx context.Context) (*http.Request, err if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/types/access.go b/typedapi/types/access.go index 1a15170922..24f554da99 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Access type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Access.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Access.ts#L22-L31 type Access struct { // Replication A list of indices permission entries for cross-cluster replication. Replication []ReplicationAccess `json:"replication,omitempty"` diff --git a/typedapi/types/acknowledgement.go b/typedapi/types/acknowledgement.go index 41019d6283..f53acbf5ba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Acknowledgement type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/post/types.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/license/post/types.ts#L20-L23 type Acknowledgement struct { License []string `json:"license"` Message string `json:"message"` diff --git a/typedapi/types/acknowledgestate.go b/typedapi/types/acknowledgestate.go index 695965e970..78bb90828d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/acknowledgementoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/acknowledgementoptions" ) // AcknowledgeState type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Action.ts#L109-L112 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Action.ts#L109-L112 type AcknowledgeState struct { State acknowledgementoptions.AcknowledgementOptions `json:"state"` Timestamp DateTime `json:"timestamp"` diff --git a/typedapi/types/actionstatus.go b/typedapi/types/actionstatus.go index 2a93174204..e3372d21df 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ActionStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Action.ts#L125-L130 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Action.ts#L125-L130 type ActionStatus struct { Ack AcknowledgeState `json:"ack"` LastExecution *ExecutionState `json:"last_execution,omitempty"` diff --git a/typedapi/types/activationstate.go b/typedapi/types/activationstate.go index 2635bf5025..db804c0b3b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ActivationState type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Activation.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Activation.ts#L24-L27 type ActivationState struct { Active bool `json:"active"` Timestamp DateTime `json:"timestamp"` diff --git a/typedapi/types/activationstatus.go b/typedapi/types/activationstatus.go index f358ba2149..571b2af6a9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ActivationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Activation.ts#L29-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Activation.ts#L29-L33 type ActivationStatus struct { Actions WatcherStatusActions `json:"actions"` State ActivationState `json:"state"` diff --git a/typedapi/types/adaptiveallocations.go b/typedapi/types/adaptiveallocations.go new file mode 100644 index 0000000000..6829440824 --- /dev/null +++ b/typedapi/types/adaptiveallocations.go @@ -0,0 +1,128 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AdaptiveAllocations type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L60-L77 +type AdaptiveAllocations struct { + // Enabled Turn on `adaptive_allocations`. + Enabled *bool `json:"enabled,omitempty"` + // MaxNumberOfAllocations The maximum number of allocations to scale to. + // If set, it must be greater than or equal to `min_number_of_allocations`. + MaxNumberOfAllocations *int `json:"max_number_of_allocations,omitempty"` + // MinNumberOfAllocations The minimum number of allocations to scale to. + // If set, it must be greater than or equal to 0. + // If not defined, the deployment scales to 0. + MinNumberOfAllocations *int `json:"min_number_of_allocations,omitempty"` +} + +func (s *AdaptiveAllocations) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "enabled": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "Enabled", err) + } + s.Enabled = &value + case bool: + s.Enabled = &v + } + + case "max_number_of_allocations": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "MaxNumberOfAllocations", err) + } + s.MaxNumberOfAllocations = &value + case float64: + f := int(v) + s.MaxNumberOfAllocations = &f + } + + case "min_number_of_allocations": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "MinNumberOfAllocations", err) + } + s.MinNumberOfAllocations = &value + case float64: + f := int(v) + s.MinNumberOfAllocations = &f + } + + } + } + return nil +} + +// NewAdaptiveAllocations returns a AdaptiveAllocations. +func NewAdaptiveAllocations() *AdaptiveAllocations { + r := &AdaptiveAllocations{} + + return r +} + +// true + +type AdaptiveAllocationsVariant interface { + AdaptiveAllocationsCaster() *AdaptiveAllocations +} + +func (s *AdaptiveAllocations) AdaptiveAllocationsCaster() *AdaptiveAllocations { + return s +} diff --git a/typedapi/types/adaptiveallocationssettings.go b/typedapi/types/adaptiveallocationssettings.go index cc6ffd1860..a03edf2c01 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AdaptiveAllocationsSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L109-L125 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L109-L125 type AdaptiveAllocationsSettings struct { // Enabled If true, adaptive_allocations is enabled Enabled bool `json:"enabled"` diff --git a/typedapi/types/adaptiveselection.go b/typedapi/types/adaptiveselection.go index 69cb74258c..7f9b8707f0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AdaptiveSelection type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L439-L468 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L439-L468 type AdaptiveSelection struct { // AvgQueueSize The exponentially weighted moving average queue size of search requests on // the keyed node. diff --git a/typedapi/types/addaction.go b/typedapi/types/addaction.go index dade694ba6..0770be4556 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AddAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/update_aliases/types.ts#L41-L95 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/update_aliases/types.ts#L41-L95 type AddAction struct { // Alias Alias for the action. // Index alias names support date math. diff --git a/typedapi/types/adjacencymatrixaggregate.go b/typedapi/types/adjacencymatrixaggregate.go index 4604d99056..4b368c5190 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // AdjacencyMatrixAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L647-L652 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L647-L652 type AdjacencyMatrixAggregate struct { Buckets BucketsAdjacencyMatrixBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/adjacencymatrixaggregation.go b/typedapi/types/adjacencymatrixaggregation.go index 7b2940b9a6..3d623d9b10 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AdjacencyMatrixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L60-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L60-L70 type AdjacencyMatrixAggregation struct { // Filters Filters used to create buckets. // At least one filter is required. diff --git a/typedapi/types/adjacencymatrixbucket.go b/typedapi/types/adjacencymatrixbucket.go index 5742af836e..ddfebae8dc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // AdjacencyMatrixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L654-L656 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L654-L656 type AdjacencyMatrixBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/aggregate.go b/typedapi/types/aggregate.go index a413551584..ef204bb15a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -93,5 +93,5 @@ package types // MatrixStatsAggregate // GeoLineAggregate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L38-L125 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L38-L125 type Aggregate any diff --git a/typedapi/types/aggregatemetricdoubleproperty.go b/typedapi/types/aggregatemetricdoubleproperty.go index 7f3e53b0b2..1fb70007d7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // AggregateMetricDoubleProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/complex.ts#L59-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/complex.ts#L59-L64 type AggregateMetricDoubleProperty struct { DefaultMetric string `json:"default_metric"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` diff --git a/typedapi/types/aggregateorder.go b/typedapi/types/aggregateorder.go index 6fac5435eb..5902c05bf2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // map[string]sortorder.SortOrder // []map[string]sortorder.SortOrder // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1052-L1054 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 639a294ab6..4451b7e26e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // AggregateOutput type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L101-L106 type AggregateOutput struct { Exponent *Weights `json:"exponent,omitempty"` LogisticRegression *Weights `json:"logistic_regression,omitempty"` diff --git a/typedapi/types/aggregationbreakdown.go b/typedapi/types/aggregationbreakdown.go index 6f50d5de77..8fe0a61a14 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AggregationBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L26-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L26-L39 type AggregationBreakdown struct { BuildAggregation int64 `json:"build_aggregation"` BuildAggregationCount int64 `json:"build_aggregation_count"` diff --git a/typedapi/types/aggregationprofile.go b/typedapi/types/aggregationprofile.go index fc42e61cad..8dc86b37de 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AggregationProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L85-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L85-L92 type AggregationProfile struct { Breakdown AggregationBreakdown `json:"breakdown"` Children []AggregationProfile `json:"children,omitempty"` diff --git a/typedapi/types/aggregationprofiledebug.go b/typedapi/types/aggregationprofiledebug.go index 5859c04220..09bfb131d3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AggregationProfileDebug type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L42-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L42-L76 type AggregationProfileDebug struct { BruteForceUsed *int `json:"brute_force_used,omitempty"` BuiltBuckets *int `json:"built_buckets,omitempty"` diff --git a/typedapi/types/aggregationprofiledelegatedebugfilter.go b/typedapi/types/aggregationprofiledelegatedebugfilter.go index d2e7b6a208..fd519148c5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AggregationProfileDelegateDebugFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L78-L83 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L78-L83 type AggregationProfileDelegateDebugFilter struct { Query *string `json:"query,omitempty"` ResultsFromMetadata *int `json:"results_from_metadata,omitempty"` diff --git a/typedapi/types/aggregationrange.go b/typedapi/types/aggregationrange.go index 29dfba5a51..650d2fb6c0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AggregationRange type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L691-L704 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L691-L704 type AggregationRange struct { // From Start of the range (inclusive). From *Float64 `json:"from,omitempty"` diff --git a/typedapi/types/aggregations.go b/typedapi/types/aggregations.go index aff64f331b..74fb44b27c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Aggregations type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/AggregationContainer.ts#L107-L533 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/AggregationContainer.ts#L107-L533 type Aggregations struct { AdditionalAggregationsProperty map[string]json.RawMessage `json:"-"` // AdjacencyMatrix A bucket aggregation returning a form of adjacency matrix. diff --git a/typedapi/types/alias.go b/typedapi/types/alias.go index 49cfc9fcd3..7793078d9f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Alias type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/Alias.ts#L23-L53 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/Alias.ts#L23-L53 type Alias struct { // Filter Query used to limit documents the alias can access. Filter *Query `json:"filter,omitempty"` diff --git a/typedapi/types/aliasdefinition.go b/typedapi/types/aliasdefinition.go index 3595fc22fd..ba0b11e2f5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AliasDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/AliasDefinition.ts#L22-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/AliasDefinition.ts#L22-L54 type AliasDefinition struct { // Filter Query used to limit documents the alias can access. Filter *Query `json:"filter,omitempty"` diff --git a/typedapi/types/aliasesrecord.go b/typedapi/types/aliasesrecord.go index bcc54d4cb1..0e51b53498 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AliasesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/aliases/types.ts#L22-L53 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/aliases/types.ts#L22-L53 type AliasesRecord struct { // Alias alias name Alias *string `json:"alias,omitempty"` diff --git a/typedapi/types/alibabacloudservicesettings.go b/typedapi/types/alibabacloudservicesettings.go new file mode 100644 index 0000000000..17dcfc18e6 --- /dev/null +++ b/typedapi/types/alibabacloudservicesettings.go @@ -0,0 +1,161 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AlibabaCloudServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L219-L264 +type AlibabaCloudServiceSettings struct { + // ApiKey A valid API key for the AlibabaCloud AI Search API. + ApiKey string `json:"api_key"` + // Host The name of the host address used for the inference task. + // You can find the host address in the API keys section of the documentation. + Host string `json:"host"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // AlibabaCloud AI Search. + // By default, the `alibabacloud-ai-search` service sets the number of requests + // allowed per minute to `1000`. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // ServiceId The name of the model service to use for the inference task. + // The following service IDs are available for the `completion` task: + // + // * `ops-qwen-turbo` + // * `qwen-turbo` + // * `qwen-plus` + // * `qwen-max ÷ qwen-max-longcontext` + // + // The following service ID is available for the `rerank` task: + // + // * `ops-bge-reranker-larger` + // + // The following service ID is available for the `sparse_embedding` task: + // + // * `ops-text-sparse-embedding-001` + // + // The following service IDs are available for the `text_embedding` task: + // + // `ops-text-embedding-001` + // `ops-text-embedding-zh-001` + // `ops-text-embedding-en-001` + // `ops-text-embedding-002` + ServiceId string `json:"service_id"` + // Workspace The name of the workspace used for the inference task. + Workspace string `json:"workspace"` +} + +func (s *AlibabaCloudServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "api_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "host": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Host", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Host = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "service_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ServiceId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ServiceId = o + + case "workspace": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Workspace", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Workspace = o + + } + } + return nil +} + +// NewAlibabaCloudServiceSettings returns a AlibabaCloudServiceSettings. +func NewAlibabaCloudServiceSettings() *AlibabaCloudServiceSettings { + r := &AlibabaCloudServiceSettings{} + + return r +} + +// true + +type AlibabaCloudServiceSettingsVariant interface { + AlibabaCloudServiceSettingsCaster() *AlibabaCloudServiceSettings +} + +func (s *AlibabaCloudServiceSettings) AlibabaCloudServiceSettingsCaster() *AlibabaCloudServiceSettings { + return s +} diff --git a/typedapi/types/alibabacloudtasksettings.go b/typedapi/types/alibabacloudtasksettings.go new file mode 100644 index 0000000000..857628d99c --- /dev/null +++ b/typedapi/types/alibabacloudtasksettings.go @@ -0,0 +1,112 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AlibabaCloudTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L266-L280 +type AlibabaCloudTaskSettings struct { + // InputType For a `sparse_embedding` or `text_embedding` task, specify the type of input + // passed to the model. + // Valid values are: + // + // * `ingest` for storing document embeddings in a vector database. + // * `search` for storing embeddings of search queries run against a vector + // database to find relevant documents. + InputType *string `json:"input_type,omitempty"` + // ReturnToken For a `sparse_embedding` task, it affects whether the token name will be + // returned in the response. + // It defaults to `false`, which means only the token ID will be returned in the + // response. + ReturnToken *bool `json:"return_token,omitempty"` +} + +func (s *AlibabaCloudTaskSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "input_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "InputType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.InputType = &o + + case "return_token": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "ReturnToken", err) + } + s.ReturnToken = &value + case bool: + s.ReturnToken = &v + } + + } + } + return nil +} + +// NewAlibabaCloudTaskSettings returns a AlibabaCloudTaskSettings. +func NewAlibabaCloudTaskSettings() *AlibabaCloudTaskSettings { + r := &AlibabaCloudTaskSettings{} + + return r +} + +// true + +type AlibabaCloudTaskSettingsVariant interface { + AlibabaCloudTaskSettingsCaster() *AlibabaCloudTaskSettings +} + +func (s *AlibabaCloudTaskSettings) AlibabaCloudTaskSettingsCaster() *AlibabaCloudTaskSettings { + return s +} diff --git a/typedapi/types/allfield.go b/typedapi/types/allfield.go index 25ee9780e0..0bdd538554 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AllField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/meta-fields.ts#L29-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/meta-fields.ts#L29-L40 type AllField struct { Analyzer string `json:"analyzer"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/allocateaction.go b/typedapi/types/allocateaction.go index c179d60e43..b347b8cc77 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AllocateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L133-L139 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L133-L139 type AllocateAction struct { Exclude map[string]string `json:"exclude,omitempty"` Include map[string]string `json:"include,omitempty"` diff --git a/typedapi/types/allocationdecision.go b/typedapi/types/allocationdecision.go index e9709bafc2..3896f0691c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/allocationexplaindecision" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/allocationexplaindecision" ) // AllocationDecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/allocation_explain/types.ts#L27-L31 type AllocationDecision struct { Decider string `json:"decider"` Decision allocationexplaindecision.AllocationExplainDecision `json:"decision"` diff --git a/typedapi/types/allocationrecord.go b/typedapi/types/allocationrecord.go index 6352776550..da0a73a142 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AllocationRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/allocation/types.ts#L25-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/allocation/types.ts#L25-L99 type AllocationRecord struct { // DiskAvail Free disk space available to Elasticsearch. // Elasticsearch retrieves this metric from the node’s operating system. diff --git a/typedapi/types/allocationstore.go b/typedapi/types/allocationstore.go index 66c89a894a..cc75fb06a8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AllocationStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L40-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/allocation_explain/types.ts#L40-L47 type AllocationStore struct { AllocationId string `json:"allocation_id"` Found bool `json:"found"` diff --git a/typedapi/types/alwayscondition.go b/typedapi/types/alwayscondition.go index 84c8ff13f3..a2c9ed4137 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // AlwaysCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Conditions.ts#L25-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Conditions.ts#L26-L26 type AlwaysCondition struct { } diff --git a/typedapi/types/amazonbedrockservicesettings.go b/typedapi/types/amazonbedrockservicesettings.go new file mode 100644 index 0000000000..02bbcb9ec2 --- /dev/null +++ b/typedapi/types/amazonbedrockservicesettings.go @@ -0,0 +1,170 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AmazonBedrockServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L293-L335 +type AmazonBedrockServiceSettings struct { + // AccessKey A valid AWS access key that has permissions to use Amazon Bedrock and access + // to models for inference requests. + AccessKey string `json:"access_key"` + // Model The base model ID or an ARN to a custom model based on a foundational model. + // The base model IDs can be found in the Amazon Bedrock documentation. + // Note that the model ID must be available for the provider chosen and your IAM + // user must have access to the model. + Model string `json:"model"` + // Provider The model provider for your deployment. + // Note that some providers may support only certain task types. + // Supported providers include: + // + // * `amazontitan` - available for `text_embedding` and `completion` task types + // * `anthropic` - available for `completion` task type only + // * `ai21labs` - available for `completion` task type only + // * `cohere` - available for `text_embedding` and `completion` task types + // * `meta` - available for `completion` task type only + // * `mistral` - available for `completion` task type only + Provider *string `json:"provider,omitempty"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Watsonx. + // By default, the `watsonxai` service sets the number of requests allowed per + // minute to 120. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // Region The region that your model or ARN is deployed in. + // The list of available regions per model can be found in the Amazon Bedrock + // documentation. + Region string `json:"region"` + // SecretKey A valid AWS secret key that is paired with the `access_key`. + // For informationg about creating and managing access and secret keys, refer to + // the AWS documentation. + SecretKey string `json:"secret_key"` +} + +func (s *AmazonBedrockServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "access_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "AccessKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.AccessKey = o + + case "model": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Model", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Model = o + + case "provider": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Provider", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Provider = &o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "region": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Region", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Region = o + + case "secret_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "SecretKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.SecretKey = o + + } + } + return nil +} + +// NewAmazonBedrockServiceSettings returns a AmazonBedrockServiceSettings. +func NewAmazonBedrockServiceSettings() *AmazonBedrockServiceSettings { + r := &AmazonBedrockServiceSettings{} + + return r +} + +// true + +type AmazonBedrockServiceSettingsVariant interface { + AmazonBedrockServiceSettingsCaster() *AmazonBedrockServiceSettings +} + +func (s *AmazonBedrockServiceSettings) AmazonBedrockServiceSettingsCaster() *AmazonBedrockServiceSettings { + return s +} diff --git a/typedapi/types/amazonbedrocktasksettings.go b/typedapi/types/amazonbedrocktasksettings.go new file mode 100644 index 0000000000..1d571ab49e --- /dev/null +++ b/typedapi/types/amazonbedrocktasksettings.go @@ -0,0 +1,159 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AmazonBedrockTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L337-L361 +type AmazonBedrockTaskSettings struct { + // MaxNewTokens For a `completion` task, it sets the maximum number for the output tokens to + // be generated. + MaxNewTokens *int `json:"max_new_tokens,omitempty"` + // Temperature For a `completion` task, it is a number between 0.0 and 1.0 that controls the + // apparent creativity of the results. + // At temperature 0.0 the model is most deterministic, at temperature 1.0 most + // random. + // It should not be used if `top_p` or `top_k` is specified. + Temperature *float32 `json:"temperature,omitempty"` + // TopK For a `completion` task, it limits samples to the top-K most likely words, + // balancing coherence and variability. + // It is only available for anthropic, cohere, and mistral providers. + // It is an alternative to `temperature`; it should not be used if `temperature` + // is specified. + TopK *float32 `json:"top_k,omitempty"` + // TopP For a `completion` task, it is a number in the range of 0.0 to 1.0, to + // eliminate low-probability tokens. + // Top-p uses nucleus sampling to select top tokens whose sum of likelihoods + // does not exceed a certain value, ensuring both variety and coherence. + // It is an alternative to `temperature`; it should not be used if `temperature` + // is specified. + TopP *float32 `json:"top_p,omitempty"` +} + +func (s *AmazonBedrockTaskSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "max_new_tokens": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "MaxNewTokens", err) + } + s.MaxNewTokens = &value + case float64: + f := int(v) + s.MaxNewTokens = &f + } + + case "temperature": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Temperature", err) + } + f := float32(value) + s.Temperature = &f + case float64: + f := float32(v) + s.Temperature = &f + } + + case "top_k": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "TopK", err) + } + f := float32(value) + s.TopK = &f + case float64: + f := float32(v) + s.TopK = &f + } + + case "top_p": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "TopP", err) + } + f := float32(value) + s.TopP = &f + case float64: + f := float32(v) + s.TopP = &f + } + + } + } + return nil +} + +// NewAmazonBedrockTaskSettings returns a AmazonBedrockTaskSettings. +func NewAmazonBedrockTaskSettings() *AmazonBedrockTaskSettings { + r := &AmazonBedrockTaskSettings{} + + return r +} + +// true + +type AmazonBedrockTaskSettingsVariant interface { + AmazonBedrockTaskSettingsCaster() *AmazonBedrockTaskSettings +} + +func (s *AmazonBedrockTaskSettings) AmazonBedrockTaskSettingsCaster() *AmazonBedrockTaskSettings { + return s +} diff --git a/typedapi/types/analysisconfig.go b/typedapi/types/analysisconfig.go index c389c21a95..1345015690 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AnalysisConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Analysis.ts#L29-L77 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Analysis.ts#L29-L77 type AnalysisConfig struct { // BucketSpan The size of the interval that the analysis is aggregated into, typically // between `5m` and `1h`. This value should be either a whole number of days or diff --git a/typedapi/types/analysisconfigread.go b/typedapi/types/analysisconfigread.go index bf16a182fd..ce3819a9fc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AnalysisConfigRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Analysis.ts#L79-L148 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Analysis.ts#L79-L148 type AnalysisConfigRead struct { // BucketSpan The size of the interval that the analysis is aggregated into, typically // between `5m` and `1h`. diff --git a/typedapi/types/analysislimits.go b/typedapi/types/analysislimits.go index 9ad18abce3..4c40b1f057 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AnalysisLimits type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Analysis.ts#L161-L172 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Analysis.ts#L161-L172 type AnalysisLimits struct { // CategorizationExamplesLimit The maximum number of examples stored per category in memory and in the // results data store. If you increase this value, more examples are available, diff --git a/typedapi/types/analysismemorylimit.go b/typedapi/types/analysismemorylimit.go index c917022f05..7903df5cbe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AnalysisMemoryLimit type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Analysis.ts#L174-L179 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Analysis.ts#L174-L179 type AnalysisMemoryLimit struct { // ModelMemoryLimit Limits can be applied for the resources required to hold the mathematical // models in memory. These limits are approximate and can be set per job. They diff --git a/typedapi/types/analytics.go b/typedapi/types/analytics.go index ba0a13a914..19cb6e8dc6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Analytics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L340-L342 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L340-L342 type Analytics struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/analyticscollection.go b/typedapi/types/analyticscollection.go index d9fb6ad759..db3fb6d38d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // AnalyticsCollection type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/_types/BehavioralAnalytics.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/search_application/_types/BehavioralAnalytics.ts#L22-L27 type AnalyticsCollection struct { // EventDataStream Data stream for the collection. EventDataStream EventDataStream `json:"event_data_stream"` diff --git a/typedapi/types/analyticsstatistics.go b/typedapi/types/analyticsstatistics.go index 0c9cb94300..770376beb2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AnalyticsStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L58-L68 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L58-L68 type AnalyticsStatistics struct { BoxplotUsage int64 `json:"boxplot_usage"` CumulativeCardinalityUsage int64 `json:"cumulative_cardinality_usage"` diff --git a/typedapi/types/analyzedetail.go b/typedapi/types/analyzedetail.go index 14e933d654..933b91ae31 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AnalyzeDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/analyze/types.ts#L24-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/analyze/types.ts#L24-L30 type AnalyzeDetail struct { Analyzer *AnalyzerDetail `json:"analyzer,omitempty"` Charfilters []CharFilterDetail `json:"charfilters,omitempty"` diff --git a/typedapi/types/analyzer.go b/typedapi/types/analyzer.go index fb143d0cc2..e7c3a4cdc5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -72,7 +72,7 @@ package types // TurkishAnalyzer // ThaiAnalyzer // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L427-L480 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c3f4c20331..7c89249a84 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AnalyzerDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/analyze/types.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/analyze/types.ts#L32-L35 type AnalyzerDetail struct { Name string `json:"name"` Tokens []ExplainAnalyzeToken `json:"tokens"` diff --git a/typedapi/types/analyzetoken.go b/typedapi/types/analyzetoken.go index 54be3ab779..07560edd40 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AnalyzeToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/analyze/types.ts#L37-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/analyze/types.ts#L37-L44 type AnalyzeToken struct { EndOffset int64 `json:"end_offset"` Position int64 `json:"position"` diff --git a/typedapi/types/anomaly.go b/typedapi/types/anomaly.go index 80e8974902..abed786174 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Anomaly type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Anomaly.ts#L24-L121 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Anomaly.ts#L24-L121 type Anomaly struct { // Actual The actual value for the bucket. Actual []Float64 `json:"actual,omitempty"` diff --git a/typedapi/types/anomalycause.go b/typedapi/types/anomalycause.go index 20f51166f7..b34e3e8c19 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AnomalyCause type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Anomaly.ts#L123-L139 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Anomaly.ts#L123-L139 type AnomalyCause struct { Actual []Float64 `json:"actual,omitempty"` ByFieldName *string `json:"by_field_name,omitempty"` diff --git a/typedapi/types/anomalydetectors.go b/typedapi/types/anomalydetectors.go index d912b97d1d..162d8a9b68 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AnomalyDetectors type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/info/types.ts#L46-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/info/types.ts#L46-L52 type AnomalyDetectors struct { CategorizationAnalyzer CategorizationAnalyzer `json:"categorization_analyzer"` CategorizationExamplesLimit int `json:"categorization_examples_limit"` diff --git a/typedapi/types/anomalyexplanation.go b/typedapi/types/anomalyexplanation.go index 4e98a0ea1d..603491a88d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AnomalyExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Anomaly.ts#L157-L198 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Anomaly.ts#L157-L198 type AnomalyExplanation struct { // AnomalyCharacteristicsImpact Impact from the duration and magnitude of the detected anomaly relative to // the historical average. diff --git a/typedapi/types/anthropicservicesettings.go b/typedapi/types/anthropicservicesettings.go new file mode 100644 index 0000000000..70644fa697 --- /dev/null +++ b/typedapi/types/anthropicservicesettings.go @@ -0,0 +1,112 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AnthropicServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L372-L388 +type AnthropicServiceSettings struct { + // ApiKey A valid API key for the Anthropic API. + ApiKey string `json:"api_key"` + // ModelId The name of the model to use for the inference task. + // Refer to the Anthropic documentation for the list of supported models. + ModelId string `json:"model_id"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Anthropic. + // By default, the `anthropic` service sets the number of requests allowed per + // minute to 50. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` +} + +func (s *AnthropicServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "api_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + } + } + return nil +} + +// NewAnthropicServiceSettings returns a AnthropicServiceSettings. +func NewAnthropicServiceSettings() *AnthropicServiceSettings { + r := &AnthropicServiceSettings{} + + return r +} + +// true + +type AnthropicServiceSettingsVariant interface { + AnthropicServiceSettingsCaster() *AnthropicServiceSettings +} + +func (s *AnthropicServiceSettings) AnthropicServiceSettingsCaster() *AnthropicServiceSettings { + return s +} diff --git a/typedapi/types/anthropictasksettings.go b/typedapi/types/anthropictasksettings.go new file mode 100644 index 0000000000..5daab885b6 --- /dev/null +++ b/typedapi/types/anthropictasksettings.go @@ -0,0 +1,157 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AnthropicTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L390-L415 +type AnthropicTaskSettings struct { + // MaxTokens For a `completion` task, it is the maximum number of tokens to generate + // before stopping. + MaxTokens int `json:"max_tokens"` + // Temperature For a `completion` task, it is the amount of randomness injected into the + // response. + // For more details about the supported range, refer to Anthropic documentation. + Temperature *float32 `json:"temperature,omitempty"` + // TopK For a `completion` task, it specifies to only sample from the top K options + // for each subsequent token. + // It is recommended for advanced use cases only. + // You usually only need to use `temperature`. + TopK *int `json:"top_k,omitempty"` + // TopP For a `completion` task, it specifies to use Anthropic's nucleus sampling. + // In nucleus sampling, Anthropic computes the cumulative distribution over all + // the options for each subsequent token in decreasing probability order and + // cuts it off once it reaches the specified probability. + // You should either alter `temperature` or `top_p`, but not both. + // It is recommended for advanced use cases only. + // You usually only need to use `temperature`. + TopP *float32 `json:"top_p,omitempty"` +} + +func (s *AnthropicTaskSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "max_tokens": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "MaxTokens", err) + } + s.MaxTokens = value + case float64: + f := int(v) + s.MaxTokens = f + } + + case "temperature": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Temperature", err) + } + f := float32(value) + s.Temperature = &f + case float64: + f := float32(v) + s.Temperature = &f + } + + case "top_k": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "TopK", err) + } + s.TopK = &value + case float64: + f := int(v) + s.TopK = &f + } + + case "top_p": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "TopP", err) + } + f := float32(value) + s.TopP = &f + case float64: + f := float32(v) + s.TopP = &f + } + + } + } + return nil +} + +// NewAnthropicTaskSettings returns a AnthropicTaskSettings. +func NewAnthropicTaskSettings() *AnthropicTaskSettings { + r := &AnthropicTaskSettings{} + + return r +} + +// true + +type AnthropicTaskSettingsVariant interface { + AnthropicTaskSettingsCaster() *AnthropicTaskSettings +} + +func (s *AnthropicTaskSettings) AnthropicTaskSettingsCaster() *AnthropicTaskSettings { + return s +} diff --git a/typedapi/types/apikey.go b/typedapi/types/apikey.go index 8f600508fb..8970304d11 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/apikeytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/apikeytype" ) // ApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/ApiKey.ts#L27-L113 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/ApiKey.ts#L27-L113 type ApiKey struct { // Access The access granted to cross-cluster API keys. // The access is composed of permissions for cross cluster search and cross diff --git a/typedapi/types/apikeyaggregate.go b/typedapi/types/apikeyaggregate.go index 2d4801deb7..75d310ed3b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -36,5 +36,5 @@ package types // DateRangeAggregate // CompositeAggregate // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_api_keys/types.ts#L122-L139 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6d05e9d5d4..5c6f7e6350 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ApiKeyAggregationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_api_keys/types.ts#L63-L120 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/query_api_keys/types.ts#L63-L120 type ApiKeyAggregationContainer struct { AdditionalApiKeyAggregationContainerProperty map[string]json.RawMessage `json:"-"` // Aggregations Sub-aggregations for this aggregation. diff --git a/typedapi/types/apikeyauthorization.go b/typedapi/types/apikeyauthorization.go index 6709e2a4aa..8fa64d82ef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ApiKeyAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Authorization.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Authorization.ts#L20-L29 type ApiKeyAuthorization struct { // Id The identifier for the API key. Id string `json:"id"` diff --git a/typedapi/types/apikeyfiltersaggregation.go b/typedapi/types/apikeyfiltersaggregation.go index 785322c6cc..a0e1eb3dd2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ApiKeyFiltersAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_api_keys/types.ts#L207-L227 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/query_api_keys/types.ts#L207-L227 type ApiKeyFiltersAggregation struct { // Filters Collection of queries from which to build buckets. Filters BucketsApiKeyQueryContainer `json:"filters,omitempty"` diff --git a/typedapi/types/apikeyquerycontainer.go b/typedapi/types/apikeyquerycontainer.go index 9a26847cd4..50b4e293ba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ApiKeyQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_api_keys/types.ts#L141-L205 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/query_api_keys/types.ts#L141-L205 type ApiKeyQueryContainer struct { AdditionalApiKeyQueryContainerProperty map[string]json.RawMessage `json:"-"` // Bool Matches documents matching boolean combinations of other queries. diff --git a/typedapi/types/appendprocessor.go b/typedapi/types/appendprocessor.go index 41e7251192..11bda1fd80 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AppendProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L329-L344 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Processors.ts#L329-L344 type AppendProcessor struct { // AllowDuplicates If `false`, the processor does not append values already present in the // field. diff --git a/typedapi/types/applicationglobaluserprivileges.go b/typedapi/types/applicationglobaluserprivileges.go index 9c374f287b..9f2e5dc75a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ApplicationGlobalUserPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L434-L436 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L434-L436 type ApplicationGlobalUserPrivileges struct { Manage ManageUserPrivileges `json:"manage"` } diff --git a/typedapi/types/applicationprivileges.go b/typedapi/types/applicationprivileges.go index 27e69522d0..cd8d55109d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ApplicationPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L27-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L27-L40 type ApplicationPrivileges struct { // Application The name of the application to which this entry applies. Application string `json:"application"` diff --git a/typedapi/types/applicationprivilegescheck.go b/typedapi/types/applicationprivilegescheck.go index d37218ed9b..025e961c7f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ApplicationPrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/has_privileges/types.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/has_privileges/types.ts#L24-L32 type ApplicationPrivilegesCheck struct { // Application The name of the application. Application string `json:"application"` diff --git a/typedapi/types/applicationsprivileges.go b/typedapi/types/applicationsprivileges.go index a0fa0cd0f8..79d9d116c5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ApplicationsPrivileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/has_privileges/types.ts#L47-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c56c814a54..b434970ea3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ArabicAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L72-L77 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L72-L77 type ArabicAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/archive.go b/typedapi/types/archive.go index 4ef6e8af5c..170a488ad3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Archive type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L45-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L45-L47 type Archive struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/armeniananalyzer.go b/typedapi/types/armeniananalyzer.go index dee441ff40..73c58be534 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ArmenianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L79-L84 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L79-L84 type ArmenianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/arraycomparecondition.go b/typedapi/types/arraycomparecondition.go index cc902d66d3..106f408bae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionop" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/conditionop" ) // ArrayCompareCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Conditions.ts#L32-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Conditions.ts#L33-L40 type ArrayCompareCondition struct { ArrayCompareCondition map[conditionop.ConditionOp]ArrayCompareOpParams `json:"-"` Path string `json:"path"` diff --git a/typedapi/types/arraycompareopparams.go b/typedapi/types/arraycompareopparams.go index bd543c3ff3..c15718efdc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/quantifier" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/quantifier" ) // ArrayCompareOpParams type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Conditions.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Conditions.ts#L28-L31 type ArrayCompareOpParams struct { Quantifier quantifier.Quantifier `json:"quantifier"` Value FieldValue `json:"value"` diff --git a/typedapi/types/arraypercentilesitem.go b/typedapi/types/arraypercentilesitem.go index e064adda9b..f33618703f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ArrayPercentilesItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L162-L166 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L162-L166 type ArrayPercentilesItem struct { Key string `json:"key"` Value *Float64 `json:"value,omitempty"` diff --git a/typedapi/types/asciifoldingtokenfilter.go b/typedapi/types/asciifoldingtokenfilter.go index 6fde7da6ba..28af74b7f6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // AsciiFoldingTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L169-L172 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L169-L172 type AsciiFoldingTokenFilter struct { PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/asyncsearch.go b/typedapi/types/asyncsearch.go index 0e62053861..a3d874d49c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // AsyncSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/async_search/_types/AsyncSearch.ts#L30-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/async_search/_types/AsyncSearch.ts#L30-L56 type AsyncSearch struct { // Aggregations Partial aggregations results, coming from the shards that have already // completed running the query. diff --git a/typedapi/types/attachmentprocessor.go b/typedapi/types/attachmentprocessor.go index b2005b4115..0422db8ed1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AttachmentProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L346-L387 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/audit.go b/typedapi/types/audit.go index 5564bee89e..e23954fc78 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Audit type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L70-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L70-L72 type Audit struct { Enabled bool `json:"enabled"` Outputs []string `json:"outputs,omitempty"` diff --git a/typedapi/types/authenticateapikey.go b/typedapi/types/authenticateapikey.go index a1356ea822..f6c10954fd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // AuthenticateApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/authenticate/SecurityAuthenticateResponse.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/authenticate/SecurityAuthenticateResponse.ts#L44-L47 type AuthenticateApiKey struct { Id string `json:"id"` Name *string `json:"name,omitempty"` diff --git a/typedapi/types/authenticateduser.go b/typedapi/types/authenticateduser.go index 0a442d19bc..4efa3fd205 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AuthenticatedUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_token/types.ts#L60-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/get_token/types.ts#L60-L65 type AuthenticatedUser struct { AuthenticationProvider *AuthenticationProvider `json:"authentication_provider,omitempty"` AuthenticationRealm UserRealm `json:"authentication_realm"` diff --git a/typedapi/types/authenticatetoken.go b/typedapi/types/authenticatetoken.go index 124017b1c9..5a5623fd0f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AuthenticateToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/authenticate/types.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/authenticate/types.ts#L22-L29 type AuthenticateToken struct { Name string `json:"name"` Type *string `json:"type,omitempty"` diff --git a/typedapi/types/authentication.go b/typedapi/types/authentication.go index 12c873046e..7127b35df2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Authentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L43-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L43-L55 type Authentication struct { ApiKey map[string]string `json:"api_key,omitempty"` AuthenticationRealm AuthenticationRealm `json:"authentication_realm"` diff --git a/typedapi/types/authenticationprovider.go b/typedapi/types/authenticationprovider.go index 0ca726ba48..21ed54c6ff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AuthenticationProvider type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_token/types.ts#L55-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/get_token/types.ts#L55-L58 type AuthenticationProvider struct { Name string `json:"name"` Type string `json:"type"` diff --git a/typedapi/types/authenticationrealm.go b/typedapi/types/authenticationrealm.go index 7a3e403884..78af94449f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AuthenticationRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L57-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/delegate_pki/SecurityDelegatePkiResponse.ts#L57-L61 type AuthenticationRealm struct { Domain *string `json:"domain,omitempty"` Name string `json:"name"` diff --git a/typedapi/types/autodatehistogramaggregate.go b/typedapi/types/autodatehistogramaggregate.go index 361a968a50..f025dfeba1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // AutoDateHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L393-L400 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L393-L400 type AutoDateHistogramAggregate struct { Buckets BucketsDateHistogramBucket `json:"buckets"` Interval string `json:"interval"` diff --git a/typedapi/types/autodatehistogramaggregation.go b/typedapi/types/autodatehistogramaggregation.go index 5b7b5cfc23..3ca7eb70ea 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/minimuminterval" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/minimuminterval" ) // AutoDateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L72-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L72-L110 type AutoDateHistogramAggregation struct { // Buckets The target number of buckets. Buckets *int `json:"buckets,omitempty"` diff --git a/typedapi/types/autofollowedcluster.go b/typedapi/types/autofollowedcluster.go index 368d855a92..363c290ac1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // AutoFollowedCluster type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/stats/types.ts.ts#L26-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ccr/stats/types.ts.ts#L26-L30 type AutoFollowedCluster struct { ClusterName string `json:"cluster_name"` LastSeenMetadataVersion int64 `json:"last_seen_metadata_version"` diff --git a/typedapi/types/autofollowpattern.go b/typedapi/types/autofollowpattern.go index 2ce37c9e23..c6b02e9a0e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // AutoFollowPattern type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/get_auto_follow_pattern/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ccr/get_auto_follow_pattern/types.ts#L23-L26 type AutoFollowPattern struct { Name string `json:"name"` Pattern AutoFollowPatternSummary `json:"pattern"` diff --git a/typedapi/types/autofollowpatternsummary.go b/typedapi/types/autofollowpatternsummary.go index c04f31180a..9562fbc581 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AutoFollowPatternSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/get_auto_follow_pattern/types.ts#L28-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ccr/get_auto_follow_pattern/types.ts#L28-L52 type AutoFollowPatternSummary struct { Active bool `json:"active"` // FollowIndexPattern The name of follower index. diff --git a/typedapi/types/autofollowstats.go b/typedapi/types/autofollowstats.go index c8da210cf2..af411327ba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AutoFollowStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/stats/types.ts.ts#L32-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ccr/stats/types.ts.ts#L32-L47 type AutoFollowStats struct { AutoFollowedClusters []AutoFollowedCluster `json:"auto_followed_clusters"` // NumberOfFailedFollowIndices The number of indices that the auto-follow coordinator failed to diff --git a/typedapi/types/autoscalingcapacity.go b/typedapi/types/autoscalingcapacity.go index c3163aa1fc..75d4c67cd5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // AutoscalingCapacity type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L38-L41 type AutoscalingCapacity struct { Node AutoscalingResources `json:"node"` Total AutoscalingResources `json:"total"` diff --git a/typedapi/types/autoscalingdecider.go b/typedapi/types/autoscalingdecider.go index bf3260369e..d9d71d1dd2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AutoscalingDecider type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L52-L56 type AutoscalingDecider struct { ReasonDetails json.RawMessage `json:"reason_details,omitempty"` ReasonSummary *string `json:"reason_summary,omitempty"` diff --git a/typedapi/types/autoscalingdeciders.go b/typedapi/types/autoscalingdeciders.go index 83ee92edc7..6955b4a6a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // AutoscalingDeciders type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L31-L36 type AutoscalingDeciders struct { CurrentCapacity AutoscalingCapacity `json:"current_capacity"` CurrentNodes []AutoscalingNode `json:"current_nodes"` diff --git a/typedapi/types/autoscalingnode.go b/typedapi/types/autoscalingnode.go index c3cf7498e9..51ed2f89a8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // AutoscalingNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L48-L50 type AutoscalingNode struct { Name string `json:"name"` } diff --git a/typedapi/types/autoscalingpolicy.go b/typedapi/types/autoscalingpolicy.go index 505b239f92..8d6a1ba0dd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // AutoscalingPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/autoscaling/_types/AutoscalingPolicy.ts#L23-L30 type AutoscalingPolicy struct { // Deciders Decider settings. Deciders map[string]json.RawMessage `json:"deciders"` diff --git a/typedapi/types/autoscalingresources.go b/typedapi/types/autoscalingresources.go index 2d4a9cb6be..5a03ad7930 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AutoscalingResources type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/autoscaling/get_autoscaling_capacity/GetAutoscalingCapacityResponse.ts#L43-L46 type AutoscalingResources struct { Memory int `json:"memory"` Storage int `json:"storage"` diff --git a/typedapi/types/averageaggregation.go b/typedapi/types/averageaggregation.go index a6206ee311..36b999b7b8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L55-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L55-L55 type AverageAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/averagebucketaggregation.go b/typedapi/types/averagebucketaggregation.go index b56d0f1e2d..924f40fe4a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // AverageBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L78-L81 type AverageBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/avgaggregate.go b/typedapi/types/avgaggregate.go index 530db83360..e5ccc7d145 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AvgAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L218-L222 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L218-L222 type AvgAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/azureaistudioservicesettings.go b/typedapi/types/azureaistudioservicesettings.go new file mode 100644 index 0000000000..65b9d4a903 --- /dev/null +++ b/typedapi/types/azureaistudioservicesettings.go @@ -0,0 +1,164 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AzureAiStudioServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L425-L467 +type AzureAiStudioServiceSettings struct { + // ApiKey A valid API key of your Azure AI Studio model deployment. + // This key can be found on the overview page for your deployment in the + // management section of your Azure AI Studio account. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey string `json:"api_key"` + // EndpointType The type of endpoint that is available for deployment through Azure AI + // Studio: `token` or `realtime`. + // The `token` endpoint type is for "pay as you go" endpoints that are billed + // per token. + // The `realtime` endpoint type is for "real-time" endpoints that are billed per + // hour of usage. + EndpointType string `json:"endpoint_type"` + // Provider The model provider for your deployment. + // Note that some providers may support only certain task types. + // Supported providers include: + // + // * `cohere` - available for `text_embedding` and `completion` task types + // * `databricks` - available for `completion` task type only + // * `meta` - available for `completion` task type only + // * `microsoft_phi` - available for `completion` task type only + // * `mistral` - available for `completion` task type only + // * `openai` - available for `text_embedding` and `completion` task types + Provider string `json:"provider"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Azure AI Studio. + // By default, the `azureaistudio` service sets the number of requests allowed + // per minute to 240. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // Target The target URL of your Azure AI Studio model deployment. + // This can be found on the overview page for your deployment in the management + // section of your Azure AI Studio account. + Target string `json:"target"` +} + +func (s *AzureAiStudioServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "api_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "endpoint_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "EndpointType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.EndpointType = o + + case "provider": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Provider", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Provider = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "target": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Target", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Target = o + + } + } + return nil +} + +// NewAzureAiStudioServiceSettings returns a AzureAiStudioServiceSettings. +func NewAzureAiStudioServiceSettings() *AzureAiStudioServiceSettings { + r := &AzureAiStudioServiceSettings{} + + return r +} + +// true + +type AzureAiStudioServiceSettingsVariant interface { + AzureAiStudioServiceSettingsCaster() *AzureAiStudioServiceSettings +} + +func (s *AzureAiStudioServiceSettings) AzureAiStudioServiceSettingsCaster() *AzureAiStudioServiceSettings { + return s +} diff --git a/typedapi/types/azureaistudiotasksettings.go b/typedapi/types/azureaistudiotasksettings.go new file mode 100644 index 0000000000..cf5e5c2887 --- /dev/null +++ b/typedapi/types/azureaistudiotasksettings.go @@ -0,0 +1,169 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AzureAiStudioTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L469-L497 +type AzureAiStudioTaskSettings struct { + // DoSample For a `completion` task, instruct the inference process to perform sampling. + // It has no effect unless `temperature` or `top_p` is specified. + DoSample *float32 `json:"do_sample,omitempty"` + // MaxNewTokens For a `completion` task, provide a hint for the maximum number of output + // tokens to be generated. + MaxNewTokens *int `json:"max_new_tokens,omitempty"` + // Temperature For a `completion` task, control the apparent creativity of generated + // completions with a sampling temperature. + // It must be a number in the range of 0.0 to 2.0. + // It should not be used if `top_p` is specified. + Temperature *float32 `json:"temperature,omitempty"` + // TopP For a `completion` task, make the model consider the results of the tokens + // with nucleus sampling probability. + // It is an alternative value to `temperature` and must be a number in the range + // of 0.0 to 2.0. + // It should not be used if `temperature` is specified. + TopP *float32 `json:"top_p,omitempty"` + // User For a `text_embedding` task, specify the user issuing the request. + // This information can be used for abuse detection. + User *string `json:"user,omitempty"` +} + +func (s *AzureAiStudioTaskSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "do_sample": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "DoSample", err) + } + f := float32(value) + s.DoSample = &f + case float64: + f := float32(v) + s.DoSample = &f + } + + case "max_new_tokens": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "MaxNewTokens", err) + } + s.MaxNewTokens = &value + case float64: + f := int(v) + s.MaxNewTokens = &f + } + + case "temperature": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Temperature", err) + } + f := float32(value) + s.Temperature = &f + case float64: + f := float32(v) + s.Temperature = &f + } + + case "top_p": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "TopP", err) + } + f := float32(value) + s.TopP = &f + case float64: + f := float32(v) + s.TopP = &f + } + + case "user": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "User", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.User = &o + + } + } + return nil +} + +// NewAzureAiStudioTaskSettings returns a AzureAiStudioTaskSettings. +func NewAzureAiStudioTaskSettings() *AzureAiStudioTaskSettings { + r := &AzureAiStudioTaskSettings{} + + return r +} + +// true + +type AzureAiStudioTaskSettingsVariant interface { + AzureAiStudioTaskSettingsCaster() *AzureAiStudioTaskSettings +} + +func (s *AzureAiStudioTaskSettings) AzureAiStudioTaskSettingsCaster() *AzureAiStudioTaskSettings { + return s +} diff --git a/typedapi/types/azureopenaiservicesettings.go b/typedapi/types/azureopenaiservicesettings.go new file mode 100644 index 0000000000..dbb8078289 --- /dev/null +++ b/typedapi/types/azureopenaiservicesettings.go @@ -0,0 +1,173 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AzureOpenAIServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L508-L553 +type AzureOpenAIServiceSettings struct { + // ApiKey A valid API key for your Azure OpenAI account. + // You must specify either `api_key` or `entra_id`. + // If you do not provide either or you provide both, you will receive an error + // when you try to create your model. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey *string `json:"api_key,omitempty"` + // ApiVersion The Azure API version ID to use. + // It is recommended to use the latest supported non-preview version. + ApiVersion string `json:"api_version"` + // DeploymentId The deployment name of your deployed models. + // Your Azure OpenAI deployments can be found though the Azure OpenAI Studio + // portal that is linked to your subscription. + DeploymentId string `json:"deployment_id"` + // EntraId A valid Microsoft Entra token. + // You must specify either `api_key` or `entra_id`. + // If you do not provide either or you provide both, you will receive an error + // when you try to create your model. + EntraId *string `json:"entra_id,omitempty"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Azure. + // The `azureopenai` service sets a default number of requests allowed per + // minute depending on the task type. + // For `text_embedding`, it is set to `1440`. + // For `completion`, it is set to `120`. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // ResourceName The name of your Azure OpenAI resource. + // You can find this from the list of resources in the Azure Portal for your + // subscription. + ResourceName string `json:"resource_name"` +} + +func (s *AzureOpenAIServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "api_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = &o + + case "api_version": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiVersion", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiVersion = o + + case "deployment_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "DeploymentId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.DeploymentId = o + + case "entra_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "EntraId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.EntraId = &o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "resource_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ResourceName", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ResourceName = o + + } + } + return nil +} + +// NewAzureOpenAIServiceSettings returns a AzureOpenAIServiceSettings. +func NewAzureOpenAIServiceSettings() *AzureOpenAIServiceSettings { + r := &AzureOpenAIServiceSettings{} + + return r +} + +// true + +type AzureOpenAIServiceSettingsVariant interface { + AzureOpenAIServiceSettingsCaster() *AzureOpenAIServiceSettings +} + +func (s *AzureOpenAIServiceSettings) AzureOpenAIServiceSettingsCaster() *AzureOpenAIServiceSettings { + return s +} diff --git a/typedapi/types/azureopenaitasksettings.go b/typedapi/types/azureopenaitasksettings.go new file mode 100644 index 0000000000..656e38b84a --- /dev/null +++ b/typedapi/types/azureopenaitasksettings.go @@ -0,0 +1,89 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// AzureOpenAITaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L555-L561 +type AzureOpenAITaskSettings struct { + // User For a `completion` or `text_embedding` task, specify the user issuing the + // request. + // This information can be used for abuse detection. + User *string `json:"user,omitempty"` +} + +func (s *AzureOpenAITaskSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "user": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "User", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.User = &o + + } + } + return nil +} + +// NewAzureOpenAITaskSettings returns a AzureOpenAITaskSettings. +func NewAzureOpenAITaskSettings() *AzureOpenAITaskSettings { + r := &AzureOpenAITaskSettings{} + + return r +} + +// true + +type AzureOpenAITaskSettingsVariant interface { + AzureOpenAITaskSettingsCaster() *AzureOpenAITaskSettings +} + +func (s *AzureOpenAITaskSettings) AzureOpenAITaskSettingsCaster() *AzureOpenAITaskSettings { + return s +} diff --git a/typedapi/types/azurerepository.go b/typedapi/types/azurerepository.go index 1c52583d38..8a431e2951 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // AzureRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L40-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotRepository.ts#L40-L50 type AzureRepository struct { // Settings The repository settings. Settings *AzureRepositorySettings `json:"settings,omitempty"` diff --git a/typedapi/types/azurerepositorysettings.go b/typedapi/types/azurerepositorysettings.go index fd4d9796ad..104d07e360 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // AzureRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L145-L196 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/base.go b/typedapi/types/base.go index 666220c32a..0ab934d8dc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Base type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L27-L30 type Base struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/basqueanalyzer.go b/typedapi/types/basqueanalyzer.go index fe429f8d8b..470464f25f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BasqueAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L86-L91 type BasqueAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/bengalianalyzer.go b/typedapi/types/bengalianalyzer.go index 74033a8c33..769dfd5bd4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BengaliAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L93-L98 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L93-L98 type BengaliAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/binaryproperty.go b/typedapi/types/binaryproperty.go index f2c968f9c2..d62b5fbdd2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // BinaryProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L54-L56 type BinaryProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/blobdetails.go b/typedapi/types/blobdetails.go index 42ce5e798a..fba6ef5eab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BlobDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L250-L284 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L250-L284 type BlobDetails struct { // Name The name of the blob. Name string `json:"name"` diff --git a/typedapi/types/booleanproperty.go b/typedapi/types/booleanproperty.go index d397b94001..9811169a19 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,29 +28,36 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // BooleanProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L58-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L58-L73 type BooleanProperty struct { - Boost *Float64 `json:"boost,omitempty"` - CopyTo []string `json:"copy_to,omitempty"` - DocValues *bool `json:"doc_values,omitempty"` - Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` - Fielddata *NumericFielddata `json:"fielddata,omitempty"` - Fields map[string]Property `json:"fields,omitempty"` - IgnoreAbove *int `json:"ignore_above,omitempty"` - Index *bool `json:"index,omitempty"` + Boost *Float64 `json:"boost,omitempty"` + CopyTo []string `json:"copy_to,omitempty"` + DocValues *bool `json:"doc_values,omitempty"` + Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` + Fielddata *NumericFielddata `json:"fielddata,omitempty"` + Fields map[string]Property `json:"fields,omitempty"` + IgnoreAbove *int `json:"ignore_above,omitempty"` + IgnoreMalformed *bool `json:"ignore_malformed,omitempty"` + Index *bool `json:"index,omitempty"` // Meta Metadata about the field. Meta map[string]string `json:"meta,omitempty"` NullValue *bool `json:"null_value,omitempty"` + OnScriptError *onscripterror.OnScriptError `json:"on_script_error,omitempty"` Properties map[string]Property `json:"properties,omitempty"` + Script *Script `json:"script,omitempty"` Store *bool `json:"store,omitempty"` SyntheticSourceKeep *syntheticsourcekeepenum.SyntheticSourceKeepEnum `json:"synthetic_source_keep,omitempty"` - Type string `json:"type,omitempty"` + // TimeSeriesDimension For internal use by Elastic only. Marks the field as a time series dimension. + // Defaults to false. + TimeSeriesDimension *bool `json:"time_series_dimension,omitempty"` + Type string `json:"type,omitempty"` } func (s *BooleanProperty) UnmarshalJSON(data []byte) error { @@ -471,6 +478,20 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { s.IgnoreAbove = &f } + case "ignore_malformed": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "IgnoreMalformed", err) + } + s.IgnoreMalformed = &value + case bool: + s.IgnoreMalformed = &v + } + case "index": var tmp any dec.Decode(&tmp) @@ -507,6 +528,11 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { s.NullValue = &v } + case "on_script_error": + if err := dec.Decode(&s.OnScriptError); err != nil { + return fmt.Errorf("%s | %w", "OnScriptError", err) + } + case "properties": if s.Properties == nil { s.Properties = make(map[string]Property, 0) @@ -838,6 +864,11 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { } } + case "script": + if err := dec.Decode(&s.Script); err != nil { + return fmt.Errorf("%s | %w", "Script", err) + } + case "store": var tmp any dec.Decode(&tmp) @@ -857,6 +888,20 @@ func (s *BooleanProperty) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "SyntheticSourceKeep", err) } + case "time_series_dimension": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "TimeSeriesDimension", err) + } + s.TimeSeriesDimension = &value + case bool: + s.TimeSeriesDimension = &v + } + case "type": if err := dec.Decode(&s.Type); err != nil { return fmt.Errorf("%s | %w", "Type", err) @@ -878,12 +923,16 @@ func (s BooleanProperty) MarshalJSON() ([]byte, error) { Fielddata: s.Fielddata, Fields: s.Fields, IgnoreAbove: s.IgnoreAbove, + IgnoreMalformed: s.IgnoreMalformed, Index: s.Index, Meta: s.Meta, NullValue: s.NullValue, + OnScriptError: s.OnScriptError, Properties: s.Properties, + Script: s.Script, Store: s.Store, SyntheticSourceKeep: s.SyntheticSourceKeep, + TimeSeriesDimension: s.TimeSeriesDimension, Type: s.Type, } diff --git a/typedapi/types/boolquery.go b/typedapi/types/boolquery.go index e68bb2d196..47940a41c4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BoolQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L29-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L29-L56 type BoolQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/boostingquery.go b/typedapi/types/boostingquery.go index f1db8c4755..c3a1a08798 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BoostingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L58-L74 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L58-L74 type BoostingQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/boxplotaggregate.go b/typedapi/types/boxplotaggregate.go index 184155c526..7dc0a0c04d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BoxPlotAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L806-L825 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L806-L825 type BoxPlotAggregate struct { Lower Float64 `json:"lower"` LowerAsString *string `json:"lower_as_string,omitempty"` diff --git a/typedapi/types/boxplotaggregation.go b/typedapi/types/boxplotaggregation.go index ffb8093312..294361aef1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BoxplotAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L57-L62 type BoxplotAggregation struct { // Compression Limits the maximum number of nodes used by the underlying TDigest algorithm // to `20 * compression`, enabling control of memory usage and approximation diff --git a/typedapi/types/braziliananalyzer.go b/typedapi/types/braziliananalyzer.go index e5f7eb9400..690307dd7b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BrazilianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L100-L104 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L100-L104 type BrazilianAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/breaker.go b/typedapi/types/breaker.go index ba8e7a6578..3b283f3973 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Breaker type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L470-L495 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L470-L495 type Breaker struct { // EstimatedSize Estimated memory used for the operation. EstimatedSize *string `json:"estimated_size,omitempty"` diff --git a/typedapi/types/bucketcorrelationaggregation.go b/typedapi/types/bucketcorrelationaggregation.go index 2cf956c42a..caa1ce23f5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // BucketCorrelationAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L139-L146 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L139-L146 type BucketCorrelationAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/bucketcorrelationfunction.go b/typedapi/types/bucketcorrelationfunction.go index 1b933f5a51..e062fa7cc6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // BucketCorrelationFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L148-L153 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L148-L153 type BucketCorrelationFunction struct { // CountCorrelation The configuration to calculate a count correlation. This function is designed // for determining the correlation of a term value and a given metric. diff --git a/typedapi/types/bucketcorrelationfunctioncountcorrelation.go b/typedapi/types/bucketcorrelationfunctioncountcorrelation.go index ded57f55cc..c2edb28a53 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // BucketCorrelationFunctionCountCorrelation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L155-L158 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L155-L158 type BucketCorrelationFunctionCountCorrelation struct { // Indicator The indicator with which to correlate the configured `bucket_path` values. Indicator BucketCorrelationFunctionCountCorrelationIndicator `json:"indicator"` diff --git a/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go b/typedapi/types/bucketcorrelationfunctioncountcorrelationindicator.go index b4b1f7f16f..b2408c8ab5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BucketCorrelationFunctionCountCorrelationIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L160-L178 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L160-L178 type BucketCorrelationFunctionCountCorrelationIndicator struct { // DocCount The total number of documents that initially created the expectations. It’s // required to be greater diff --git a/typedapi/types/bucketinfluencer.go b/typedapi/types/bucketinfluencer.go index d99efafdfb..378452a263 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BucketInfluencer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Bucket.ts#L79-L127 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Bucket.ts#L79-L127 type BucketInfluencer struct { // AnomalyScore A normalized score between 0-100, which is calculated for each bucket // influencer. This score might be updated as diff --git a/typedapi/types/bucketksaggregation.go b/typedapi/types/bucketksaggregation.go index a2051a2930..a5186f412a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BucketKsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L103-L137 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L103-L137 type BucketKsAggregation struct { // Alternative A list of string values indicating which K-S test alternative to calculate. // The valid values diff --git a/typedapi/types/bucketmetricvalueaggregate.go b/typedapi/types/bucketmetricvalueaggregate.go index 4c6734f474..c6772d5b1d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BucketMetricValueAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L250-L253 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L250-L253 type BucketMetricValueAggregate struct { Keys []string `json:"keys"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/bucketsadjacencymatrixbucket.go b/typedapi/types/bucketsadjacencymatrixbucket.go index a7ce310876..3798f76ecc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]AdjacencyMatrixBucket // []AdjacencyMatrixBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsAdjacencyMatrixBucket any diff --git a/typedapi/types/bucketsapikeyquerycontainer.go b/typedapi/types/bucketsapikeyquerycontainer.go index ec39c9a6da..04da7152c7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // map[string]ApiKeyQueryContainer // []ApiKeyQueryContainer // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b0d331f2aa..76dbcec3ac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]CompositeBucket // []CompositeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsCompositeBucket any diff --git a/typedapi/types/bucketscriptaggregation.go b/typedapi/types/bucketscriptaggregation.go index 841659c801..135d25730a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // BucketScriptAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L83-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L83-L91 type BucketScriptAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/bucketsdatehistogrambucket.go b/typedapi/types/bucketsdatehistogrambucket.go index 3d2db6b28e..271f81bec8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]DateHistogramBucket // []DateHistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsDateHistogramBucket any diff --git a/typedapi/types/bucketsdoubletermsbucket.go b/typedapi/types/bucketsdoubletermsbucket.go index f29ca9b7b6..f51f0b5f69 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]DoubleTermsBucket // []DoubleTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsDoubleTermsBucket any diff --git a/typedapi/types/bucketselectoraggregation.go b/typedapi/types/bucketselectoraggregation.go index 132dec707c..84f56f0c53 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // BucketSelectorAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L93-L101 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L93-L101 type BucketSelectorAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/bucketsfiltersbucket.go b/typedapi/types/bucketsfiltersbucket.go index 707c2f2b42..24678c5f95 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]FiltersBucket // []FiltersBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsFiltersBucket any diff --git a/typedapi/types/bucketsfrequentitemsetsbucket.go b/typedapi/types/bucketsfrequentitemsetsbucket.go index 982d20c947..a25da5bee9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]FrequentItemSetsBucket // []FrequentItemSetsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsFrequentItemSetsBucket any diff --git a/typedapi/types/bucketsgeohashgridbucket.go b/typedapi/types/bucketsgeohashgridbucket.go index e1a11ca287..b2389061ac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]GeoHashGridBucket // []GeoHashGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsGeoHashGridBucket any diff --git a/typedapi/types/bucketsgeohexgridbucket.go b/typedapi/types/bucketsgeohexgridbucket.go index 838d01e093..3c038fd980 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]GeoHexGridBucket // []GeoHexGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsGeoHexGridBucket any diff --git a/typedapi/types/bucketsgeotilegridbucket.go b/typedapi/types/bucketsgeotilegridbucket.go index 3dbb4e80ca..1921da66e1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]GeoTileGridBucket // []GeoTileGridBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsGeoTileGridBucket any diff --git a/typedapi/types/bucketshistogrambucket.go b/typedapi/types/bucketshistogrambucket.go index 5854bb458d..7494169599 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]HistogramBucket // []HistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsHistogramBucket any diff --git a/typedapi/types/bucketsipprefixbucket.go b/typedapi/types/bucketsipprefixbucket.go index fcb1226500..226798b909 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]IpPrefixBucket // []IpPrefixBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsIpPrefixBucket any diff --git a/typedapi/types/bucketsiprangebucket.go b/typedapi/types/bucketsiprangebucket.go index d88133e121..ab40b2320f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]IpRangeBucket // []IpRangeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsIpRangeBucket any diff --git a/typedapi/types/bucketslongraretermsbucket.go b/typedapi/types/bucketslongraretermsbucket.go index 66b1a74624..bbd48ee32b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]LongRareTermsBucket // []LongRareTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsLongRareTermsBucket any diff --git a/typedapi/types/bucketslongtermsbucket.go b/typedapi/types/bucketslongtermsbucket.go index 1bd8bb81be..4497d5e759 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]LongTermsBucket // []LongTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsLongTermsBucket any diff --git a/typedapi/types/bucketsmultitermsbucket.go b/typedapi/types/bucketsmultitermsbucket.go index 2cab9c450e..139230fc55 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]MultiTermsBucket // []MultiTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsMultiTermsBucket any diff --git a/typedapi/types/bucketsortaggregation.go b/typedapi/types/bucketsortaggregation.go index 7432b88c25..989a2ed0fd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // BucketSortAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L180-L204 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L180-L204 type BucketSortAggregation struct { // From Buckets in positions prior to `from` will be truncated. From *int `json:"from,omitempty"` diff --git a/typedapi/types/bucketspath.go b/typedapi/types/bucketspath.go index 6b45d3c870..72a33f34f1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ package types // []string // map[string]string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L53-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9d84b91683..bc401f6453 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // map[string]Query // []Query // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 15c5c7d981..26b76a6d1a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]RangeBucket // []RangeBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsRangeBucket any diff --git a/typedapi/types/bucketssignificantlongtermsbucket.go b/typedapi/types/bucketssignificantlongtermsbucket.go index 70f6a77505..acf72d4e9f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]SignificantLongTermsBucket // []SignificantLongTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsSignificantLongTermsBucket any diff --git a/typedapi/types/bucketssignificantstringtermsbucket.go b/typedapi/types/bucketssignificantstringtermsbucket.go index 94fa2a9bcc..079823ad7e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]SignificantStringTermsBucket // []SignificantStringTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsSignificantStringTermsBucket any diff --git a/typedapi/types/bucketsstringraretermsbucket.go b/typedapi/types/bucketsstringraretermsbucket.go index 713918f759..a2648ea331 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]StringRareTermsBucket // []StringRareTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsStringRareTermsBucket any diff --git a/typedapi/types/bucketsstringtermsbucket.go b/typedapi/types/bucketsstringtermsbucket.go index 139e135c0e..21e62cf972 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]StringTermsBucket // []StringTermsBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsStringTermsBucket any diff --git a/typedapi/types/bucketstimeseriesbucket.go b/typedapi/types/bucketstimeseriesbucket.go index fec6c47ec0..873b743f4b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]TimeSeriesBucket // []TimeSeriesBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsTimeSeriesBucket any diff --git a/typedapi/types/bucketsummary.go b/typedapi/types/bucketsummary.go index 967d49b99c..15a537f205 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BucketSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Bucket.ts#L30-L77 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Bucket.ts#L30-L77 type BucketSummary struct { // AnomalyScore The maximum anomaly score, between 0-100, for any of the bucket influencers. // This is an overall, rate-limited diff --git a/typedapi/types/bucketsvariablewidthhistogrambucket.go b/typedapi/types/bucketsvariablewidthhistogrambucket.go index aea716f07c..97bd9c845a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]VariableWidthHistogramBucket // []VariableWidthHistogramBucket // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsVariableWidthHistogramBucket any diff --git a/typedapi/types/bucketsvoid.go b/typedapi/types/bucketsvoid.go index 9292503c63..9dc5d205b8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // map[string]any // []any // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L346-L355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L346-L355 type BucketsVoid any diff --git a/typedapi/types/buildinformation.go b/typedapi/types/buildinformation.go index 70ea59501e..5e7c75a102 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BuildInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/info/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/info/types.ts#L24-L27 type BuildInformation struct { Date DateTime `json:"date"` Hash string `json:"hash"` diff --git a/typedapi/types/bulgariananalyzer.go b/typedapi/types/bulgariananalyzer.go index fd2916cd4a..bfe5281297 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BulgarianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L106-L111 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L106-L111 type BulgarianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/bulkerror.go b/typedapi/types/bulkerror.go index 711d72180e..991d6d1ea0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BulkError type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Bulk.ts#L24-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Bulk.ts#L24-L33 type BulkError struct { // Count The number of errors Count int `json:"count"` diff --git a/typedapi/types/bulkindexbyscrollfailure.go b/typedapi/types/bulkindexbyscrollfailure.go index edda4c4d3f..2ee9085f95 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BulkIndexByScrollFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Errors.ts#L60-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Errors.ts#L60-L65 type BulkIndexByScrollFailure struct { Cause ErrorCause `json:"cause"` Id string `json:"id"` diff --git a/typedapi/types/bulkstats.go b/typedapi/types/bulkstats.go index 1220f833b4..d98f2fee42 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BulkStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L71-L81 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L71-L81 type BulkStats struct { AvgSize ByteSize `json:"avg_size,omitempty"` AvgSizeInBytes int64 `json:"avg_size_in_bytes"` diff --git a/typedapi/types/bytenumberproperty.go b/typedapi/types/bytenumberproperty.go index cf10f64f7f..412d4ef433 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // ByteNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L176-L179 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L185-L188 type ByteNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/bytesize.go b/typedapi/types/bytesize.go index 2e296c1939..f4663c2514 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L90-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 916ff53ed7..8e2512dc38 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // BytesProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L556-L572 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/cachequeries.go b/typedapi/types/cachequeries.go index b5bbc0f4d0..1aee89a06b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CacheQueries type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L421-L423 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L421-L423 type CacheQueries struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/cachestats.go b/typedapi/types/cachestats.go index 450565a40d..243e687b4b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/stats/types.ts#L38-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/enrich/stats/types.ts#L38-L50 type CacheStats struct { Count int `json:"count"` Evictions int `json:"evictions"` diff --git a/typedapi/types/calendar.go b/typedapi/types/calendar.go index cf2b514127..a47aa545c7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Calendar type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_calendars/types.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/get_calendars/types.ts#L22-L29 type Calendar struct { // CalendarId A string that uniquely identifies a calendar. CalendarId string `json:"calendar_id"` diff --git a/typedapi/types/calendarevent.go b/typedapi/types/calendarevent.go index 9ea367fd18..bc4dcdabfe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CalendarEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/CalendarEvent.ts#L24-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/CalendarEvent.ts#L24-L44 type CalendarEvent struct { // CalendarId A string that uniquely identifies a calendar. CalendarId *string `json:"calendar_id,omitempty"` diff --git a/typedapi/types/cardinalityaggregate.go b/typedapi/types/cardinalityaggregate.go index aed5d4667f..451dd66001 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CardinalityAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L140-L143 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L140-L143 type CardinalityAggregate struct { Meta Metadata `json:"meta,omitempty"` Value int64 `json:"value"` diff --git a/typedapi/types/cardinalityaggregation.go b/typedapi/types/cardinalityaggregation.go index 03f5d23c69..0e8da689d7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cardinalityexecutionmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cardinalityexecutionmode" ) // CardinalityAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L87-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L87-L99 type CardinalityAggregation struct { // ExecutionHint Mechanism by which cardinality aggregations is run. ExecutionHint *cardinalityexecutionmode.CardinalityExecutionMode `json:"execution_hint,omitempty"` diff --git a/typedapi/types/catalananalyzer.go b/typedapi/types/catalananalyzer.go index 694834082f..c34d23dea5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CatalanAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L113-L118 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L113-L118 type CatalanAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/catanonalydetectorcolumns.go b/typedapi/types/catanonalydetectorcolumns.go index 08a6b4c4c6..759cbb4f5c 100644 --- a/typedapi/types/catanonalydetectorcolumns.go +++ b/typedapi/types/catanonalydetectorcolumns.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catanomalydetectorcolumn" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catanomalydetectorcolumn" ) // CatAnonalyDetectorColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/_types/CatBase.ts#L402-L404 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/_types/CatBase.ts#L402-L404 type CatAnonalyDetectorColumns []catanomalydetectorcolumn.CatAnomalyDetectorColumn diff --git a/typedapi/types/catcomponenttemplate.go b/typedapi/types/catcomponenttemplate.go index 45651b18b9..cd428602a0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CatComponentTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/component_templates/types.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/component_templates/types.ts#L20-L28 type CatComponentTemplate struct { AliasCount string `json:"alias_count"` IncludedIn string `json:"included_in"` diff --git a/typedapi/types/catdatafeedcolumns.go b/typedapi/types/catdatafeedcolumns.go index bd8fa9ed5c..cf2935f340 100644 --- a/typedapi/types/catdatafeedcolumns.go +++ b/typedapi/types/catdatafeedcolumns.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdatafeedcolumn" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catdatafeedcolumn" ) // CatDatafeedColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/_types/CatBase.ts#L559-L559 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/_types/CatBase.ts#L559-L559 type CatDatafeedColumns []catdatafeedcolumn.CatDatafeedColumn diff --git a/typedapi/types/catdfacolumns.go b/typedapi/types/catdfacolumns.go index bd5f4f8d84..7bb6343b92 100644 --- a/typedapi/types/catdfacolumns.go +++ b/typedapi/types/catdfacolumns.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/catdfacolumn" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/catdfacolumn" ) // CatDfaColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/_types/CatBase.ts#L558-L558 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/_types/CatBase.ts#L558-L558 type CatDfaColumns []catdfacolumn.CatDfaColumn diff --git a/typedapi/types/categorizationanalyzer.go b/typedapi/types/categorizationanalyzer.go index cccb6ca2a9..c58c190308 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // CategorizationAnalyzerDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Analysis.ts#L181-L182 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7d393ef50b..942f95ba07 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // CategorizationAnalyzerDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Analysis.ts#L184-L198 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Analysis.ts#L184-L198 type CategorizationAnalyzerDefinition struct { // CharFilter One or more character filters. In addition to the built-in character filters, // other plugins can provide more character filters. If this property is not diff --git a/typedapi/types/categorizetextaggregation.go b/typedapi/types/categorizetextaggregation.go index 84e12c93cc..51fdb234c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CategorizeTextAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1117-L1182 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L1117-L1182 type CategorizeTextAggregation struct { // CategorizationAnalyzer The categorization analyzer specifies how the text is analyzed and tokenized // before being categorized. diff --git a/typedapi/types/categorizetextanalyzer.go b/typedapi/types/categorizetextanalyzer.go index 96bb19bc0e..644e86f596 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // CustomCategorizeTextAnalyzer // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1184-L1187 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L1184-L1187 type CategorizeTextAnalyzer any type CategorizeTextAnalyzerVariant interface { diff --git a/typedapi/types/category.go b/typedapi/types/category.go index 905b237b13..073da24389 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Category type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Category.ts#L23-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Category.ts#L23-L49 type Category struct { // CategoryId A unique identifier for the category. category_id is unique at the job level, // even when per-partition categorization is enabled. diff --git a/typedapi/types/cattrainedmodelscolumns.go b/typedapi/types/cattrainedmodelscolumns.go index e01492727a..c4f202e2c5 100644 --- a/typedapi/types/cattrainedmodelscolumns.go +++ b/typedapi/types/cattrainedmodelscolumns.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattrainedmodelscolumn" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cattrainedmodelscolumn" ) // CatTrainedModelsColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/_types/CatBase.ts#L636-L638 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/_types/CatBase.ts#L636-L638 type CatTrainedModelsColumns []cattrainedmodelscolumn.CatTrainedModelsColumn diff --git a/typedapi/types/cattransformcolumns.go b/typedapi/types/cattransformcolumns.go index b503bd1859..aed4cb9283 100644 --- a/typedapi/types/cattransformcolumns.go +++ b/typedapi/types/cattransformcolumns.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/cattransformcolumn" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cattransformcolumn" ) // CatTransformColumns type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/_types/CatBase.ts#L845-L845 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/_types/CatBase.ts#L845-L845 type CatTransformColumns []cattransformcolumn.CatTransformColumn diff --git a/typedapi/types/ccr.go b/typedapi/types/ccr.go index dd4d46319b..a4c0fcd9a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Ccr type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L344-L347 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L344-L347 type Ccr struct { AutoFollowPatternsCount int `json:"auto_follow_patterns_count"` Available bool `json:"available"` diff --git a/typedapi/types/ccrshardstats.go b/typedapi/types/ccrshardstats.go index 2578c149f7..a49c096c58 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CcrShardStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/_types/FollowIndexStats.ts#L37-L109 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ccr/_types/FollowIndexStats.ts#L37-L109 type CcrShardStats struct { // BytesRead The total of transferred bytes read from the leader. // This is only an estimate and does not account for compression if enabled. diff --git a/typedapi/types/certificateinformation.go b/typedapi/types/certificateinformation.go index ee83750ef8..d19863212c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CertificateInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ssl/certificates/types.ts#L22-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ssl/certificates/types.ts#L22-L57 type CertificateInformation struct { // Alias If the path refers to a container file (a jks keystore, or a PKCS#12 file), // it is the alias of the certificate. diff --git a/typedapi/types/cgroup.go b/typedapi/types/cgroup.go index 732502d41b..99e403a175 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Cgroup type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L497-L510 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L497-L510 type Cgroup struct { // Cpu Contains statistics about `cpu` control group for the node. Cpu *CgroupCpu `json:"cpu,omitempty"` diff --git a/typedapi/types/cgroupcpu.go b/typedapi/types/cgroupcpu.go index 5218d6d260..cf338beb22 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CgroupCpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L523-L540 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L523-L540 type CgroupCpu struct { // CfsPeriodMicros The period of time, in microseconds, for how regularly all tasks in the same // cgroup as the Elasticsearch process should have their access to CPU resources diff --git a/typedapi/types/cgroupcpustat.go b/typedapi/types/cgroupcpustat.go index a62b99d37b..3b75666861 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CgroupCpuStat type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L542-L555 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L542-L555 type CgroupCpuStat struct { // NumberOfElapsedPeriods The number of reporting periods (as specified by `cfs_period_micros`) that // have elapsed. diff --git a/typedapi/types/cgroupmemory.go b/typedapi/types/cgroupmemory.go index 4641a774ff..ab93c3866a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CgroupMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L557-L573 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L557-L573 type CgroupMemory struct { // ControlGroup The `memory` control group to which the Elasticsearch process belongs. ControlGroup *string `json:"control_group,omitempty"` diff --git a/typedapi/types/chaininput.go b/typedapi/types/chaininput.go index d01485b344..0d073fe588 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ChainInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L35-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L35-L37 type ChainInput struct { Inputs []map[string]WatcherInput `json:"inputs"` } diff --git a/typedapi/types/charfilter.go b/typedapi/types/charfilter.go index 62312ca69b..ddb8f37456 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // CharFilterDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/char_filters.ts#L28-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8365d7cdc3..97bd37fa39 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,7 +28,7 @@ package types // IcuNormalizationCharFilter // KuromojiIterationMarkCharFilter // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/char_filters.ts#L35-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b5406661a5..695e46612e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CharFilterDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/analyze/types.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/analyze/types.ts#L46-L49 type CharFilterDetail struct { FilteredText []string `json:"filtered_text"` Name string `json:"name"` diff --git a/typedapi/types/charfiltertypes.go b/typedapi/types/charfiltertypes.go index 9d215a9a3c..1e6bc9379d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // CharFilterTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L228-L261 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L228-L261 type CharFilterTypes struct { // AnalyzerTypes Contains statistics about analyzer types used in selected nodes. AnalyzerTypes []FieldTypes `json:"analyzer_types"` diff --git a/typedapi/types/chargrouptokenizer.go b/typedapi/types/chargrouptokenizer.go index 6df006a663..19a0ebbeac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CharGroupTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L31-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L31-L38 type CharGroupTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` TokenizeOnChars []string `json:"tokenize_on_chars"` diff --git a/typedapi/types/checkpointing.go b/typedapi/types/checkpointing.go index 8fab9cf9f5..2bba1f8a85 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,14 +31,15 @@ import ( // Checkpointing type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/get_transform_stats/types.ts#L85-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/get_transform_stats/types.ts#L102-L110 type Checkpointing struct { - ChangesLastDetectedAt *int64 `json:"changes_last_detected_at,omitempty"` - ChangesLastDetectedAtDateTime DateTime `json:"changes_last_detected_at_date_time,omitempty"` - Last CheckpointStats `json:"last"` - LastSearchTime *int64 `json:"last_search_time,omitempty"` - Next *CheckpointStats `json:"next,omitempty"` - OperationsBehind *int64 `json:"operations_behind,omitempty"` + ChangesLastDetectedAt *int64 `json:"changes_last_detected_at,omitempty"` + ChangesLastDetectedAtString DateTime `json:"changes_last_detected_at_string,omitempty"` + Last CheckpointStats `json:"last"` + LastSearchTime *int64 `json:"last_search_time,omitempty"` + LastSearchTimeString DateTime `json:"last_search_time_string,omitempty"` + Next *CheckpointStats `json:"next,omitempty"` + OperationsBehind *int64 `json:"operations_behind,omitempty"` } func (s *Checkpointing) UnmarshalJSON(data []byte) error { @@ -71,9 +72,9 @@ func (s *Checkpointing) UnmarshalJSON(data []byte) error { s.ChangesLastDetectedAt = &f } - case "changes_last_detected_at_date_time": - if err := dec.Decode(&s.ChangesLastDetectedAtDateTime); err != nil { - return fmt.Errorf("%s | %w", "ChangesLastDetectedAtDateTime", err) + case "changes_last_detected_at_string": + if err := dec.Decode(&s.ChangesLastDetectedAtString); err != nil { + return fmt.Errorf("%s | %w", "ChangesLastDetectedAtString", err) } case "last": @@ -96,6 +97,11 @@ func (s *Checkpointing) UnmarshalJSON(data []byte) error { s.LastSearchTime = &f } + case "last_search_time_string": + if err := dec.Decode(&s.LastSearchTimeString); err != nil { + return fmt.Errorf("%s | %w", "LastSearchTimeString", err) + } + case "next": if err := dec.Decode(&s.Next); err != nil { return fmt.Errorf("%s | %w", "Next", err) diff --git a/typedapi/types/checkpointstats.go b/typedapi/types/checkpointstats.go index 68895c02fa..e4f3722f03 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CheckpointStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/get_transform_stats/types.ts#L76-L83 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/get_transform_stats/types.ts#L93-L100 type CheckpointStats struct { Checkpoint int64 `json:"checkpoint"` CheckpointProgress *TransformProgress `json:"checkpoint_progress,omitempty"` diff --git a/typedapi/types/childrenaggregate.go b/typedapi/types/childrenaggregate.go index 04f807d675..908e1a1d22 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // ChildrenAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L888-L892 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L888-L892 type ChildrenAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/childrenaggregation.go b/typedapi/types/childrenaggregation.go index 32fd89624d..b38dab1135 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ChildrenAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L121-L126 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L121-L126 type ChildrenAggregation struct { // Type The child type that should be selected. Type *string `json:"type,omitempty"` diff --git a/typedapi/types/chineseanalyzer.go b/typedapi/types/chineseanalyzer.go index f5824ed05f..f52915873e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ChineseAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L120-L124 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L120-L124 type ChineseAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/chisquareheuristic.go b/typedapi/types/chisquareheuristic.go index 0f2c505a97..265dc91e74 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ChiSquareHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L782-L791 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L782-L791 type ChiSquareHeuristic struct { // BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a // different set of documents that you want to compare to. diff --git a/typedapi/types/chunkingconfig.go b/typedapi/types/chunkingconfig.go index 921489b7b1..4c8dece42c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/chunkingmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/chunkingmode" ) // ChunkingConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Datafeed.ts#L251-L264 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Datafeed.ts#L251-L264 type ChunkingConfig struct { // Mode If the mode is `auto`, the chunk size is dynamically calculated; // this is the recommended value when the datafeed does not use aggregations. diff --git a/typedapi/types/circleprocessor.go b/typedapi/types/circleprocessor.go index a7390027ff..dfac13ac9e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shapetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shapetype" ) // CircleProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L574-L597 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/cjkanalyzer.go b/typedapi/types/cjkanalyzer.go index 309f871601..37de30e80f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CjkAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L126-L130 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L126-L130 type CjkAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/classictokenizer.go b/typedapi/types/classictokenizer.go index 6897374dfd..7221bc535c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClassicTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L40-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L40-L46 type ClassicTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/classificationinferenceoptions.go b/typedapi/types/classificationinferenceoptions.go index 16fe62ab7f..e3f0585cf8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L93-L108 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L118-L133 type ClassificationInferenceOptions struct { // NumTopClasses Specifies the number of top class predictions to return. Defaults to 0. NumTopClasses *int `json:"num_top_classes,omitempty"` diff --git a/typedapi/types/cleanuprepositoryresults.go b/typedapi/types/cleanuprepositoryresults.go index 6899d0c2c0..e69706ab04 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CleanupRepositoryResults type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/cleanup_repository/SnapshotCleanupRepositoryResponse.ts#L29-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/client.go b/typedapi/types/client.go index 276f70f24b..8e73ff8adb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Client type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L720-L767 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L720-L767 type Client struct { // Agent Reported agent for the HTTP client. // If unavailable, this property is not included in the response. diff --git a/typedapi/types/closeindexresult.go b/typedapi/types/closeindexresult.go index ada3444cc0..38c40481c1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CloseIndexResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/close/CloseIndexResponse.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/close/CloseIndexResponse.ts#L32-L35 type CloseIndexResult struct { Closed bool `json:"closed"` Shards map[string]CloseShardResult `json:"shards,omitempty"` diff --git a/typedapi/types/closeshardresult.go b/typedapi/types/closeshardresult.go index a60db2550e..c10455905c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // CloseShardResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/close/CloseIndexResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/close/CloseIndexResponse.ts#L37-L39 type CloseShardResult struct { Failures []ShardFailure `json:"failures"` } diff --git a/typedapi/types/clusterappliedstats.go b/typedapi/types/clusterappliedstats.go index a46900f9fe..cd6d19d185 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ClusterAppliedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L221-L223 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L221-L223 type ClusterAppliedStats struct { Recordings []Recording `json:"recordings,omitempty"` } diff --git a/typedapi/types/clustercomponenttemplate.go b/typedapi/types/clustercomponenttemplate.go index 0852167320..4717b44dbf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ClusterComponentTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/_types/ComponentTemplate.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/_types/ComponentTemplate.ts#L27-L30 type ClusterComponentTemplate struct { ComponentTemplate ComponentTemplateNode `json:"component_template"` Name string `json:"name"` diff --git a/typedapi/types/clusterdetails.go b/typedapi/types/clusterdetails.go index b3b94443d8..fae2616f1f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clustersearchstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clustersearchstatus" ) // ClusterDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L45-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L45-L52 type ClusterDetails struct { Failures []ShardFailure `json:"failures,omitempty"` Indices string `json:"indices"` diff --git a/typedapi/types/clusterfilesystem.go b/typedapi/types/clusterfilesystem.go index 02ab06422a..fdac934543 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterFileSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L34-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L34-L49 type ClusterFileSystem struct { // AvailableInBytes Total number of bytes available to JVM in file stores across all selected // nodes. diff --git a/typedapi/types/clusterindexingpressure.go b/typedapi/types/clusterindexingpressure.go index 57c9ef3571..1a85efeae5 100644 --- a/typedapi/types/clusterindexingpressure.go +++ b/typedapi/types/clusterindexingpressure.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ClusterIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L570-L572 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L570-L572 type ClusterIndexingPressure struct { Memory ClusterPressureMemory `json:"memory"` } diff --git a/typedapi/types/clusterindices.go b/typedapi/types/clusterindices.go index af3dff0882..e1a14e1d02 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterIndices type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L74-L107 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L74-L107 type ClusterIndices struct { // Analysis Contains statistics about analyzers and analyzer components used in selected // nodes. diff --git a/typedapi/types/clusterindicesshards.go b/typedapi/types/clusterindicesshards.go index 0f06abc814..3f7f271d34 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterIndicesShards type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L60-L72 type ClusterIndicesShards struct { // Index Contains statistics about shards assigned to selected nodes. Index *ClusterIndicesShardsIndex `json:"index,omitempty"` diff --git a/typedapi/types/clusterindicesshardsindex.go b/typedapi/types/clusterindicesshardsindex.go index 5eb3afba52..998053810b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ClusterIndicesShardsIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L51-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L51-L58 type ClusterIndicesShardsIndex struct { // Primaries Contains statistics about the number of primary shards assigned to selected // nodes. diff --git a/typedapi/types/clusterinfo.go b/typedapi/types/clusterinfo.go index a01223e52f..7fd8687a8a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ClusterInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L49-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/allocation_explain/types.ts#L49-L55 type ClusterInfo struct { Nodes map[string]NodeDiskUsage `json:"nodes"` ReservedSizes []ReservedSize `json:"reserved_sizes"` diff --git a/typedapi/types/clusterinfotargets.go b/typedapi/types/clusterinfotargets.go index f49860f33e..88cbb31dfe 100644 --- a/typedapi/types/clusterinfotargets.go +++ b/typedapi/types/clusterinfotargets.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterinfotarget" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterinfotarget" ) // ClusterInfoTargets type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L386-L386 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L386-L386 type ClusterInfoTargets []clusterinfotarget.ClusterInfoTarget diff --git a/typedapi/types/clusteringest.go b/typedapi/types/clusteringest.go index 7009521105..bdad7cd044 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L270-L273 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L270-L273 type ClusterIngest struct { NumberOfPipelines int `json:"number_of_pipelines"` ProcessorStats map[string]ClusterProcessor `json:"processor_stats"` diff --git a/typedapi/types/clusterjvm.go b/typedapi/types/clusterjvm.go index b0bf46d09e..52c88daf5d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterJvm type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L275-L292 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L275-L292 type ClusterJvm struct { // MaxUptimeInMillis Uptime duration, in milliseconds, since JVM last started. MaxUptimeInMillis int64 `json:"max_uptime_in_millis"` diff --git a/typedapi/types/clusterjvmmemory.go b/typedapi/types/clusterjvmmemory.go index d3b9e8d965..e05de53d71 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterJvmMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L294-L303 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L294-L303 type ClusterJvmMemory struct { // HeapMaxInBytes Maximum amount of memory, in bytes, available for use by the heap across all // selected nodes. diff --git a/typedapi/types/clusterjvmversion.go b/typedapi/types/clusterjvmversion.go index 908c7f2685..1bdcac89ce 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterJvmVersion type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L305-L335 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L305-L335 type ClusterJvmVersion struct { // BundledJdk Always `true`. All distributions come with a bundled Java Development Kit // (JDK). diff --git a/typedapi/types/clusternetworktypes.go b/typedapi/types/clusternetworktypes.go index 791e4d3950..304a94734c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ClusterNetworkTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L337-L346 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L337-L346 type ClusterNetworkTypes struct { // HttpTypes Contains statistics about the HTTP network types used by selected nodes. HttpTypes map[string]int `json:"http_types"` diff --git a/typedapi/types/clusternode.go b/typedapi/types/clusternode.go index 27da853616..d52dc30225 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ClusterNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/ClusterNode.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/ClusterNode.ts#L22-L24 type ClusterNode struct { Name string `json:"name"` } diff --git a/typedapi/types/clusternodecount.go b/typedapi/types/clusternodecount.go index 7ac8c603be..398b081437 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterNodeCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L348-L367 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L348-L367 type ClusterNodeCount struct { CoordinatingOnly int `json:"coordinating_only"` Data int `json:"data"` diff --git a/typedapi/types/clusternodes.go b/typedapi/types/clusternodes.go index 61c3f2dc08..e0542b3324 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ClusterNodes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L369-L402 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L369-L402 type ClusterNodes struct { // Count Contains counts for nodes selected by the request’s node filters. Count ClusterNodeCount `json:"count"` diff --git a/typedapi/types/clusteroperatingsystem.go b/typedapi/types/clusteroperatingsystem.go index 2af9cbf161..e24d785dad 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L415-L442 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L415-L442 type ClusterOperatingSystem struct { // AllocatedProcessors Number of processors used to calculate thread pool size across all selected // nodes. diff --git a/typedapi/types/clusteroperatingsystemarchitecture.go b/typedapi/types/clusteroperatingsystemarchitecture.go index 6967ff508f..2ec74057dd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemArchitecture type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L404-L413 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L404-L413 type ClusterOperatingSystemArchitecture struct { // Arch Name of an architecture used by one or more selected nodes. Arch string `json:"arch"` diff --git a/typedapi/types/clusteroperatingsystemname.go b/typedapi/types/clusteroperatingsystemname.go index 1c37dbeb85..b1ecb0fc64 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemName type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L444-L453 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L444-L453 type ClusterOperatingSystemName struct { // Count Number of selected nodes using the operating system. Count int `json:"count"` diff --git a/typedapi/types/clusteroperatingsystemprettyname.go b/typedapi/types/clusteroperatingsystemprettyname.go index 2ff383fa8c..a8ce779cf5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterOperatingSystemPrettyName type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L455-L464 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L455-L464 type ClusterOperatingSystemPrettyName struct { // Count Number of selected nodes using the operating system. Count int `json:"count"` diff --git a/typedapi/types/clusterpressurememory.go b/typedapi/types/clusterpressurememory.go index 6c171d6316..ab89296533 100644 --- a/typedapi/types/clusterpressurememory.go +++ b/typedapi/types/clusterpressurememory.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L574-L578 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L574-L578 type ClusterPressureMemory struct { Current IndexingPressureMemorySummary `json:"current"` LimitInBytes int64 `json:"limit_in_bytes"` diff --git a/typedapi/types/clusterprocess.go b/typedapi/types/clusterprocess.go index c6b3421b9c..5a6506ba4b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ClusterProcess type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L466-L475 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L466-L475 type ClusterProcess struct { // Cpu Contains statistics about CPU used by selected nodes. Cpu ClusterProcessCpu `json:"cpu"` diff --git a/typedapi/types/clusterprocesscpu.go b/typedapi/types/clusterprocesscpu.go index 30cf6ce263..1ef3373727 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessCpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L477-L483 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L477-L483 type ClusterProcessCpu struct { // Percent Percentage of CPU used across all selected nodes. // Returns `-1` if not supported. diff --git a/typedapi/types/clusterprocessopenfiledescriptors.go b/typedapi/types/clusterprocessopenfiledescriptors.go index 196100eff6..4aaef3df23 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessOpenFileDescriptors type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L485-L501 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L485-L501 type ClusterProcessOpenFileDescriptors struct { // Avg Average number of concurrently open file descriptors. // Returns `-1` if not supported. diff --git a/typedapi/types/clusterprocessor.go b/typedapi/types/clusterprocessor.go index e3e7096e41..9a1134fba7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L503-L509 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L503-L509 type ClusterProcessor struct { Count int64 `json:"count"` Current int64 `json:"current"` diff --git a/typedapi/types/clusterremoteinfo.go b/typedapi/types/clusterremoteinfo.go index d6826ce867..a96f9a4e3c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // ClusterRemoteSniffInfo // ClusterRemoteProxyInfo // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L29-L30 type ClusterRemoteInfo any diff --git a/typedapi/types/clusterremoteproxyinfo.go b/typedapi/types/clusterremoteproxyinfo.go index b7ce4df1f1..2310f7a878 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterRemoteProxyInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L58-L83 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L58-L83 type ClusterRemoteProxyInfo struct { // ClusterCredentials This field is present and has a value of `::es_redacted::` only when the // remote cluster is configured with the API key based model. Otherwise, the diff --git a/typedapi/types/clusterremotesniffinfo.go b/typedapi/types/clusterremotesniffinfo.go index de4e08daa0..510cc8f887 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterRemoteSniffInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/remote_info/ClusterRemoteInfoResponse.ts#L32-L56 type ClusterRemoteSniffInfo struct { // Connected If it is `true`, there is at least one open connection to the remote cluster. // If it is `false`, it means that the cluster no longer has an open connection diff --git a/typedapi/types/clusterruntimefieldtypes.go b/typedapi/types/clusterruntimefieldtypes.go index 8943d803ea..c27af27f18 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterRuntimeFieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L169-L226 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L169-L226 type ClusterRuntimeFieldTypes struct { // CharsMax Maximum number of characters for a single runtime field script. CharsMax int `json:"chars_max"` diff --git a/typedapi/types/clustershardmetrics.go b/typedapi/types/clustershardmetrics.go index 0508057a90..2c7456e146 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterShardMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L511-L524 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L511-L524 type ClusterShardMetrics struct { // Avg Mean number of shards in an index, counting only shards assigned to selected // nodes. diff --git a/typedapi/types/clusterstatequeue.go b/typedapi/types/clusterstatequeue.go index 2da5be9d89..9f79516268 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterStateQueue type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L248-L261 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L248-L261 type ClusterStateQueue struct { // Committed Number of committed cluster states in queue. Committed *int64 `json:"committed,omitempty"` diff --git a/typedapi/types/clusterstateupdate.go b/typedapi/types/clusterstateupdate.go index 7af386fd2d..c20c6fbe3a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterStateUpdate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L278-L343 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L278-L343 type ClusterStateUpdate struct { // CommitTime The cumulative amount of time spent waiting for a successful cluster state // update to commit, which measures the time from the start of each publication diff --git a/typedapi/types/clusterstatistics.go b/typedapi/types/clusterstatistics.go index dc61b57b20..b43b23554a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ClusterStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L27-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L27-L35 type ClusterStatistics struct { Details map[string]ClusterDetails `json:"details,omitempty"` Failed int `json:"failed"` diff --git a/typedapi/types/cohereservicesettings.go b/typedapi/types/cohereservicesettings.go new file mode 100644 index 0000000000..5f4a6d727e --- /dev/null +++ b/typedapi/types/cohereservicesettings.go @@ -0,0 +1,152 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cohereembeddingtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/coheresimilaritytype" +) + +// CohereServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L572-L613 +type CohereServiceSettings struct { + // ApiKey A valid API key for your Cohere account. + // You can find or create your Cohere API keys on the Cohere API key settings + // page. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey string `json:"api_key"` + // EmbeddingType For a `text_embedding` task, the types of embeddings you want to get back. + // Use `byte` for signed int8 embeddings (this is a synonym of `int8`). + // Use `float` for the default float embeddings. + // Use `int8` for signed int8 embeddings. + EmbeddingType *cohereembeddingtype.CohereEmbeddingType `json:"embedding_type,omitempty"` + // ModelId For a `completion`, `rerank`, or `text_embedding` task, the name of the model + // to use for the inference task. + // + // * For the available `completion` models, refer to the [Cohere command + // docs](https://docs.cohere.com/docs/models#command). + // * For the available `rerank` models, refer to the [Cohere rerank + // docs](https://docs.cohere.com/reference/rerank-1). + // * For the available `text_embedding` models, refer to [Cohere embed + // docs](https://docs.cohere.com/reference/embed). + // + // The default value for a text embedding task is `embed-english-v2.0`. + ModelId *string `json:"model_id,omitempty"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Cohere. + // By default, the `cohere` service sets the number of requests allowed per + // minute to 10000. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // Similarity The similarity measure. + // If the `embedding_type` is `float`, the default value is `dot_product`. + // If the `embedding_type` is `int8` or `byte`, the default value is `cosine`. + Similarity *coheresimilaritytype.CohereSimilarityType `json:"similarity,omitempty"` +} + +func (s *CohereServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "api_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "embedding_type": + if err := dec.Decode(&s.EmbeddingType); err != nil { + return fmt.Errorf("%s | %w", "EmbeddingType", err) + } + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = &o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "similarity": + if err := dec.Decode(&s.Similarity); err != nil { + return fmt.Errorf("%s | %w", "Similarity", err) + } + + } + } + return nil +} + +// NewCohereServiceSettings returns a CohereServiceSettings. +func NewCohereServiceSettings() *CohereServiceSettings { + r := &CohereServiceSettings{} + + return r +} + +// true + +type CohereServiceSettingsVariant interface { + CohereServiceSettingsCaster() *CohereServiceSettings +} + +func (s *CohereServiceSettings) CohereServiceSettingsCaster() *CohereServiceSettings { + return s +} diff --git a/typedapi/types/coheretasksettings.go b/typedapi/types/coheretasksettings.go new file mode 100644 index 0000000000..3c00d2721d --- /dev/null +++ b/typedapi/types/coheretasksettings.go @@ -0,0 +1,147 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/cohereinputtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/coheretruncatetype" +) + +// CohereTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L650-L682 +type CohereTaskSettings struct { + // InputType For a `text_embedding` task, the type of input passed to the model. + // Valid values are: + // + // * `classification`: Use it for embeddings passed through a text classifier. + // * `clustering`: Use it for the embeddings run through a clustering algorithm. + // * `ingest`: Use it for storing document embeddings in a vector database. + // * `search`: Use it for storing embeddings of search queries run against a + // vector database to find relevant documents. + // + // IMPORTANT: The `input_type` field is required when using embedding models + // `v3` and higher. + InputType *cohereinputtype.CohereInputType `json:"input_type,omitempty"` + // ReturnDocuments For a `rerank` task, return doc text within the results. + ReturnDocuments *bool `json:"return_documents,omitempty"` + // TopN For a `rerank` task, the number of most relevant documents to return. + // It defaults to the number of the documents. + // If this inference endpoint is used in a `text_similarity_reranker` retriever + // query and `top_n` is set, it must be greater than or equal to + // `rank_window_size` in the query. + TopN *int `json:"top_n,omitempty"` + // Truncate For a `text_embedding` task, the method to handle inputs longer than the + // maximum token length. + // Valid values are: + // + // * `END`: When the input exceeds the maximum input token length, the end of + // the input is discarded. + // * `NONE`: When the input exceeds the maximum input token length, an error is + // returned. + // * `START`: When the input exceeds the maximum input token length, the start + // of the input is discarded. + Truncate *coheretruncatetype.CohereTruncateType `json:"truncate,omitempty"` +} + +func (s *CohereTaskSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "input_type": + if err := dec.Decode(&s.InputType); err != nil { + return fmt.Errorf("%s | %w", "InputType", err) + } + + case "return_documents": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "ReturnDocuments", err) + } + s.ReturnDocuments = &value + case bool: + s.ReturnDocuments = &v + } + + case "top_n": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "TopN", err) + } + s.TopN = &value + case float64: + f := int(v) + s.TopN = &f + } + + case "truncate": + if err := dec.Decode(&s.Truncate); err != nil { + return fmt.Errorf("%s | %w", "Truncate", err) + } + + } + } + return nil +} + +// NewCohereTaskSettings returns a CohereTaskSettings. +func NewCohereTaskSettings() *CohereTaskSettings { + r := &CohereTaskSettings{} + + return r +} + +// true + +type CohereTaskSettingsVariant interface { + CohereTaskSettingsCaster() *CohereTaskSettings +} + +func (s *CohereTaskSettings) CohereTaskSettingsCaster() *CohereTaskSettings { + return s +} diff --git a/typedapi/types/collector.go b/typedapi/types/collector.go index b972a90069..07bb63a753 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Collector type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L94-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L94-L99 type Collector struct { Children []Collector `json:"children,omitempty"` Name string `json:"name"` diff --git a/typedapi/types/column.go b/typedapi/types/column.go index 627efa968e..52784d3c4a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Column type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/sql/_types/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/sql/_types/types.ts#L23-L26 type Column struct { Name string `json:"name"` Type string `json:"type"` diff --git a/typedapi/types/combinedfieldsquery.go b/typedapi/types/combinedfieldsquery.go index 0d9968a13f..85c7520f01 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldsoperator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/combinedfieldszeroterms" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/combinedfieldsoperator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/combinedfieldszeroterms" ) // CombinedFieldsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/abstractions.ts#L472-L506 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/abstractions.ts#L472-L506 type CombinedFieldsQuery struct { // AutoGenerateSynonymsPhraseQuery If true, match phrase queries are automatically created for multi-term // synonyms. diff --git a/typedapi/types/command.go b/typedapi/types/command.go index 5c881b6fb5..4fce072150 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Command type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/reroute/types.ts#L22-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/reroute/types.ts#L22-L43 type Command struct { // AllocateEmptyPrimary Allocate an empty primary shard to a node. Accepts the index and shard for // index name and shard number, and node to allocate the shard to. Using this diff --git a/typedapi/types/commandallocateprimaryaction.go b/typedapi/types/commandallocateprimaryaction.go index 313a6ab975..bd6cae1688 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CommandAllocatePrimaryAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/reroute/types.ts#L78-L84 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/reroute/types.ts#L78-L84 type CommandAllocatePrimaryAction struct { // AcceptDataLoss If a node which has a copy of the data rejoins the cluster later on, that // data will be deleted. To ensure that these implications are well-understood, diff --git a/typedapi/types/commandallocatereplicaaction.go b/typedapi/types/commandallocatereplicaaction.go index 6507baab0e..b4ad8d7757 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CommandAllocateReplicaAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/reroute/types.ts#L69-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/reroute/types.ts#L69-L76 type CommandAllocateReplicaAction struct { Index string `json:"index"` Node string `json:"node"` diff --git a/typedapi/types/commandcancelaction.go b/typedapi/types/commandcancelaction.go index 9c21a85a66..dd3a1379c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CommandCancelAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/reroute/types.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/reroute/types.ts#L45-L50 type CommandCancelAction struct { AllowPrimary *bool `json:"allow_primary,omitempty"` Index string `json:"index"` diff --git a/typedapi/types/commandmoveaction.go b/typedapi/types/commandmoveaction.go index 655939b658..c0f716ba9e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CommandMoveAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/reroute/types.ts#L60-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/reroute/types.ts#L60-L67 type CommandMoveAction struct { // FromNode The node to move the shard from FromNode string `json:"from_node"` diff --git a/typedapi/types/commongramstokenfilter.go b/typedapi/types/commongramstokenfilter.go index 6c10025787..d53249a6a7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CommonGramsTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L174-L180 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L174-L180 type CommonGramsTokenFilter struct { CommonWords []string `json:"common_words,omitempty"` CommonWordsPath *string `json:"common_words_path,omitempty"` diff --git a/typedapi/types/commontermsquery.go b/typedapi/types/commontermsquery.go index c0da186f3b..bb685400eb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" ) // CommonTermsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L34-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L34-L44 type CommonTermsQuery struct { Analyzer *string `json:"analyzer,omitempty"` // Boost Floating point number used to decrease or increase the relevance scores of diff --git a/typedapi/types/communityidprocessor.go b/typedapi/types/communityidprocessor.go index 8368673833..8ac63ab676 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CommunityIDProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L599-L660 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/compactnodeinfo.go b/typedapi/types/compactnodeinfo.go index 48bc870b3b..03dab0f9c6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // CompactNodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/verify_repository/SnapshotVerifyRepositoryResponse.ts#L33-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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`. diff --git a/typedapi/types/completioncontext.go b/typedapi/types/completioncontext.go index afbd1ceefb..dbc5440743 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CompletionContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L235-L264 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/completionproperty.go b/typedapi/types/completionproperty.go index 51a9d88267..4279c335d0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // CompletionProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/specialized.ts#L33-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/specialized.ts#L33-L41 type CompletionProperty struct { Analyzer *string `json:"analyzer,omitempty"` Contexts []SuggestContext `json:"contexts,omitempty"` diff --git a/typedapi/types/completionresult.go b/typedapi/types/completionresult.go index 186a40d484..9c5f2f1ef0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CompletionResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/_types/Results.ts#L77-L82 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/Results.ts#L77-L82 type CompletionResult struct { Result string `json:"result"` } diff --git a/typedapi/types/completionstats.go b/typedapi/types/completionstats.go index ea2b7de261..53a1a48ece 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CompletionStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L83-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L83-L93 type CompletionStats struct { Fields map[string]FieldSizeUsage `json:"fields,omitempty"` // Size Total amount of memory used for completion across all shards assigned to diff --git a/typedapi/types/completionsuggest.go b/typedapi/types/completionsuggest.go index 6eb4590139..e27a408ce7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L48-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/suggester.ts#L49-L56 type CompletionSuggest struct { Length int `json:"length"` Offset int `json:"offset"` diff --git a/typedapi/types/completionsuggester.go b/typedapi/types/completionsuggester.go index 125c20f406..44d8c7f480 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L163-L181 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/completionsuggestoption.go b/typedapi/types/completionsuggestoption.go index 3f70cd7912..03e1c046a6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CompletionSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L73-L84 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/suggester.ts#L74-L85 type CompletionSuggestOption struct { CollateMatch *bool `json:"collate_match,omitempty"` Contexts map[string][]Context `json:"contexts,omitempty"` diff --git a/typedapi/types/completiontool.go b/typedapi/types/completiontool.go index 7e62b20643..c15a958e9a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CompletionTool type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedRequest.ts#L215-L227 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L205-L217 type CompletionTool struct { // Function The function definition. Function CompletionToolFunction `json:"function"` diff --git a/typedapi/types/completiontoolchoice.go b/typedapi/types/completiontoolchoice.go index e04b9e3a3a..4d011e63f1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CompletionToolChoice type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedRequest.ts#L178-L190 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L168-L180 type CompletionToolChoice struct { // Function The tool choice function. Function CompletionToolChoiceFunction `json:"function"` diff --git a/typedapi/types/completiontoolchoicefunction.go b/typedapi/types/completiontoolchoicefunction.go index 6e8cefeb6a..492316aea2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CompletionToolChoiceFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedRequest.ts#L167-L176 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L157-L166 type CompletionToolChoiceFunction struct { // Name The name of the function to call. Name string `json:"name"` diff --git a/typedapi/types/completiontoolfunction.go b/typedapi/types/completiontoolfunction.go index f3d8d7d1ca..569065d74c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CompletionToolFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedRequest.ts#L192-L213 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L182-L203 type CompletionToolFunction struct { // Description A description of what the function does. // This is used by the model to choose when and how to call the function. diff --git a/typedapi/types/completiontooltype.go b/typedapi/types/completiontooltype.go index a371745caa..31f70e013f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // CompletionToolChoice // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedRequest.ts#L89-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L79-L82 type CompletionToolType any type CompletionToolTypeVariant interface { diff --git a/typedapi/types/componenttemplatenode.go b/typedapi/types/componenttemplatenode.go index 962e3032cd..994d6b3812 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ComponentTemplateNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/_types/ComponentTemplate.ts#L32-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/_types/ComponentTemplate.ts#L32-L41 type ComponentTemplateNode struct { Deprecated *bool `json:"deprecated,omitempty"` Meta_ Metadata `json:"_meta,omitempty"` diff --git a/typedapi/types/componenttemplatesummary.go b/typedapi/types/componenttemplatesummary.go index 478e51f364..28f97a937e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ComponentTemplateSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/_types/ComponentTemplate.ts#L43-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/_types/ComponentTemplate.ts#L43-L55 type ComponentTemplateSummary struct { Aliases map[string]AliasDefinition `json:"aliases,omitempty"` Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"` diff --git a/typedapi/types/compositeaggregate.go b/typedapi/types/compositeaggregate.go index dc584018a5..f0ef4b7bee 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // CompositeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L698-L703 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L698-L703 type CompositeAggregate struct { AfterKey CompositeAggregateKey `json:"after_key,omitempty"` Buckets BucketsCompositeBucket `json:"buckets"` diff --git a/typedapi/types/compositeaggregatekey.go b/typedapi/types/compositeaggregatekey.go index 5813397db5..a06073a360 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // CompositeAggregateKey type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L128-L128 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1646370551..df649167a5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CompositeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L130-L149 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L130-L149 type CompositeAggregation struct { // After When paginating, use the `after_key` value returned in the previous response // to retrieve the next page. diff --git a/typedapi/types/compositeaggregationsource.go b/typedapi/types/compositeaggregationsource.go index 51ba182d75..a5cfe4a1a1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // CompositeAggregationSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L151-L168 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L151-L168 type CompositeAggregationSource struct { // DateHistogram A date histogram aggregation. DateHistogram *CompositeDateHistogramAggregation `json:"date_histogram,omitempty"` diff --git a/typedapi/types/compositebucket.go b/typedapi/types/compositebucket.go index b2c7ba5462..10ea3119a8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // CompositeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L705-L707 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L705-L707 type CompositeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/compositedatehistogramaggregation.go b/typedapi/types/compositedatehistogramaggregation.go index c465c9aa20..86bdb6d327 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/missingorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/valuetype" ) // CompositeDateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L187-L195 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L187-L195 type CompositeDateHistogramAggregation struct { // CalendarInterval Either `calendar_interval` or `fixed_interval` must be present CalendarInterval *string `json:"calendar_interval,omitempty"` diff --git a/typedapi/types/compositegeotilegridaggregation.go b/typedapi/types/compositegeotilegridaggregation.go index ab8ff37b1e..8c955fd4b1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/missingorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/valuetype" ) // CompositeGeoTileGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L197-L200 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L197-L200 type CompositeGeoTileGridAggregation struct { Bounds GeoBounds `json:"bounds,omitempty"` // Field Either `field` or `script` must be present diff --git a/typedapi/types/compositehistogramaggregation.go b/typedapi/types/compositehistogramaggregation.go index abf67c3997..9da099d497 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/missingorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/valuetype" ) // CompositeHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L183-L185 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L183-L185 type CompositeHistogramAggregation struct { // Field Either `field` or `script` must be present Field *string `json:"field,omitempty"` diff --git a/typedapi/types/compositesubfield.go b/typedapi/types/compositesubfield.go index da8007c598..0da5c0f6bc 100644 --- a/typedapi/types/compositesubfield.go +++ b/typedapi/types/compositesubfield.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/runtimefieldtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/runtimefieldtype" ) // CompositeSubField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/RuntimeFields.ts#L52-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/RuntimeFields.ts#L52-L54 type CompositeSubField struct { Type runtimefieldtype.RuntimeFieldType `json:"type"` } diff --git a/typedapi/types/compositetermsaggregation.go b/typedapi/types/compositetermsaggregation.go index fe46b1ccf9..e587b8772d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/missingorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/valuetype" ) // CompositeTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L181-L181 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L181-L181 type CompositeTermsAggregation struct { // Field Either `field` or `script` must be present Field *string `json:"field,omitempty"` diff --git a/typedapi/types/conditiontokenfilter.go b/typedapi/types/conditiontokenfilter.go index b98bf643ac..fd5a998fdb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ConditionTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L182-L186 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L182-L186 type ConditionTokenFilter struct { Filter []string `json:"filter"` Script Script `json:"script"` diff --git a/typedapi/types/configuration.go b/typedapi/types/configuration.go index 4f976bfa41..a9b50d4a14 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Configuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/_types/SnapshotLifecycle.ts#L109-L139 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/slm/_types/SnapshotLifecycle.ts#L109-L139 type Configuration struct { // FeatureStates A list of feature states to be included in this snapshot. A list of features // available for inclusion in the snapshot and their descriptions be can be diff --git a/typedapi/types/confusionmatrixitem.go b/typedapi/types/confusionmatrixitem.go index c3409fa732..4032539dda 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L125-L130 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L125-L130 type ConfusionMatrixItem struct { ActualClass string `json:"actual_class"` ActualClassDocCount int `json:"actual_class_doc_count"` diff --git a/typedapi/types/confusionmatrixprediction.go b/typedapi/types/confusionmatrixprediction.go index c242dcc4e8..6f55afbe34 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixPrediction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L132-L135 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L132-L135 type ConfusionMatrixPrediction struct { Count int `json:"count"` PredictedClass string `json:"predicted_class"` diff --git a/typedapi/types/confusionmatrixthreshold.go b/typedapi/types/confusionmatrixthreshold.go index 8bd126629c..54fcf3b14a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ConfusionMatrixThreshold type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L137-L158 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L137-L158 type ConfusionMatrixThreshold struct { // FalseNegative False Negative FalseNegative int `json:"fn"` diff --git a/typedapi/types/connection.go b/typedapi/types/connection.go index fbb419777f..a25384fe00 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Connection type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/graph/_types/Connection.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/graph/_types/Connection.ts#L22-L27 type Connection struct { DocCount int64 `json:"doc_count"` Source int64 `json:"source"` diff --git a/typedapi/types/connector.go b/typedapi/types/connector.go index b4c9cc9184..ad72c5a006 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorstatus" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/connectorstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncstatus" ) // Connector type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L252-L284 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` diff --git a/typedapi/types/connectorconfigproperties.go b/typedapi/types/connectorconfigproperties.go index ad2420cf21..70b923c19f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectorfieldtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/displaytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/connectorfieldtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/displaytype" ) // ConnectorConfigProperties type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L83-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L83-L99 type ConnectorConfigProperties struct { Category *string `json:"category,omitempty"` DefaultValue ScalarValue `json:"default_value"` diff --git a/typedapi/types/connectorconfiguration.go b/typedapi/types/connectorconfiguration.go index dd60e79dcc..86a45a3fcd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ConnectorConfiguration type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ef49340011..894eb5a707 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ConnectorCustomScheduling type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L128-L128 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e453c97b54..c2687fdf80 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ConnectorFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L230-L244 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L230-L244 type ConnectorFeatures struct { // DocumentLevelSecurity Indicates whether document-level security is enabled. DocumentLevelSecurity *FeatureEnabled `json:"document_level_security,omitempty"` diff --git a/typedapi/types/connectorscheduling.go b/typedapi/types/connectorscheduling.go index 0b25c8b9d7..b861e3b0b7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ConnectorScheduling type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L106-L110 type ConnectorScheduling struct { Enabled bool `json:"enabled"` // Interval The interval is expressed using the crontab syntax diff --git a/typedapi/types/connectorsyncjob.go b/typedapi/types/connectorsyncjob.go index 8493e9807d..034ab06830 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtriggermethod" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncjobtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syncstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncjobtriggermethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncjobtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syncstatus" ) // ConnectorSyncJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/SyncJob.ts#L53-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/SyncJob.ts#L53-L72 type ConnectorSyncJob struct { CancelationRequestedAt DateTime `json:"cancelation_requested_at,omitempty"` CanceledAt DateTime `json:"canceled_at,omitempty"` diff --git a/typedapi/types/constantkeywordproperty.go b/typedapi/types/constantkeywordproperty.go index abf7814858..1ae1d19a5d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // ConstantKeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/specialized.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/specialized.ts#L50-L53 type ConstantKeywordProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/constantscorequery.go b/typedapi/types/constantscorequery.go index 3394a7bd6c..d0c31780a8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ConstantScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L76-L86 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L76-L86 type ConstantScoreQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/contentobject.go b/typedapi/types/contentobject.go index 72a84f6ef4..780333414b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ContentObject type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedRequest.ts#L94-L106 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L84-L96 type ContentObject struct { // Text The text content. Text string `json:"text"` diff --git a/typedapi/types/context.go b/typedapi/types/context.go index 4fe20cfa59..1c25d47d45 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // GeoLocation // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L228-L233 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4eb03a64a5..44fecfe901 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ContextMethod type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/get_script_context/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/get_script_context/types.ts#L27-L31 type ContextMethod struct { Name string `json:"name"` Params []ContextMethodParam `json:"params"` diff --git a/typedapi/types/contextmethodparam.go b/typedapi/types/contextmethodparam.go index a681ad98ea..56cf202023 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ContextMethodParam type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/get_script_context/types.ts#L33-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/get_script_context/types.ts#L33-L36 type ContextMethodParam struct { Name string `json:"name"` Type string `json:"type"` diff --git a/typedapi/types/convertprocessor.go b/typedapi/types/convertprocessor.go index ab0c568c69..8264b80120 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/converttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/converttype" ) // ConvertProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L673-L693 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/coordinatorstats.go b/typedapi/types/coordinatorstats.go index 9a14ba0ba6..1a3d0e7aad 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CoordinatorStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/stats/types.ts#L30-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/enrich/stats/types.ts#L30-L36 type CoordinatorStats struct { ExecutedSearchesTotal int64 `json:"executed_searches_total"` NodeId string `json:"node_id"` diff --git a/typedapi/types/coordsgeobounds.go b/typedapi/types/coordsgeobounds.go index c8ec0d3068..e5aa0b4301 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CoordsGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L154-L159 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Geo.ts#L154-L159 type CoordsGeoBounds struct { Bottom Float64 `json:"bottom"` Left Float64 `json:"left"` diff --git a/typedapi/types/coreknnquery.go b/typedapi/types/coreknnquery.go index 46f9c6a291..53967d7332 100644 --- a/typedapi/types/coreknnquery.go +++ b/typedapi/types/coreknnquery.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CoreKnnQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/knn_search/_types/Knn.ts#L24-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/knn_search/_types/Knn.ts#L24-L33 type CoreKnnQuery struct { // Field The name of the vector field to search against Field string `json:"field"` diff --git a/typedapi/types/countedkeywordproperty.go b/typedapi/types/countedkeywordproperty.go index a1e3574e0e..9a45f3b6e3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // CountedKeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/specialized.ts#L55-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/specialized.ts#L55-L62 type CountedKeywordProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/counter.go b/typedapi/types/counter.go index 134c1f6e10..5d620dfed9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Counter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L32-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L32-L35 type Counter struct { Active int64 `json:"active"` Total int64 `json:"total"` diff --git a/typedapi/types/countrecord.go b/typedapi/types/countrecord.go index 150dbcfd79..c2ca544e75 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CountRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/count/types.ts#L23-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/count/types.ts#L23-L39 type CountRecord struct { // Count the document count Count *string `json:"count,omitempty"` diff --git a/typedapi/types/cpu.go b/typedapi/types/cpu.go index 5b4e29f658..cfe4d48e22 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Cpu type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L575-L584 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L575-L584 type Cpu struct { LoadAverage map[string]Float64 `json:"load_average,omitempty"` Percent *int `json:"percent,omitempty"` diff --git a/typedapi/types/cpuacct.go b/typedapi/types/cpuacct.go index ed565766de..4fa443fb55 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CpuAcct type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L512-L521 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L512-L521 type CpuAcct struct { // ControlGroup The `cpuacct` control group to which the Elasticsearch process belongs. ControlGroup *string `json:"control_group,omitempty"` diff --git a/typedapi/types/createdstatus.go b/typedapi/types/createdstatus.go index 5773a63b1b..fb4e872d3e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CreatedStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/CreatedStatus.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/CreatedStatus.ts#L20-L22 type CreatedStatus struct { Created bool `json:"created"` } diff --git a/typedapi/types/createfrom.go b/typedapi/types/createfrom.go index 4028905421..e22836d888 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CreateFrom type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/create_from/MigrateCreateFromRequest.ts#L46-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/create_from/MigrateCreateFromRequest.ts#L46-L60 type CreateFrom struct { // MappingsOverride Mappings overrides to be applied to the destination index (optional) MappingsOverride *TypeMapping `json:"mappings_override,omitempty"` diff --git a/typedapi/types/createoperation.go b/typedapi/types/createoperation.go index e41d806b9b..1d514b2c27 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) // CreateOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/bulk/types.ts#L140-L140 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/bulk/types.ts#L140-L140 type CreateOperation struct { // DynamicTemplates A map from the full name of fields to the name of dynamic templates. // It defaults to an empty map. diff --git a/typedapi/types/csvprocessor.go b/typedapi/types/csvprocessor.go index ce246232c0..ac80b7be86 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CsvProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L695-L728 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/cumulativecardinalityaggregate.go b/typedapi/types/cumulativecardinalityaggregate.go index a4f3416420..9074b3c5d2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CumulativeCardinalityAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L856-L864 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L856-L864 type CumulativeCardinalityAggregate struct { Meta Metadata `json:"meta,omitempty"` Value int64 `json:"value"` diff --git a/typedapi/types/cumulativecardinalityaggregation.go b/typedapi/types/cumulativecardinalityaggregation.go index 4d9cd5d573..3e1789f749 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // CumulativeCardinalityAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L206-L209 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L206-L209 type CumulativeCardinalityAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/cumulativesumaggregation.go b/typedapi/types/cumulativesumaggregation.go index 2f77445545..2ca1455f35 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // CumulativeSumAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L211-L214 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L211-L214 type CumulativeSumAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/currentnode.go b/typedapi/types/currentnode.go index 55e283a24e..aba720e0f6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/noderole" ) // CurrentNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L79-L90 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/allocation_explain/types.ts#L79-L90 type CurrentNode struct { Attributes map[string]string `json:"attributes"` Id string `json:"id"` diff --git a/typedapi/types/customanalyzer.go b/typedapi/types/customanalyzer.go index 64ef6f6434..36bb556f3c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CustomAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L28-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L28-L35 type CustomAnalyzer struct { CharFilter []string `json:"char_filter,omitempty"` Filter []string `json:"filter,omitempty"` diff --git a/typedapi/types/customcategorizetextanalyzer.go b/typedapi/types/customcategorizetextanalyzer.go index 328afde00e..6668e4ff3f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CustomCategorizeTextAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1189-L1193 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L1189-L1193 type CustomCategorizeTextAnalyzer struct { CharFilter []string `json:"char_filter,omitempty"` Filter []string `json:"filter,omitempty"` diff --git a/typedapi/types/customnormalizer.go b/typedapi/types/customnormalizer.go index 95d978adff..40f31341fc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // CustomNormalizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/normalizers.ts#L30-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/normalizers.ts#L30-L34 type CustomNormalizer struct { CharFilter []string `json:"char_filter,omitempty"` Filter []string `json:"filter,omitempty"` diff --git a/typedapi/types/customscheduling.go b/typedapi/types/customscheduling.go index 7b0c417341..e4d9967369 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CustomScheduling type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L120-L126 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L120-L126 type CustomScheduling struct { ConfigurationOverrides CustomSchedulingConfigurationOverrides `json:"configuration_overrides"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/customschedulingconfigurationoverrides.go b/typedapi/types/customschedulingconfigurationoverrides.go index 7d64aab1de..4c2735eb32 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CustomSchedulingConfigurationOverrides type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L112-L118 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L112-L118 type CustomSchedulingConfigurationOverrides struct { DomainAllowlist []string `json:"domain_allowlist,omitempty"` MaxCrawlDepth *int `json:"max_crawl_depth,omitempty"` diff --git a/typedapi/types/czechanalyzer.go b/typedapi/types/czechanalyzer.go index 7e78094e85..83e4bb991f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // CzechAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L132-L137 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L132-L137 type CzechAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/dailyschedule.go b/typedapi/types/dailyschedule.go index a66bf2465c..2cc68e056f 100644 --- a/typedapi/types/dailyschedule.go +++ b/typedapi/types/dailyschedule.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DailySchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Schedule.ts#L33-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Schedule.ts#L33-L35 type DailySchedule struct { At []ScheduleTimeOfDay `json:"at"` } diff --git a/typedapi/types/danglingindex.go b/typedapi/types/danglingindex.go index 1f4cd9e64e..aba177d560 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DanglingIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/dangling_indices/list_dangling_indices/ListDanglingIndicesResponse.ts#L29-L34 type DanglingIndex struct { CreationDateMillis int64 `json:"creation_date_millis"` IndexName string `json:"index_name"` diff --git a/typedapi/types/danishanalyzer.go b/typedapi/types/danishanalyzer.go index fc3fd43470..78ac2e6504 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DanishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L139-L143 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L139-L143 type DanishAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/databaseconfiguration.go b/typedapi/types/databaseconfiguration.go index b0fb8cdc60..b66e778b79 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DatabaseConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Database.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Database.ts#L22-L37 type DatabaseConfiguration struct { AdditionalDatabaseConfigurationProperty map[string]json.RawMessage `json:"-"` Ipinfo *Ipinfo `json:"ipinfo,omitempty"` diff --git a/typedapi/types/databaseconfigurationfull.go b/typedapi/types/databaseconfigurationfull.go index f05a26da4a..6760e56bea 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DatabaseConfigurationFull type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Database.ts#L39-L53 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Database.ts#L39-L53 type DatabaseConfigurationFull struct { AdditionalDatabaseConfigurationFullProperty map[string]json.RawMessage `json:"-"` Ipinfo *Ipinfo `json:"ipinfo,omitempty"` diff --git a/typedapi/types/datacounts.go b/typedapi/types/datacounts.go index 8f67afc654..670b899e55 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Job.ts#L352-L372 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Job.ts#L352-L372 type DataCounts struct { BucketCount int64 `json:"bucket_count"` EarliestRecordTimestamp *int64 `json:"earliest_record_timestamp,omitempty"` diff --git a/typedapi/types/datadescription.go b/typedapi/types/datadescription.go index 1edd94038b..3cd532969c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataDescription type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Job.ts#L374-L390 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Job.ts#L374-L390 type DataDescription struct { FieldDelimiter *string `json:"field_delimiter,omitempty"` // Format Only JSON format is supported at this time. diff --git a/typedapi/types/dataemailattachment.go b/typedapi/types/dataemailattachment.go index 0b072bf257..46c367e01c 100644 --- a/typedapi/types/dataemailattachment.go +++ b/typedapi/types/dataemailattachment.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataattachmentformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dataattachmentformat" ) // DataEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L234-L236 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L234-L236 type DataEmailAttachment struct { Format *dataattachmentformat.DataAttachmentFormat `json:"format,omitempty"` } diff --git a/typedapi/types/datafeedauthorization.go b/typedapi/types/datafeedauthorization.go index acac4be6dc..c4b4ddff9d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DatafeedAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Authorization.ts#L31-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Authorization.ts#L31-L43 type DatafeedAuthorization struct { // ApiKey If an API key was used for the most recent update to the datafeed, its name // and identifier are listed in the response. diff --git a/typedapi/types/datafeedconfig.go b/typedapi/types/datafeedconfig.go index 6c37dbb8c6..bc689b3dfd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DatafeedConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Datafeed.ts#L63-L120 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Datafeed.ts#L63-L120 type DatafeedConfig struct { // Aggregations If set, the datafeed performs aggregation searches. Support for aggregations // is limited and should be used only with low cardinality data. diff --git a/typedapi/types/datafeedrunningstate.go b/typedapi/types/datafeedrunningstate.go index 079db41d27..449a0d82ea 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DatafeedRunningState type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Datafeed.ts#L210-L224 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Datafeed.ts#L210-L224 type DatafeedRunningState struct { // RealTimeConfigured Indicates if the datafeed is "real-time"; meaning that the datafeed has no // configured `end` time. diff --git a/typedapi/types/datafeeds.go b/typedapi/types/datafeeds.go index e0826d9e8f..a5a5aa76fe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Datafeeds type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/info/types.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/info/types.ts#L42-L44 type Datafeeds struct { ScrollSize int `json:"scroll_size"` } diff --git a/typedapi/types/datafeedsrecord.go b/typedapi/types/datafeedsrecord.go index 1eca7bcf00..fe1317e978 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/datafeedstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/datafeedstate" ) // DatafeedsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/ml_datafeeds/types.ts#L22-L87 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/ml_datafeeds/types.ts#L22-L87 type DatafeedsRecord struct { // AssignmentExplanation For started datafeeds only, contains messages relating to the selection of a // node. diff --git a/typedapi/types/datafeedstats.go b/typedapi/types/datafeedstats.go index 126416f89b..b00cd5e05a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/datafeedstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/datafeedstate" ) // DatafeedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Datafeed.ts#L143-L172 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Datafeed.ts#L143-L172 type DatafeedStats struct { // AssignmentExplanation For started datafeeds only, contains messages relating to the selection of a // node. diff --git a/typedapi/types/datafeedtimingstats.go b/typedapi/types/datafeedtimingstats.go index 66cd657aed..60d0c518fe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DatafeedTimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Datafeed.ts#L174-L202 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Datafeed.ts#L174-L202 type DatafeedTimingStats struct { // AverageSearchTimePerBucketMs The average search time per bucket, in milliseconds. AverageSearchTimePerBucketMs Float64 `json:"average_search_time_per_bucket_ms,omitempty"` diff --git a/typedapi/types/dataframeanalysisanalyzedfields.go b/typedapi/types/dataframeanalysisanalyzedfields.go index 58bfe1f60b..35e23d5baa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalysisAnalyzedFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L238-L244 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L238-L244 type DataframeAnalysisAnalyzedFields struct { // Excludes An array of strings that defines the fields that will be included in the // analysis. diff --git a/typedapi/types/dataframeanalysisclassification.go b/typedapi/types/dataframeanalysisclassification.go index 7a4f90264d..2f0834cf3d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L227-L236 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L227-L236 type DataframeAnalysisClassification struct { // Alpha Advanced configuration option. Machine learning uses loss guided tree // growing, which means that the decision trees grow where the regularized loss diff --git a/typedapi/types/dataframeanalysiscontainer.go b/typedapi/types/dataframeanalysiscontainer.go index cbbc48038d..633798b5c7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // DataframeAnalysisContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L84-L101 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L84-L101 type DataframeAnalysisContainer struct { AdditionalDataframeAnalysisContainerProperty map[string]json.RawMessage `json:"-"` // Classification The configuration information necessary to perform classification. diff --git a/typedapi/types/dataframeanalysisfeatureprocessor.go b/typedapi/types/dataframeanalysisfeatureprocessor.go index 7ba976c90f..efa9e45448 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // DataframeAnalysisFeatureProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L246-L258 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L246-L258 type DataframeAnalysisFeatureProcessor struct { AdditionalDataframeAnalysisFeatureProcessorProperty map[string]json.RawMessage `json:"-"` // FrequencyEncoding The configuration information necessary to perform frequency encoding. diff --git a/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go b/typedapi/types/dataframeanalysisfeatureprocessorfrequencyencoding.go index 3014a6d5ee..ce21399f3d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalysisFeatureProcessorFrequencyEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L260-L267 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L260-L267 type DataframeAnalysisFeatureProcessorFrequencyEncoding struct { // FeatureName The resulting feature name. FeatureName string `json:"feature_name"` diff --git a/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go b/typedapi/types/dataframeanalysisfeatureprocessormultiencoding.go index 82cbaca72e..a35e97d4a3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DataframeAnalysisFeatureProcessorMultiEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L269-L272 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L269-L272 type DataframeAnalysisFeatureProcessorMultiEncoding struct { // Processors The ordered array of custom processors to execute. Must be more than 1. Processors []int `json:"processors"` diff --git a/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go b/typedapi/types/dataframeanalysisfeatureprocessorngramencoding.go index d01634caf0..f15c75e796 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorNGramEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L274-L286 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L274-L286 type DataframeAnalysisFeatureProcessorNGramEncoding struct { Custom *bool `json:"custom,omitempty"` // FeaturePrefix The feature name prefix. Defaults to ngram__. diff --git a/typedapi/types/dataframeanalysisfeatureprocessoronehotencoding.go b/typedapi/types/dataframeanalysisfeatureprocessoronehotencoding.go index 26b31fb449..680003f76f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorOneHotEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L288-L293 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L288-L293 type DataframeAnalysisFeatureProcessorOneHotEncoding struct { // Field The name of the field to encode. Field string `json:"field"` diff --git a/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go b/typedapi/types/dataframeanalysisfeatureprocessortargetmeanencoding.go index f0b1e65a7f..19c23e3170 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisFeatureProcessorTargetMeanEncoding type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L295-L304 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L295-L304 type DataframeAnalysisFeatureProcessorTargetMeanEncoding struct { // DefaultValue The default value if field value is not found in the target_map. DefaultValue int `json:"default_value"` diff --git a/typedapi/types/dataframeanalysisoutlierdetection.go b/typedapi/types/dataframeanalysisoutlierdetection.go index dc205a32db..56102d2363 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L103-L132 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L103-L132 type DataframeAnalysisOutlierDetection struct { // ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled. ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"` diff --git a/typedapi/types/dataframeanalysisregression.go b/typedapi/types/dataframeanalysisregression.go index 6a99cdd69e..b4a9f0f1f9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalysisRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L215-L225 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L215-L225 type DataframeAnalysisRegression struct { // Alpha Advanced configuration option. Machine learning uses loss guided tree // growing, which means that the decision trees grow where the regularized loss diff --git a/typedapi/types/dataframeanalytics.go b/typedapi/types/dataframeanalytics.go index bded48e19e..8890b1335e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dataframestate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dataframestate" ) // DataframeAnalytics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L325-L345 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L325-L345 type DataframeAnalytics struct { // AnalysisStats An object containing information about the analysis job. AnalysisStats *DataframeAnalyticsStatsContainer `json:"analysis_stats,omitempty"` diff --git a/typedapi/types/dataframeanalyticsauthorization.go b/typedapi/types/dataframeanalyticsauthorization.go index 14b9529ab4..d38c1fcf87 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Authorization.ts#L45-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Authorization.ts#L45-L57 type DataframeAnalyticsAuthorization struct { // ApiKey If an API key was used for the most recent update to the job, its name and // identifier are listed in the response. diff --git a/typedapi/types/dataframeanalyticsdestination.go b/typedapi/types/dataframeanalyticsdestination.go index dacfc8779f..8915747be6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L77-L82 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L77-L82 type DataframeAnalyticsDestination struct { // Index Defines the destination index to store the results of the data frame // analytics job. diff --git a/typedapi/types/dataframeanalyticsfieldselection.go b/typedapi/types/dataframeanalyticsfieldselection.go index cea83bdc73..c4398cbde8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsFieldSelection type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L55-L68 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L55-L68 type DataframeAnalyticsFieldSelection struct { // FeatureType The feature type of this field for the analysis. May be categorical or // numerical. diff --git a/typedapi/types/dataframeanalyticsmemoryestimation.go b/typedapi/types/dataframeanalyticsmemoryestimation.go index ad587f0df2..0ae5694dc9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsMemoryEstimation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L70-L75 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L70-L75 type DataframeAnalyticsMemoryEstimation struct { // ExpectedMemoryWithDisk Estimated memory usage under the assumption that overflowing to disk is // allowed during data frame analytics. expected_memory_with_disk is usually diff --git a/typedapi/types/dataframeanalyticsrecord.go b/typedapi/types/dataframeanalyticsrecord.go index c0aae430de..91056e4e09 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataFrameAnalyticsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/ml_data_frame_analytics/types.ts#L22-L102 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/ml_data_frame_analytics/types.ts#L22-L102 type DataFrameAnalyticsRecord struct { // AssignmentExplanation Messages related to the selection of a node. AssignmentExplanation *string `json:"assignment_explanation,omitempty"` diff --git a/typedapi/types/dataframeanalyticssource.go b/typedapi/types/dataframeanalyticssource.go index e71f62f5cf..cd32294824 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L39-L53 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L39-L53 type DataframeAnalyticsSource struct { // Index Index or indices on which to perform the analysis. It can be a single index // or index pattern as well as an array of indices or patterns. NOTE: If your diff --git a/typedapi/types/dataframeanalyticsstatscontainer.go b/typedapi/types/dataframeanalyticsstatscontainer.go index 41522d68ad..4edf643c5b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // DataframeAnalyticsStatsContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L374-L382 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L374-L382 type DataframeAnalyticsStatsContainer struct { AdditionalDataframeAnalyticsStatsContainerProperty map[string]json.RawMessage `json:"-"` // ClassificationStats An object containing information about the classification analysis job. diff --git a/typedapi/types/dataframeanalyticsstatsdatacounts.go b/typedapi/types/dataframeanalyticsstatsdatacounts.go index 46ae73d4e2..35fa2db2da 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsDataCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L365-L372 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L365-L372 type DataframeAnalyticsStatsDataCounts struct { // SkippedDocsCount The number of documents that are skipped during the analysis because they // contained values that are not supported by the analysis. For example, outlier diff --git a/typedapi/types/dataframeanalyticsstatshyperparameters.go b/typedapi/types/dataframeanalyticsstatshyperparameters.go index 0d5d6fdb8f..3707572439 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsHyperparameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L384-L403 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L384-L403 type DataframeAnalyticsStatsHyperparameters struct { // Hyperparameters An object containing the parameters of the classification analysis job. Hyperparameters Hyperparameters `json:"hyperparameters"` diff --git a/typedapi/types/dataframeanalyticsstatsmemoryusage.go b/typedapi/types/dataframeanalyticsstatsmemoryusage.go index 1546788f98..38896d0155 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsMemoryUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L354-L363 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L354-L363 type DataframeAnalyticsStatsMemoryUsage struct { // MemoryReestimateBytes This value is present when the status is hard_limit and it is a new estimate // of how much memory the job needs. diff --git a/typedapi/types/dataframeanalyticsstatsoutlierdetection.go b/typedapi/types/dataframeanalyticsstatsoutlierdetection.go index c0ebf9c8b0..44bd005225 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DataframeAnalyticsStatsOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L405-L418 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L405-L418 type DataframeAnalyticsStatsOutlierDetection struct { // Parameters The list of job parameters specified by the user or determined by algorithmic // heuristics. diff --git a/typedapi/types/dataframeanalyticsstatsprogress.go b/typedapi/types/dataframeanalyticsstatsprogress.go index 3872c0dac5..03122049e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsStatsProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L347-L352 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L347-L352 type DataframeAnalyticsStatsProgress struct { // Phase Defines the phase of the data frame analytics job. Phase string `json:"phase"` diff --git a/typedapi/types/dataframeanalyticssummary.go b/typedapi/types/dataframeanalyticssummary.go index 5742884354..8b3e2b2339 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeAnalyticsSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L306-L323 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L306-L323 type DataframeAnalyticsSummary struct { AllowLazyStart *bool `json:"allow_lazy_start,omitempty"` Analysis DataframeAnalysisContainer `json:"analysis"` diff --git a/typedapi/types/dataframeclassificationsummary.go b/typedapi/types/dataframeclassificationsummary.go index cd947492d5..8dac46ae7a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DataframeClassificationSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L44-L66 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L44-L66 type DataframeClassificationSummary struct { // Accuracy Accuracy of predictions (per-class and overall). Accuracy *DataframeClassificationSummaryAccuracy `json:"accuracy,omitempty"` diff --git a/typedapi/types/dataframeclassificationsummaryaccuracy.go b/typedapi/types/dataframeclassificationsummaryaccuracy.go index f15854ca5b..b628c4e0ff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryAccuracy type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L111-L114 type DataframeClassificationSummaryAccuracy struct { Classes []DataframeEvaluationClass `json:"classes"` OverallAccuracy Float64 `json:"overall_accuracy"` diff --git a/typedapi/types/dataframeclassificationsummarymulticlassconfusionmatrix.go b/typedapi/types/dataframeclassificationsummarymulticlassconfusionmatrix.go index 8862162565..7c70b48811 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryMulticlassConfusionMatrix type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L120-L123 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L120-L123 type DataframeClassificationSummaryMulticlassConfusionMatrix struct { ConfusionMatrix []ConfusionMatrixItem `json:"confusion_matrix"` OtherActualClassCount int `json:"other_actual_class_count"` diff --git a/typedapi/types/dataframeclassificationsummaryprecision.go b/typedapi/types/dataframeclassificationsummaryprecision.go index f6d97bff7d..2ea6d3d2a6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryPrecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L101-L104 type DataframeClassificationSummaryPrecision struct { AvgPrecision Float64 `json:"avg_precision"` Classes []DataframeEvaluationClass `json:"classes"` diff --git a/typedapi/types/dataframeclassificationsummaryrecall.go b/typedapi/types/dataframeclassificationsummaryrecall.go index c6699a24f1..527726bc6c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeClassificationSummaryRecall type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L106-L109 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L106-L109 type DataframeClassificationSummaryRecall struct { AvgRecall Float64 `json:"avg_recall"` Classes []DataframeEvaluationClass `json:"classes"` diff --git a/typedapi/types/dataframeevaluationclass.go b/typedapi/types/dataframeevaluationclass.go index bf7b83c00f..0871a8d6c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationClass type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L116-L118 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L116-L118 type DataframeEvaluationClass struct { ClassName string `json:"class_name"` Value Float64 `json:"value"` diff --git a/typedapi/types/dataframeevaluationclassification.go b/typedapi/types/dataframeevaluationclassification.go index 17056e5aee..818c843256 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeEvaluation.ts#L35-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeEvaluation.ts#L35-L44 type DataframeEvaluationClassification struct { // ActualField The field of the index which contains the ground truth. The data type of this // field can be boolean or integer. If the data type is integer, the value has diff --git a/typedapi/types/dataframeevaluationclassificationmetrics.go b/typedapi/types/dataframeevaluationclassificationmetrics.go index ad4e947909..58da08488b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationClassificationMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeEvaluation.ts#L73-L78 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeEvaluation.ts#L73-L78 type DataframeEvaluationClassificationMetrics struct { // Accuracy Accuracy of predictions (per-class and overall). Accuracy map[string]json.RawMessage `json:"accuracy,omitempty"` diff --git a/typedapi/types/dataframeevaluationclassificationmetricsaucroc.go b/typedapi/types/dataframeevaluationclassificationmetricsaucroc.go index 8a88883bb2..64514c58de 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationClassificationMetricsAucRoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeEvaluation.ts#L85-L90 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeEvaluation.ts#L85-L90 type DataframeEvaluationClassificationMetricsAucRoc struct { // ClassName Name of the only class that is treated as positive during AUC ROC // calculation. Other classes are treated as negative ("one-vs-all" strategy). diff --git a/typedapi/types/dataframeevaluationcontainer.go b/typedapi/types/dataframeevaluationcontainer.go index 32d170e9d7..e7d63b43a9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // DataframeEvaluationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeEvaluation.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeEvaluation.ts#L25-L33 type DataframeEvaluationContainer struct { AdditionalDataframeEvaluationContainerProperty map[string]json.RawMessage `json:"-"` // Classification Classification evaluation evaluates the results of a classification analysis diff --git a/typedapi/types/dataframeevaluationoutlierdetection.go b/typedapi/types/dataframeevaluationoutlierdetection.go index f05131f34e..014b06755b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationOutlierDetection type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeEvaluation.ts#L46-L53 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeEvaluation.ts#L46-L53 type DataframeEvaluationOutlierDetection struct { // ActualField The field of the index which contains the ground truth. The data type of this // field can be boolean or integer. If the data type is integer, the value has diff --git a/typedapi/types/dataframeevaluationoutlierdetectionmetrics.go b/typedapi/types/dataframeevaluationoutlierdetectionmetrics.go index 68b31e8088..4a652e03f4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationOutlierDetectionMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeEvaluation.ts#L80-L83 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeEvaluation.ts#L80-L83 type DataframeEvaluationOutlierDetectionMetrics struct { // AucRoc The AUC ROC (area under the curve of the receiver operating characteristic) // score and optionally the curve. It is calculated for a specific class diff --git a/typedapi/types/dataframeevaluationregression.go b/typedapi/types/dataframeevaluationregression.go index efc858e870..314847e9b0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DataframeEvaluationRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeEvaluation.ts#L55-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeEvaluation.ts#L55-L62 type DataframeEvaluationRegression struct { // ActualField The field of the index which contains the ground truth. The data type of this // field must be numerical. diff --git a/typedapi/types/dataframeevaluationregressionmetrics.go b/typedapi/types/dataframeevaluationregressionmetrics.go index 66ea31b9ac..e9ab6d13ad 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // DataframeEvaluationRegressionMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeEvaluation.ts#L92-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeEvaluation.ts#L92-L110 type DataframeEvaluationRegressionMetrics struct { // Huber Pseudo Huber loss function. Huber *DataframeEvaluationRegressionMetricsHuber `json:"huber,omitempty"` diff --git a/typedapi/types/dataframeevaluationregressionmetricshuber.go b/typedapi/types/dataframeevaluationregressionmetricshuber.go index ce79733260..cc177b6c3d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationRegressionMetricsHuber type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeEvaluation.ts#L117-L120 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeEvaluation.ts#L117-L120 type DataframeEvaluationRegressionMetricsHuber struct { // Delta Approximates 1/2 (prediction - actual)2 for values much less than delta and // approximates a straight line with slope delta for values much larger than diff --git a/typedapi/types/dataframeevaluationregressionmetricsmsle.go b/typedapi/types/dataframeevaluationregressionmetricsmsle.go index a9eb3379f4..27deb512db 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationRegressionMetricsMsle type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeEvaluation.ts#L112-L115 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeEvaluation.ts#L112-L115 type DataframeEvaluationRegressionMetricsMsle struct { // Offset Defines the transition point at which you switch from minimizing quadratic // error to minimizing quadratic log error. Defaults to 1. diff --git a/typedapi/types/dataframeevaluationsummaryaucroc.go b/typedapi/types/dataframeevaluationsummaryaucroc.go index 2968952a87..4bfaa37992 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationSummaryAucRoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L91-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L91-L93 type DataframeEvaluationSummaryAucRoc struct { Curve []DataframeEvaluationSummaryAucRocCurveItem `json:"curve,omitempty"` Value Float64 `json:"value"` diff --git a/typedapi/types/dataframeevaluationsummaryaucroccurveitem.go b/typedapi/types/dataframeevaluationsummaryaucroccurveitem.go index a94bd8e440..b1b91cc397 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationSummaryAucRocCurveItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L95-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L95-L99 type DataframeEvaluationSummaryAucRocCurveItem struct { Fpr Float64 `json:"fpr"` Threshold Float64 `json:"threshold"` diff --git a/typedapi/types/dataframeevaluationvalue.go b/typedapi/types/dataframeevaluationvalue.go index 39cdcf5bfc..3b56cc645d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframeEvaluationValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L87-L89 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L87-L89 type DataframeEvaluationValue struct { Value Float64 `json:"value"` } diff --git a/typedapi/types/dataframeoutlierdetectionsummary.go b/typedapi/types/dataframeoutlierdetectionsummary.go index 0bcab65076..9529286349 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DataframeOutlierDetectionSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L24-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L24-L42 type DataframeOutlierDetectionSummary struct { // AucRoc The AUC ROC (area under the curve of the receiver operating characteristic) // score and optionally the curve. diff --git a/typedapi/types/dataframepreviewconfig.go b/typedapi/types/dataframepreviewconfig.go index 46bc5c8b65..cee26ad8f7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataframePreviewConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/preview_data_frame_analytics/types.ts#L27-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/preview_data_frame_analytics/types.ts#L27-L33 type DataframePreviewConfig struct { Analysis DataframeAnalysisContainer `json:"analysis"` AnalyzedFields *DataframeAnalysisAnalyzedFields `json:"analyzed_fields,omitempty"` diff --git a/typedapi/types/dataframeregressionsummary.go b/typedapi/types/dataframeregressionsummary.go index 70c5bb2006..134495dead 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DataframeRegressionSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/evaluate_data_frame/types.ts#L68-L85 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/evaluate_data_frame/types.ts#L68-L85 type DataframeRegressionSummary struct { // Huber Pseudo Huber loss function. Huber *DataframeEvaluationValue `json:"huber,omitempty"` diff --git a/typedapi/types/datapathstats.go b/typedapi/types/datapathstats.go index 8fe96af558..0d83fba392 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataPathStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L586-L630 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L586-L630 type DataPathStats struct { // Available Total amount of disk space available to this Java virtual machine on this // file store. diff --git a/typedapi/types/datastream.go b/typedapi/types/datastream.go index 2aff87bd7b..40e5abb116 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/managedby" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/healthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/managedby" ) // DataStream type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DataStream.ts#L53-L139 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/DataStream.ts#L53-L139 type DataStream struct { // AllowCustomRouting If `true`, the data stream allows custom routing on write request. AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` diff --git a/typedapi/types/datastreamindex.go b/typedapi/types/datastreamindex.go index 3635086852..e489f0baf9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/managedby" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/managedby" ) // DataStreamIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DataStream.ts#L148-L173 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/DataStream.ts#L148-L173 type DataStreamIndex struct { // IlmPolicy Name of the current ILM lifecycle policy configured for this backing index. IlmPolicy *string `json:"ilm_policy,omitempty"` diff --git a/typedapi/types/datastreamlifecycle.go b/typedapi/types/datastreamlifecycle.go index d0fec3a7c3..8083befd99 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DataStreamLifecycle.ts#L25-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/DataStreamLifecycle.ts#L25-L45 type DataStreamLifecycle struct { // DataRetention If defined, every document added to this data stream will be stored at least // for this time frame. diff --git a/typedapi/types/datastreamlifecycledetails.go b/typedapi/types/datastreamlifecycledetails.go index b8365eaf2f..8ca55a6262 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L153-L157 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L153-L157 type DataStreamLifecycleDetails struct { StagnatingBackingIndices []StagnatingBackingIndices `json:"stagnating_backing_indices,omitempty"` StagnatingBackingIndicesCount int `json:"stagnating_backing_indices_count"` diff --git a/typedapi/types/datastreamlifecycledownsampling.go b/typedapi/types/datastreamlifecycledownsampling.go index bf9014ccbc..fc160b8b76 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DataStreamLifecycleDownsampling type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/DataStreamLifecycleDownsampling.ts#L22-L27 type DataStreamLifecycleDownsampling struct { // Rounds The list of downsampling rounds to execute as part of this downsampling // configuration diff --git a/typedapi/types/datastreamlifecycleexplain.go b/typedapi/types/datastreamlifecycleexplain.go index c06714d372..221aab09b2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleExplain type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/explain_data_lifecycle/IndicesExplainDataLifecycleResponse.ts#L31-L41 type DataStreamLifecycleExplain struct { Error *string `json:"error,omitempty"` GenerationTime Duration `json:"generation_time,omitempty"` diff --git a/typedapi/types/datastreamlifecycleindicator.go b/typedapi/types/datastreamlifecycleindicator.go index 776e6a44c0..13398e5cb8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indicatorhealthstatus" ) // DataStreamLifecycleIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L148-L152 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L148-L152 type DataStreamLifecycleIndicator struct { Details *DataStreamLifecycleDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/datastreamlifecyclerolloverconditions.go b/typedapi/types/datastreamlifecyclerolloverconditions.go index 30d27ac250..bd3a16a07b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleRolloverConditions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DataStreamLifecycle.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/DataStreamLifecycle.ts#L60-L72 type DataStreamLifecycleRolloverConditions struct { MaxAge *string `json:"max_age,omitempty"` MaxDocs *int64 `json:"max_docs,omitempty"` diff --git a/typedapi/types/datastreamlifecyclewithrollover.go b/typedapi/types/datastreamlifecyclewithrollover.go index eaff963a26..6a626f9590 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataStreamLifecycleWithRollover type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DataStreamLifecycle.ts#L47-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/DataStreamLifecycle.ts#L47-L58 type DataStreamLifecycleWithRollover struct { // DataRetention If defined, every document added to this data stream will be stored at least // for this time frame. diff --git a/typedapi/types/datastreamnames.go b/typedapi/types/datastreamnames.go index 754483d1cf..338afec164 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DataStreamNames type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L88-L88 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L88-L88 type DataStreamNames []string diff --git a/typedapi/types/datastreams.go b/typedapi/types/datastreams.go index cbb06a47c2..8ced2e18c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataStreams type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L78-L81 type DataStreams struct { Available bool `json:"available"` DataStreams int64 `json:"data_streams"` diff --git a/typedapi/types/datastreamsstatsitem.go b/typedapi/types/datastreamsstatsitem.go index 84a4f15a14..401a4bf24f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataStreamsStatsItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/data_streams_stats/IndicesDataStreamsStatsResponse.ts#L45-L65 type DataStreamsStatsItem struct { // BackingIndices Current number of backing indices for the data stream. BackingIndices int `json:"backing_indices"` diff --git a/typedapi/types/datastreamstats.go b/typedapi/types/datastreamstats.go index 3fbe2cbdef..1600a910e9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataStreamStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L46-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/get_data_lifecycle_stats/IndicesGetDataLifecycleStatsResponse.ts#L46-L59 type DataStreamStats struct { // BackingIndicesInError The count of the backing indices for the data stream. BackingIndicesInError int `json:"backing_indices_in_error"` diff --git a/typedapi/types/datastreamtimestamp.go b/typedapi/types/datastreamtimestamp.go index 9e632441ad..a3e02c6470 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataStreamTimestamp type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/TypeMapping.ts#L59-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/TypeMapping.ts#L59-L61 type DataStreamTimestamp struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/datastreamtimestampfield.go b/typedapi/types/datastreamtimestampfield.go index 548d191d8e..40c046f507 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DataStreamTimestampField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DataStream.ts#L141-L146 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/DataStream.ts#L141-L146 type DataStreamTimestampField struct { // Name Name of the timestamp field for the data stream, which must be `@timestamp`. // The `@timestamp` field must be included in every document indexed to the data diff --git a/typedapi/types/datastreamvisibility.go b/typedapi/types/datastreamvisibility.go index a3467a4901..7da934bab3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataStreamVisibility type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DataStream.ts#L175-L178 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/DataStream.ts#L175-L178 type DataStreamVisibility struct { AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` Hidden *bool `json:"hidden,omitempty"` diff --git a/typedapi/types/datastreamwithlifecycle.go b/typedapi/types/datastreamwithlifecycle.go index 9147fa3046..b9b333563e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DataStreamWithLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/get_data_lifecycle/IndicesGetDataLifecycleResponse.ts#L27-L30 type DataStreamWithLifecycle struct { Lifecycle *DataStreamLifecycleWithRollover `json:"lifecycle,omitempty"` Name string `json:"name"` diff --git a/typedapi/types/datatierphasestatistics.go b/typedapi/types/datatierphasestatistics.go index 6434ff3e99..02ae69c056 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataTierPhaseStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L83-L94 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L83-L94 type DataTierPhaseStatistics struct { DocCount int64 `json:"doc_count"` IndexCount int64 `json:"index_count"` diff --git a/typedapi/types/datatiers.go b/typedapi/types/datatiers.go index 7020cc5dec..7dbff8863a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DataTiers type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L349-L359 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L349-L359 type DataTiers struct { Available bool `json:"available"` DataCold DataTierPhaseStatistics `json:"data_cold"` diff --git a/typedapi/types/datedecayfunction.go b/typedapi/types/datedecayfunction.go index 10f614c7d3..0a03c618b7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/multivaluemode" ) // DateDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L209-L209 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L209-L209 type DateDecayFunction struct { DecayFunctionBaseDateMathDuration map[string]DecayPlacementDateMathDuration `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/typedapi/types/datedistancefeaturequery.go b/typedapi/types/datedistancefeaturequery.go index 50c9013150..309896e600 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DateDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L71-L74 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L71-L74 type DateDistanceFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/datehistogramaggregate.go b/typedapi/types/datehistogramaggregate.go index 85f10027e9..cb706f0e41 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DateHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L383-L386 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L383-L386 type DateHistogramAggregate struct { Buckets BucketsDateHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/datehistogramaggregation.go b/typedapi/types/datehistogramaggregation.go index 19d8e5aa41..ba63f4152c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/calendarinterval" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/calendarinterval" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) // DateHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L202-L260 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L202-L260 type DateHistogramAggregation struct { // CalendarInterval Calendar-aware interval. // Can be specified using the unit name, such as `month`, or as a single unit diff --git a/typedapi/types/datehistogrambucket.go b/typedapi/types/datehistogrambucket.go index 68d470e960..7cf8612031 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // DateHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L388-L391 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L388-L391 type DateHistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/datehistogramgrouping.go b/typedapi/types/datehistogramgrouping.go index 3ad5a7f7b5..b99e931359 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DateHistogramGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/_types/Groupings.ts#L42-L73 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/_types/Groupings.ts#L42-L73 type DateHistogramGrouping struct { // CalendarInterval The interval of time buckets to be generated when rolling up. CalendarInterval Duration `json:"calendar_interval,omitempty"` diff --git a/typedapi/types/dateindexnameprocessor.go b/typedapi/types/dateindexnameprocessor.go index 0db728d748..2f75bdc1ae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DateIndexNameProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L730-L768 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/datenanosproperty.go b/typedapi/types/datenanosproperty.go index 42e3897b53..549e1f785d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // DateNanosProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L80-L90 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L89-L99 type DateNanosProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/dateprocessor.go b/typedapi/types/dateprocessor.go index 42a83dd9b5..2d4cdffcb8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DateProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L770-L803 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/dateproperty.go b/typedapi/types/dateproperty.go index 322f573df5..a20ed167ec 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // DateProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L66-L78 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L75-L87 type DateProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/daterangeaggregate.go b/typedapi/types/daterangeaggregate.go index 1077265a0e..ed7af113a3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DateRangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L609-L615 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L609-L615 type DateRangeAggregate struct { Buckets BucketsRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/daterangeaggregation.go b/typedapi/types/daterangeaggregation.go index 2a9908c81c..633ce43a17 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DateRangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L281-L307 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L281-L307 type DateRangeAggregation struct { // Field The date field whose values are use to build ranges. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/daterangeexpression.go b/typedapi/types/daterangeexpression.go index 99db8b7e3e..4bff33f3b7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DateRangeExpression type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L318-L331 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L318-L331 type DateRangeExpression struct { // From Start of the range (inclusive). From FieldDateMath `json:"from,omitempty"` diff --git a/typedapi/types/daterangeproperty.go b/typedapi/types/daterangeproperty.go index c261d48156..10b29c62cb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // DateRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/range.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/range.ts#L29-L32 type DateRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/daterangequery.go b/typedapi/types/daterangequery.go index 6df544c6b5..a3c03871fc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/rangerelation" ) // DateRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L161-L170 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L161-L170 type DateRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/datetime.go b/typedapi/types/datetime.go index 138e15cd96..437e4d0f5b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // int64 // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Time.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 74443bb24c..1dd4155c5a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ package types // NumericDecayFunction // GeoDecayFunction // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L215-L224 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f3d775ef94..e6aa2a1d7e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DecayPlacement type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacement struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` diff --git a/typedapi/types/decayplacementdatemathduration.go b/typedapi/types/decayplacementdatemathduration.go index 7a8e7fa893..4cb5d874d1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementDateMathDuration type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacementDateMathDuration struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` diff --git a/typedapi/types/decayplacementdoubledouble.go b/typedapi/types/decayplacementdoubledouble.go index c83eac23f9..39ab512773 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementdoubledouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacementdoubledouble struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` diff --git a/typedapi/types/decayplacementgeolocationdistance.go b/typedapi/types/decayplacementgeolocationdistance.go index 88a03f8635..7b27c4c5e9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DecayPlacementGeoLocationDistance type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L170-L189 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L170-L189 type DecayPlacementGeoLocationDistance struct { // Decay Defines how documents are scored at the distance given at scale. Decay *Float64 `json:"decay,omitempty"` diff --git a/typedapi/types/defaults.go b/typedapi/types/defaults.go index 419be699c0..05cc81a258 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Defaults type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/info/types.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/info/types.ts#L24-L27 type Defaults struct { AnomalyDetectors AnomalyDetectors `json:"anomaly_detectors"` Datafeeds Datafeeds `json:"datafeeds"` diff --git a/typedapi/types/definition.go b/typedapi/types/definition.go index 7a9ae741fc..e5e574c4b9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Definition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L24-L29 type Definition struct { // Preprocessors Collection of preprocessors Preprocessors []Preprocessor `json:"preprocessors,omitempty"` diff --git a/typedapi/types/delayeddatacheckconfig.go b/typedapi/types/delayeddatacheckconfig.go index 8ac27dc5a5..a8ced7ee6a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DelayedDataCheckConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Datafeed.ts#L122-L133 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Datafeed.ts#L122-L133 type DelayedDataCheckConfig struct { // CheckWindow The window of time that is searched for late data. This window of time ends // with the latest finalized bucket. diff --git a/typedapi/types/deleteaction.go b/typedapi/types/deleteaction.go index c5173dbe18..72ee882bdd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DeleteAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L149-L151 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L149-L151 type DeleteAction struct { DeleteSearchableSnapshot *bool `json:"delete_searchable_snapshot,omitempty"` } diff --git a/typedapi/types/deleteoperation.go b/typedapi/types/deleteoperation.go index f4468c0bed..59e06441a5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) // DeleteOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/bulk/types.ts#L144-L144 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/bulk/types.ts#L144-L144 type DeleteOperation struct { // Id_ The document ID. Id_ *string `json:"_id,omitempty"` diff --git a/typedapi/types/delimitedpayloadtokenfilter.go b/typedapi/types/delimitedpayloadtokenfilter.go index 70a73754ba..ae275e1ff0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/delimitedpayloadencoding" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/delimitedpayloadencoding" ) // DelimitedPayloadTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L67-L71 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L67-L71 type DelimitedPayloadTokenFilter struct { Delimiter *string `json:"delimiter,omitempty"` Encoding *delimitedpayloadencoding.DelimitedPayloadEncoding `json:"encoding,omitempty"` diff --git a/typedapi/types/densevectorindexoptions.go b/typedapi/types/densevectorindexoptions.go index 4c5db601e3..dde8fcf1a9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/densevectorindexoptionstype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/densevectorindexoptionstype" ) // DenseVectorIndexOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/DenseVectorProperty.ts#L129-L162 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/DenseVectorProperty.ts#L129-L166 type DenseVectorIndexOptions struct { // ConfidenceInterval The confidence interval to use when quantizing the vectors. Can be any value // between and including `0.90` and @@ -56,12 +56,18 @@ type DenseVectorIndexOptions struct { // EfConstruction The number of candidates to track while assembling the list of nearest // neighbors for each new node. // - // Only applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types. + // Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index + // types. EfConstruction *int `json:"ef_construction,omitempty"` // M The number of neighbors each node will be connected to in the HNSW graph. // - // Only applicable to `hnsw`, `int8_hnsw`, and `int4_hnsw` index types. + // Only applicable to `hnsw`, `int8_hnsw`, `bbq_hnsw`, and `int4_hnsw` index + // types. M *int `json:"m,omitempty"` + // RescoreVector The rescore vector options. This is only applicable to `bbq_hnsw`, + // `int4_hnsw`, `int8_hnsw`, `bbq_flat`, `int4_flat`, and `int8_flat` index + // types. + RescoreVector *DenseVectorIndexOptionsRescoreVector `json:"rescore_vector,omitempty"` // Type The type of kNN algorithm to use. Type densevectorindexoptionstype.DenseVectorIndexOptionsType `json:"type"` } @@ -129,6 +135,11 @@ func (s *DenseVectorIndexOptions) UnmarshalJSON(data []byte) error { s.M = &f } + case "rescore_vector": + if err := dec.Decode(&s.RescoreVector); err != nil { + return fmt.Errorf("%s | %w", "RescoreVector", err) + } + case "type": if err := dec.Decode(&s.Type); err != nil { return fmt.Errorf("%s | %w", "Type", err) diff --git a/typedapi/types/densevectorindexoptionsrescorevector.go b/typedapi/types/densevectorindexoptionsrescorevector.go new file mode 100644 index 0000000000..2c5af9bc57 --- /dev/null +++ b/typedapi/types/densevectorindexoptionsrescorevector.go @@ -0,0 +1,97 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// DenseVectorIndexOptionsRescoreVector type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/DenseVectorProperty.ts#L215-L223 +type DenseVectorIndexOptionsRescoreVector struct { + // Oversample The oversampling factor to use when searching for the nearest neighbor. This + // is only applicable to the quantized formats: `bbq_*`, `int4_*`, and `int8_*`. + // When provided, `oversample * k` vectors will be gathered and then their + // scores will be re-computed with the original vectors. + // + // valid values are between `1.0` and `10.0` (inclusive), or `0` exactly to + // disable oversampling. + Oversample float32 `json:"oversample"` +} + +func (s *DenseVectorIndexOptionsRescoreVector) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "oversample": + 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", "Oversample", err) + } + f := float32(value) + s.Oversample = f + case float64: + f := float32(v) + s.Oversample = f + } + + } + } + return nil +} + +// NewDenseVectorIndexOptionsRescoreVector returns a DenseVectorIndexOptionsRescoreVector. +func NewDenseVectorIndexOptionsRescoreVector() *DenseVectorIndexOptionsRescoreVector { + r := &DenseVectorIndexOptionsRescoreVector{} + + return r +} + +// true + +type DenseVectorIndexOptionsRescoreVectorVariant interface { + DenseVectorIndexOptionsRescoreVectorCaster() *DenseVectorIndexOptionsRescoreVector +} + +func (s *DenseVectorIndexOptionsRescoreVector) DenseVectorIndexOptionsRescoreVectorCaster() *DenseVectorIndexOptionsRescoreVector { + return s +} diff --git a/typedapi/types/densevectorproperty.go b/typedapi/types/densevectorproperty.go index 89b5649dc0..65e193ed30 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/densevectorelementtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/densevectorsimilarity" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/densevectorelementtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/densevectorsimilarity" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // DenseVectorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/DenseVectorProperty.ts#L23-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/DenseVectorProperty.ts#L23-L62 type DenseVectorProperty struct { // Dims Number of vector dimensions. Can't exceed `4096`. If `dims` is not specified, // it will be set to the length of diff --git a/typedapi/types/dependency.go b/typedapi/types/dependency.go index 945e67aba2..dc377ec122 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Dependency type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L30-L33 type Dependency struct { Field string `json:"field"` Value ScalarValue `json:"value"` diff --git a/typedapi/types/deprecation.go b/typedapi/types/deprecation.go index b5d69f4455..2230cb8aac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deprecationlevel" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/deprecationlevel" ) // Deprecation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/migration/deprecations/types.ts#L32-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/migration/deprecations/types.ts#L32-L47 type Deprecation struct { // Details Optional details about the deprecation warning. Details *string `json:"details,omitempty"` diff --git a/typedapi/types/deprecationindexing.go b/typedapi/types/deprecationindexing.go index 0f05d9c25d..bc74d9a890 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DeprecationIndexing type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L144-L146 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L144-L146 type DeprecationIndexing struct { Enabled string `json:"enabled"` } diff --git a/typedapi/types/derivativeaggregate.go b/typedapi/types/derivativeaggregate.go index 914d18b731..e01eb7fb6c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DerivativeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L241-L248 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L241-L248 type DerivativeAggregate struct { Meta Metadata `json:"meta,omitempty"` NormalizedValue *Float64 `json:"normalized_value,omitempty"` diff --git a/typedapi/types/derivativeaggregation.go b/typedapi/types/derivativeaggregation.go index 9c5711e0aa..f188e5cc5d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // DerivativeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L216-L216 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L216-L216 type DerivativeAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/detailsinfo.go b/typedapi/types/detailsinfo.go index 5c055d4e13..b70c67c6c4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DetailsInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L286-L321 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L286-L321 type DetailsInfo struct { // Blob A description of the blob that was written and read. Blob BlobDetails `json:"blob"` diff --git a/typedapi/types/detectionrule.go b/typedapi/types/detectionrule.go index 7eb077cbfc..a6a28cb7e8 100644 --- a/typedapi/types/detectionrule.go +++ b/typedapi/types/detectionrule.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ruleaction" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ruleaction" ) // DetectionRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Rule.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Rule.ts#L25-L39 type DetectionRule struct { // Actions The set of actions to be triggered when the rule applies. If more than one // action is specified the effects of all actions are combined. diff --git a/typedapi/types/detector.go b/typedapi/types/detector.go index d691017096..78d24f0698 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/excludefrequent" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/excludefrequent" ) // Detector type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Detector.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Detector.ts#L25-L67 type Detector struct { // ByFieldName The field used to split the data. In particular, this property is used for // analyzing the splits with respect to their own history. It is used for diff --git a/typedapi/types/detectorread.go b/typedapi/types/detectorread.go index aa91bca110..c599e745ce 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/excludefrequent" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/excludefrequent" ) // DetectorRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Detector.ts#L69-L125 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Detector.ts#L69-L125 type DetectorRead struct { // ByFieldName The field used to split the data. // In particular, this property is used for analyzing the splits with respect to diff --git a/typedapi/types/detectorupdate.go b/typedapi/types/detectorupdate.go index 03d58fcd47..412d731e91 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DetectorUpdate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Detector.ts#L127-L143 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Detector.ts#L127-L143 type DetectorUpdate struct { // CustomRules An array of custom rule objects, which enable you to customize the way // detectors operate. diff --git a/typedapi/types/dfsknnprofile.go b/typedapi/types/dfsknnprofile.go index 9b270e066b..9839876745 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DfsKnnProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L181-L186 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L181-L186 type DfsKnnProfile struct { Collector []KnnCollectorResult `json:"collector"` Query []KnnQueryProfileResult `json:"query"` diff --git a/typedapi/types/dfsprofile.go b/typedapi/types/dfsprofile.go index 9c31843e4a..f4f73dbd2f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DfsProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L154-L157 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L154-L157 type DfsProfile struct { Knn []DfsKnnProfile `json:"knn,omitempty"` Statistics *DfsStatisticsProfile `json:"statistics,omitempty"` diff --git a/typedapi/types/dfsstatisticsbreakdown.go b/typedapi/types/dfsstatisticsbreakdown.go index ef9902b527..0a6fbef979 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DfsStatisticsBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L170-L179 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L170-L179 type DfsStatisticsBreakdown struct { CollectionStatistics int64 `json:"collection_statistics"` CollectionStatisticsCount int64 `json:"collection_statistics_count"` diff --git a/typedapi/types/dfsstatisticsprofile.go b/typedapi/types/dfsstatisticsprofile.go index 7294e34fbd..e0cd0304ab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DfsStatisticsProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L159-L167 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L159-L167 type DfsStatisticsProfile struct { Breakdown DfsStatisticsBreakdown `json:"breakdown"` Children []DfsStatisticsProfile `json:"children,omitempty"` diff --git a/typedapi/types/diagnosis.go b/typedapi/types/diagnosis.go index 78f31398bc..6f11057fff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Diagnosis type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L51-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L51-L57 type Diagnosis struct { Action string `json:"action"` AffectedResources DiagnosisAffectedResources `json:"affected_resources"` diff --git a/typedapi/types/diagnosisaffectedresources.go b/typedapi/types/diagnosisaffectedresources.go index 8c601e6ff4..dae60d9080 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DiagnosisAffectedResources type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L59-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L59-L65 type DiagnosisAffectedResources struct { FeatureStates []string `json:"feature_states,omitempty"` Indices []string `json:"indices,omitempty"` diff --git a/typedapi/types/dictionarydecompoundertokenfilter.go b/typedapi/types/dictionarydecompoundertokenfilter.go index 3b823e08e5..80603d8fbb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DictionaryDecompounderTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L53-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L53-L55 type DictionaryDecompounderTokenFilter struct { HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"` MaxSubwordSize *int `json:"max_subword_size,omitempty"` diff --git a/typedapi/types/directgenerator.go b/typedapi/types/directgenerator.go index 4b44dfdbb9..1690ad39d5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/suggestmode" ) // DirectGenerator type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L268-L331 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/discovery.go b/typedapi/types/discovery.go index 10dbee8bb0..a6b2fd474f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Discovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L201-L219 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L201-L219 type Discovery struct { ClusterApplierStats *ClusterAppliedStats `json:"cluster_applier_stats,omitempty"` // ClusterStateQueue Contains statistics for the cluster state queue of the node. diff --git a/typedapi/types/discoverynode.go b/typedapi/types/discoverynode.go index 921ae7b085..db9d0945f0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DiscoveryNode type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DiscoveryNode.ts#L25-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 49c5437949..13061997e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DiscoveryNodeCompact type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DiscoveryNode.ts#L39-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DiscoveryNode.ts#L39-L48 type DiscoveryNodeCompact struct { Attributes map[string]string `json:"attributes"` EphemeralId string `json:"ephemeral_id"` diff --git a/typedapi/types/discoverynodecontent.go b/typedapi/types/discoverynodecontent.go index dce4ef3308..87f0d3b1f2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DiscoveryNodeContent type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DiscoveryNode.ts#L27-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DiscoveryNode.ts#L27-L37 type DiscoveryNodeContent struct { Attributes map[string]string `json:"attributes"` EphemeralId string `json:"ephemeral_id"` diff --git a/typedapi/types/diskindicator.go b/typedapi/types/diskindicator.go index 59e7de3376..f168497cb1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indicatorhealthstatus" ) // DiskIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L124-L128 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L124-L128 type DiskIndicator struct { Details *DiskIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/diskindicatordetails.go b/typedapi/types/diskindicatordetails.go index 5471be7c66..3d6107566f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DiskIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L129-L135 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L129-L135 type DiskIndicatorDetails struct { IndicesWithReadonlyBlock int64 `json:"indices_with_readonly_block"` NodesOverFloodStageWatermark int64 `json:"nodes_over_flood_stage_watermark"` diff --git a/typedapi/types/diskusage.go b/typedapi/types/diskusage.go index 2c960deaf5..978f0a3a46 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DiskUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L63-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/allocation_explain/types.ts#L63-L70 type DiskUsage struct { FreeBytes int64 `json:"free_bytes"` FreeDiskPercent Float64 `json:"free_disk_percent"` diff --git a/typedapi/types/dismaxquery.go b/typedapi/types/dismaxquery.go index 0fe8c0dd86..756510e7aa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DisMaxQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L88-L103 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L88-L103 type DisMaxQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/dissectprocessor.go b/typedapi/types/dissectprocessor.go index 4ed67211f3..0d60bb5852 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DissectProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L805-L824 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` diff --git a/typedapi/types/distancefeaturequery.go b/typedapi/types/distancefeaturequery.go index 50c68f8523..a0d539fedc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ package types // GeoDistanceFeatureQuery // DateDistanceFeatureQuery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L76-L85 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2499e32d96..017ebabb9e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sampleraggregationexecutionhint" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sampleraggregationexecutionhint" ) // DiversifiedSamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L333-L357 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L333-L357 type DiversifiedSamplerAggregation struct { // ExecutionHint The type of value used for de-duplication. ExecutionHint *sampleraggregationexecutionhint.SamplerAggregationExecutionHint `json:"execution_hint,omitempty"` diff --git a/typedapi/types/docstats.go b/typedapi/types/docstats.go index 7aa5778541..435b78e08a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DocStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L100-L112 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L100-L112 type DocStats struct { // Count Total number of non-deleted documents across all primary shards assigned to // selected nodes. diff --git a/typedapi/types/document.go b/typedapi/types/document.go index a9137bc4a3..2b2663c825 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Document type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Simulation.ts#L62-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Simulation.ts#L62-L76 type Document struct { // Id_ Unique identifier for the document. // This ID must be unique within the `_index`. diff --git a/typedapi/types/documentrating.go b/typedapi/types/documentrating.go index b435f5b838..0b262078c0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DocumentRating type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L119-L126 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L119-L126 type DocumentRating struct { // Id_ The document ID. Id_ string `json:"_id"` diff --git a/typedapi/types/documentsimulation.go b/typedapi/types/documentsimulation.go index 2335a720a7..2d09a8cf56 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) // DocumentSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Simulation.ts#L78-L108 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Simulation.ts#L78-L108 type DocumentSimulation struct { DocumentSimulation map[string]string `json:"-"` // Id_ Unique identifier for the document. This ID must be unique within the diff --git a/typedapi/types/dotexpanderprocessor.go b/typedapi/types/dotexpanderprocessor.go index 8c0c843f57..6e952424aa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DotExpanderProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L826-L844 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/doublenumberproperty.go b/typedapi/types/doublenumberproperty.go index fdfb26badd..e36767fda7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // DoubleNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L156-L159 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L165-L168 type DoubleNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/doublerangeproperty.go b/typedapi/types/doublerangeproperty.go index 54a8eeceec..1353e17f85 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // DoubleRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/range.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/range.ts#L34-L36 type DoubleRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/doubletermsaggregate.go b/typedapi/types/doubletermsaggregate.go index 89e0348682..74851298a3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DoubleTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L451-L456 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L451-L456 type DoubleTermsAggregate struct { Buckets BucketsDoubleTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` diff --git a/typedapi/types/doubletermsbucket.go b/typedapi/types/doubletermsbucket.go index 19223a8a7b..8428e8f85d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // DoubleTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L458-L461 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L458-L461 type DoubleTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/downsampleaction.go b/typedapi/types/downsampleaction.go index fc35c3f68b..fbd40a62f7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DownsampleAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L112-L115 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L112-L115 type DownsampleAction struct { FixedInterval string `json:"fixed_interval"` WaitTimeout Duration `json:"wait_timeout,omitempty"` diff --git a/typedapi/types/downsampleconfig.go b/typedapi/types/downsampleconfig.go index 2c7a4791a5..db8367b8c6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DownsampleConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/Downsample.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/Downsample.ts#L22-L27 type DownsampleConfig struct { // FixedInterval The interval at which to aggregate the original time series index. FixedInterval string `json:"fixed_interval"` diff --git a/typedapi/types/downsamplinground.go b/typedapi/types/downsamplinground.go index 400124c0fe..0e29d2d5f2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // DownsamplingRound type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DownsamplingRound.ts#L23-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/DownsamplingRound.ts#L23-L32 type DownsamplingRound struct { // After The duration since rollover when this downsampling round should execute After Duration `json:"after"` diff --git a/typedapi/types/dropprocessor.go b/typedapi/types/dropprocessor.go index 9f616b789a..249278215f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DropProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L846-L846 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/duration.go b/typedapi/types/duration.go index 160ecc6fb3..e083703962 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -24,7 +24,7 @@ package types // // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Time.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 409ddb41b7..a16e37a26b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DurationValueUnitFloatMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Time.ts#L67-L67 type DurationValueUnitFloatMillis Float64 diff --git a/typedapi/types/durationvalueunitmillis.go b/typedapi/types/durationvalueunitmillis.go index 2af22f5bdf..369bb265b1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DurationValueUnitMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6eb363293f..ba47e0a1ca 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DurationValueUnitNanos type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Time.ts#L67-L67 type DurationValueUnitNanos int64 diff --git a/typedapi/types/durationvalueunitseconds.go b/typedapi/types/durationvalueunitseconds.go index 9f9bef5096..4adda1d485 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // DurationValueUnitSeconds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Time.ts#L67-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Time.ts#L67-L67 type DurationValueUnitSeconds int64 diff --git a/typedapi/types/dutchanalyzer.go b/typedapi/types/dutchanalyzer.go index 5551e99fda..f97531040c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // DutchAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L145-L150 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L145-L150 type DutchAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/dynamicproperty.go b/typedapi/types/dynamicproperty.go index 4e15fba71b..d21e4874fa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,17 +28,17 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termvectoroption" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termvectoroption" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // DynamicProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L318-L349 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L327-L358 type DynamicProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` diff --git a/typedapi/types/dynamictemplate.go b/typedapi/types/dynamictemplate.go index a49be1b065..056ce38b8c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/matchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/matchtype" ) // DynamicTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/dynamic-template.ts#L23-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/dynamic-template.ts#L23-L43 type DynamicTemplate struct { AdditionalDynamicTemplateProperty map[string]json.RawMessage `json:"-"` Mapping Property `json:"mapping,omitempty"` diff --git a/typedapi/types/edgengramtokenfilter.go b/typedapi/types/edgengramtokenfilter.go index 142a4be39f..242b9e1183 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/edgengramside" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/edgengramside" ) // EdgeNGramTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L78-L84 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L78-L84 type EdgeNGramTokenFilter struct { MaxGram *int `json:"max_gram,omitempty"` MinGram *int `json:"min_gram,omitempty"` diff --git a/typedapi/types/edgengramtokenizer.go b/typedapi/types/edgengramtokenizer.go index e41820abc8..5ff43fc1ae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenchar" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenchar" ) // EdgeNGramTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L48-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L48-L57 type EdgeNGramTokenizer struct { CustomTokenChars *string `json:"custom_token_chars,omitempty"` MaxGram *int `json:"max_gram,omitempty"` diff --git a/typedapi/types/elasticsearchservicesettings.go b/typedapi/types/elasticsearchservicesettings.go new file mode 100644 index 0000000000..89d3a83880 --- /dev/null +++ b/typedapi/types/elasticsearchservicesettings.go @@ -0,0 +1,164 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ElasticsearchServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L704-L738 +type ElasticsearchServiceSettings struct { + // AdaptiveAllocations Adaptive allocations configuration details. + // If `enabled` is true, the number of allocations of the model is set based on + // the current load the process gets. + // When the load is high, a new model allocation is automatically created, + // respecting the value of `max_number_of_allocations` if it's set. + // When the load is low, a model allocation is automatically removed, respecting + // the value of `min_number_of_allocations` if it's set. + // If `enabled` is true, do not set the number of allocations manually. + AdaptiveAllocations *AdaptiveAllocations `json:"adaptive_allocations,omitempty"` + // DeploymentId The deployment identifier for a trained model deployment. + // When `deployment_id` is used the `model_id` is optional. + DeploymentId *string `json:"deployment_id,omitempty"` + // ModelId The name of the model to use for the inference task. + // It can be the ID of a built-in model (for example, `.multilingual-e5-small` + // for E5) or a text embedding model that was uploaded by using the Eland + // client. + ModelId string `json:"model_id"` + // NumAllocations The total number of allocations that are assigned to the model across machine + // learning nodes. + // Increasing this value generally increases the throughput. + // If adaptive allocations are enabled, do not set this value because it's + // automatically set. + NumAllocations *int `json:"num_allocations,omitempty"` + // NumThreads The number of threads used by each model allocation during inference. + // This setting generally increases the speed per inference request. + // The inference process is a compute-bound process; `threads_per_allocations` + // must not exceed the number of available allocated processors per node. + // The value must be a power of 2. + // The maximum value is 32. + NumThreads int `json:"num_threads"` +} + +func (s *ElasticsearchServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "adaptive_allocations": + if err := dec.Decode(&s.AdaptiveAllocations); err != nil { + return fmt.Errorf("%s | %w", "AdaptiveAllocations", err) + } + + case "deployment_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "DeploymentId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.DeploymentId = &o + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = o + + case "num_allocations": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "NumAllocations", err) + } + s.NumAllocations = &value + case float64: + f := int(v) + s.NumAllocations = &f + } + + case "num_threads": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "NumThreads", err) + } + s.NumThreads = value + case float64: + f := int(v) + s.NumThreads = f + } + + } + } + return nil +} + +// NewElasticsearchServiceSettings returns a ElasticsearchServiceSettings. +func NewElasticsearchServiceSettings() *ElasticsearchServiceSettings { + r := &ElasticsearchServiceSettings{} + + return r +} + +// true + +type ElasticsearchServiceSettingsVariant interface { + ElasticsearchServiceSettingsCaster() *ElasticsearchServiceSettings +} + +func (s *ElasticsearchServiceSettings) ElasticsearchServiceSettingsCaster() *ElasticsearchServiceSettings { + return s +} diff --git a/typedapi/types/elasticsearchtasksettings.go b/typedapi/types/elasticsearchtasksettings.go new file mode 100644 index 0000000000..8dec5f859f --- /dev/null +++ b/typedapi/types/elasticsearchtasksettings.go @@ -0,0 +1,89 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ElasticsearchTaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L740-L746 +type ElasticsearchTaskSettings struct { + // ReturnDocuments For a `rerank` task, return the document instead of only the index. + ReturnDocuments *bool `json:"return_documents,omitempty"` +} + +func (s *ElasticsearchTaskSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "return_documents": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "ReturnDocuments", err) + } + s.ReturnDocuments = &value + case bool: + s.ReturnDocuments = &v + } + + } + } + return nil +} + +// NewElasticsearchTaskSettings returns a ElasticsearchTaskSettings. +func NewElasticsearchTaskSettings() *ElasticsearchTaskSettings { + r := &ElasticsearchTaskSettings{} + + return r +} + +// true + +type ElasticsearchTaskSettingsVariant interface { + ElasticsearchTaskSettingsCaster() *ElasticsearchTaskSettings +} + +func (s *ElasticsearchTaskSettings) ElasticsearchTaskSettingsCaster() *ElasticsearchTaskSettings { + return s +} diff --git a/typedapi/types/elasticsearchversioninfo.go b/typedapi/types/elasticsearchversioninfo.go index ea0a093c65..73c3436971 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchVersionInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Base.ts#L76-L115 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Base.ts#L76-L115 type ElasticsearchVersionInfo struct { // BuildDate The Elasticsearch Git commit's date. BuildDate DateTime `json:"build_date"` diff --git a/typedapi/types/elasticsearchversionmininfo.go b/typedapi/types/elasticsearchversionmininfo.go index fcd51797c0..cf0bc9348f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ElasticsearchVersionMinInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Base.ts#L117-L125 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Base.ts#L117-L125 type ElasticsearchVersionMinInfo struct { BuildFlavor string `json:"build_flavor"` Int string `json:"number"` diff --git a/typedapi/types/elisiontokenfilter.go b/typedapi/types/elisiontokenfilter.go index b4792b5c80..d9594d4827 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ElisionTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L188-L193 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L188-L193 type ElisionTokenFilter struct { Articles []string `json:"articles,omitempty"` ArticlesCase Stringifiedboolean `json:"articles_case,omitempty"` diff --git a/typedapi/types/elserservicesettings.go b/typedapi/types/elserservicesettings.go new file mode 100644 index 0000000000..b88b4c313c --- /dev/null +++ b/typedapi/types/elserservicesettings.go @@ -0,0 +1,137 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// ElserServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L758-L784 +type ElserServiceSettings struct { + // AdaptiveAllocations Adaptive allocations configuration details. + // If `enabled` is true, the number of allocations of the model is set based on + // the current load the process gets. + // When the load is high, a new model allocation is automatically created, + // respecting the value of `max_number_of_allocations` if it's set. + // When the load is low, a model allocation is automatically removed, respecting + // the value of `min_number_of_allocations` if it's set. + // If `enabled` is true, do not set the number of allocations manually. + AdaptiveAllocations *AdaptiveAllocations `json:"adaptive_allocations,omitempty"` + // NumAllocations The total number of allocations this model is assigned across machine + // learning nodes. + // Increasing this value generally increases the throughput. + // If adaptive allocations is enabled, do not set this value because it's + // automatically set. + NumAllocations int `json:"num_allocations"` + // NumThreads The number of threads used by each model allocation during inference. + // Increasing this value generally increases the speed per inference request. + // The inference process is a compute-bound process; `threads_per_allocations` + // must not exceed the number of available allocated processors per node. + // The value must be a power of 2. + // The maximum value is 32. + // + // > info + // > If you want to optimize your ELSER endpoint for ingest, set the number of + // threads to 1. If you want to optimize your ELSER endpoint for search, set the + // number of threads to greater than 1. + NumThreads int `json:"num_threads"` +} + +func (s *ElserServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "adaptive_allocations": + if err := dec.Decode(&s.AdaptiveAllocations); err != nil { + return fmt.Errorf("%s | %w", "AdaptiveAllocations", err) + } + + case "num_allocations": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "NumAllocations", err) + } + s.NumAllocations = value + case float64: + f := int(v) + s.NumAllocations = f + } + + case "num_threads": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "NumThreads", err) + } + s.NumThreads = value + case float64: + f := int(v) + s.NumThreads = f + } + + } + } + return nil +} + +// NewElserServiceSettings returns a ElserServiceSettings. +func NewElserServiceSettings() *ElserServiceSettings { + r := &ElserServiceSettings{} + + return r +} + +// true + +type ElserServiceSettingsVariant interface { + ElserServiceSettingsCaster() *ElserServiceSettings +} + +func (s *ElserServiceSettings) ElserServiceSettingsCaster() *ElserServiceSettings { + return s +} diff --git a/typedapi/types/email.go b/typedapi/types/email.go index 6def9b7c2a..3b05eb8d72 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/emailpriority" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/emailpriority" ) // Email type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L238-L250 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L238-L250 type Email struct { Attachments map[string]EmailAttachmentContainer `json:"attachments,omitempty"` Bcc []string `json:"bcc,omitempty"` diff --git a/typedapi/types/emailaction.go b/typedapi/types/emailaction.go index 29dcce2966..ff0b8fd28c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/emailpriority" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/emailpriority" ) // EmailAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L252-L252 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L252-L252 type EmailAction struct { Attachments map[string]EmailAttachmentContainer `json:"attachments,omitempty"` Bcc []string `json:"bcc,omitempty"` diff --git a/typedapi/types/emailattachmentcontainer.go b/typedapi/types/emailattachmentcontainer.go index 947e6bf439..1971eed5da 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // EmailAttachmentContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L211-L216 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L211-L216 type EmailAttachmentContainer struct { AdditionalEmailAttachmentContainerProperty map[string]json.RawMessage `json:"-"` Data *DataEmailAttachment `json:"data,omitempty"` diff --git a/typedapi/types/emailbody.go b/typedapi/types/emailbody.go index 465a750448..2f4e05d8d2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // EmailBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L192-L195 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L192-L195 type EmailBody struct { Html *string `json:"html,omitempty"` Text *string `json:"text,omitempty"` diff --git a/typedapi/types/emailresult.go b/typedapi/types/emailresult.go index 72d35b5d47..27a25eaa59 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // EmailResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L205-L209 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L205-L209 type EmailResult struct { Account *string `json:"account,omitempty"` Message Email `json:"message"` diff --git a/typedapi/types/emptyobject.go b/typedapi/types/emptyobject.go index d87070f6df..ed6de7ef03 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // EmptyObject type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L157-L158 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L157-L158 type EmptyObject struct { } diff --git a/typedapi/types/englishanalyzer.go b/typedapi/types/englishanalyzer.go index 1dce80692e..782e2f88a1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // EnglishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L152-L157 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L152-L157 type EnglishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/enrichpolicy.go b/typedapi/types/enrichpolicy.go index dcf21f2271..980a572216 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // EnrichPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/_types/Policy.ts#L34-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/enrich/_types/Policy.ts#L34-L41 type EnrichPolicy struct { ElasticsearchVersion *string `json:"elasticsearch_version,omitempty"` EnrichFields []string `json:"enrich_fields"` diff --git a/typedapi/types/enrichprocessor.go b/typedapi/types/enrichprocessor.go index d194c3e50e..17d30b62d5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoshaperelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geoshaperelation" ) // EnrichProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L848-L887 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/ensemble.go b/typedapi/types/ensemble.go index 340ca8a870..8826072768 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Ensemble type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L93-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L93-L99 type Ensemble struct { AggregateOutput *AggregateOutput `json:"aggregate_output,omitempty"` ClassificationLabels []string `json:"classification_labels,omitempty"` diff --git a/typedapi/types/enums/accesstokengranttype/accesstokengranttype.go b/typedapi/types/enums/accesstokengranttype/accesstokengranttype.go index 3c8c5361cc..766e33fe4c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package accesstokengranttype package accesstokengranttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_token/types.ts#L23-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1741389f2c..925e790803 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package acknowledgementoptions package acknowledgementoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Action.ts#L103-L107 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4762168cc8..1bd8740828 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package actionexecutionmode package actionexecutionmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Action.ts#L67-L88 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0b1c53afcf..bbddd32d38 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package actionstatusoptions package actionstatusoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Action.ts#L96-L101 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 027271e8f8..7fca5ee4c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package actiontype package actiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Action.ts#L58-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Action.ts#L58-L65 type ActionType struct { Name string } diff --git a/typedapi/types/enums/alibabacloudservicetype/alibabacloudservicetype.go b/typedapi/types/enums/alibabacloudservicetype/alibabacloudservicetype.go new file mode 100644 index 0000000000..aa869af07f --- /dev/null +++ b/typedapi/types/enums/alibabacloudservicetype/alibabacloudservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package alibabacloudservicetype +package alibabacloudservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L289-L291 +type AlibabaCloudServiceType struct { + Name string +} + +var ( + AlibabacloudAiSearch = AlibabaCloudServiceType{"alibabacloud-ai-search"} +) + +func (a AlibabaCloudServiceType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AlibabaCloudServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "alibabacloud-ai-search": + *a = AlibabacloudAiSearch + default: + *a = AlibabaCloudServiceType{string(text)} + } + + return nil +} + +func (a AlibabaCloudServiceType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/alibabacloudtasktype/alibabacloudtasktype.go b/typedapi/types/enums/alibabacloudtasktype/alibabacloudtasktype.go new file mode 100644 index 0000000000..7d59a2d767 --- /dev/null +++ b/typedapi/types/enums/alibabacloudtasktype/alibabacloudtasktype.go @@ -0,0 +1,65 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package alibabacloudtasktype +package alibabacloudtasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L282-L287 +type AlibabaCloudTaskType struct { + Name string +} + +var ( + Completion = AlibabaCloudTaskType{"completion"} + + Rerank = AlibabaCloudTaskType{"rerank"} + + Spaceembedding = AlibabaCloudTaskType{"space_embedding"} + + Textembedding = AlibabaCloudTaskType{"text_embedding"} +) + +func (a AlibabaCloudTaskType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AlibabaCloudTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *a = Completion + case "rerank": + *a = Rerank + case "space_embedding": + *a = Spaceembedding + case "text_embedding": + *a = Textembedding + default: + *a = AlibabaCloudTaskType{string(text)} + } + + return nil +} + +func (a AlibabaCloudTaskType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go b/typedapi/types/enums/allocationexplaindecision/allocationexplaindecision.go index 52ad18ca44..5b37904a06 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package allocationexplaindecision package allocationexplaindecision import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L33-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/allocation_explain/types.ts#L33-L38 type AllocationExplainDecision struct { Name string } diff --git a/typedapi/types/enums/amazonbedrockservicetype/amazonbedrockservicetype.go b/typedapi/types/enums/amazonbedrockservicetype/amazonbedrockservicetype.go new file mode 100644 index 0000000000..63d2332fc2 --- /dev/null +++ b/typedapi/types/enums/amazonbedrockservicetype/amazonbedrockservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package amazonbedrockservicetype +package amazonbedrockservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L368-L370 +type AmazonBedrockServiceType struct { + Name string +} + +var ( + Amazonbedrock = AmazonBedrockServiceType{"amazonbedrock"} +) + +func (a AmazonBedrockServiceType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AmazonBedrockServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "amazonbedrock": + *a = Amazonbedrock + default: + *a = AmazonBedrockServiceType{string(text)} + } + + return nil +} + +func (a AmazonBedrockServiceType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/amazonbedrocktasktype/amazonbedrocktasktype.go b/typedapi/types/enums/amazonbedrocktasktype/amazonbedrocktasktype.go new file mode 100644 index 0000000000..fee7601e54 --- /dev/null +++ b/typedapi/types/enums/amazonbedrocktasktype/amazonbedrocktasktype.go @@ -0,0 +1,57 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package amazonbedrocktasktype +package amazonbedrocktasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L363-L366 +type AmazonBedrockTaskType struct { + Name string +} + +var ( + Completion = AmazonBedrockTaskType{"completion"} + + Textembedding = AmazonBedrockTaskType{"text_embedding"} +) + +func (a AmazonBedrockTaskType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AmazonBedrockTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *a = Completion + case "text_embedding": + *a = Textembedding + default: + *a = AmazonBedrockTaskType{string(text)} + } + + return nil +} + +func (a AmazonBedrockTaskType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/anthropicservicetype/anthropicservicetype.go b/typedapi/types/enums/anthropicservicetype/anthropicservicetype.go new file mode 100644 index 0000000000..205c417ca7 --- /dev/null +++ b/typedapi/types/enums/anthropicservicetype/anthropicservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package anthropicservicetype +package anthropicservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L421-L423 +type AnthropicServiceType struct { + Name string +} + +var ( + Anthropic = AnthropicServiceType{"anthropic"} +) + +func (a AnthropicServiceType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AnthropicServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "anthropic": + *a = Anthropic + default: + *a = AnthropicServiceType{string(text)} + } + + return nil +} + +func (a AnthropicServiceType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/anthropictasktype/anthropictasktype.go b/typedapi/types/enums/anthropictasktype/anthropictasktype.go new file mode 100644 index 0000000000..565610d7ea --- /dev/null +++ b/typedapi/types/enums/anthropictasktype/anthropictasktype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package anthropictasktype +package anthropictasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L417-L419 +type AnthropicTaskType struct { + Name string +} + +var ( + Completion = AnthropicTaskType{"completion"} +) + +func (a AnthropicTaskType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AnthropicTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *a = Completion + default: + *a = AnthropicTaskType{string(text)} + } + + return nil +} + +func (a AnthropicTaskType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/apikeygranttype/apikeygranttype.go b/typedapi/types/enums/apikeygranttype/apikeygranttype.go index 126d9bc878..50c9d44cdd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package apikeygranttype package apikeygranttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/grant_api_key/types.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c28a0c2a2a..784ddcbb12 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package apikeytype package apikeytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/ApiKey.ts#L115-L118 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5f544a87ea..9dd82e668c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package appliesto package appliesto import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Rule.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Rule.ts#L67-L72 type AppliesTo struct { Name string } diff --git a/typedapi/types/enums/azureaistudioservicetype/azureaistudioservicetype.go b/typedapi/types/enums/azureaistudioservicetype/azureaistudioservicetype.go new file mode 100644 index 0000000000..3ce1ae5ea8 --- /dev/null +++ b/typedapi/types/enums/azureaistudioservicetype/azureaistudioservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package azureaistudioservicetype +package azureaistudioservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L504-L506 +type AzureAiStudioServiceType struct { + Name string +} + +var ( + Azureaistudio = AzureAiStudioServiceType{"azureaistudio"} +) + +func (a AzureAiStudioServiceType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AzureAiStudioServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "azureaistudio": + *a = Azureaistudio + default: + *a = AzureAiStudioServiceType{string(text)} + } + + return nil +} + +func (a AzureAiStudioServiceType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/azureaistudiotasktype/azureaistudiotasktype.go b/typedapi/types/enums/azureaistudiotasktype/azureaistudiotasktype.go new file mode 100644 index 0000000000..704e4b2bcc --- /dev/null +++ b/typedapi/types/enums/azureaistudiotasktype/azureaistudiotasktype.go @@ -0,0 +1,57 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package azureaistudiotasktype +package azureaistudiotasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L499-L502 +type AzureAiStudioTaskType struct { + Name string +} + +var ( + Completion = AzureAiStudioTaskType{"completion"} + + Textembedding = AzureAiStudioTaskType{"text_embedding"} +) + +func (a AzureAiStudioTaskType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AzureAiStudioTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *a = Completion + case "text_embedding": + *a = Textembedding + default: + *a = AzureAiStudioTaskType{string(text)} + } + + return nil +} + +func (a AzureAiStudioTaskType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/azureopenaiservicetype/azureopenaiservicetype.go b/typedapi/types/enums/azureopenaiservicetype/azureopenaiservicetype.go new file mode 100644 index 0000000000..66d4425a3b --- /dev/null +++ b/typedapi/types/enums/azureopenaiservicetype/azureopenaiservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package azureopenaiservicetype +package azureopenaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L568-L570 +type AzureOpenAIServiceType struct { + Name string +} + +var ( + Azureopenai = AzureOpenAIServiceType{"azureopenai"} +) + +func (a AzureOpenAIServiceType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AzureOpenAIServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "azureopenai": + *a = Azureopenai + default: + *a = AzureOpenAIServiceType{string(text)} + } + + return nil +} + +func (a AzureOpenAIServiceType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/azureopenaitasktype/azureopenaitasktype.go b/typedapi/types/enums/azureopenaitasktype/azureopenaitasktype.go new file mode 100644 index 0000000000..ad61a197b6 --- /dev/null +++ b/typedapi/types/enums/azureopenaitasktype/azureopenaitasktype.go @@ -0,0 +1,57 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package azureopenaitasktype +package azureopenaitasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L563-L566 +type AzureOpenAITaskType struct { + Name string +} + +var ( + Completion = AzureOpenAITaskType{"completion"} + + Textembedding = AzureOpenAITaskType{"text_embedding"} +) + +func (a AzureOpenAITaskType) MarshalText() (text []byte, err error) { + return []byte(a.String()), nil +} + +func (a *AzureOpenAITaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *a = Completion + case "text_embedding": + *a = Textembedding + default: + *a = AzureOpenAITaskType{string(text)} + } + + return nil +} + +func (a AzureOpenAITaskType) String() string { + return a.Name +} diff --git a/typedapi/types/enums/boundaryscanner/boundaryscanner.go b/typedapi/types/enums/boundaryscanner/boundaryscanner.go index 878b042847..d7e7779d51 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package boundaryscanner package boundaryscanner import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/highlighting.ts#L26-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d639dfe1cf..7f78527af2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package bytes package bytes import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L166-L178 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b5a70f005c..3d4741b1c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package calendarinterval package calendarinterval import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L262-L279 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 97c2bd82df..780210ba8d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package cardinalityexecutionmode package cardinalityexecutionmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L64-L85 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 16bfa67fd0..d2616179a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package catanomalydetectorcolumn package catanomalydetectorcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/_types/CatBase.ts#L32-L401 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 834a61fd8a..49be70bade 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package catdatafeedcolumn package catdatafeedcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/_types/CatBase.ts#L405-L471 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1dfa6e39d4..040a79bd01 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package catdfacolumn package catdfacolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/_types/CatBase.ts#L472-L557 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/_types/CatBase.ts#L472-L557 type CatDfaColumn struct { Name string } diff --git a/typedapi/types/enums/categorizationstatus/categorizationstatus.go b/typedapi/types/enums/categorizationstatus/categorizationstatus.go index 2b071df506..6226931b00 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package categorizationstatus package categorizationstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Model.ts#L84-L87 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Model.ts#L84-L87 type CategorizationStatus struct { Name string } diff --git a/typedapi/types/enums/cattrainedmodelscolumn/cattrainedmodelscolumn.go b/typedapi/types/enums/cattrainedmodelscolumn/cattrainedmodelscolumn.go index 90b49fc3b2..3dafeba552 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package cattrainedmodelscolumn package cattrainedmodelscolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/_types/CatBase.ts#L561-L635 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/_types/CatBase.ts#L561-L635 type CatTrainedModelsColumn struct { Name string } diff --git a/typedapi/types/enums/cattransformcolumn/cattransformcolumn.go b/typedapi/types/enums/cattransformcolumn/cattransformcolumn.go index ec86664ca4..2821c1123b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package cattransformcolumn package cattransformcolumn import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/_types/CatBase.ts#L640-L844 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/_types/CatBase.ts#L640-L844 type CatTransformColumn struct { Name string } diff --git a/typedapi/types/enums/childscoremode/childscoremode.go b/typedapi/types/enums/childscoremode/childscoremode.go index fd293ce1b8..866690fae3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package childscoremode package childscoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/joining.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 86d8c3c2f2..d38b6e8843 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package chunkingmode package chunkingmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Datafeed.ts#L245-L249 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Datafeed.ts#L245-L249 type ChunkingMode struct { Name string } diff --git a/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go b/typedapi/types/enums/clusterinfotarget/clusterinfotarget.go index 9b67f3e765..cba8374612 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package clusterinfotarget package clusterinfotarget import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L378-L384 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L378-L384 type ClusterInfoTarget struct { Name string } diff --git a/typedapi/types/enums/clusterprivilege/clusterprivilege.go b/typedapi/types/enums/clusterprivilege/clusterprivilege.go index 22ba9b555c..6903397544 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package clusterprivilege package clusterprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L42-L199 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 26910db9ab..fcf3b4d5fe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package clustersearchstatus package clustersearchstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L37-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L37-L43 type ClusterSearchStatus struct { Name string } diff --git a/typedapi/types/enums/cohereembeddingtype/cohereembeddingtype.go b/typedapi/types/enums/cohereembeddingtype/cohereembeddingtype.go new file mode 100644 index 0000000000..98988705f1 --- /dev/null +++ b/typedapi/types/enums/cohereembeddingtype/cohereembeddingtype.go @@ -0,0 +1,61 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package cohereembeddingtype +package cohereembeddingtype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L625-L629 +type CohereEmbeddingType struct { + Name string +} + +var ( + Byte = CohereEmbeddingType{"byte"} + + Float = CohereEmbeddingType{"float"} + + Int8 = CohereEmbeddingType{"int8"} +) + +func (c CohereEmbeddingType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereEmbeddingType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "byte": + *c = Byte + case "float": + *c = Float + case "int8": + *c = Int8 + default: + *c = CohereEmbeddingType{string(text)} + } + + return nil +} + +func (c CohereEmbeddingType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/cohereinputtype/cohereinputtype.go b/typedapi/types/enums/cohereinputtype/cohereinputtype.go new file mode 100644 index 0000000000..a016f4ece5 --- /dev/null +++ b/typedapi/types/enums/cohereinputtype/cohereinputtype.go @@ -0,0 +1,65 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package cohereinputtype +package cohereinputtype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L631-L636 +type CohereInputType struct { + Name string +} + +var ( + Classification = CohereInputType{"classification"} + + Clustering = CohereInputType{"clustering"} + + Ingest = CohereInputType{"ingest"} + + Search = CohereInputType{"search"} +) + +func (c CohereInputType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereInputType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "classification": + *c = Classification + case "clustering": + *c = Clustering + case "ingest": + *c = Ingest + case "search": + *c = Search + default: + *c = CohereInputType{string(text)} + } + + return nil +} + +func (c CohereInputType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/cohereservicetype/cohereservicetype.go b/typedapi/types/enums/cohereservicetype/cohereservicetype.go new file mode 100644 index 0000000000..4fd7d120d2 --- /dev/null +++ b/typedapi/types/enums/cohereservicetype/cohereservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package cohereservicetype +package cohereservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L621-L623 +type CohereServiceType struct { + Name string +} + +var ( + Cohere = CohereServiceType{"cohere"} +) + +func (c CohereServiceType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "cohere": + *c = Cohere + default: + *c = CohereServiceType{string(text)} + } + + return nil +} + +func (c CohereServiceType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/coheresimilaritytype/coheresimilaritytype.go b/typedapi/types/enums/coheresimilaritytype/coheresimilaritytype.go new file mode 100644 index 0000000000..994fcaf752 --- /dev/null +++ b/typedapi/types/enums/coheresimilaritytype/coheresimilaritytype.go @@ -0,0 +1,61 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package coheresimilaritytype +package coheresimilaritytype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L638-L642 +type CohereSimilarityType struct { + Name string +} + +var ( + Cosine = CohereSimilarityType{"cosine"} + + Dotproduct = CohereSimilarityType{"dot_product"} + + L2norm = CohereSimilarityType{"l2_norm"} +) + +func (c CohereSimilarityType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereSimilarityType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "cosine": + *c = Cosine + case "dot_product": + *c = Dotproduct + case "l2_norm": + *c = L2norm + default: + *c = CohereSimilarityType{string(text)} + } + + return nil +} + +func (c CohereSimilarityType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/coheretasktype/coheretasktype.go b/typedapi/types/enums/coheretasktype/coheretasktype.go new file mode 100644 index 0000000000..80cd2fc1a5 --- /dev/null +++ b/typedapi/types/enums/coheretasktype/coheretasktype.go @@ -0,0 +1,61 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package coheretasktype +package coheretasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L615-L619 +type CohereTaskType struct { + Name string +} + +var ( + Completion = CohereTaskType{"completion"} + + Rerank = CohereTaskType{"rerank"} + + Textembedding = CohereTaskType{"text_embedding"} +) + +func (c CohereTaskType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *c = Completion + case "rerank": + *c = Rerank + case "text_embedding": + *c = Textembedding + default: + *c = CohereTaskType{string(text)} + } + + return nil +} + +func (c CohereTaskType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/coheretruncatetype/coheretruncatetype.go b/typedapi/types/enums/coheretruncatetype/coheretruncatetype.go new file mode 100644 index 0000000000..90fec63814 --- /dev/null +++ b/typedapi/types/enums/coheretruncatetype/coheretruncatetype.go @@ -0,0 +1,61 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package coheretruncatetype +package coheretruncatetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L644-L648 +type CohereTruncateType struct { + Name string +} + +var ( + END = CohereTruncateType{"END"} + + NONE = CohereTruncateType{"NONE"} + + START = CohereTruncateType{"START"} +) + +func (c CohereTruncateType) MarshalText() (text []byte, err error) { + return []byte(c.String()), nil +} + +func (c *CohereTruncateType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "end": + *c = END + case "none": + *c = NONE + case "start": + *c = START + default: + *c = CohereTruncateType{string(text)} + } + + return nil +} + +func (c CohereTruncateType) String() string { + return c.Name +} diff --git a/typedapi/types/enums/combinedfieldsoperator/combinedfieldsoperator.go b/typedapi/types/enums/combinedfieldsoperator/combinedfieldsoperator.go index c2e73a1293..af8ed2bdc3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package combinedfieldsoperator package combinedfieldsoperator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/abstractions.ts#L519-L522 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ea2e34e575..3ecaa6d4aa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package combinedfieldszeroterms package combinedfieldszeroterms import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/abstractions.ts#L524-L533 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0024463fff..2da58e5c59 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package conditionop package conditionop import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Conditions.ts#L41-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 65a83ea130..de94840d00 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package conditionoperator package conditionoperator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Rule.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a5736e9d45..155b7a365a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package conditiontype package conditiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Conditions.ts#L64-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1f22b40b4a..b14ec0c2da 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package conflicts package conflicts import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L180-L189 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ad6036ce22..e9b0fc0750 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package connectionscheme package connectionscheme import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2d22f9abbb..e0076ad5e4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package connectorfieldtype package connectorfieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L43-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fa105b071d..77d1fa6388 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package connectorstatus package connectorstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L130-L136 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d4e41682e7..90f71ca47a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package converttype package converttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L662-L671 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4226f3a6d6..a333587195 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package dataattachmentformat package dataattachmentformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L187-L190 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5ca0c0c8fe..a12b1e1fef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package datafeedstate package datafeedstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Datafeed.ts#L136-L141 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c0c5d59f0c..6f937ac14c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package dataframestate package dataframestate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Dataframe.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 826acf7b5e..b7d99c2119 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package day package day import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Schedule.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c8113194fe..8cd2d567d8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package decision package decision import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L92-L101 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3e9a1ae7f6..0b04996d90 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package delimitedpayloadencoding package delimitedpayloadencoding import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L61-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L61-L65 type DelimitedPayloadEncoding struct { Name string } diff --git a/typedapi/types/enums/densevectorelementtype/densevectorelementtype.go b/typedapi/types/enums/densevectorelementtype/densevectorelementtype.go index 1d958a830c..fac09d37db 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package densevectorelementtype package densevectorelementtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/DenseVectorProperty.ts#L64-L80 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 58017076b2..ad0dd4e921 100644 --- a/typedapi/types/enums/densevectorindexoptionstype/densevectorindexoptionstype.go +++ b/typedapi/types/enums/densevectorindexoptionstype/densevectorindexoptionstype.go @@ -16,19 +16,23 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package densevectorindexoptionstype package densevectorindexoptionstype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/DenseVectorProperty.ts#L164-L197 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/DenseVectorProperty.ts#L168-L213 type DenseVectorIndexOptionsType struct { Name string } var ( + Bbqflat = DenseVectorIndexOptionsType{"bbq_flat"} + + Bbqhnsw = DenseVectorIndexOptionsType{"bbq_hnsw"} + Flat = DenseVectorIndexOptionsType{"flat"} Hnsw = DenseVectorIndexOptionsType{"hnsw"} @@ -49,6 +53,10 @@ func (d DenseVectorIndexOptionsType) MarshalText() (text []byte, err error) { func (d *DenseVectorIndexOptionsType) UnmarshalText(text []byte) error { switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + case "bbq_flat": + *d = Bbqflat + case "bbq_hnsw": + *d = Bbqhnsw case "flat": *d = Flat case "hnsw": diff --git a/typedapi/types/enums/densevectorsimilarity/densevectorsimilarity.go b/typedapi/types/enums/densevectorsimilarity/densevectorsimilarity.go index 69ecf30c91..bad0bbf3ef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package densevectorsimilarity package densevectorsimilarity import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/DenseVectorProperty.ts#L82-L127 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6e03af83ac..e0e30b0544 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package deploymentallocationstate package deploymentallocationstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L330-L343 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6f8915bf47..1c69a73524 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package deploymentassignmentstate package deploymentassignmentstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L345-L362 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a2876a7075..a3a8c07d54 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package deprecationlevel package deprecationlevel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/migration/deprecations/types.ts#L23-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 18c6649e9b..dc2f8efdce 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package dfiindependencemeasure package dfiindependencemeasure import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Similarity.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d737642b18..a278d46b11 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package dfraftereffect package dfraftereffect import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Similarity.ts#L26-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4c2c2b1a9a..574cc3d4e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package dfrbasicmodel package dfrbasicmodel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Similarity.ts#L32-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 352c118008..4acc147bbc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package displaytype package displaytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L35-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d0b3c7c6f0..86e197b767 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package distanceunit package distanceunit import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L30-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f1c18fbc6c..3b448b0cd7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package dynamicmapping package dynamicmapping import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/dynamic-template.ts#L50-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ef6e10c7d2..d8bc9a229e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package ecscompatibilitytype package ecscompatibilitytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/_types/Structure.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2a1f9159d8..484711ac73 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package edgengramside package edgengramside import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L73-L76 type EdgeNGramSide struct { Name string } diff --git a/typedapi/types/enums/elasticsearchservicetype/elasticsearchservicetype.go b/typedapi/types/enums/elasticsearchservicetype/elasticsearchservicetype.go new file mode 100644 index 0000000000..05dba08889 --- /dev/null +++ b/typedapi/types/enums/elasticsearchservicetype/elasticsearchservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package elasticsearchservicetype +package elasticsearchservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L754-L756 +type ElasticsearchServiceType struct { + Name string +} + +var ( + Elasticsearch = ElasticsearchServiceType{"elasticsearch"} +) + +func (e ElasticsearchServiceType) MarshalText() (text []byte, err error) { + return []byte(e.String()), nil +} + +func (e *ElasticsearchServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "elasticsearch": + *e = Elasticsearch + default: + *e = ElasticsearchServiceType{string(text)} + } + + return nil +} + +func (e ElasticsearchServiceType) String() string { + return e.Name +} diff --git a/typedapi/types/enums/elasticsearchtasktype/elasticsearchtasktype.go b/typedapi/types/enums/elasticsearchtasktype/elasticsearchtasktype.go new file mode 100644 index 0000000000..57b91ff6c2 --- /dev/null +++ b/typedapi/types/enums/elasticsearchtasktype/elasticsearchtasktype.go @@ -0,0 +1,61 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package elasticsearchtasktype +package elasticsearchtasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L748-L752 +type ElasticsearchTaskType struct { + Name string +} + +var ( + Rerank = ElasticsearchTaskType{"rerank"} + + Sparseembedding = ElasticsearchTaskType{"sparse_embedding"} + + Textembedding = ElasticsearchTaskType{"text_embedding"} +) + +func (e ElasticsearchTaskType) MarshalText() (text []byte, err error) { + return []byte(e.String()), nil +} + +func (e *ElasticsearchTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "rerank": + *e = Rerank + case "sparse_embedding": + *e = Sparseembedding + case "text_embedding": + *e = Textembedding + default: + *e = ElasticsearchTaskType{string(text)} + } + + return nil +} + +func (e ElasticsearchTaskType) String() string { + return e.Name +} diff --git a/typedapi/types/enums/servicetype/servicetype.go b/typedapi/types/enums/elserservicetype/elserservicetype.go similarity index 60% rename from typedapi/types/enums/servicetype/servicetype.go rename to typedapi/types/enums/elserservicetype/elserservicetype.go index 3edd1d3336..de5b782475 100644 --- a/typedapi/types/enums/servicetype/servicetype.go +++ b/typedapi/types/enums/elserservicetype/elserservicetype.go @@ -16,38 +16,38 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 -// Package servicetype -package servicetype +// Package elserservicetype +package elserservicetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put_watsonx/PutWatsonxRequest.ts#L76-L78 -type ServiceType struct { +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L790-L792 +type ElserServiceType struct { Name string } var ( - Watsonxai = ServiceType{"watsonxai"} + Elser = ElserServiceType{"elser"} ) -func (s ServiceType) MarshalText() (text []byte, err error) { - return []byte(s.String()), nil +func (e ElserServiceType) MarshalText() (text []byte, err error) { + return []byte(e.String()), nil } -func (s *ServiceType) UnmarshalText(text []byte) error { +func (e *ElserServiceType) UnmarshalText(text []byte) error { switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { - case "watsonxai": - *s = Watsonxai + case "elser": + *e = Elser default: - *s = ServiceType{string(text)} + *e = ElserServiceType{string(text)} } return nil } -func (s ServiceType) String() string { - return s.Name +func (e ElserServiceType) String() string { + return e.Name } diff --git a/typedapi/types/enums/elsertasktype/elsertasktype.go b/typedapi/types/enums/elsertasktype/elsertasktype.go new file mode 100644 index 0000000000..ec05994435 --- /dev/null +++ b/typedapi/types/enums/elsertasktype/elsertasktype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package elsertasktype +package elsertasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L786-L788 +type ElserTaskType struct { + Name string +} + +var ( + Sparseembedding = ElserTaskType{"sparse_embedding"} +) + +func (e ElserTaskType) MarshalText() (text []byte, err error) { + return []byte(e.String()), nil +} + +func (e *ElserTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "sparse_embedding": + *e = Sparseembedding + default: + *e = ElserTaskType{string(text)} + } + + return nil +} + +func (e ElserTaskType) String() string { + return e.Name +} diff --git a/typedapi/types/enums/emailpriority/emailpriority.go b/typedapi/types/enums/emailpriority/emailpriority.go index 53c6ce38fb..72f1022f73 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package emailpriority package emailpriority import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L197-L203 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3ae4c9e9b8..901fd2eb77 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package enrichpolicyphase package enrichpolicyphase import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/execute_policy/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/enrich/execute_policy/types.ts#L25-L31 type EnrichPolicyPhase struct { Name string } @@ -36,6 +36,8 @@ var ( COMPLETE = EnrichPolicyPhase{"COMPLETE"} FAILED = EnrichPolicyPhase{"FAILED"} + + CANCELLED = EnrichPolicyPhase{"CANCELLED"} ) func (e EnrichPolicyPhase) MarshalText() (text []byte, err error) { @@ -53,6 +55,8 @@ func (e *EnrichPolicyPhase) UnmarshalText(text []byte) error { *e = COMPLETE case "failed": *e = FAILED + case "cancelled": + *e = CANCELLED default: *e = EnrichPolicyPhase{string(text)} } diff --git a/typedapi/types/enums/esqlclusterstatus/esqlclusterstatus.go b/typedapi/types/enums/esqlclusterstatus/esqlclusterstatus.go new file mode 100644 index 0000000000..e359108559 --- /dev/null +++ b/typedapi/types/enums/esqlclusterstatus/esqlclusterstatus.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package esqlclusterstatus +package esqlclusterstatus + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/esql/_types/EsqlResult.ts#L72-L78 +type EsqlClusterStatus struct { + Name string +} + +var ( + Running = EsqlClusterStatus{"running"} + + Successful = EsqlClusterStatus{"successful"} + + Partial = EsqlClusterStatus{"partial"} + + Skipped = EsqlClusterStatus{"skipped"} + + Failed = EsqlClusterStatus{"failed"} +) + +func (e EsqlClusterStatus) MarshalText() (text []byte, err error) { + return []byte(e.String()), nil +} + +func (e *EsqlClusterStatus) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "running": + *e = Running + case "successful": + *e = Successful + case "partial": + *e = Partial + case "skipped": + *e = Skipped + case "failed": + *e = Failed + default: + *e = EsqlClusterStatus{string(text)} + } + + return nil +} + +func (e EsqlClusterStatus) String() string { + return e.Name +} diff --git a/typedapi/types/enums/esqlformat/esqlformat.go b/typedapi/types/enums/esqlformat/esqlformat.go index 1955066363..3ec42aa9bd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package esqlformat package esqlformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/_types/QueryParameters.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f3ae6d4823..109cb182d8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package eventtype package eventtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/_types/AnalyticsEvent.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4a58712412..fbb87959bc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package excludefrequent package excludefrequent import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Detector.ts#L145-L150 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4462fa8c01..922ddea957 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package executionphase package executionphase import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Execution.ts#L49-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 10d2eb7800..bc175e8b13 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package executionstatus package executionstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Execution.ts#L38-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 20e2b26a98..b48ad2961b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package expandwildcard package expandwildcard import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L198-L212 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 6df36ccb87..0e68da7768 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package failurestorestatus package failurestorestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/bulk/types.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cb50c262d8..57c5cde712 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package feature package feature import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get/IndicesGetRequest.ts#L98-L102 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 07122e5716..15a20685c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package fieldsortnumerictype package fieldsortnumerictype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L36-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f021b44a3d..374146bf45 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package fieldtype package fieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/Property.ts#L191-L240 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/Property.ts#L191-L240 type FieldType struct { Name string } diff --git a/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go b/typedapi/types/enums/fieldvaluefactormodifier/fieldvaluefactormodifier.go index 42d531e8f8..7dcc14fad3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package fieldvaluefactormodifier package fieldvaluefactormodifier import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L323-L366 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bfb5112ad8..29b94de18a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package filteringpolicy package filteringpolicy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L155-L158 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 193f72d748..47eef63f66 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package filteringrulerule package filteringrulerule import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L160-L168 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1de3bb079b..a7e6d8741f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package filteringvalidationstate package filteringvalidationstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L186-L190 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f54c3f24f5..4733b61e83 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package filtertype package filtertype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Filter.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ee1921482a..bc5ad945c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package fingerprintdigest package fingerprintdigest import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L897-L903 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 723c163041..97f0261c71 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package followerindexstatus package followerindexstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/follow_info/types.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e66ae84fff..7e8eef0a3e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package formattype package formattype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/_types/Structure.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2ba39911e8..40d6cb0997 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package functionboostmode package functionboostmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L295-L321 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3b85190228..5127f5e0d2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package functionscoremode package functionscoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L268-L293 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e6c4e7e882..a14cbd257d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package gappolicy package gappolicy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L61-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2181269e2a..56a8767df4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package geodistancetype package geodistancetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L42-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2ff7bc417a..d66fc1bc67 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package geoexecution package geoexecution import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/geo.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 021f9ed512..1504de1250 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package geogridtargetformat package geogridtargetformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L438-L441 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 50231b6cbe..77149215a0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package geogridtiletype package geogridtiletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L432-L436 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0c551ec384..f00d2a45d4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package geoorientation package geoorientation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/geo.ts#L34-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/geo.ts#L34-L39 type GeoOrientation struct { Name string } diff --git a/typedapi/types/enums/geoshaperelation/geoshaperelation.go b/typedapi/types/enums/geoshaperelation/geoshaperelation.go index 8f99e1e903..3838989b99 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package geoshaperelation package geoshaperelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L64-L82 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3e0e4b0e32..5216e60d2d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package geostrategy package geostrategy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/geo.ts#L57-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/geo.ts#L57-L60 type GeoStrategy struct { Name string } diff --git a/typedapi/types/enums/geovalidationmethod/geovalidationmethod.go b/typedapi/types/enums/geovalidationmethod/geovalidationmethod.go index 77010c9417..1153b57875 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package geovalidationmethod package geovalidationmethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/geo.ts#L173-L183 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/geo.ts#L173-L183 type GeoValidationMethod struct { Name string } diff --git a/typedapi/types/enums/googleaiservicetype/googleaiservicetype.go b/typedapi/types/enums/googleaiservicetype/googleaiservicetype.go new file mode 100644 index 0000000000..928bf4b040 --- /dev/null +++ b/typedapi/types/enums/googleaiservicetype/googleaiservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package googleaiservicetype +package googleaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L817-L819 +type GoogleAiServiceType struct { + Name string +} + +var ( + Googleaistudio = GoogleAiServiceType{"googleaistudio"} +) + +func (g GoogleAiServiceType) MarshalText() (text []byte, err error) { + return []byte(g.String()), nil +} + +func (g *GoogleAiServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "googleaistudio": + *g = Googleaistudio + default: + *g = GoogleAiServiceType{string(text)} + } + + return nil +} + +func (g GoogleAiServiceType) String() string { + return g.Name +} diff --git a/typedapi/types/enums/googleaistudiotasktype/googleaistudiotasktype.go b/typedapi/types/enums/googleaistudiotasktype/googleaistudiotasktype.go new file mode 100644 index 0000000000..622556d090 --- /dev/null +++ b/typedapi/types/enums/googleaistudiotasktype/googleaistudiotasktype.go @@ -0,0 +1,57 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package googleaistudiotasktype +package googleaistudiotasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L812-L815 +type GoogleAiStudioTaskType struct { + Name string +} + +var ( + Completion = GoogleAiStudioTaskType{"completion"} + + Textembedding = GoogleAiStudioTaskType{"text_embedding"} +) + +func (g GoogleAiStudioTaskType) MarshalText() (text []byte, err error) { + return []byte(g.String()), nil +} + +func (g *GoogleAiStudioTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "completion": + *g = Completion + case "text_embedding": + *g = Textembedding + default: + *g = GoogleAiStudioTaskType{string(text)} + } + + return nil +} + +func (g GoogleAiStudioTaskType) String() string { + return g.Name +} diff --git a/typedapi/types/enums/googlevertexaiservicetype/googlevertexaiservicetype.go b/typedapi/types/enums/googlevertexaiservicetype/googlevertexaiservicetype.go new file mode 100644 index 0000000000..0def100da9 --- /dev/null +++ b/typedapi/types/enums/googlevertexaiservicetype/googlevertexaiservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package googlevertexaiservicetype +package googlevertexaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L865-L867 +type GoogleVertexAIServiceType struct { + Name string +} + +var ( + Googlevertexai = GoogleVertexAIServiceType{"googlevertexai"} +) + +func (g GoogleVertexAIServiceType) MarshalText() (text []byte, err error) { + return []byte(g.String()), nil +} + +func (g *GoogleVertexAIServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "googlevertexai": + *g = Googlevertexai + default: + *g = GoogleVertexAIServiceType{string(text)} + } + + return nil +} + +func (g GoogleVertexAIServiceType) String() string { + return g.Name +} diff --git a/typedapi/types/enums/googlevertexaitasktype/googlevertexaitasktype.go b/typedapi/types/enums/googlevertexaitasktype/googlevertexaitasktype.go new file mode 100644 index 0000000000..2b3626c18a --- /dev/null +++ b/typedapi/types/enums/googlevertexaitasktype/googlevertexaitasktype.go @@ -0,0 +1,57 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package googlevertexaitasktype +package googlevertexaitasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L860-L863 +type GoogleVertexAITaskType struct { + Name string +} + +var ( + Rerank = GoogleVertexAITaskType{"rerank"} + + Textembedding = GoogleVertexAITaskType{"text_embedding"} +) + +func (g GoogleVertexAITaskType) MarshalText() (text []byte, err error) { + return []byte(g.String()), nil +} + +func (g *GoogleVertexAITaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "rerank": + *g = Rerank + case "text_embedding": + *g = Textembedding + default: + *g = GoogleVertexAITaskType{string(text)} + } + + return nil +} + +func (g GoogleVertexAITaskType) String() string { + return g.Name +} diff --git a/typedapi/types/enums/granttype/granttype.go b/typedapi/types/enums/granttype/granttype.go index 2026f6b930..9a53f8ead3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package granttype package granttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/GrantType.ts#L20-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3f53d36d01..07a4c4b214 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package gridaggregationtype package gridaggregationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search_mvt/_types/GridType.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2ba4a3c047..2eb077693e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package gridtype package gridtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search_mvt/_types/GridType.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cdef396f7b..0fa83d1dd0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package groupby package groupby import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/tasks/_types/GroupBy.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ca265f89e2..c42b87f685 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package healthstatus package healthstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L216-L236 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L216-L236 type HealthStatus struct { Name string } diff --git a/typedapi/types/enums/highlighterencoder/highlighterencoder.go b/typedapi/types/enums/highlighterencoder/highlighterencoder.go index 4384d054be..91f792dda8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package highlighterencoder package highlighterencoder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/highlighting.ts#L157-L160 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 70d7233543..a667a1ac65 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package highlighterfragmenter package highlighterfragmenter import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/highlighting.ts#L162-L165 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5fd65eb7c5..1d2ea2292a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package highlighterorder package highlighterorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/highlighting.ts#L167-L169 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2a5bc4bb75..6c8e120965 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package highlightertagsschema package highlightertagsschema import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/highlighting.ts#L171-L173 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a2fcdb2b14..774bddc862 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package highlightertype package highlightertype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/highlighting.ts#L175-L190 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 955e0bec02..7086fec00b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package holtwinterstype package holtwinterstype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L309-L312 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ad8d4572d3..f58818e8bd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package httpinputmethod package httpinputmethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L59-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L59-L65 type HttpInputMethod struct { Name string } diff --git a/typedapi/types/enums/huggingfaceservicetype/huggingfaceservicetype.go b/typedapi/types/enums/huggingfaceservicetype/huggingfaceservicetype.go new file mode 100644 index 0000000000..b23e2c758d --- /dev/null +++ b/typedapi/types/enums/huggingfaceservicetype/huggingfaceservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package huggingfaceservicetype +package huggingfaceservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L896-L898 +type HuggingFaceServiceType struct { + Name string +} + +var ( + Huggingface = HuggingFaceServiceType{"hugging_face"} +) + +func (h HuggingFaceServiceType) MarshalText() (text []byte, err error) { + return []byte(h.String()), nil +} + +func (h *HuggingFaceServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "hugging_face": + *h = Huggingface + default: + *h = HuggingFaceServiceType{string(text)} + } + + return nil +} + +func (h HuggingFaceServiceType) String() string { + return h.Name +} diff --git a/typedapi/types/enums/huggingfacetasktype/huggingfacetasktype.go b/typedapi/types/enums/huggingfacetasktype/huggingfacetasktype.go new file mode 100644 index 0000000000..0d9ec70cff --- /dev/null +++ b/typedapi/types/enums/huggingfacetasktype/huggingfacetasktype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package huggingfacetasktype +package huggingfacetasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L892-L894 +type HuggingFaceTaskType struct { + Name string +} + +var ( + Textembedding = HuggingFaceTaskType{"text_embedding"} +) + +func (h HuggingFaceTaskType) MarshalText() (text []byte, err error) { + return []byte(h.String()), nil +} + +func (h *HuggingFaceTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *h = Textembedding + default: + *h = HuggingFaceTaskType{string(text)} + } + + return nil +} + +func (h HuggingFaceTaskType) String() string { + return h.Name +} diff --git a/typedapi/types/enums/ibdistribution/ibdistribution.go b/typedapi/types/enums/ibdistribution/ibdistribution.go index 9247361942..db68f1bba3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package ibdistribution package ibdistribution import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Similarity.ts#L42-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 168285346b..e0bb158125 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package iblambda package iblambda import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Similarity.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 df95c075a5..10a9ad880e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package icucollationalternate package icucollationalternate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L89-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L89-L92 type IcuCollationAlternate struct { Name string } diff --git a/typedapi/types/enums/icucollationcasefirst/icucollationcasefirst.go b/typedapi/types/enums/icucollationcasefirst/icucollationcasefirst.go index b19a4ddbcd..5c9d2474ff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package icucollationcasefirst package icucollationcasefirst import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L94-L97 type IcuCollationCaseFirst struct { Name string } diff --git a/typedapi/types/enums/icucollationdecomposition/icucollationdecomposition.go b/typedapi/types/enums/icucollationdecomposition/icucollationdecomposition.go index fa08ac3877..5deb363def 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package icucollationdecomposition package icucollationdecomposition import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L99-L102 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L99-L102 type IcuCollationDecomposition struct { Name string } diff --git a/typedapi/types/enums/icucollationstrength/icucollationstrength.go b/typedapi/types/enums/icucollationstrength/icucollationstrength.go index 3d2437e404..1c19826466 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package icucollationstrength package icucollationstrength import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L104-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L104-L110 type IcuCollationStrength struct { Name string } diff --git a/typedapi/types/enums/icunormalizationmode/icunormalizationmode.go b/typedapi/types/enums/icunormalizationmode/icunormalizationmode.go index 6cedc9def2..1a4b6e8d78 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package icunormalizationmode package icunormalizationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L78-L81 type IcuNormalizationMode struct { Name string } diff --git a/typedapi/types/enums/icunormalizationtype/icunormalizationtype.go b/typedapi/types/enums/icunormalizationtype/icunormalizationtype.go index 19725f84e8..91550e00a6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package icunormalizationtype package icunormalizationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L83-L87 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L83-L87 type IcuNormalizationType struct { Name string } diff --git a/typedapi/types/enums/icutransformdirection/icutransformdirection.go b/typedapi/types/enums/icutransformdirection/icutransformdirection.go index 7c9c27931c..0c219c8488 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package icutransformdirection package icutransformdirection import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L73-L76 type IcuTransformDirection struct { Name string } diff --git a/typedapi/types/enums/impactarea/impactarea.go b/typedapi/types/enums/impactarea/impactarea.go index 1bbbbc4834..6542af195a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package impactarea package impactarea import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L74-L79 type ImpactArea struct { Name string } diff --git a/typedapi/types/enums/include/include.go b/typedapi/types/enums/include/include.go index 80a82a2d7b..0f7faa2916 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package include package include import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Include.ts#L20-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3c3c59fe44..80bb289f10 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package indexcheckonstartup package indexcheckonstartup import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L270-L277 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L270-L277 type IndexCheckOnStartup struct { Name string } diff --git a/typedapi/types/enums/indexingjobstate/indexingjobstate.go b/typedapi/types/enums/indexingjobstate/indexingjobstate.go index 67a427718e..e2938ccf55 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package indexingjobstate package indexingjobstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_jobs/types.ts#L77-L83 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b78b43e672..c0e29d7d89 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package indexmetadatastate package indexmetadatastate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L225-L232 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L225-L232 type IndexMetadataState struct { Name string } diff --git a/typedapi/types/enums/indexmode/indexmode.go b/typedapi/types/enums/indexmode/indexmode.go index e5be8f58ad..917b09d249 100644 --- a/typedapi/types/enums/indexmode/indexmode.go +++ b/typedapi/types/enums/indexmode/indexmode.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package indexmode package indexmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DataStream.ts#L40-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/DataStream.ts#L40-L45 type IndexMode struct { Name string } diff --git a/typedapi/types/enums/indexoptions/indexoptions.go b/typedapi/types/enums/indexoptions/indexoptions.go index 15869bace1..f8caa0866c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package indexoptions package indexoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L274-L279 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L283-L288 type IndexOptions struct { Name string } diff --git a/typedapi/types/enums/indexprivilege/indexprivilege.go b/typedapi/types/enums/indexprivilege/indexprivilege.go index 3a8de827c0..fd2366906c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package indexprivilege package indexprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L386-L428 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f01188c2b3..d2c855e4fa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package indexroutingallocationoptions package indexroutingallocationoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexRouting.ts#L38-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 39bcf9d78e..dcd4cde2d5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package indexroutingrebalanceoptions package indexroutingrebalanceoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexRouting.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3111a74d65..cf134b102e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package indicatorhealthstatus package indicatorhealthstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L25-L30 type IndicatorHealthStatus struct { Name string } diff --git a/typedapi/types/enums/indicesblockoptions/indicesblockoptions.go b/typedapi/types/enums/indicesblockoptions/indicesblockoptions.go index c859ff0aca..5b8d08b150 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package indicesblockoptions package indicesblockoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/add_block/IndicesAddBlockRequest.ts#L91-L100 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9bf85d53c9..db9dee7fc4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package inputtype package inputtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L100-L104 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L100-L104 type InputType struct { Name string } diff --git a/typedapi/types/enums/jinaaiservicetype/jinaaiservicetype.go b/typedapi/types/enums/jinaaiservicetype/jinaaiservicetype.go new file mode 100644 index 0000000000..9658f88356 --- /dev/null +++ b/typedapi/types/enums/jinaaiservicetype/jinaaiservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package jinaaiservicetype +package jinaaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L959-L961 +type JinaAIServiceType struct { + Name string +} + +var ( + Jinaai = JinaAIServiceType{"jinaai"} +) + +func (j JinaAIServiceType) MarshalText() (text []byte, err error) { + return []byte(j.String()), nil +} + +func (j *JinaAIServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "jinaai": + *j = Jinaai + default: + *j = JinaAIServiceType{string(text)} + } + + return nil +} + +func (j JinaAIServiceType) String() string { + return j.Name +} diff --git a/typedapi/types/enums/jinaaisimilaritytype/jinaaisimilaritytype.go b/typedapi/types/enums/jinaaisimilaritytype/jinaaisimilaritytype.go new file mode 100644 index 0000000000..8dbf6caff1 --- /dev/null +++ b/typedapi/types/enums/jinaaisimilaritytype/jinaaisimilaritytype.go @@ -0,0 +1,61 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package jinaaisimilaritytype +package jinaaisimilaritytype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L963-L967 +type JinaAISimilarityType struct { + Name string +} + +var ( + Cosine = JinaAISimilarityType{"cosine"} + + Dotproduct = JinaAISimilarityType{"dot_product"} + + L2norm = JinaAISimilarityType{"l2_norm"} +) + +func (j JinaAISimilarityType) MarshalText() (text []byte, err error) { + return []byte(j.String()), nil +} + +func (j *JinaAISimilarityType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "cosine": + *j = Cosine + case "dot_product": + *j = Dotproduct + case "l2_norm": + *j = L2norm + default: + *j = JinaAISimilarityType{string(text)} + } + + return nil +} + +func (j JinaAISimilarityType) String() string { + return j.Name +} diff --git a/typedapi/types/enums/jinaaitasktype/jinaaitasktype.go b/typedapi/types/enums/jinaaitasktype/jinaaitasktype.go new file mode 100644 index 0000000000..11cde101ce --- /dev/null +++ b/typedapi/types/enums/jinaaitasktype/jinaaitasktype.go @@ -0,0 +1,57 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package jinaaitasktype +package jinaaitasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L954-L957 +type JinaAITaskType struct { + Name string +} + +var ( + Rerank = JinaAITaskType{"rerank"} + + Textembedding = JinaAITaskType{"text_embedding"} +) + +func (j JinaAITaskType) MarshalText() (text []byte, err error) { + return []byte(j.String()), nil +} + +func (j *JinaAITaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "rerank": + *j = Rerank + case "text_embedding": + *j = Textembedding + default: + *j = JinaAITaskType{string(text)} + } + + return nil +} + +func (j JinaAITaskType) String() string { + return j.Name +} diff --git a/typedapi/types/enums/jinaaitextembeddingtask/jinaaitextembeddingtask.go b/typedapi/types/enums/jinaaitextembeddingtask/jinaaitextembeddingtask.go new file mode 100644 index 0000000000..cf97e314a1 --- /dev/null +++ b/typedapi/types/enums/jinaaitextembeddingtask/jinaaitextembeddingtask.go @@ -0,0 +1,65 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package jinaaitextembeddingtask +package jinaaitextembeddingtask + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L969-L974 +type JinaAITextEmbeddingTask struct { + Name string +} + +var ( + Classification = JinaAITextEmbeddingTask{"classification"} + + Clustering = JinaAITextEmbeddingTask{"clustering"} + + Ingest = JinaAITextEmbeddingTask{"ingest"} + + Search = JinaAITextEmbeddingTask{"search"} +) + +func (j JinaAITextEmbeddingTask) MarshalText() (text []byte, err error) { + return []byte(j.String()), nil +} + +func (j *JinaAITextEmbeddingTask) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "classification": + *j = Classification + case "clustering": + *j = Clustering + case "ingest": + *j = Ingest + case "search": + *j = Search + default: + *j = JinaAITextEmbeddingTask{string(text)} + } + + return nil +} + +func (j JinaAITextEmbeddingTask) String() string { + return j.Name +} diff --git a/typedapi/types/enums/jobblockedreason/jobblockedreason.go b/typedapi/types/enums/jobblockedreason/jobblockedreason.go index 8c79d0113b..6a5e6b8806 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package jobblockedreason package jobblockedreason import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Job.ts#L397-L401 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2bbbbe15c9..62b394035a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package jobstate package jobstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Job.ts#L36-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9c018bbd8d..c2f7186c9f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package jsonprocessorconflictstrategy package jsonprocessorconflictstrategy import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1152-L1157 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a2c242c40a..e785736d3a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package keeptypesmode package keeptypesmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L214-L217 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L214-L217 type KeepTypesMode struct { Name string } diff --git a/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go b/typedapi/types/enums/kuromojitokenizationmode/kuromojitokenizationmode.go index f3e749e26c..3a20b37516 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package kuromojitokenizationmode package kuromojitokenizationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/kuromoji-plugin.ts#L52-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/kuromoji-plugin.ts#L52-L56 type KuromojiTokenizationMode struct { Name string } diff --git a/typedapi/types/enums/level/level.go b/typedapi/types/enums/level/level.go index aa41aaa700..0b8ce4cbf7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package level package level import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L246-L250 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L246-L250 type Level struct { Name string } diff --git a/typedapi/types/enums/licensestatus/licensestatus.go b/typedapi/types/enums/licensestatus/licensestatus.go index d6dabd8057..fbbaca5f4d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package licensestatus package licensestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/_types/License.ts#L35-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f13a3a59e8..4dbe8939c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package licensetype package licensetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/_types/License.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a894cceeac..5453e31554 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package lifecycleoperationmode package lifecycleoperationmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Lifecycle.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Lifecycle.ts#L20-L24 type LifecycleOperationMode struct { Name string } diff --git a/typedapi/types/enums/managedby/managedby.go b/typedapi/types/enums/managedby/managedby.go index 0dc6a02e59..5a55e1b960 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package managedby package managedby import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DataStream.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c830362a32..4a30c46dd2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package matchtype package matchtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/dynamic-template.ts#L45-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f69674295b..e4e4014ffb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package memorystatus package memorystatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Model.ts#L89-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4555ebc816..66c9d34ec4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package metric package metric import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/_types/Metric.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5cd8f58b91..f3cc5d7d83 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package migrationstatus package migrationstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e90fefa0b9..c354dba5ff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package minimuminterval package minimuminterval import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L112-L119 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3733f366d6..8d4f4010cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package missingorder package missingorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/AggregationContainer.ts#L536-L540 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/AggregationContainer.ts#L536-L540 type MissingOrder struct { Name string } diff --git a/typedapi/types/enums/mistralservicetype/mistralservicetype.go b/typedapi/types/enums/mistralservicetype/mistralservicetype.go new file mode 100644 index 0000000000..d4e02670b5 --- /dev/null +++ b/typedapi/types/enums/mistralservicetype/mistralservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package mistralservicetype +package mistralservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1009-L1011 +type MistralServiceType struct { + Name string +} + +var ( + Mistral = MistralServiceType{"mistral"} +) + +func (m MistralServiceType) MarshalText() (text []byte, err error) { + return []byte(m.String()), nil +} + +func (m *MistralServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "mistral": + *m = Mistral + default: + *m = MistralServiceType{string(text)} + } + + return nil +} + +func (m MistralServiceType) String() string { + return m.Name +} diff --git a/typedapi/types/enums/mistraltasktype/mistraltasktype.go b/typedapi/types/enums/mistraltasktype/mistraltasktype.go new file mode 100644 index 0000000000..176228d017 --- /dev/null +++ b/typedapi/types/enums/mistraltasktype/mistraltasktype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package mistraltasktype +package mistraltasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1005-L1007 +type MistralTaskType struct { + Name string +} + +var ( + Textembedding = MistralTaskType{"text_embedding"} +) + +func (m MistralTaskType) MarshalText() (text []byte, err error) { + return []byte(m.String()), nil +} + +func (m *MistralTaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *m = Textembedding + default: + *m = MistralTaskType{string(text)} + } + + return nil +} + +func (m MistralTaskType) String() string { + return m.Name +} diff --git a/typedapi/types/enums/modeenum/modeenum.go b/typedapi/types/enums/modeenum/modeenum.go index 9f56ee5ee7..c061ac8439 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package modeenum package modeenum import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fc5b21065c..faf58a866a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package month package month import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Schedule.ts#L65-L78 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0176554162..b5bb1b4eb6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package multivaluemode package multivaluemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L368-L385 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1cfa5f3a7e..b7a265d9ef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package noderole package noderole import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Node.ts#L71-L89 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5c5bd01c21..c5b64c93d4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package noridecompoundmode package noridecompoundmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/nori-plugin.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/nori-plugin.ts#L22-L26 type NoriDecompoundMode struct { Name string } diff --git a/typedapi/types/enums/normalization/normalization.go b/typedapi/types/enums/normalization/normalization.go index 52ea792b4c..280369cc7c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package normalization package normalization import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Similarity.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5797daecde..53c6bc92f4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package normalizemethod package normalizemethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L361-L387 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dd50ea5303..777be2e17c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package numericfielddataformat package numericfielddataformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/NumericFielddataFormat.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ee03dbb1b4..07e5d5f521 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package onscripterror package onscripterror import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L141-L144 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 new file mode 100644 index 0000000000..2df7bb3eec --- /dev/null +++ b/typedapi/types/enums/openaiservicetype/openaiservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package openaiservicetype +package openaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1071-L1073 +type OpenAIServiceType struct { + Name string +} + +var ( + Openai = OpenAIServiceType{"openai"} +) + +func (o OpenAIServiceType) MarshalText() (text []byte, err error) { + return []byte(o.String()), nil +} + +func (o *OpenAIServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "openai": + *o = Openai + default: + *o = OpenAIServiceType{string(text)} + } + + return nil +} + +func (o OpenAIServiceType) String() string { + return o.Name +} diff --git a/typedapi/types/enums/openaitasktype/openaitasktype.go b/typedapi/types/enums/openaitasktype/openaitasktype.go index 2d1c68f099..cc579ecb17 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package openaitasktype package openaitasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put_openai/PutOpenAiRequest.ts#L84-L88 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1065-L1069 type OpenAITaskType struct { Name string } diff --git a/typedapi/types/enums/operationtype/operationtype.go b/typedapi/types/enums/operationtype/operationtype.go index 6b41899510..a320af3a95 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package operationtype package operationtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/bulk/types.ts#L93-L98 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bc98bc30c6..f318ab45d1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package operator package operator import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/Operator.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cdd2569a6b..b0189ac9ec 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package optype package optype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L252-L261 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L252-L261 type OpType struct { Name string } diff --git a/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go b/typedapi/types/enums/pagerdutycontexttype/pagerdutycontexttype.go index f7d4411650..19c833a682 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package pagerdutycontexttype package pagerdutycontexttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f8c3ca82b9..75edd31b91 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package pagerdutyeventtype package pagerdutyeventtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L72-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4aaebf8348..786e2c4626 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package painlesscontext package painlesscontext import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/scripts_painless_execute/types.ts#L57-L80 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3d27c81b47..e7ef9401d9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package phoneticencoder package phoneticencoder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/phonetic-plugin.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 aff3aae1d2..961dd06c94 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package phoneticlanguage package phoneticlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/phonetic-plugin.ts#L38-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ada7b00274..4d5952209e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package phoneticnametype package phoneticnametype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/phonetic-plugin.ts#L53-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1d1d7e3009..d8fef05043 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package phoneticruletype package phoneticruletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/phonetic-plugin.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/phonetic-plugin.ts#L59-L62 type PhoneticRuleType struct { Name string } diff --git a/typedapi/types/enums/policytype/policytype.go b/typedapi/types/enums/policytype/policytype.go index 481c8801fa..7761b265bc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package policytype package policytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/_types/Policy.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 309f151d00..9c80b038ae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package quantifier package quantifier import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Conditions.ts#L74-L77 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 96914b34bf..9e88b186c7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package queryrulecriteriatype package queryrulecriteriatype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/_types/QueryRuleset.ts#L95-L108 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 81deb7b844..ee0240dfe5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package queryruletype package queryruletype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/_types/QueryRuleset.ts#L60-L63 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5679378de2..58c2e492fb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package rangerelation package rangerelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L188-L201 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L188-L201 type RangeRelation struct { Name string } diff --git a/typedapi/types/enums/ratemode/ratemode.go b/typedapi/types/enums/ratemode/ratemode.go index 6cf26fb287..5262ac0882 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package ratemode package ratemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L252-L261 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c7b37dc2ef..b434363607 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package refresh package refresh import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L263-L270 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L263-L270 type Refresh struct { Name string } diff --git a/typedapi/types/enums/remoteclusterprivilege/remoteclusterprivilege.go b/typedapi/types/enums/remoteclusterprivilege/remoteclusterprivilege.go index 3e1cd7c8eb..e8c85d2d63 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package remoteclusterprivilege package remoteclusterprivilege import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L201-L213 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 817273482b..d0e0709cef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package responsecontenttype package responsecontenttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L106-L110 type ResponseContentType struct { Name string } diff --git a/typedapi/types/enums/restrictionworkflow/restrictionworkflow.go b/typedapi/types/enums/restrictionworkflow/restrictionworkflow.go index 3f57aff254..6342ed3905 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package restrictionworkflow package restrictionworkflow import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/RoleDescriptor.ts#L143-L146 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1e19e7890b..d012637f13 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package result package result import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Result.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4641eb9c52..6671a31f71 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package resultposition package resultposition import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/eql/search/types.ts#L20-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 417ed158f3..54b1dd077f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package routingstate package routingstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L407-L428 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f5c0dfe210..4038345c5e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package ruleaction package ruleaction import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Rule.ts#L41-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4622190454..6ef73c1558 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package runtimefieldtype package runtimefieldtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/RuntimeFields.ts#L62-L73 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 be76b948ef..d635feffa5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package sampleraggregationexecutionhint package sampleraggregationexecutionhint import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L359-L372 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 586e64f0da..b1f3bc7cc6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package scoremode package scoremode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/rescoring.ts#L64-L86 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/rescoring.ts#L64-L86 type ScoreMode struct { Name string } diff --git a/typedapi/types/enums/scriptlanguage/scriptlanguage.go b/typedapi/types/enums/scriptlanguage/scriptlanguage.go index 5bbc1c833d..091ec61853 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package scriptlanguage package scriptlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Scripting.ts#L24-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 429e529a26..afcf3b309d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package scriptsorttype package scriptsorttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L80-L84 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e281a4a17e..838b25dbce 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package searchtype package searchtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L272-L277 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L272-L277 type SearchType struct { Name string } diff --git a/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go b/typedapi/types/enums/segmentsortmissing/segmentsortmissing.go index 34c2d9eee2..dbbfca0e53 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package segmentsortmissing package segmentsortmissing import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSegmentSort.ts#L43-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c013d6fe37..9b4c39ceb3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package segmentsortmode package segmentsortmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSegmentSort.ts#L36-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2f8b557f4d..c5ada9d01e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package segmentsortorder package segmentsortorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSegmentSort.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3b97a4a2a2..2aedbe4df6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package shapetype package shapetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1474-L1477 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a6f63a61c7..7c49ff33a7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package shardroutingstate package shardroutingstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L169-L174 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 98ca45a948..220ba31503 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package shardsstatsstage package shardsstatsstage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotShardsStatsStage.ts#L20-L31 type ShardsStatsStage struct { Name string } diff --git a/typedapi/types/enums/shardstoreallocation/shardstoreallocation.go b/typedapi/types/enums/shardstoreallocation/shardstoreallocation.go index 5defd13024..3545742636 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package shardstoreallocation package shardstoreallocation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/shard_stores/types.ts#L47-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5a52cb2b25..7788992f96 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package shardstorestatus package shardstorestatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/shard_stores/types.ts#L62-L71 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c534b97892..abf3258d12 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package shutdownstatus package shutdownstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c14a85d259..5c80c5b0a3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package shutdowntype package shutdowntype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ada15ca4ed..180af262cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package simplequerystringflag package simplequerystringflag import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L729-L784 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L729-L784 type SimpleQueryStringFlag struct { Name string } diff --git a/typedapi/types/enums/slicescalculation/slicescalculation.go b/typedapi/types/enums/slicescalculation/slicescalculation.go index 93ec1022ba..5bbcdd6fb0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package slicescalculation package slicescalculation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L368-L376 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L368-L376 type SlicesCalculation struct { Name string } diff --git a/typedapi/types/enums/snapshotsort/snapshotsort.go b/typedapi/types/enums/snapshotsort/snapshotsort.go index 24235b104c..91723aed51 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package snapshotsort package snapshotsort import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotInfo.ts#L73-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d51f27d0fb..07c8513b92 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package snapshotupgradestate package snapshotupgradestate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Model.ts#L95-L100 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 222f46c799..e9f70a0271 100644 --- a/typedapi/types/enums/snowballlanguage/snowballlanguage.go +++ b/typedapi/types/enums/snowballlanguage/snowballlanguage.go @@ -16,14 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package snowballlanguage package snowballlanguage import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/languages.ts#L20-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/languages.ts#L20-L43 type SnowballLanguage struct { Name string } diff --git a/typedapi/types/enums/sortmode/sortmode.go b/typedapi/types/enums/sortmode/sortmode.go index a5605ef0ce..08cbe99d45 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package sortmode package sortmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L108-L117 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c9afc70244..611d40f01f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package sortorder package sortorder import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L119-L128 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b3ad1035e0..02cb07661a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package sourcefieldmode package sourcefieldmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/meta-fields.ts#L67-L75 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 26e0591f58..6662cd861a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package sourcemode package sourcemode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L509-L513 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L509-L513 type SourceMode struct { Name string } diff --git a/typedapi/types/enums/sqlformat/sqlformat.go b/typedapi/types/enums/sqlformat/sqlformat.go index 943ce7753f..b7ee8d9c0b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package sqlformat package sqlformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/sql/query/QuerySqlRequest.ts#L154-L162 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/sql/query/QuerySqlRequest.ts#L154-L162 type SqlFormat struct { Name string } diff --git a/typedapi/types/enums/statslevel/statslevel.go b/typedapi/types/enums/statslevel/statslevel.go index 3fd08bef4b..951c164edd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package statslevel package statslevel import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/searchable_snapshots/_types/stats.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/searchable_snapshots/_types/stats.ts#L20-L24 type StatsLevel struct { Name string } diff --git a/typedapi/types/enums/storagetype/storagetype.go b/typedapi/types/enums/storagetype/storagetype.go index 28d0ed16a6..a9836c805c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package storagetype package storagetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L545-L573 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L545-L573 type StorageType struct { Name string } diff --git a/typedapi/types/enums/stringdistance/stringdistance.go b/typedapi/types/enums/stringdistance/stringdistance.go index b7f4fb15b8..7b903c958c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package stringdistance package stringdistance import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L472-L493 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5d2382c7ad..d371f5ff11 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package subobjects package subobjects import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/TypeMapping.ts#L63-L74 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7a7c5c8174..d51ebf3f2d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package suggestmode package suggestmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L279-L292 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L279-L292 type SuggestMode struct { Name string } diff --git a/typedapi/types/enums/suggestsort/suggestsort.go b/typedapi/types/enums/suggestsort/suggestsort.go index ee83d7e7cf..950bff2ba3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package suggestsort package suggestsort import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L495-L504 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 dcd8b09e63..5ddfdba031 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package syncjobtriggermethod package syncjobtriggermethod import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/SyncJob.ts#L48-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 815e553360..e91b15abea 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package syncjobtype package syncjobtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/SyncJob.ts#L42-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 722d47433b..9588705393 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package syncstatus package syncstatus import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L138-L146 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4fa84b6864..b7519bf9b7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package synonymformat package synonymformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L104-L107 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L104-L107 type SynonymFormat struct { Name string } diff --git a/typedapi/types/enums/syntheticsourcekeepenum/syntheticsourcekeepenum.go b/typedapi/types/enums/syntheticsourcekeepenum/syntheticsourcekeepenum.go index 36e3b13c3a..1f0fce934d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package syntheticsourcekeepenum package syntheticsourcekeepenum import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/Property.ts#L99-L117 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/Property.ts#L99-L117 type SyntheticSourceKeepEnum struct { Name string } diff --git a/typedapi/types/enums/tasktype/tasktype.go b/typedapi/types/enums/tasktype/tasktype.go index c99bfbea89..559bf6155a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package tasktype package tasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/_types/TaskType.ts#L20-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/TaskType.ts#L20-L29 type TaskType struct { Name string } diff --git a/typedapi/types/enums/templateformat/templateformat.go b/typedapi/types/enums/templateformat/templateformat.go index 6f3064b9ed..46b2b5ce3d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package templateformat package templateformat import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/RoleTemplate.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 713be52bc7..215b0a3e5b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package termsaggregationcollectmode package termsaggregationcollectmode import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1056-L1065 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 05309b5a50..6e8d69fdee 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package termsaggregationexecutionhint package termsaggregationexecutionhint import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1067-L1072 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 18257d2549..146584e937 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package termvectoroption package termvectoroption import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/TermVectorOption.ts#L20-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 453d02e114..dae73a32b2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package textquerytype package textquerytype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L559-L585 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L559-L585 type TextQueryType struct { Name string } diff --git a/typedapi/types/enums/threadtype/threadtype.go b/typedapi/types/enums/threadtype/threadtype.go index dbfbd514c8..f1af3e5a43 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package threadtype package threadtype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L294-L300 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L294-L300 type ThreadType struct { Name string } diff --git a/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go b/typedapi/types/enums/timeseriesmetrictype/timeseriesmetrictype.go index b73c55421c..c5b63dec38 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package timeseriesmetrictype package timeseriesmetrictype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/TimeSeriesMetricType.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d298a5a063..06dbfc1ca0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package timeunit package timeunit import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Time.ts#L69-L77 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8f65347c8e..4ff8a00fd6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package tokenchar package tokenchar import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L59-L66 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L59-L66 type TokenChar struct { Name string } diff --git a/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go b/typedapi/types/enums/tokenizationtruncate/tokenizationtruncate.go index bcbc420675..ebe914ecdc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package tokenizationtruncate package tokenizationtruncate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L338-L342 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1cad800610..f762a38772 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package totalhitsrelation package totalhitsrelation import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/hits.ts#L100-L105 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7bdfe9cfc5..dbe8ac5eeb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package trainedmodeltype package trainedmodeltype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L314-L328 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 64d5657238..a04221760c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package trainingpriority package trainingpriority import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L364-L367 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 62c9a6bdbe..33c1bfe1c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package translogdurability package translogdurability import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L379-L394 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L379-L394 type TranslogDurability struct { Name string } diff --git a/typedapi/types/enums/ttesttype/ttesttype.go b/typedapi/types/enums/ttesttype/ttesttype.go index a38b6b905d..97d11f3b12 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package ttesttype package ttesttype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L331-L344 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 edddd6a744..0b1fe6b8d5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package type_ package type_ import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/shutdown/_types/types.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 223d6bfc3a..b7d2f9026e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package unassignedinformationreason package unassignedinformationreason import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L138-L157 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3253814f5a..989073ede3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package useragentproperty package useragentproperty import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L548-L554 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4de3210be2..73dbbf24f6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package valuetype package valuetype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L436-L447 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ad09d0651d..65093c8659 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package versiontype package versiontype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L100-L119 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 new file mode 100644 index 0000000000..08b6d439af --- /dev/null +++ b/typedapi/types/enums/voyageaiservicetype/voyageaiservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package voyageaiservicetype +package voyageaiservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1139-L1141 +type VoyageAIServiceType struct { + Name string +} + +var ( + Voyageai = VoyageAIServiceType{"voyageai"} +) + +func (v VoyageAIServiceType) MarshalText() (text []byte, err error) { + return []byte(v.String()), nil +} + +func (v *VoyageAIServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "voyageai": + *v = Voyageai + default: + *v = VoyageAIServiceType{string(text)} + } + + return nil +} + +func (v VoyageAIServiceType) String() string { + return v.Name +} diff --git a/typedapi/types/enums/voyageaitasktype/voyageaitasktype.go b/typedapi/types/enums/voyageaitasktype/voyageaitasktype.go new file mode 100644 index 0000000000..02bee6f5d7 --- /dev/null +++ b/typedapi/types/enums/voyageaitasktype/voyageaitasktype.go @@ -0,0 +1,57 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package voyageaitasktype +package voyageaitasktype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1134-L1137 +type VoyageAITaskType struct { + Name string +} + +var ( + Textembedding = VoyageAITaskType{"text_embedding"} + + Rerank = VoyageAITaskType{"rerank"} +) + +func (v VoyageAITaskType) MarshalText() (text []byte, err error) { + return []byte(v.String()), nil +} + +func (v *VoyageAITaskType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "text_embedding": + *v = Textembedding + case "rerank": + *v = Rerank + default: + *v = VoyageAITaskType{string(text)} + } + + return nil +} + +func (v VoyageAITaskType) String() string { + return v.Name +} diff --git a/typedapi/types/enums/waitforactiveshardoptions/waitforactiveshardoptions.go b/typedapi/types/enums/waitforactiveshardoptions/waitforactiveshardoptions.go index 7e3e69e2be..b5b8739222 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package waitforactiveshardoptions package waitforactiveshardoptions import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L302-L306 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L302-L306 type WaitForActiveShardOptions struct { Name string } diff --git a/typedapi/types/enums/waitforevents/waitforevents.go b/typedapi/types/enums/waitforevents/waitforevents.go index fe3f7e6b3f..8e8ba89bfd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package waitforevents package waitforevents import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L308-L315 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L308-L315 type WaitForEvents struct { Name string } diff --git a/typedapi/types/enums/watchermetric/watchermetric.go b/typedapi/types/enums/watchermetric/watchermetric.go index 5021d987bb..988d64e3c6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package watchermetric package watchermetric import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/stats/types.ts#L63-L69 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 72a711ce3e..32351fe767 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package watcherstate package watcherstate import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/stats/types.ts#L26-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/stats/types.ts#L26-L31 type WatcherState struct { Name string } diff --git a/typedapi/types/enums/watsonxservicetype/watsonxservicetype.go b/typedapi/types/enums/watsonxservicetype/watsonxservicetype.go new file mode 100644 index 0000000000..f8de5c54b5 --- /dev/null +++ b/typedapi/types/enums/watsonxservicetype/watsonxservicetype.go @@ -0,0 +1,53 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +// Package watsonxservicetype +package watsonxservicetype + +import "strings" + +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1186-L1188 +type WatsonxServiceType struct { + Name string +} + +var ( + Watsonxai = WatsonxServiceType{"watsonxai"} +) + +func (w WatsonxServiceType) MarshalText() (text []byte, err error) { + return []byte(w.String()), nil +} + +func (w *WatsonxServiceType) UnmarshalText(text []byte) error { + switch strings.ReplaceAll(strings.ToLower(string(text)), "\"", "") { + + case "watsonxai": + *w = Watsonxai + default: + *w = WatsonxServiceType{string(text)} + } + + return nil +} + +func (w WatsonxServiceType) String() string { + return w.Name +} diff --git a/typedapi/types/enums/watsonxtasktype/watsonxtasktype.go b/typedapi/types/enums/watsonxtasktype/watsonxtasktype.go index 876746b566..e4c0689e38 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package watsonxtasktype package watsonxtasktype import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put_watsonx/PutWatsonxRequest.ts#L72-L74 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1182-L1184 type WatsonxTaskType struct { Name string } diff --git a/typedapi/types/enums/xpackcategory/xpackcategory.go b/typedapi/types/enums/xpackcategory/xpackcategory.go index b1a8413370..199523fe25 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package xpackcategory package xpackcategory import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/info/XPackInfoRequest.ts#L58-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8dab74702e..b8ddd8cda1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Package zerotermsquery package zerotermsquery import "strings" -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L587-L596 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L587-L596 type ZeroTermsQuery struct { Name string } diff --git a/typedapi/types/epochtimeunitmillis.go b/typedapi/types/epochtimeunitmillis.go index f951759653..6e8300b16f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // EpochTimeUnitMillis type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Time.ts#L40-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9532360a2b..afdb3b7027 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // EpochTimeUnitSeconds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Time.ts#L40-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 52606de5c4..680ff074e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Eql type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L361-L364 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L361-L364 type Eql struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/eqlfeatures.go b/typedapi/types/eqlfeatures.go index df4d4c22e9..f11dd1e67a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // EqlFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L96-L104 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L96-L104 type EqlFeatures struct { Event uint `json:"event"` Join uint `json:"join"` diff --git a/typedapi/types/eqlfeaturesjoin.go b/typedapi/types/eqlfeaturesjoin.go index 7bea2fdbd2..ba13fb563f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // EqlFeaturesJoin type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L106-L112 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L106-L112 type EqlFeaturesJoin struct { JoinQueriesFiveOrMore uint `json:"join_queries_five_or_more"` JoinQueriesFour uint `json:"join_queries_four"` diff --git a/typedapi/types/eqlfeatureskeys.go b/typedapi/types/eqlfeatureskeys.go index bddf1ff814..6181b3e8fb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // EqlFeaturesKeys type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L114-L120 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L114-L120 type EqlFeaturesKeys struct { JoinKeysFiveOrMore uint `json:"join_keys_five_or_more"` JoinKeysFour uint `json:"join_keys_four"` diff --git a/typedapi/types/eqlfeaturespipes.go b/typedapi/types/eqlfeaturespipes.go index e74a4b8db4..b8798f2332 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // EqlFeaturesPipes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L122-L125 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L122-L125 type EqlFeaturesPipes struct { PipeHead uint `json:"pipe_head"` PipeTail uint `json:"pipe_tail"` diff --git a/typedapi/types/eqlfeaturessequences.go b/typedapi/types/eqlfeaturessequences.go index f91f909576..c51ba9d96c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // EqlFeaturesSequences type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L127-L134 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L127-L134 type EqlFeaturesSequences struct { SequenceMaxspan uint `json:"sequence_maxspan"` SequenceQueriesFiveOrMore uint `json:"sequence_queries_five_or_more"` diff --git a/typedapi/types/eqlhits.go b/typedapi/types/eqlhits.go index 59320e08da..d5d253fdb0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // EqlHits type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/eql/_types/EqlHits.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/eql/_types/EqlHits.ts#L25-L39 type EqlHits struct { // Events Contains events matching the query. Each object represents a matching event. Events []HitsEvent `json:"events,omitempty"` diff --git a/typedapi/types/errorcause.go b/typedapi/types/errorcause.go index e5a48a56d6..bdd37636e1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ErrorCause type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Errors.ts#L25-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Errors.ts#L25-L50 type ErrorCause struct { CausedBy *ErrorCause `json:"caused_by,omitempty"` Metadata map[string]json.RawMessage `json:"-"` diff --git a/typedapi/types/errorresponsebase.go b/typedapi/types/errorresponsebase.go index ec833551fd..9af61e4374 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ErrorResponseBase type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Base.ts#L127-L136 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Base.ts#L127-L136 type ErrorResponseBase struct { Error ErrorCause `json:"error"` Status int `json:"status"` diff --git a/typedapi/types/esqlclusterdetails.go b/typedapi/types/esqlclusterdetails.go new file mode 100644 index 0000000000..ec678cec6b --- /dev/null +++ b/typedapi/types/esqlclusterdetails.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/esqlclusterstatus" +) + +// EsqlClusterDetails type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/esql/_types/EsqlResult.ts#L65-L70 +type EsqlClusterDetails struct { + 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 { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "indices": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Indices", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Indices = o + + case "_shards": + if err := dec.Decode(&s.Shards_); err != nil { + return fmt.Errorf("%s | %w", "Shards_", err) + } + + case "status": + if err := dec.Decode(&s.Status); err != nil { + return fmt.Errorf("%s | %w", "Status", err) + } + + case "took": + if err := dec.Decode(&s.Took); err != nil { + return fmt.Errorf("%s | %w", "Took", err) + } + + } + } + return nil +} + +// NewEsqlClusterDetails returns a EsqlClusterDetails. +func NewEsqlClusterDetails() *EsqlClusterDetails { + r := &EsqlClusterDetails{} + + return r +} + +// false diff --git a/typedapi/types/esqlclusterinfo.go b/typedapi/types/esqlclusterinfo.go new file mode 100644 index 0000000000..deea0a9eac --- /dev/null +++ b/typedapi/types/esqlclusterinfo.go @@ -0,0 +1,178 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// EsqlClusterInfo type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/esql/_types/EsqlResult.ts#L55-L63 +type EsqlClusterInfo struct { + Details map[string]EsqlClusterDetails `json:"details"` + Failed int `json:"failed"` + Partial int `json:"partial"` + Running int `json:"running"` + Skipped int `json:"skipped"` + Successful int `json:"successful"` + Total int `json:"total"` +} + +func (s *EsqlClusterInfo) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "details": + if s.Details == nil { + s.Details = make(map[string]EsqlClusterDetails, 0) + } + if err := dec.Decode(&s.Details); err != nil { + return fmt.Errorf("%s | %w", "Details", err) + } + + case "failed": + + 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", "Failed", err) + } + s.Failed = value + case float64: + f := int(v) + s.Failed = f + } + + case "partial": + + 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", "Partial", err) + } + s.Partial = value + case float64: + f := int(v) + s.Partial = f + } + + case "running": + + 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", "Running", err) + } + s.Running = value + case float64: + f := int(v) + s.Running = 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 "successful": + + 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", "Successful", err) + } + s.Successful = value + case float64: + f := int(v) + s.Successful = f + } + + 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 +} + +// NewEsqlClusterInfo returns a EsqlClusterInfo. +func NewEsqlClusterInfo() *EsqlClusterInfo { + r := &EsqlClusterInfo{ + Details: make(map[string]EsqlClusterDetails), + } + + return r +} + +// false diff --git a/typedapi/types/esqlcolumninfo.go b/typedapi/types/esqlcolumninfo.go new file mode 100644 index 0000000000..258af1c882 --- /dev/null +++ b/typedapi/types/esqlcolumninfo.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// EsqlColumnInfo type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/esql/_types/EsqlResult.ts#L50-L53 +type EsqlColumnInfo struct { + Name string `json:"name"` + Type string `json:"type"` +} + +func (s *EsqlColumnInfo) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Name", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Name = o + + case "type": + 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 +} + +// NewEsqlColumnInfo returns a EsqlColumnInfo. +func NewEsqlColumnInfo() *EsqlColumnInfo { + r := &EsqlColumnInfo{} + + return r +} + +// false diff --git a/typedapi/types/esqlshardfailure.go b/typedapi/types/esqlshardfailure.go new file mode 100644 index 0000000000..8f3109743b --- /dev/null +++ b/typedapi/types/esqlshardfailure.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/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" +) + +// EsqlShardFailure type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/esql/_types/EsqlResult.ts#L88-L93 +type EsqlShardFailure struct { + Index string `json:"index"` + Node *string `json:"node,omitempty"` + Reason ErrorCause `json:"reason"` + Shard string `json:"shard"` +} + +func (s *EsqlShardFailure) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "index": + if err := dec.Decode(&s.Index); err != nil { + return fmt.Errorf("%s | %w", "Index", err) + } + + case "node": + if err := dec.Decode(&s.Node); err != nil { + return fmt.Errorf("%s | %w", "Node", err) + } + + case "reason": + if err := dec.Decode(&s.Reason); err != nil { + return fmt.Errorf("%s | %w", "Reason", err) + } + + case "shard": + if err := dec.Decode(&s.Shard); err != nil { + return fmt.Errorf("%s | %w", "Shard", err) + } + + } + } + return nil +} + +// NewEsqlShardFailure returns a EsqlShardFailure. +func NewEsqlShardFailure() *EsqlShardFailure { + r := &EsqlShardFailure{} + + return r +} + +// false diff --git a/typedapi/types/esqlshardinfo.go b/typedapi/types/esqlshardinfo.go new file mode 100644 index 0000000000..7bd71c8a16 --- /dev/null +++ b/typedapi/types/esqlshardinfo.go @@ -0,0 +1,139 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// EsqlShardInfo type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/esql/_types/EsqlResult.ts#L80-L86 +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"` +} + +func (s *EsqlShardInfo) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "failed": + + 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", "Failed", err) + } + s.Failed = &value + case float64: + f := int(v) + 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 + 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 "successful": + + 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", "Successful", err) + } + s.Successful = &value + case float64: + f := int(v) + s.Successful = &f + } + + 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 +} + +// NewEsqlShardInfo returns a EsqlShardInfo. +func NewEsqlShardInfo() *EsqlShardInfo { + r := &EsqlShardInfo{} + + return r +} + +// false diff --git a/typedapi/types/estoniananalyzer.go b/typedapi/types/estoniananalyzer.go index 34c2afc061..45ab45ec66 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // EstonianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L159-L163 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L159-L163 type EstonianAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/eventdatastream.go b/typedapi/types/eventdatastream.go index 27fa2f8b99..732a5fff50 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // EventDataStream type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/_types/BehavioralAnalytics.ts#L29-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/search_application/_types/BehavioralAnalytics.ts#L29-L31 type EventDataStream struct { Name string `json:"name"` } diff --git a/typedapi/types/ewmamodelsettings.go b/typedapi/types/ewmamodelsettings.go index 9ee480273b..eaba4f20de 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // EwmaModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L293-L295 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L293-L295 type EwmaModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` } diff --git a/typedapi/types/ewmamovingaverageaggregation.go b/typedapi/types/ewmamovingaverageaggregation.go index 400451d2b2..77ade0ea35 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // EwmaMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L278-L281 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L278-L281 type EwmaMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/executeenrichpolicystatus.go b/typedapi/types/executeenrichpolicystatus.go index 489cbf5237..738732fbc3 100644 --- a/typedapi/types/executeenrichpolicystatus.go +++ b/typedapi/types/executeenrichpolicystatus.go @@ -16,19 +16,64 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/enrichpolicyphase" + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/enrichpolicyphase" ) // ExecuteEnrichPolicyStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/execute_policy/types.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/enrich/execute_policy/types.ts#L20-L23 type ExecuteEnrichPolicyStatus struct { Phase enrichpolicyphase.EnrichPolicyPhase `json:"phase"` + Step *string `json:"step,omitempty"` +} + +func (s *ExecuteEnrichPolicyStatus) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "phase": + if err := dec.Decode(&s.Phase); err != nil { + return fmt.Errorf("%s | %w", "Phase", err) + } + + case "step": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Step", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Step = &o + + } + } + return nil } // NewExecuteEnrichPolicyStatus returns a ExecuteEnrichPolicyStatus. diff --git a/typedapi/types/executingpolicy.go b/typedapi/types/executingpolicy.go index a19ee32aa5..d23b309043 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ExecutingPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/stats/types.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/enrich/stats/types.ts#L25-L28 type ExecutingPolicy struct { Name string `json:"name"` Task TaskInfo `json:"task"` diff --git a/typedapi/types/executionresult.go b/typedapi/types/executionresult.go index 990233d8e6..67f032be5d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ExecutionResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Execution.ts#L60-L66 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Execution.ts#L60-L66 type ExecutionResult struct { Actions []ExecutionResultAction `json:"actions"` Condition ExecutionResultCondition `json:"condition"` diff --git a/typedapi/types/executionresultaction.go b/typedapi/types/executionresultaction.go index 5df5b30ab4..21ae0d2e0b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionstatusoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/actionstatusoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/actiontype" ) // ExecutionResultAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Execution.ts#L74-L86 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Execution.ts#L74-L86 type ExecutionResultAction struct { Email *EmailResult `json:"email,omitempty"` Error *ErrorCause `json:"error,omitempty"` diff --git a/typedapi/types/executionresultcondition.go b/typedapi/types/executionresultcondition.go index 99a716b227..a3f26f123a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionstatusoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/actionstatusoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/conditiontype" ) // ExecutionResultCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Execution.ts#L68-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Execution.ts#L68-L72 type ExecutionResultCondition struct { Met bool `json:"met"` Status actionstatusoptions.ActionStatusOptions `json:"status"` diff --git a/typedapi/types/executionresultinput.go b/typedapi/types/executionresultinput.go index 36d91fe3cf..2b0ee40951 100644 --- a/typedapi/types/executionresultinput.go +++ b/typedapi/types/executionresultinput.go @@ -16,20 +16,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionstatusoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/inputtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/actionstatusoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/inputtype" ) // ExecutionResultInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Execution.ts#L88-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Execution.ts#L88-L92 type ExecutionResultInput struct { Payload map[string]json.RawMessage `json:"payload"` Status actionstatusoptions.ActionStatusOptions `json:"status"` diff --git a/typedapi/types/executionstate.go b/typedapi/types/executionstate.go index a45290a58b..522fe9efee 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ExecutionState type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Action.ts#L114-L118 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Action.ts#L114-L118 type ExecutionState struct { Reason *string `json:"reason,omitempty"` Successful bool `json:"successful"` diff --git a/typedapi/types/executionthreadpool.go b/typedapi/types/executionthreadpool.go index af61f66ba6..9958eb00e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ExecutionThreadPool type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Execution.ts#L94-L103 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Execution.ts#L94-L103 type ExecutionThreadPool struct { // MaxSize The largest size of the execution thread pool, which indicates the largest // number of concurrent running watches. diff --git a/typedapi/types/existsquery.go b/typedapi/types/existsquery.go index db6a5c11ef..499492d5bc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ExistsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L38-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L38-L46 type ExistsQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/expandwildcards.go b/typedapi/types/expandwildcards.go index d5031170a4..2db1dc6a43 100644 --- a/typedapi/types/expandwildcards.go +++ b/typedapi/types/expandwildcards.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) // ExpandWildcards type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L214-L214 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 27547bf3e8..71399157d4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ExplainAnalyzeToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/analyze/types.ts#L52-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/analyze/types.ts#L52-L67 type ExplainAnalyzeToken struct { Bytes string `json:"bytes"` EndOffset int64 `json:"end_offset"` diff --git a/typedapi/types/explanation.go b/typedapi/types/explanation.go index db6aed1eda..1c0455d1c0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Explanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/explain/types.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/explain/types.ts#L22-L26 type Explanation struct { Description string `json:"description"` Details []ExplanationDetail `json:"details"` diff --git a/typedapi/types/explanationdetail.go b/typedapi/types/explanationdetail.go index 2edb477c6a..f58458e03a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ExplanationDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/explain/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/explain/types.ts#L28-L32 type ExplanationDetail struct { Description string `json:"description"` Details []ExplanationDetail `json:"details,omitempty"` diff --git a/typedapi/types/explorecontrols.go b/typedapi/types/explorecontrols.go index 452b2ffa3e..1963997ad7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ExploreControls type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/graph/_types/ExploreControls.ts#L24-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/graph/_types/ExploreControls.ts#L24-L49 type ExploreControls struct { // SampleDiversity To avoid the top-matching documents sample being dominated by a single source // of results, it is sometimes necessary to request diversity in the sample. diff --git a/typedapi/types/exponentialaveragecalculationcontext.go b/typedapi/types/exponentialaveragecalculationcontext.go index 4a55fa1b6c..9fa5f39931 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ExponentialAverageCalculationContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Datafeed.ts#L204-L208 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Datafeed.ts#L204-L208 type ExponentialAverageCalculationContext struct { IncrementalMetricValueMs Float64 `json:"incremental_metric_value_ms"` LatestTimestamp *int64 `json:"latest_timestamp,omitempty"` diff --git a/typedapi/types/extendedboundsdouble.go b/typedapi/types/extendedboundsdouble.go index e05191d53d..46e0ffbe6e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ExtendedBoundsdouble type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L508-L517 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L508-L517 type ExtendedBoundsdouble struct { // Max Maximum value for the bound. Max *Float64 `json:"max,omitempty"` diff --git a/typedapi/types/extendedboundsfielddatemath.go b/typedapi/types/extendedboundsfielddatemath.go index fd92b790ef..a40f3d456b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ExtendedBoundsFieldDateMath type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L508-L517 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L508-L517 type ExtendedBoundsFieldDateMath struct { // Max Maximum value for the bound. Max FieldDateMath `json:"max,omitempty"` diff --git a/typedapi/types/extendedmemorystats.go b/typedapi/types/extendedmemorystats.go index b14f77f2c9..a8ae317a36 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ExtendedMemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L658-L667 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L658-L667 type ExtendedMemoryStats struct { // AdjustedTotalInBytes If the amount of physical memory has been overridden using the // `es`.`total_memory_bytes` system property then this reports the overridden diff --git a/typedapi/types/extendedstatsaggregate.go b/typedapi/types/extendedstatsaggregate.go index 72f8468a58..2b370d1d18 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L299-L320 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L299-L320 type ExtendedStatsAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` diff --git a/typedapi/types/extendedstatsaggregation.go b/typedapi/types/extendedstatsaggregation.go index bde7f1def4..fd0e26ebc2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L101-L106 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L101-L106 type ExtendedStatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/extendedstatsbucketaggregate.go b/typedapi/types/extendedstatsbucketaggregate.go index e71bfba412..09e0bb5803 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ExtendedStatsBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L322-L323 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L322-L323 type ExtendedStatsBucketAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` diff --git a/typedapi/types/extendedstatsbucketaggregation.go b/typedapi/types/extendedstatsbucketaggregation.go index 80a9cfc114..41126ee35b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // ExtendedStatsBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L218-L223 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L218-L223 type ExtendedStatsBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/failprocessor.go b/typedapi/types/failprocessor.go index 242d335cdc..813bb14004 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FailProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L889-L895 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/failurestore.go b/typedapi/types/failurestore.go index 94d02361ce..b0d8d14bac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FailureStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/DataStream.ts#L47-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/DataStream.ts#L47-L51 type FailureStore struct { Enabled bool `json:"enabled"` Indices []DataStreamIndex `json:"indices"` diff --git a/typedapi/types/feature.go b/typedapi/types/feature.go index aeaf10c31b..902e8ef079 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Feature type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/features/_types/Feature.ts#L20-L23 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/features/_types/Feature.ts#L20-L23 type Feature struct { Description string `json:"description"` Name string `json:"name"` diff --git a/typedapi/types/featureenabled.go b/typedapi/types/featureenabled.go index 411dfc5588..f8cf4a44c7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FeatureEnabled type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L215-L217 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L215-L217 type FeatureEnabled struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/featureextractor.go b/typedapi/types/featureextractor.go new file mode 100644 index 0000000000..0ca689fabb --- /dev/null +++ b/typedapi/types/featureextractor.go @@ -0,0 +1,30 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +// FeatureExtractor type alias. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L93-L96 +type FeatureExtractor QueryFeatureExtractor + +type FeatureExtractorVariant interface { + FeatureExtractorCaster() *FeatureExtractor +} diff --git a/typedapi/types/features.go b/typedapi/types/features.go index 2f35f60202..05c00f197d 100644 --- a/typedapi/types/features.go +++ b/typedapi/types/features.go @@ -16,15 +16,15 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/feature" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/feature" ) // Features type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get/IndicesGetRequest.ts#L103-L103 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/get/IndicesGetRequest.ts#L103-L103 type Features []feature.Feature diff --git a/typedapi/types/featuretoggle.go b/typedapi/types/featuretoggle.go index 76e52b6fce..74b48164ed 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FeatureToggle type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L37-L39 type FeatureToggle struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/fetchprofile.go b/typedapi/types/fetchprofile.go index 15d8f755ad..beef894d8d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FetchProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L230-L237 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L230-L237 type FetchProfile struct { Breakdown FetchProfileBreakdown `json:"breakdown"` Children []FetchProfile `json:"children,omitempty"` diff --git a/typedapi/types/fetchprofilebreakdown.go b/typedapi/types/fetchprofilebreakdown.go index 06a19a4660..605aa6a8b1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FetchProfileBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L239-L248 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L239-L248 type FetchProfileBreakdown struct { LoadSource *int `json:"load_source,omitempty"` LoadSourceCount *int `json:"load_source_count,omitempty"` diff --git a/typedapi/types/fetchprofiledebug.go b/typedapi/types/fetchprofiledebug.go index 4c07c87e7f..794e39bc12 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FetchProfileDebug type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L250-L253 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L250-L253 type FetchProfileDebug struct { FastPath *int `json:"fast_path,omitempty"` StoredFields []string `json:"stored_fields,omitempty"` diff --git a/typedapi/types/fieldaliasproperty.go b/typedapi/types/fieldaliasproperty.go index 24d24bd7aa..578978f105 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // FieldAliasProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/specialized.ts#L64-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/specialized.ts#L64-L67 type FieldAliasProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/fieldandformat.go b/typedapi/types/fieldandformat.go index 503d93c1d9..c60ba89682 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FieldAndFormat type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/abstractions.ts#L535-L549 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/abstractions.ts#L535-L549 type FieldAndFormat struct { // Field A wildcard pattern. The request returns values for field names matching this // pattern. diff --git a/typedapi/types/fieldcapability.go b/typedapi/types/fieldcapability.go index 5a41762c71..2e7c20fbe3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // FieldCapability type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/field_caps/types.ts#L23-L81 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/field_caps/types.ts#L23-L81 type FieldCapability struct { // Aggregatable Whether this field can be aggregated on all indices. Aggregatable bool `json:"aggregatable"` diff --git a/typedapi/types/fieldcollapse.go b/typedapi/types/fieldcollapse.go index 5d02c9ff2d..0cc79d6823 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FieldCollapse type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/FieldCollapse.ts#L24-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/FieldCollapse.ts#L24-L41 type FieldCollapse struct { Collapse *FieldCollapse `json:"collapse,omitempty"` // Field The field to collapse the result set on diff --git a/typedapi/types/fielddatafrequencyfilter.go b/typedapi/types/fielddatafrequencyfilter.go index ee3bdab5eb..1c109c5128 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FielddataFrequencyFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/FielddataFrequencyFilter.ts#L22-L26 type FielddataFrequencyFilter struct { Max Float64 `json:"max"` Min Float64 `json:"min"` diff --git a/typedapi/types/fielddatarecord.go b/typedapi/types/fielddatarecord.go index a43856d277..9e0d5a2ad8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FielddataRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/fielddata/types.ts#L20-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/fielddata/types.ts#L20-L48 type FielddataRecord struct { // Field field name Field *string `json:"field,omitempty"` diff --git a/typedapi/types/fielddatastats.go b/typedapi/types/fielddatastats.go index 500995a86d..88a37e976e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FielddataStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L114-L119 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L114-L119 type FielddataStats struct { Evictions *int64 `json:"evictions,omitempty"` Fields map[string]FieldMemoryUsage `json:"fields,omitempty"` diff --git a/typedapi/types/fielddatemath.go b/typedapi/types/fielddatemath.go index c1fcfe413e..0a55fcdaf1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // Float64 // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L309-L316 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ca5aed2626..f87fb6760c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // FieldLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/abstractions.ts#L436-L453 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/abstractions.ts#L436-L453 type FieldLookup struct { // Id `id` of the document. Id string `json:"id"` diff --git a/typedapi/types/fieldmapping.go b/typedapi/types/fieldmapping.go index bb62831220..c1f956e665 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FieldMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/meta-fields.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/meta-fields.ts#L24-L27 type FieldMapping struct { FullName string `json:"full_name"` Mapping map[string]Property `json:"mapping"` diff --git a/typedapi/types/fieldmemoryusage.go b/typedapi/types/fieldmemoryusage.go index 68b1262224..8865c4ae1d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FieldMemoryUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L121-L124 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L121-L124 type FieldMemoryUsage struct { MemorySize ByteSize `json:"memory_size,omitempty"` MemorySizeInBytes int64 `json:"memory_size_in_bytes"` diff --git a/typedapi/types/fieldmetric.go b/typedapi/types/fieldmetric.go index 614c9ad51a..dd75ee2862 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/metric" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/metric" ) // FieldMetric type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/_types/Metric.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/_types/Metric.ts#L30-L35 type FieldMetric struct { // Field The field to collect metrics for. This must be a numeric of some kind. Field string `json:"field"` diff --git a/typedapi/types/fieldnamesfield.go b/typedapi/types/fieldnamesfield.go index 60e3b6d7fe..31f40fc900 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FieldNamesField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/meta-fields.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/meta-fields.ts#L42-L44 type FieldNamesField struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/fields.go b/typedapi/types/fields.go index 7d307b8a88..b93b4caa63 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Fields type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L137-L137 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ab1c6c8152..68243653dc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // FieldSecurity type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/FieldSecurity.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/FieldSecurity.ts#L22-L25 type FieldSecurity struct { Except []string `json:"except,omitempty"` Grant []string `json:"grant,omitempty"` diff --git a/typedapi/types/fieldsizeusage.go b/typedapi/types/fieldsizeusage.go index cddef30820..64586d0565 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FieldSizeUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L95-L98 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L95-L98 type FieldSizeUsage struct { Size ByteSize `json:"size,omitempty"` SizeInBytes int64 `json:"size_in_bytes"` diff --git a/typedapi/types/fieldsort.go b/typedapi/types/fieldsort.go index 5cc735788a..b8e99b2fe7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldsortnumerictype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldtype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/fieldsortnumerictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/fieldtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) // FieldSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L43-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/sort.ts#L43-L52 type FieldSort struct { Format *string `json:"format,omitempty"` Missing Missing `json:"missing,omitempty"` diff --git a/typedapi/types/fieldstat.go b/typedapi/types/fieldstat.go index dc9644b064..b9db039c23 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FieldStat type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/_types/Structure.ts#L23-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/text_structure/_types/Structure.ts#L23-L33 type FieldStat struct { Cardinality int `json:"cardinality"` Count int `json:"count"` diff --git a/typedapi/types/fieldstatistics.go b/typedapi/types/fieldstatistics.go index 5c2f723e00..c7c7a3078e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FieldStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/termvectors/types.ts#L28-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/termvectors/types.ts#L28-L32 type FieldStatistics struct { DocCount int `json:"doc_count"` SumDocFreq int64 `json:"sum_doc_freq"` diff --git a/typedapi/types/fieldsuggester.go b/typedapi/types/fieldsuggester.go index c5bfb64566..ad22c45691 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FieldSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L109-L142 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/fieldsummary.go b/typedapi/types/fieldsummary.go index 04c1866ab9..898c369eff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // FieldSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L57-L66 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L58-L67 type FieldSummary struct { Any uint `json:"any"` DocValues uint `json:"doc_values"` diff --git a/typedapi/types/fieldtypes.go b/typedapi/types/fieldtypes.go index fb468b5e0f..f07faf3089 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L136-L167 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L136-L167 type FieldTypes struct { // Count The number of occurrences of the field type in selected nodes. Count int `json:"count"` diff --git a/typedapi/types/fieldtypesmappings.go b/typedapi/types/fieldtypesmappings.go index 53ce87ffe7..1232e6bd50 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FieldTypesMappings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L109-L134 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L109-L134 type FieldTypesMappings struct { // FieldTypes Contains statistics about field data types used in selected nodes. FieldTypes []FieldTypes `json:"field_types"` diff --git a/typedapi/types/fieldvalue.go b/typedapi/types/fieldvalue.go index 9a14260735..1931387b8f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,7 +28,7 @@ package types // bool // nil // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L25-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 285aaead3e..f4a3b4fc91 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fieldvaluefactormodifier" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/fieldvaluefactormodifier" ) // FieldValueFactorScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L149-L168 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L149-L168 type FieldValueFactorScoreFunction struct { // Factor Optional factor to multiply the field value with. Factor *Float64 `json:"factor,omitempty"` diff --git a/typedapi/types/filecountsnapshotstats.go b/typedapi/types/filecountsnapshotstats.go index daa7df3393..61fefbea20 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FileCountSnapshotStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/FileCountSnapshotStats.ts#L22-L25 type FileCountSnapshotStats struct { FileCount int `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` diff --git a/typedapi/types/filedetails.go b/typedapi/types/filedetails.go index 5c3b7df5e9..b5c0b1968a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FileDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/recovery/types.ts#L50-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/recovery/types.ts#L50-L54 type FileDetails struct { Length int64 `json:"length"` Name string `json:"name"` diff --git a/typedapi/types/filesettingsindicator.go b/typedapi/types/filesettingsindicator.go index 6f51ce3bf6..fb4692ca96 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indicatorhealthstatus" ) // FileSettingsIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L207-L211 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L207-L211 type FileSettingsIndicator struct { Details *FileSettingsIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/filesettingsindicatordetails.go b/typedapi/types/filesettingsindicatordetails.go index f490c34e96..1fda15103f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FileSettingsIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L213-L216 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L213-L216 type FileSettingsIndicatorDetails struct { FailureStreak int64 `json:"failure_streak"` MostRecentFailure string `json:"most_recent_failure"` diff --git a/typedapi/types/filesystem.go b/typedapi/types/filesystem.go index 2b95c6ccbf..69d8fae29d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FileSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L769-L787 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L769-L787 type FileSystem struct { // Data List of all file stores. Data []DataPathStats `json:"data,omitempty"` diff --git a/typedapi/types/filesystemtotal.go b/typedapi/types/filesystemtotal.go index 696d652110..238f36e0ce 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FileSystemTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L828-L857 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L828-L857 type FileSystemTotal struct { // Available Total disk space available to this Java virtual machine on all file stores. // Depending on OS or process level restrictions, this might appear less than diff --git a/typedapi/types/fillmaskinferenceoptions.go b/typedapi/types/fillmaskinferenceoptions.go index afdd0c3a6d..72c5683ad5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FillMaskInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L253-L268 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L284-L299 type FillMaskInferenceOptions struct { // MaskToken The string/token which will be removed from incoming documents and replaced // with the inference prediction(s). diff --git a/typedapi/types/fillmaskinferenceupdateoptions.go b/typedapi/types/fillmaskinferenceupdateoptions.go index ce2c70e772..bb88419023 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FillMaskInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L399-L406 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L430-L437 type FillMaskInferenceUpdateOptions struct { // NumTopClasses Specifies the number of top class predictions to return. Defaults to 0. NumTopClasses *int `json:"num_top_classes,omitempty"` diff --git a/typedapi/types/filteraggregate.go b/typedapi/types/filteraggregate.go index 62284e114b..e93b006227 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // FilterAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L552-L556 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L552-L556 type FilterAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/filteringadvancedsnippet.go b/typedapi/types/filteringadvancedsnippet.go index 800d737fa5..951fe8388c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // FilteringAdvancedSnippet type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L192-L196 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L192-L196 type FilteringAdvancedSnippet struct { CreatedAt DateTime `json:"created_at,omitempty"` UpdatedAt DateTime `json:"updated_at,omitempty"` diff --git a/typedapi/types/filteringconfig.go b/typedapi/types/filteringconfig.go index ae2e481f96..d13d80c55a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FilteringConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L209-L213 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L209-L213 type FilteringConfig struct { Active FilteringRules `json:"active"` Domain *string `json:"domain,omitempty"` diff --git a/typedapi/types/filteringrule.go b/typedapi/types/filteringrule.go index 552691e1c6..627c1930ee 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringpolicy" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringrulerule" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/filteringpolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/filteringrulerule" ) // FilteringRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L170-L179 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L170-L179 type FilteringRule struct { CreatedAt DateTime `json:"created_at,omitempty"` Field string `json:"field"` diff --git a/typedapi/types/filteringrules.go b/typedapi/types/filteringrules.go index 556004d334..97e05507ce 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // FilteringRules type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L203-L207 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L203-L207 type FilteringRules struct { AdvancedSnippet FilteringAdvancedSnippet `json:"advanced_snippet"` Rules []FilteringRule `json:"rules"` diff --git a/typedapi/types/filteringrulesvalidation.go b/typedapi/types/filteringrulesvalidation.go index 881d3f13da..ebe00366e3 100644 --- a/typedapi/types/filteringrulesvalidation.go +++ b/typedapi/types/filteringrulesvalidation.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filteringvalidationstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/filteringvalidationstate" ) // FilteringRulesValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L198-L201 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L198-L201 type FilteringRulesValidation struct { Errors []FilteringValidation `json:"errors"` State filteringvalidationstate.FilteringValidationState `json:"state"` diff --git a/typedapi/types/filteringvalidation.go b/typedapi/types/filteringvalidation.go index 17f95ef0b7..7b9be57625 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // FilteringValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L181-L184 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L181-L184 type FilteringValidation struct { Ids []string `json:"ids"` Messages []string `json:"messages"` diff --git a/typedapi/types/filterref.go b/typedapi/types/filterref.go index 422290bc18..b379097c07 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/filtertype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/filtertype" ) // FilterRef type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Filter.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Filter.ts#L31-L41 type FilterRef struct { // FilterId The identifier for the filter. FilterId string `json:"filter_id"` diff --git a/typedapi/types/filtersaggregate.go b/typedapi/types/filtersaggregate.go index 92928f16bd..b27fa5c3f3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // FiltersAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L639-L643 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L639-L643 type FiltersAggregate struct { Buckets BucketsFiltersBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/filtersaggregation.go b/typedapi/types/filtersaggregation.go index 5cf6de8820..17898bf233 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FiltersAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L374-L394 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L374-L394 type FiltersAggregation struct { // Filters Collection of queries from which to build buckets. Filters BucketsQuery `json:"filters,omitempty"` diff --git a/typedapi/types/filtersbucket.go b/typedapi/types/filtersbucket.go index 28c3ceca6d..a38b8f04b4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // FiltersBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L645-L645 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L645-L645 type FiltersBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/fingerprintanalyzer.go b/typedapi/types/fingerprintanalyzer.go index 1c80df85fa..f29e482326 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FingerprintAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L37-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/fingerprintprocessor.go b/typedapi/types/fingerprintprocessor.go index 0553194cc8..0426c4e568 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/fingerprintdigest" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/fingerprintdigest" ) // FingerprintProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L905-L933 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/fingerprinttokenfilter.go b/typedapi/types/fingerprinttokenfilter.go index 12ec6b3bf1..08d69ec912 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FingerprintTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L195-L199 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L195-L199 type FingerprintTokenFilter struct { MaxOutputSize *int `json:"max_output_size,omitempty"` Separator *string `json:"separator,omitempty"` diff --git a/typedapi/types/finnishanalyzer.go b/typedapi/types/finnishanalyzer.go index 02b5d555c6..f13687192a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FinnishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L165-L170 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L165-L170 type FinnishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/flattened.go b/typedapi/types/flattened.go index aa22d63151..5e9ac8fbc9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Flattened type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L366-L368 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L366-L368 type Flattened struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/flattenedproperty.go b/typedapi/types/flattenedproperty.go index d259f0b803..d81630c131 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // FlattenedProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/complex.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/complex.ts#L26-L37 type FlattenedProperty struct { Boost *Float64 `json:"boost,omitempty"` DepthLimit *int `json:"depth_limit,omitempty"` diff --git a/typedapi/types/floatnumberproperty.go b/typedapi/types/floatnumberproperty.go index dc06052c2c..dbb2699633 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // FloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L146-L149 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L155-L158 type FloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/floatrangeproperty.go b/typedapi/types/floatrangeproperty.go index 1d5720997b..64e46c84c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // FloatRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/range.ts#L38-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/range.ts#L38-L40 type FloatRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/flushstats.go b/typedapi/types/flushstats.go index 4441699ecc..a7455f1be0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FlushStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L126-L131 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L126-L131 type FlushStats struct { Periodic int64 `json:"periodic"` Total int64 `json:"total"` diff --git a/typedapi/types/followerindex.go b/typedapi/types/followerindex.go index faef8f2ed9..91bac6d62c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/followerindexstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/followerindexstatus" ) // FollowerIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/follow_info/types.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ccr/follow_info/types.ts#L24-L35 type FollowerIndex struct { // FollowerIndex The name of the follower index. FollowerIndex string `json:"follower_index"` diff --git a/typedapi/types/followerindexparameters.go b/typedapi/types/followerindexparameters.go index 5fa0cd7042..475ebbbe74 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FollowerIndexParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/follow_info/types.ts#L42-L88 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ccr/follow_info/types.ts#L42-L88 type FollowerIndexParameters struct { // MaxOutstandingReadRequests The maximum number of outstanding reads requests from the remote cluster. MaxOutstandingReadRequests *int64 `json:"max_outstanding_read_requests,omitempty"` diff --git a/typedapi/types/followindexstats.go b/typedapi/types/followindexstats.go index bf481f8c06..4230c8454c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // FollowIndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/_types/FollowIndexStats.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ccr/_types/FollowIndexStats.ts#L30-L35 type FollowIndexStats struct { // Index The name of the follower index. Index string `json:"index"` diff --git a/typedapi/types/followstats.go b/typedapi/types/followstats.go index 4fb1caf976..7d5fe5c002 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // FollowStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/stats/types.ts.ts#L49-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ccr/stats/types.ts.ts#L49-L51 type FollowStats struct { Indices []FollowIndexStats `json:"indices"` } diff --git a/typedapi/types/forcemergeaction.go b/typedapi/types/forcemergeaction.go index b2f9fa6ec5..0b04714938 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ForceMergeAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L123-L126 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L123-L126 type ForceMergeAction struct { IndexCodec *string `json:"index_codec,omitempty"` MaxNumSegments int `json:"max_num_segments"` diff --git a/typedapi/types/foreachprocessor.go b/typedapi/types/foreachprocessor.go index a1ebc60094..31c98be047 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ForeachProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L935-L949 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/foundstatus.go b/typedapi/types/foundstatus.go index 87d19f817a..ce4b211930 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FoundStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/delete_privileges/types.ts#L20-L22 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/delete_privileges/types.ts#L20-L22 type FoundStatus struct { Found bool `json:"found"` } diff --git a/typedapi/types/frenchanalyzer.go b/typedapi/types/frenchanalyzer.go index 3b5be5bb9b..73ac54f0d0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FrenchAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L172-L177 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L172-L177 type FrenchAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/frequencyencodingpreprocessor.go b/typedapi/types/frequencyencodingpreprocessor.go index c354c3f10b..eec4a228f0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FrequencyEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L38-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L38-L42 type FrequencyEncodingPreprocessor struct { FeatureName string `json:"feature_name"` Field string `json:"field"` diff --git a/typedapi/types/frequentitemsetsaggregate.go b/typedapi/types/frequentitemsetsaggregate.go index d727adb22f..5e090a4dc3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // FrequentItemSetsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L722-L723 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L722-L723 type FrequentItemSetsAggregate struct { Buckets BucketsFrequentItemSetsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/frequentitemsetsaggregation.go b/typedapi/types/frequentitemsetsaggregation.go index 8f780b7d0a..882a09be90 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FrequentItemSetsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1240-L1267 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L1240-L1267 type FrequentItemSetsAggregation struct { // Fields Fields to analyze. Fields []FrequentItemSetsField `json:"fields"` diff --git a/typedapi/types/frequentitemsetsbucket.go b/typedapi/types/frequentitemsetsbucket.go index f6cbeb0341..ec85e7476f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // FrequentItemSetsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L725-L728 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L725-L728 type FrequentItemSetsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/frequentitemsetsfield.go b/typedapi/types/frequentitemsetsfield.go index f686530d07..8eec1ecfc6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // FrequentItemSetsField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1226-L1238 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L1226-L1238 type FrequentItemSetsField struct { // Exclude Values to exclude. // Can be regular expression strings or arrays of strings of exact terms. diff --git a/typedapi/types/functionscore.go b/typedapi/types/functionscore.go index 8b36243bae..e9f39928bc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FunctionScore type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L226-L266 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L226-L266 type FunctionScore struct { AdditionalFunctionScoreProperty map[string]json.RawMessage `json:"-"` // Exp Function that scores a document with a exponential decay, depending on the diff --git a/typedapi/types/functionscorequery.go b/typedapi/types/functionscorequery.go index dd10e1c856..149f0e52f3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionboostmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/functionscoremode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/functionboostmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/functionscoremode" ) // FunctionScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L105-L135 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L105-L135 type FunctionScoreQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/fuzziness.go b/typedapi/types/fuzziness.go index 26c803759b..b8d0f97e27 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // int // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L130-L131 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e53bef4ea4..edf2b20568 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // FuzzyQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L48-L86 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L48-L86 type FuzzyQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/galiciananalyzer.go b/typedapi/types/galiciananalyzer.go index 7da79f4778..a32466a719 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GalicianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L179-L184 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L179-L184 type GalicianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/garbagecollector.go b/typedapi/types/garbagecollector.go index 74630bc583..f3400565ec 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // GarbageCollector type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L994-L999 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L994-L999 type GarbageCollector struct { // Collectors Contains statistics about JVM garbage collectors for the node. Collectors map[string]GarbageCollectorTotal `json:"collectors,omitempty"` diff --git a/typedapi/types/garbagecollectortotal.go b/typedapi/types/garbagecollectortotal.go index 1805f8cf6c..5ac90ccbbd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GarbageCollectorTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L1001-L1014 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L1001-L1014 type GarbageCollectorTotal struct { // CollectionCount Total number of JVM garbage collectors that collect objects. CollectionCount *int64 `json:"collection_count,omitempty"` diff --git a/typedapi/types/gcsrepository.go b/typedapi/types/gcsrepository.go index 889c3215eb..da771ae3ba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GcsRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L52-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotRepository.ts#L52-L62 type GcsRepository struct { // Settings The repository settings. Settings GcsRepositorySettings `json:"settings"` diff --git a/typedapi/types/gcsrepositorysettings.go b/typedapi/types/gcsrepositorysettings.go index df17578f6f..653f7c43ad 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GcsRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L198-L235 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` diff --git a/typedapi/types/geoboundingboxquery.go b/typedapi/types/geoboundingboxquery.go index 723cbcf849..ac6d5ff8cb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoexecution" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geovalidationmethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geoexecution" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geovalidationmethod" ) // GeoBoundingBoxQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/geo.ts#L35-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/geo.ts#L35-L57 type GeoBoundingBoxQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/geobounds.go b/typedapi/types/geobounds.go index bcdfbb427a..1591ea11ef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ package types // TopRightBottomLeftGeoBounds // WktGeoBounds // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L135-L148 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 06b3958ff4..50350465e2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GeoBoundsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L327-L333 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L327-L333 type GeoBoundsAggregate struct { Bounds GeoBounds `json:"bounds,omitempty"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geoboundsaggregation.go b/typedapi/types/geoboundsaggregation.go index 078d0d9a81..5e0210e578 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoBoundsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L108-L117 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L108-L117 type GeoBoundsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/geocentroidaggregate.go b/typedapi/types/geocentroidaggregate.go index c241b33464..de4786f49b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoCentroidAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L335-L342 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L335-L342 type GeoCentroidAggregate struct { Count int64 `json:"count"` Location GeoLocation `json:"location,omitempty"` diff --git a/typedapi/types/geocentroidaggregation.go b/typedapi/types/geocentroidaggregation.go index 24907810b3..e4d83bd874 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoCentroidAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L119-L122 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L119-L122 type GeoCentroidAggregation struct { Count *int64 `json:"count,omitempty"` // Field The field on which to run the aggregation. diff --git a/typedapi/types/geodecayfunction.go b/typedapi/types/geodecayfunction.go index e2c0a78629..68c9b84203 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/multivaluemode" ) // GeoDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L210-L213 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L210-L213 type GeoDecayFunction struct { DecayFunctionBaseGeoLocationDistance map[string]DecayPlacementGeoLocationDistance `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/typedapi/types/geodistanceaggregate.go b/typedapi/types/geodistanceaggregate.go index e1e442eea3..b97d560071 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GeoDistanceAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L617-L622 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L617-L622 type GeoDistanceAggregate struct { Buckets BucketsRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geodistanceaggregation.go b/typedapi/types/geodistanceaggregation.go index d6222fac3d..9fc3f60023 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,13 +27,13 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/distanceunit" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/distanceunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geodistancetype" ) // GeoDistanceAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L396-L419 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L396-L419 type GeoDistanceAggregation struct { // DistanceType The distance calculation type. DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"` diff --git a/typedapi/types/geodistancefeaturequery.go b/typedapi/types/geodistancefeaturequery.go index 11912086fb..a654cf42c0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L66-L69 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L66-L69 type GeoDistanceFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/geodistancequery.go b/typedapi/types/geodistancequery.go index bc0c7b9c68..d23f93dd0e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geovalidationmethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geodistancetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geovalidationmethod" ) // GeoDistanceQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/geo.ts#L64-L96 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/geo.ts#L64-L96 type GeoDistanceQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/geodistancesort.go b/typedapi/types/geodistancesort.go index ddaff57533..73e4668c5b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/distanceunit" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geodistancetype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/distanceunit" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geodistancetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) // GeoDistanceSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L58-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/sort.ts#L58-L70 type GeoDistanceSort struct { DistanceType *geodistancetype.GeoDistanceType `json:"distance_type,omitempty"` GeoDistanceSort map[string][]GeoLocation `json:"-"` diff --git a/typedapi/types/geogridprocessor.go b/typedapi/types/geogridprocessor.go index e215958a4e..d10cb706bd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtargetformat" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geogridtiletype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geogridtargetformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geogridtiletype" ) // GeoGridProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L389-L430 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/geogridquery.go b/typedapi/types/geogridquery.go index f35a0fb4a6..1ee020456f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoGridQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/geo.ts#L98-L103 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/geo.ts#L98-L103 type GeoGridQuery struct { AdditionalGeoGridQueryProperty map[string]json.RawMessage `json:"-"` // Boost Floating point number used to decrease or increase the relevance scores of diff --git a/typedapi/types/geohashgridaggregate.go b/typedapi/types/geohashgridaggregate.go index 1b1686d58b..88d5beed65 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GeoHashGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L566-L568 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L566-L568 type GeoHashGridAggregate struct { Buckets BucketsGeoHashGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geohashgridaggregation.go b/typedapi/types/geohashgridaggregation.go index 1be24c9656..7b9b344cf4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoHashGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L421-L449 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L421-L449 type GeoHashGridAggregation struct { // Bounds The bounding box to filter the points in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` diff --git a/typedapi/types/geohashgridbucket.go b/typedapi/types/geohashgridbucket.go index f571265d40..e063c169bb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // GeoHashGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L570-L572 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L570-L572 type GeoHashGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/geohashlocation.go b/typedapi/types/geohashlocation.go index b14aeb2473..d61e57c6c7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GeoHashLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L131-L133 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Geo.ts#L131-L133 type GeoHashLocation struct { Geohash string `json:"geohash"` } diff --git a/typedapi/types/geohashprecision.go b/typedapi/types/geohashprecision.go index 87f54785c3..7facd0befe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L86-L90 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1bcb656491..ac4c5b1ca0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GeoHexGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L585-L586 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L585-L586 type GeoHexGridAggregate struct { Buckets BucketsGeoHexGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geohexgridaggregation.go b/typedapi/types/geohexgridaggregation.go index 0447fbff98..ca24aec16c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeohexGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L479-L504 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L479-L504 type GeohexGridAggregation struct { // Bounds Bounding box used to filter the geo-points in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` diff --git a/typedapi/types/geohexgridbucket.go b/typedapi/types/geohexgridbucket.go index a5b8e5e5d6..dc23b9e0bd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // GeoHexGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L588-L590 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L588-L590 type GeoHexGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/geoipdatabaseconfigurationmetadata.go b/typedapi/types/geoipdatabaseconfigurationmetadata.go index 871bd4816a..d183ff6e0c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoipDatabaseConfigurationMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/get_geoip_database/GetGeoipDatabaseResponse.ts#L29-L34 type GeoipDatabaseConfigurationMetadata struct { Database DatabaseConfiguration `json:"database"` Id string `json:"id"` diff --git a/typedapi/types/geoipdownloadstatistics.go b/typedapi/types/geoipdownloadstatistics.go index ff4ddac2ae..da025f82a1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoIpDownloadStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/geo_ip_stats/types.ts#L24-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/geo_ip_stats/types.ts#L24-L37 type GeoIpDownloadStatistics struct { // DatabasesCount Current number of databases available for use. DatabasesCount int `json:"databases_count"` diff --git a/typedapi/types/geoipnodedatabasename.go b/typedapi/types/geoipnodedatabasename.go index f82274782f..cebf1748ae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GeoIpNodeDatabaseName type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/geo_ip_stats/types.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/geo_ip_stats/types.ts#L47-L50 type GeoIpNodeDatabaseName struct { // Name Name of the database. Name string `json:"name"` diff --git a/typedapi/types/geoipnodedatabases.go b/typedapi/types/geoipnodedatabases.go index 153b0b9fc8..f064634fbe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // GeoIpNodeDatabases type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/geo_ip_stats/types.ts#L39-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/geo_ip_stats/types.ts#L39-L45 type GeoIpNodeDatabases struct { // Databases Downloaded databases for the node. Databases []GeoIpNodeDatabaseName `json:"databases"` diff --git a/typedapi/types/geoipprocessor.go b/typedapi/types/geoipprocessor.go index 7ab69ce317..da823db2d0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoIpProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L443-L477 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 diff --git a/typedapi/types/geoline.go b/typedapi/types/geoline.go index a1b978c128..3a7e063203 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoLine type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L56-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Geo.ts#L56-L62 type GeoLine struct { // Coordinates Array of `[lon, lat]` coordinates Coordinates [][]Float64 `json:"coordinates"` diff --git a/typedapi/types/geolineaggregate.go b/typedapi/types/geolineaggregate.go index 56f278aa93..055406cec1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoLineAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L902-L912 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L902-L912 type GeoLineAggregate struct { Geometry GeoLine `json:"geometry"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geolineaggregation.go b/typedapi/types/geolineaggregation.go index 3dd1650929..ee7dd58675 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) // GeoLineAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L124-L149 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L124-L149 type GeoLineAggregation struct { // IncludeSort When `true`, returns an additional array of the sort values in the feature // properties. diff --git a/typedapi/types/geolinepoint.go b/typedapi/types/geolinepoint.go index 217e474e2e..d84738b933 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GeoLinePoint type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L158-L163 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L158-L163 type GeoLinePoint struct { // Field The name of the geo_point field. Field string `json:"field"` diff --git a/typedapi/types/geolinesort.go b/typedapi/types/geolinesort.go index 2f44922217..cd7c950d06 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GeoLineSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L151-L156 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L151-L156 type GeoLineSort struct { // Field The name of the numeric field to use as the sort key for ordering the points. Field string `json:"field"` diff --git a/typedapi/types/geolocation.go b/typedapi/types/geolocation.go index 176d62c3c2..bc2a09f69a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ package types // []Float64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L104-L118 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ad08ad0ce4..75d2daf429 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "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/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/geo.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/geo.ts#L24-L32 type GeoPointProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/geopolygonpoints.go b/typedapi/types/geopolygonpoints.go index 7d77b304f2..4f081cd53a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // GeoPolygonPoints type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/geo.ts#L105-L107 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/geo.ts#L105-L107 type GeoPolygonPoints struct { Points []GeoLocation `json:"points"` } diff --git a/typedapi/types/geopolygonquery.go b/typedapi/types/geopolygonquery.go index 417e4d504a..c0af254cbc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geovalidationmethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geovalidationmethod" ) // GeoPolygonQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/geo.ts#L109-L121 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/geo.ts#L109-L121 type GeoPolygonQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/georesults.go b/typedapi/types/georesults.go index c7cfe8f2c1..cc99f18da7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoResults type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Anomaly.ts#L146-L155 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Anomaly.ts#L146-L155 type GeoResults struct { // ActualPoint The actual value for the bucket formatted as a `geo_point`. ActualPoint *string `json:"actual_point,omitempty"` diff --git a/typedapi/types/geoshapefieldquery.go b/typedapi/types/geoshapefieldquery.go index d97c51abaa..0e3d914177 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoshaperelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geoshaperelation" ) // GeoShapeFieldQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/geo.ts#L128-L139 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/geo.ts#L128-L139 type GeoShapeFieldQuery struct { // IndexedShape Query using an indexed shape retrieved from the the specified document and // path. diff --git a/typedapi/types/geoshapeproperty.go b/typedapi/types/geoshapeproperty.go index cd9a653e95..16b23f8028 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoorientation" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geostrategy" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geoorientation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geostrategy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // GeoShapeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/geo.ts#L41-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/geo.ts#L41-L55 type GeoShapeProperty struct { Coerce *bool `json:"coerce,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/geoshapequery.go b/typedapi/types/geoshapequery.go index d6ce4580df..a62191a1d9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoShapeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/geo.ts#L141-L157 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/geo.ts#L141-L157 type GeoShapeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/geotilegridaggregate.go b/typedapi/types/geotilegridaggregate.go index 34a30bee8d..f4cb9da5ed 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GeoTileGridAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L574-L579 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L574-L579 type GeoTileGridAggregate struct { Buckets BucketsGeoTileGridBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/geotilegridaggregation.go b/typedapi/types/geotilegridaggregation.go index 4ef0df03fe..89574f069c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GeoTileGridAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L451-L477 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L451-L477 type GeoTileGridAggregation struct { // Bounds A bounding box to filter the geo-points or geo-shapes in each bucket. Bounds GeoBounds `json:"bounds,omitempty"` diff --git a/typedapi/types/geotilegridbucket.go b/typedapi/types/geotilegridbucket.go index 28f245a060..c0ef7c6899 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // GeoTileGridBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L581-L583 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L581-L583 type GeoTileGridBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/germananalyzer.go b/typedapi/types/germananalyzer.go index 3e4c0895c6..c8c73253ba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GermanAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L186-L191 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L186-L191 type GermanAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/getmigrationfeature.go b/typedapi/types/getmigrationfeature.go index 9e254da856..b29bdacc77 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/migrationstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/migrationstatus" ) // GetMigrationFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L37-L42 type GetMigrationFeature struct { FeatureName string `json:"feature_name"` Indices []MigrationFeatureIndexInfo `json:"indices"` diff --git a/typedapi/types/getresult.go b/typedapi/types/getresult.go index 0d7119786c..a561bee451 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GetResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/get/types.ts#L25-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/get/types.ts#L25-L67 type GetResult struct { // Fields If the `stored_fields` parameter is set to `true` and `found` is `true`, it // contains the document fields stored in the index. diff --git a/typedapi/types/getscriptcontext.go b/typedapi/types/getscriptcontext.go index 3d84fe30db..38b675da39 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GetScriptContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/get_script_context/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/get_script_context/types.ts#L22-L25 type GetScriptContext struct { Methods []ContextMethod `json:"methods"` Name string `json:"name"` diff --git a/typedapi/types/getstats.go b/typedapi/types/getstats.go index 3064c11d38..4ea09b5080 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GetStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L133-L144 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L133-L144 type GetStats struct { Current int64 `json:"current"` ExistsTime Duration `json:"exists_time,omitempty"` diff --git a/typedapi/types/getuserprofileerrors.go b/typedapi/types/getuserprofileerrors.go index 429566fbb7..df5559831b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GetUserProfileErrors type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_user_profile/types.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/get_user_profile/types.ts#L25-L28 type GetUserProfileErrors struct { Count int64 `json:"count"` Details map[string]ErrorCause `json:"details"` diff --git a/typedapi/types/globalaggregate.go b/typedapi/types/globalaggregate.go index 79c24a23db..f4421c22fa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // GlobalAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L546-L550 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L546-L550 type GlobalAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/globalaggregation.go b/typedapi/types/globalaggregation.go index 979fb27e95..09c594659e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // GlobalAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L506-L506 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L506-L506 type GlobalAggregation struct { } diff --git a/typedapi/types/globalprivilege.go b/typedapi/types/globalprivilege.go index c374f2af5b..838f43e177 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // GlobalPrivilege type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L430-L432 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L430-L432 type GlobalPrivilege struct { Application ApplicationGlobalUserPrivileges `json:"application"` } diff --git a/typedapi/types/googleaistudioservicesettings.go b/typedapi/types/googleaistudioservicesettings.go new file mode 100644 index 0000000000..d095ead37c --- /dev/null +++ b/typedapi/types/googleaistudioservicesettings.go @@ -0,0 +1,112 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GoogleAiStudioServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L794-L810 +type GoogleAiStudioServiceSettings struct { + // ApiKey A valid API key of your Google Gemini account. + ApiKey string `json:"api_key"` + // ModelId The name of the model to use for the inference task. + // Refer to the Google documentation for the list of supported models. + ModelId string `json:"model_id"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Google AI Studio. + // By default, the `googleaistudio` service sets the number of requests allowed + // per minute to 360. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` +} + +func (s *GoogleAiStudioServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "api_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + } + } + return nil +} + +// NewGoogleAiStudioServiceSettings returns a GoogleAiStudioServiceSettings. +func NewGoogleAiStudioServiceSettings() *GoogleAiStudioServiceSettings { + r := &GoogleAiStudioServiceSettings{} + + return r +} + +// true + +type GoogleAiStudioServiceSettingsVariant interface { + GoogleAiStudioServiceSettingsCaster() *GoogleAiStudioServiceSettings +} + +func (s *GoogleAiStudioServiceSettings) GoogleAiStudioServiceSettingsCaster() *GoogleAiStudioServiceSettings { + return s +} diff --git a/typedapi/types/googlenormalizeddistanceheuristic.go b/typedapi/types/googlenormalizeddistanceheuristic.go index 78cce51735..fc7fbefea4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GoogleNormalizedDistanceHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L793-L798 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L793-L798 type GoogleNormalizedDistanceHeuristic struct { // BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a // different set of documents that you want to compare to. diff --git a/typedapi/types/googlevertexaiservicesettings.go b/typedapi/types/googlevertexaiservicesettings.go new file mode 100644 index 0000000000..b08ec0eb5f --- /dev/null +++ b/typedapi/types/googlevertexaiservicesettings.go @@ -0,0 +1,141 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GoogleVertexAIServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L821-L847 +type GoogleVertexAIServiceSettings struct { + // Location The name of the location to use for the inference task. + // Refer to the Google documentation for the list of supported locations. + Location string `json:"location"` + // ModelId The name of the model to use for the inference task. + // Refer to the Google documentation for the list of supported models. + ModelId string `json:"model_id"` + // ProjectId The name of the project to use for the inference task. + ProjectId string `json:"project_id"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Google Vertex AI. + // By default, the `googlevertexai` service sets the number of requests allowed + // per minute to 30.000. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // ServiceAccountJson A valid service account in JSON format for the Google Vertex AI API. + ServiceAccountJson string `json:"service_account_json"` +} + +func (s *GoogleVertexAIServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "location": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Location", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Location = o + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = o + + case "project_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ProjectId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ProjectId = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "service_account_json": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ServiceAccountJson", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ServiceAccountJson = o + + } + } + return nil +} + +// NewGoogleVertexAIServiceSettings returns a GoogleVertexAIServiceSettings. +func NewGoogleVertexAIServiceSettings() *GoogleVertexAIServiceSettings { + r := &GoogleVertexAIServiceSettings{} + + return r +} + +// true + +type GoogleVertexAIServiceSettingsVariant interface { + GoogleVertexAIServiceSettingsCaster() *GoogleVertexAIServiceSettings +} + +func (s *GoogleVertexAIServiceSettings) GoogleVertexAIServiceSettingsCaster() *GoogleVertexAIServiceSettings { + return s +} diff --git a/typedapi/types/googlevertexaitasksettings.go b/typedapi/types/googlevertexaitasksettings.go new file mode 100644 index 0000000000..f5645e7a70 --- /dev/null +++ b/typedapi/types/googlevertexaitasksettings.go @@ -0,0 +1,109 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// GoogleVertexAITaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L849-L858 +type GoogleVertexAITaskSettings struct { + // AutoTruncate For a `text_embedding` task, truncate inputs longer than the maximum token + // length automatically. + AutoTruncate *bool `json:"auto_truncate,omitempty"` + // TopN For a `rerank` task, the number of the top N documents that should be + // returned. + TopN *int `json:"top_n,omitempty"` +} + +func (s *GoogleVertexAITaskSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "auto_truncate": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "AutoTruncate", err) + } + s.AutoTruncate = &value + case bool: + s.AutoTruncate = &v + } + + case "top_n": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "TopN", err) + } + s.TopN = &value + case float64: + f := int(v) + s.TopN = &f + } + + } + } + return nil +} + +// NewGoogleVertexAITaskSettings returns a GoogleVertexAITaskSettings. +func NewGoogleVertexAITaskSettings() *GoogleVertexAITaskSettings { + r := &GoogleVertexAITaskSettings{} + + return r +} + +// true + +type GoogleVertexAITaskSettingsVariant interface { + GoogleVertexAITaskSettingsCaster() *GoogleVertexAITaskSettings +} + +func (s *GoogleVertexAITaskSettings) GoogleVertexAITaskSettingsCaster() *GoogleVertexAITaskSettings { + return s +} diff --git a/typedapi/types/grantapikey.go b/typedapi/types/grantapikey.go index d91c21d4bc..722d43cc2f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // GrantApiKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/grant_api_key/types.ts#L25-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/grant_api_key/types.ts#L25-L45 type GrantApiKey struct { // Expiration Expiration time for the API key. By default, API keys never expire. Expiration *string `json:"expiration,omitempty"` diff --git a/typedapi/types/greaterthanvalidation.go b/typedapi/types/greaterthanvalidation.go index dfd72a6b41..58eedbc0d6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GreaterThanValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L63-L66 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L63-L66 type GreaterThanValidation struct { Constraint Float64 `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/greekanalyzer.go b/typedapi/types/greekanalyzer.go index 273dcb10af..7adbbbff3e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GreekAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L193-L197 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L193-L197 type GreekAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/grokprocessor.go b/typedapi/types/grokprocessor.go index ca888cd44f..b17c1cd056 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GrokProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L951-L982 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/groupings.go b/typedapi/types/groupings.go index 4be629b3bc..55d75776be 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Groupings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/_types/Groupings.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/_types/Groupings.ts#L24-L40 type Groupings struct { // DateHistogram A date histogram group aggregates a date field into time-based buckets. // This group is mandatory; you currently cannot roll up documents without a diff --git a/typedapi/types/gsubprocessor.go b/typedapi/types/gsubprocessor.go index 13bfa661d6..f3bc5ce4ed 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // GsubProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L984-L1008 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/halffloatnumberproperty.go b/typedapi/types/halffloatnumberproperty.go index 6fd2eb67cd..3fd222c21d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // HalfFloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L151-L154 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L160-L163 type HalfFloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/haschildquery.go b/typedapi/types/haschildquery.go index 22cfbf6127..d26d301503 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/childscoremode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/childscoremode" ) // HasChildQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/joining.ts#L41-L79 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/joining.ts#L41-L79 type HasChildQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/hasparentquery.go b/typedapi/types/hasparentquery.go index d16d3b14a6..10ba27f642 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HasParentQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/joining.ts#L81-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/joining.ts#L81-L110 type HasParentQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/hasprivilegesuserprofileerrors.go b/typedapi/types/hasprivilegesuserprofileerrors.go index abeef5faa3..6ee0374f36 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HasPrivilegesUserProfileErrors type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/has_privileges_user_profile/types.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/has_privileges_user_profile/types.ts#L39-L42 type HasPrivilegesUserProfileErrors struct { Count int64 `json:"count"` Details map[string]ErrorCause `json:"details"` diff --git a/typedapi/types/hdrmethod.go b/typedapi/types/hdrmethod.go index f7c3e45428..d6086bc9df 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HdrMethod type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L225-L230 type HdrMethod struct { // NumberOfSignificantValueDigits Specifies the resolution of values for the histogram in number of significant // digits. diff --git a/typedapi/types/hdrpercentileranksaggregate.go b/typedapi/types/hdrpercentileranksaggregate.go index ea916fe529..5cc9a38c01 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // HdrPercentileRanksAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L171-L172 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L171-L172 type HdrPercentileRanksAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` diff --git a/typedapi/types/hdrpercentilesaggregate.go b/typedapi/types/hdrpercentilesaggregate.go index 12ec7a4c8e..bf40fc8dca 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // HdrPercentilesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L168-L169 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L168-L169 type HdrPercentilesAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` diff --git a/typedapi/types/healthrecord.go b/typedapi/types/healthrecord.go index 4de8423f3c..8119bf684a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HealthRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/health/types.ts#L23-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/health/types.ts#L23-L99 type HealthRecord struct { // ActiveShardsPercent active number of shards in percent ActiveShardsPercent *string `json:"active_shards_percent,omitempty"` diff --git a/typedapi/types/healthstatistics.go b/typedapi/types/healthstatistics.go index 517df76c36..9c9e3cef33 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HealthStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L150-L152 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L150-L152 type HealthStatistics struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/highlight.go b/typedapi/types/highlight.go index 5111de7e0e..2d72d7fd9b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,17 +28,17 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/boundaryscanner" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterencoder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterfragmenter" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertagsschema" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/boundaryscanner" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlighterencoder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlighterfragmenter" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlighterorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlightertagsschema" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlightertype" ) // Highlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/highlighting.ts#L152-L155 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/highlighting.ts#L152-L155 type Highlight struct { // BoundaryChars A string that contains each boundary character. BoundaryChars *string `json:"boundary_chars,omitempty"` diff --git a/typedapi/types/highlightfield.go b/typedapi/types/highlightfield.go index 400bee0dbd..d8ea7798cc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,16 +28,16 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/boundaryscanner" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterfragmenter" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlighterorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertagsschema" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/highlightertype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/boundaryscanner" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlighterfragmenter" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlighterorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlightertagsschema" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/highlightertype" ) // HighlightField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/highlighting.ts#L192-L195 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/highlighting.ts#L192-L195 type HighlightField struct { // BoundaryChars A string that contains each boundary character. BoundaryChars *string `json:"boundary_chars,omitempty"` diff --git a/typedapi/types/hindianalyzer.go b/typedapi/types/hindianalyzer.go index 40972f47dd..8d0fec6aa3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HindiAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L199-L204 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L199-L204 type HindiAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/hint.go b/typedapi/types/hint.go index efe00b55dd..8136cb1fc2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Hint type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/suggest_user_profiles/types.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/suggest_user_profiles/types.ts#L23-L34 type Hint struct { // Labels A single key-value pair to match against the labels section // of a profile. A profile is considered matching if it matches diff --git a/typedapi/types/histogramaggregate.go b/typedapi/types/histogramaggregate.go index 689690ed1d..d15f1c06a1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // HistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L372-L376 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L372-L376 type HistogramAggregate struct { Buckets BucketsHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/histogramaggregation.go b/typedapi/types/histogramaggregation.go index a492232505..14e20bb2e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) // HistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L519-L565 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L519-L565 type HistogramAggregation struct { // ExtendedBounds Enables extending the bounds of the histogram beyond the data itself. ExtendedBounds *ExtendedBoundsdouble `json:"extended_bounds,omitempty"` diff --git a/typedapi/types/histogrambucket.go b/typedapi/types/histogrambucket.go index 81ee8e3096..ed4acd15bc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // HistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L378-L381 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L378-L381 type HistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/histogramgrouping.go b/typedapi/types/histogramgrouping.go index a278b3d3b1..a93769cb52 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HistogramGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/_types/Groupings.ts#L84-L97 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/_types/Groupings.ts#L84-L97 type HistogramGrouping struct { // Fields The set of fields that you wish to build histograms for. // All fields specified must be some kind of numeric. diff --git a/typedapi/types/histogramproperty.go b/typedapi/types/histogramproperty.go index 09fc9cbbd3..0061867a6b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // HistogramProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/specialized.ts#L69-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/specialized.ts#L69-L72 type HistogramProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/hit.go b/typedapi/types/hit.go index ef0b5a9a4c..628cf81b86 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Hit type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/hits.ts#L40-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/hits.ts#L40-L65 type Hit struct { Explanation_ *Explanation `json:"_explanation,omitempty"` Fields map[string]json.RawMessage `json:"fields,omitempty"` diff --git a/typedapi/types/hitsevent.go b/typedapi/types/hitsevent.go index 44c4034e96..a455bfb1be 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HitsEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/eql/_types/EqlHits.ts#L41-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/eql/_types/EqlHits.ts#L41-L54 type HitsEvent struct { Fields map[string][]json.RawMessage `json:"fields,omitempty"` // Id_ Unique identifier for the event. This ID is only unique within the index. diff --git a/typedapi/types/hitsmetadata.go b/typedapi/types/hitsmetadata.go index 2591de410a..42830aecc0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // HitsMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/hits.ts#L67-L73 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/hits.ts#L67-L73 type HitsMetadata struct { Hits []Hit `json:"hits"` MaxScore *Float64 `json:"max_score,omitempty"` diff --git a/typedapi/types/hitssequence.go b/typedapi/types/hitssequence.go index 1ad5bc50d6..6a60373989 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // HitsSequence type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/eql/_types/EqlHits.ts#L56-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/eql/_types/EqlHits.ts#L56-L64 type HitsSequence struct { // Events Contains events matching the query. Each object represents a matching event. Events []HitsEvent `json:"events"` diff --git a/typedapi/types/holtlinearmodelsettings.go b/typedapi/types/holtlinearmodelsettings.go index a8abf691c6..47b3c8200c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HoltLinearModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L297-L300 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L297-L300 type HoltLinearModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` Beta *float32 `json:"beta,omitempty"` diff --git a/typedapi/types/holtmovingaverageaggregation.go b/typedapi/types/holtmovingaverageaggregation.go index 483ce0a3eb..596ce0639f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // HoltMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L283-L286 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L283-L286 type HoltMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/holtwintersmodelsettings.go b/typedapi/types/holtwintersmodelsettings.go index 0fd8f76402..05b2e48f3f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/holtwinterstype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/holtwinterstype" ) // HoltWintersModelSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L301-L308 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L301-L308 type HoltWintersModelSettings struct { Alpha *float32 `json:"alpha,omitempty"` Beta *float32 `json:"beta,omitempty"` diff --git a/typedapi/types/holtwintersmovingaverageaggregation.go b/typedapi/types/holtwintersmovingaverageaggregation.go index d75afc3c69..9859f0c033 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // HoltWintersMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L288-L291 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L288-L291 type HoltWintersMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/hop.go b/typedapi/types/hop.go index bc3b0d761a..111b727cd4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Hop type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/graph/_types/Hop.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/graph/_types/Hop.ts#L23-L36 type Hop struct { // Connections Specifies one or more fields from which you want to extract terms that are // associated with the specified vertices. diff --git a/typedapi/types/hourandminute.go b/typedapi/types/hourandminute.go index ac5cbc2c37..a6736e7272 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // HourAndMinute type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Schedule.ts#L106-L109 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Schedule.ts#L106-L109 type HourAndMinute struct { Hour []int `json:"hour"` Minute []int `json:"minute"` diff --git a/typedapi/types/hourlyschedule.go b/typedapi/types/hourlyschedule.go index d94bc7fba4..01464eb110 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // HourlySchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Schedule.ts#L47-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Schedule.ts#L47-L49 type HourlySchedule struct { Minute []int `json:"minute"` } diff --git a/typedapi/types/htmlstripcharfilter.go b/typedapi/types/htmlstripcharfilter.go index 1896981748..e1c4d1054d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // HtmlStripCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/char_filters.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/char_filters.ts#L46-L49 type HtmlStripCharFilter struct { EscapedTags []string `json:"escaped_tags,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/htmlstripprocessor.go b/typedapi/types/htmlstripprocessor.go index 5ec40cc460..a2b44a06d2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HtmlStripProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1010-L1026 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/http.go b/typedapi/types/http.go index 953e342580..686738c776 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Http type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L669-L688 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L669-L688 type Http struct { // Clients Information on current and recently-closed HTTP client connections. // Clients that have been closed longer than the diff --git a/typedapi/types/httpemailattachment.go b/typedapi/types/httpemailattachment.go index 8f576eadb9..1661c36bd3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HttpEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L218-L222 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L218-L222 type HttpEmailAttachment struct { ContentType *string `json:"content_type,omitempty"` Inline *bool `json:"inline,omitempty"` diff --git a/typedapi/types/httpheaders.go b/typedapi/types/httpheaders.go index 643239d695..a969a8ccbe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // HttpHeaders type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L155-L155 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 09576f7f6f..d92720f928 100644 --- a/typedapi/types/httpinput.go +++ b/typedapi/types/httpinput.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/responsecontenttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/responsecontenttype" ) // HttpInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L44-L48 type HttpInput struct { Extract []string `json:"extract,omitempty"` Request *HttpInputRequestDefinition `json:"request,omitempty"` diff --git a/typedapi/types/httpinputauthentication.go b/typedapi/types/httpinputauthentication.go index 1c5dce555a..4c575ae88d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // HttpInputAuthentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L50-L52 type HttpInputAuthentication struct { Basic HttpInputBasicAuthentication `json:"basic"` } diff --git a/typedapi/types/httpinputbasicauthentication.go b/typedapi/types/httpinputbasicauthentication.go index e9f8ebe102..3a6f78ed2b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // HttpInputBasicAuthentication type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L54-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L54-L57 type HttpInputBasicAuthentication struct { Password string `json:"password"` Username string `json:"username"` diff --git a/typedapi/types/httpinputproxy.go b/typedapi/types/httpinputproxy.go index 4a7b91ec06..487fb8a5ab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // HttpInputProxy type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L67-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L67-L70 type HttpInputProxy struct { Host string `json:"host"` Port uint `json:"port"` diff --git a/typedapi/types/httpinputrequestdefinition.go b/typedapi/types/httpinputrequestdefinition.go index 12882e10a6..6db160319d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/httpinputmethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/connectionscheme" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/httpinputmethod" ) // HttpInputRequestDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L72-L86 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L72-L86 type HttpInputRequestDefinition struct { Auth *HttpInputAuthentication `json:"auth,omitempty"` Body *string `json:"body,omitempty"` diff --git a/typedapi/types/httpinputrequestresult.go b/typedapi/types/httpinputrequestresult.go index 925e53ddbe..b5599bf3a7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/httpinputmethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/connectionscheme" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/httpinputmethod" ) // HttpInputRequestResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L300-L300 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L300-L300 type HttpInputRequestResult struct { Auth *HttpInputAuthentication `json:"auth,omitempty"` Body *string `json:"body,omitempty"` diff --git a/typedapi/types/httpinputresponseresult.go b/typedapi/types/httpinputresponseresult.go index 4f792564c2..308cb3cb19 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HttpInputResponseResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L302-L306 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L302-L306 type HttpInputResponseResult struct { Body string `json:"body"` Headers HttpHeaders `json:"headers"` diff --git a/typedapi/types/httproute.go b/typedapi/types/httproute.go index 11a5cb15de..cd6daf5b76 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // HttpRoute type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L690-L693 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L690-L693 type HttpRoute struct { Requests HttpRouteRequests `json:"requests"` Responses HttpRouteResponses `json:"responses"` diff --git a/typedapi/types/httprouterequests.go b/typedapi/types/httprouterequests.go index 2be19dd4c1..7ff7564ea4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HttpRouteRequests type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L695-L699 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L695-L699 type HttpRouteRequests struct { Count int64 `json:"count"` SizeHistogram []SizeHttpHistogram `json:"size_histogram"` diff --git a/typedapi/types/httprouteresponses.go b/typedapi/types/httprouteresponses.go index 121faa1591..c8dc25c0ca 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HttpRouteResponses type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L701-L706 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L701-L706 type HttpRouteResponses struct { Count int64 `json:"count"` HandlingTimeHistogram []TimeHttpHistogram `json:"handling_time_histogram"` diff --git a/typedapi/types/huggingfaceservicesettings.go b/typedapi/types/huggingfaceservicesettings.go new file mode 100644 index 0000000000..314a645c04 --- /dev/null +++ b/typedapi/types/huggingfaceservicesettings.go @@ -0,0 +1,119 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// HuggingFaceServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L869-L890 +type HuggingFaceServiceSettings struct { + // ApiKey A valid access token for your HuggingFace account. + // You can create or find your access tokens on the HuggingFace settings page. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey string `json:"api_key"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // Hugging Face. + // By default, the `hugging_face` service sets the number of requests allowed + // per minute to 3000. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // Url The URL endpoint to use for the requests. + Url string `json:"url"` +} + +func (s *HuggingFaceServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "api_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "url": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Url", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Url = o + + } + } + return nil +} + +// NewHuggingFaceServiceSettings returns a HuggingFaceServiceSettings. +func NewHuggingFaceServiceSettings() *HuggingFaceServiceSettings { + r := &HuggingFaceServiceSettings{} + + return r +} + +// true + +type HuggingFaceServiceSettingsVariant interface { + HuggingFaceServiceSettingsCaster() *HuggingFaceServiceSettings +} + +func (s *HuggingFaceServiceSettings) HuggingFaceServiceSettingsCaster() *HuggingFaceServiceSettings { + return s +} diff --git a/typedapi/types/hungariananalyzer.go b/typedapi/types/hungariananalyzer.go index 194d69531e..2e042acf4a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HungarianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L206-L211 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L206-L211 type HungarianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/hunspelltokenfilter.go b/typedapi/types/hunspelltokenfilter.go index c8bba78e0d..376cfb11e3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HunspellTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L201-L207 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L201-L207 type HunspellTokenFilter struct { Dedup *bool `json:"dedup,omitempty"` Dictionary *string `json:"dictionary,omitempty"` diff --git a/typedapi/types/hyperparameter.go b/typedapi/types/hyperparameter.go index b30ebccaae..0f2ddfa20f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Hyperparameter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L273-L287 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L274-L288 type Hyperparameter struct { // AbsoluteImportance A positive number showing how much the parameter influences the variation of // the loss function. For hyperparameters with values that are not specified by diff --git a/typedapi/types/hyperparameters.go b/typedapi/types/hyperparameters.go index c4bf121fd8..38551c0a05 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Hyperparameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L420-L526 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L420-L526 type Hyperparameters struct { // Alpha Advanced configuration option. // Machine learning uses loss guided tree growing, which means that the decision diff --git a/typedapi/types/hyphenationdecompoundertokenfilter.go b/typedapi/types/hyphenationdecompoundertokenfilter.go index 38ac8df841..74a83c7eeb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // HyphenationDecompounderTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L57-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L57-L59 type HyphenationDecompounderTokenFilter struct { HyphenationPatternsPath *string `json:"hyphenation_patterns_path,omitempty"` MaxSubwordSize *int `json:"max_subword_size,omitempty"` diff --git a/typedapi/types/icuanalyzer.go b/typedapi/types/icuanalyzer.go index 828a78562b..b9cf6cd2e0 100644 --- a/typedapi/types/icuanalyzer.go +++ b/typedapi/types/icuanalyzer.go @@ -16,20 +16,20 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationtype" ) // IcuAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L67-L71 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L67-L71 type IcuAnalyzer struct { Method icunormalizationtype.IcuNormalizationType `json:"method"` Mode icunormalizationmode.IcuNormalizationMode `json:"mode"` diff --git a/typedapi/types/icucollationproperty.go b/typedapi/types/icucollationproperty.go index 18a08f9391..bfc9976034 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,18 +28,18 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationalternate" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationcasefirst" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationdecomposition" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationstrength" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationalternate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationcasefirst" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationdecomposition" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationstrength" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // IcuCollationProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/specialized.ts#L103-L127 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/specialized.ts#L103-L127 type IcuCollationProperty struct { Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"` CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"case_first,omitempty"` diff --git a/typedapi/types/icucollationtokenfilter.go b/typedapi/types/icucollationtokenfilter.go index 51bcb5aa1a..99f34d39fa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationalternate" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationcasefirst" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationdecomposition" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icucollationstrength" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationalternate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationcasefirst" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationdecomposition" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icucollationstrength" ) // IcuCollationTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L51-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L51-L65 type IcuCollationTokenFilter struct { Alternate *icucollationalternate.IcuCollationAlternate `json:"alternate,omitempty"` CaseFirst *icucollationcasefirst.IcuCollationCaseFirst `json:"case_first,omitempty"` diff --git a/typedapi/types/icufoldingtokenfilter.go b/typedapi/types/icufoldingtokenfilter.go index 3b72b92323..d1b6bd7e81 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IcuFoldingTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L46-L49 type IcuFoldingTokenFilter struct { Type string `json:"type,omitempty"` UnicodeSetFilter string `json:"unicode_set_filter"` diff --git a/typedapi/types/icunormalizationcharfilter.go b/typedapi/types/icunormalizationcharfilter.go index 0f6a37be79..26ce3dbb13 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,13 +27,13 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationtype" ) // IcuNormalizationCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L40-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L40-L44 type IcuNormalizationCharFilter struct { Mode *icunormalizationmode.IcuNormalizationMode `json:"mode,omitempty"` Name *icunormalizationtype.IcuNormalizationType `json:"name,omitempty"` diff --git a/typedapi/types/icunormalizationtokenfilter.go b/typedapi/types/icunormalizationtokenfilter.go index fec5a2aea4..ae7e4718c0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icunormalizationtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icunormalizationtype" ) // IcuNormalizationTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L35-L38 type IcuNormalizationTokenFilter struct { Name icunormalizationtype.IcuNormalizationType `json:"name"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/icutokenizer.go b/typedapi/types/icutokenizer.go index 1d23aca04a..4a4db5a939 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IcuTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L30-L33 type IcuTokenizer struct { RuleFiles string `json:"rule_files"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/icutransformtokenfilter.go b/typedapi/types/icutransformtokenfilter.go index a9723c2ee5..b483f59320 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/icutransformdirection" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/icutransformdirection" ) // IcuTransformTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/icu-plugin.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/icu-plugin.ts#L24-L28 type IcuTransformTokenFilter struct { Dir *icutransformdirection.IcuTransformDirection `json:"dir,omitempty"` Id string `json:"id"` diff --git a/typedapi/types/ids.go b/typedapi/types/ids.go index 623b7a1f9f..13171c16b9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Ids type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L56-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3e4f3b7a13..6bb67da890 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IdsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L88-L96 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L88-L96 type IdsQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/ilm.go b/typedapi/types/ilm.go index 96f4882117..ee64476f97 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Ilm type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L172-L175 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L172-L175 type Ilm struct { PolicyCount int `json:"policy_count"` PolicyStats []IlmPolicyStatistics `json:"policy_stats"` diff --git a/typedapi/types/ilmactions.go b/typedapi/types/ilmactions.go index b283c071d9..872edaa9d7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IlmActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L39-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L39-L93 type IlmActions struct { // Allocate Phases allowed: warm, cold. Allocate *AllocateAction `json:"allocate,omitempty"` diff --git a/typedapi/types/ilmindicator.go b/typedapi/types/ilmindicator.go index a3cc666bd3..57e2855df1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indicatorhealthstatus" ) // IlmIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L164-L168 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L164-L168 type IlmIndicator struct { Details *IlmIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/ilmindicatordetails.go b/typedapi/types/ilmindicatordetails.go index 4f6cf1d079..c924fe8935 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/lifecycleoperationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/lifecycleoperationmode" ) // IlmIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L169-L173 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L169-L173 type IlmIndicatorDetails struct { IlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"ilm_status"` Policies int64 `json:"policies"` diff --git a/typedapi/types/ilmpolicy.go b/typedapi/types/ilmpolicy.go index 3dcffc7cae..70149a254b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IlmPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Policy.ts#L23-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Policy.ts#L23-L29 type IlmPolicy struct { // Meta_ Arbitrary metadata that is not automatically generated or used by // Elasticsearch. diff --git a/typedapi/types/ilmpolicystatistics.go b/typedapi/types/ilmpolicystatistics.go index 519606a732..f54d7c9b07 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IlmPolicyStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L167-L170 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L167-L170 type IlmPolicyStatistics struct { IndicesManaged int `json:"indices_managed"` Phases UsagePhases `json:"phases"` diff --git a/typedapi/types/impact.go b/typedapi/types/impact.go index 1a44a889ac..79117d89e1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/impactarea" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/impactarea" ) // Impact type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L67-L72 type Impact struct { Description string `json:"description"` Id string `json:"id"` diff --git a/typedapi/types/includedinvalidation.go b/typedapi/types/includedinvalidation.go index 4576ffbf12..0b9f923856 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // IncludedInValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L73-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L73-L76 type IncludedInValidation struct { Constraint []ScalarValue `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/indexaction.go b/typedapi/types/indexaction.go index 99c253ab93..a15b1bbb9d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,13 +27,13 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/optype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/refresh" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/optype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/refresh" ) // IndexAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L256-L265 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L256-L265 type IndexAction struct { DocId *string `json:"doc_id,omitempty"` ExecutionTimeField *string `json:"execution_time_field,omitempty"` diff --git a/typedapi/types/indexaliases.go b/typedapi/types/indexaliases.go index 9f0279800a..3203d7be83 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndexAliases type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_alias/IndicesGetAliasResponse.ts#L37-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/get_alias/IndicesGetAliasResponse.ts#L37-L39 type IndexAliases struct { Aliases map[string]AliasDefinition `json:"aliases"` } diff --git a/typedapi/types/indexanddatastreamaction.go b/typedapi/types/indexanddatastreamaction.go index 9252718f4c..bc27da12f2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IndexAndDataStreamAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/modify_data_stream/types.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/modify_data_stream/types.ts#L39-L44 type IndexAndDataStreamAction struct { // DataStream Data stream targeted by the action. DataStream string `json:"data_stream"` diff --git a/typedapi/types/indexcapabilities.go b/typedapi/types/indexcapabilities.go index b3d9ef1650..b08a1a9f77 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndexCapabilities type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_rollup_index_caps/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/get_rollup_index_caps/types.ts#L24-L26 type IndexCapabilities struct { RollupJobs []RollupJobSummary `json:"rollup_jobs"` } diff --git a/typedapi/types/indexdetails.go b/typedapi/types/indexdetails.go index b83393e5f1..4ba46e797f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndexDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotIndexDetails.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotIndexDetails.ts#L23-L28 type IndexDetails struct { MaxSegmentsPerShard int64 `json:"max_segments_per_shard"` ShardCount int `json:"shard_count"` diff --git a/typedapi/types/indexfield.go b/typedapi/types/indexfield.go index 963fee98c2..d65a5aa337 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndexField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/meta-fields.ts#L46-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/meta-fields.ts#L46-L48 type IndexField struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/indexhealthstats.go b/typedapi/types/indexhealthstats.go index 0c2c941676..88ae52f633 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/healthstatus" ) // IndexHealthStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/health/types.ts#L24-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/health/types.ts#L24-L35 type IndexHealthStats struct { ActivePrimaryShards int `json:"active_primary_shards"` ActiveShards int `json:"active_shards"` diff --git a/typedapi/types/indexingpressurememorysummary.go b/typedapi/types/indexingpressurememorysummary.go index 52bcd66587..77cf61dee4 100644 --- a/typedapi/types/indexingpressurememorysummary.go +++ b/typedapi/types/indexingpressurememorysummary.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndexingPressureMemorySummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L580-L589 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L580-L589 type IndexingPressureMemorySummary struct { AllInBytes int64 `json:"all_in_bytes"` CombinedCoordinatingAndPrimaryInBytes int64 `json:"combined_coordinating_and_primary_in_bytes"` diff --git a/typedapi/types/indexingslowlogsettings.go b/typedapi/types/indexingslowlogsettings.go index 06fc3be70f..26f4e7ed30 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndexingSlowlogSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L588-L593 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L588-L593 type IndexingSlowlogSettings struct { Level *string `json:"level,omitempty"` Reformat *bool `json:"reformat,omitempty"` diff --git a/typedapi/types/indexingslowlogtresholds.go b/typedapi/types/indexingslowlogtresholds.go index 6189357940..2d9e36e597 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndexingSlowlogTresholds type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L595-L602 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L595-L602 type IndexingSlowlogTresholds struct { // Index The indexing slow log, similar in functionality to the search slow log. The // log file name ends with `_index_indexing_slowlog.json`. diff --git a/typedapi/types/indexingstats.go b/typedapi/types/indexingstats.go index 7fbfcab6d3..c0ed544b38 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndexingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L146-L162 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L146-L164 type IndexingStats struct { DeleteCurrent int64 `json:"delete_current"` DeleteTime Duration `json:"delete_time,omitempty"` @@ -44,6 +44,8 @@ type IndexingStats struct { IndexTotal int64 `json:"index_total"` IsThrottled bool `json:"is_throttled"` NoopUpdateTotal int64 `json:"noop_update_total"` + PeakWriteLoad *Float64 `json:"peak_write_load,omitempty"` + RecentWriteLoad *Float64 `json:"recent_write_load,omitempty"` ThrottleTime Duration `json:"throttle_time,omitempty"` ThrottleTimeInMillis int64 `json:"throttle_time_in_millis"` Types map[string]IndexingStats `json:"types,omitempty"` @@ -189,6 +191,38 @@ func (s *IndexingStats) UnmarshalJSON(data []byte) error { s.NoopUpdateTotal = f } + case "peak_write_load": + 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", "PeakWriteLoad", err) + } + f := Float64(value) + s.PeakWriteLoad = &f + case float64: + f := Float64(v) + s.PeakWriteLoad = &f + } + + case "recent_write_load": + 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", "RecentWriteLoad", err) + } + f := Float64(value) + s.RecentWriteLoad = &f + case float64: + f := Float64(v) + s.RecentWriteLoad = &f + } + case "throttle_time": if err := dec.Decode(&s.ThrottleTime); err != nil { return fmt.Errorf("%s | %w", "ThrottleTime", err) diff --git a/typedapi/types/indexmappingrecord.go b/typedapi/types/indexmappingrecord.go index 1f5be1f3fc..282780b31d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndexMappingRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/get_mapping/IndicesGetMappingResponse.ts#L29-L32 type IndexMappingRecord struct { Item *TypeMapping `json:"item,omitempty"` Mappings TypeMapping `json:"mappings"` diff --git a/typedapi/types/indexoperation.go b/typedapi/types/indexoperation.go index 2454b7b9ab..0f27641f63 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) // IndexOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/bulk/types.ts#L142-L142 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/bulk/types.ts#L142-L142 type IndexOperation struct { // DynamicTemplates A map from the full name of fields to the name of dynamic templates. // It defaults to an empty map. diff --git a/typedapi/types/indexprivilegescheck.go b/typedapi/types/indexprivilegescheck.go index 13b167cde7..346401ea9b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexprivilege" ) // IndexPrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/has_privileges/types.ts#L34-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/has_privileges/types.ts#L34-L45 type IndexPrivilegesCheck struct { // AllowRestrictedIndices This needs to be set to `true` (default is `false`) if using wildcards or // regexps for patterns that cover restricted indices. diff --git a/typedapi/types/indexresult.go b/typedapi/types/indexresult.go index 058bd3c7ef..e6b220cd3b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndexResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L267-L269 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L267-L269 type IndexResult struct { Response IndexResultSummary `json:"response"` } diff --git a/typedapi/types/indexresultsummary.go b/typedapi/types/indexresultsummary.go index 523ed8f2f4..ae5047425d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/result" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/result" ) // IndexResultSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L271-L277 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L271-L277 type IndexResultSummary struct { Created bool `json:"created"` Id string `json:"id"` diff --git a/typedapi/types/indexrouting.go b/typedapi/types/indexrouting.go index e5652dce03..42fc68db2d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndexRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexRouting.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexRouting.ts#L22-L25 type IndexRouting struct { Allocation *IndexRoutingAllocation `json:"allocation,omitempty"` Rebalance *IndexRoutingRebalance `json:"rebalance,omitempty"` diff --git a/typedapi/types/indexroutingallocation.go b/typedapi/types/indexroutingallocation.go index 5415759cc2..3382adf997 100644 --- a/typedapi/types/indexroutingallocation.go +++ b/typedapi/types/indexroutingallocation.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingallocationoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexroutingallocationoptions" ) // IndexRoutingAllocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexRouting.ts#L27-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexRouting.ts#L27-L32 type IndexRoutingAllocation struct { Disk *IndexRoutingAllocationDisk `json:"disk,omitempty"` Enable *indexroutingallocationoptions.IndexRoutingAllocationOptions `json:"enable,omitempty"` diff --git a/typedapi/types/indexroutingallocationdisk.go b/typedapi/types/indexroutingallocationdisk.go index bf76a42af1..525382b728 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndexRoutingAllocationDisk type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexRouting.ts#L62-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexRouting.ts#L62-L64 type IndexRoutingAllocationDisk struct { ThresholdEnabled string `json:"threshold_enabled,omitempty"` } diff --git a/typedapi/types/indexroutingallocationinclude.go b/typedapi/types/indexroutingallocationinclude.go index 17f6c48c27..0a8fdfa8a6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndexRoutingAllocationInclude type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexRouting.ts#L52-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexRouting.ts#L52-L55 type IndexRoutingAllocationInclude struct { Id_ *string `json:"_id,omitempty"` TierPreference_ *string `json:"_tier_preference,omitempty"` diff --git a/typedapi/types/indexroutingallocationinitialrecovery.go b/typedapi/types/indexroutingallocationinitialrecovery.go index 29ca3e867f..38a76fb65a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IndexRoutingAllocationInitialRecovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexRouting.ts#L57-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexRouting.ts#L57-L59 type IndexRoutingAllocationInitialRecovery struct { Id_ *string `json:"_id,omitempty"` } diff --git a/typedapi/types/indexroutingrebalance.go b/typedapi/types/indexroutingrebalance.go index 29f1baa656..3870f745f1 100644 --- a/typedapi/types/indexroutingrebalance.go +++ b/typedapi/types/indexroutingrebalance.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexroutingrebalanceoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexroutingrebalanceoptions" ) // IndexRoutingRebalance type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexRouting.ts#L34-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexRouting.ts#L34-L36 type IndexRoutingRebalance struct { Enable indexroutingrebalanceoptions.IndexRoutingRebalanceOptions `json:"enable"` } diff --git a/typedapi/types/indexsegment.go b/typedapi/types/indexsegment.go index dcd607c011..cb2a6912c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndexSegment type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/segments/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/segments/types.ts#L24-L26 type IndexSegment struct { Shards map[string][]ShardsSegment `json:"shards"` } diff --git a/typedapi/types/indexsegmentsort.go b/typedapi/types/indexsegmentsort.go index 81a7efe9ac..340a42cae6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,14 +27,14 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmissing" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/segmentsortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/segmentsortmissing" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/segmentsortmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/segmentsortorder" ) // IndexSegmentSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSegmentSort.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSegmentSort.ts#L22-L27 type IndexSegmentSort struct { Field []string `json:"field,omitempty"` Missing []segmentsortmissing.SegmentSortMissing `json:"missing,omitempty"` diff --git a/typedapi/types/indexsettingblocks.go b/typedapi/types/indexsettingblocks.go index 423f58039c..725a7d25e8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IndexSettingBlocks type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L262-L268 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L262-L268 type IndexSettingBlocks struct { Metadata Stringifiedboolean `json:"metadata,omitempty"` Read Stringifiedboolean `json:"read,omitempty"` diff --git a/typedapi/types/indexsettings.go b/typedapi/types/indexsettings.go index 07c8e2036f..8622a26be5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexcheckonstartup" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexcheckonstartup" ) // IndexSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L70-L176 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L70-L176 type IndexSettings struct { Analysis *IndexSettingsAnalysis `json:"analysis,omitempty"` // Analyze Settings to define analyzers, tokenizers, token filters and character diff --git a/typedapi/types/indexsettingsanalysis.go b/typedapi/types/indexsettingsanalysis.go index 9137b4a626..ffe4836ada 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L333-L339 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L333-L339 type IndexSettingsAnalysis struct { Analyzer map[string]Analyzer `json:"analyzer,omitempty"` CharFilter map[string]CharFilter `json:"char_filter,omitempty"` diff --git a/typedapi/types/indexsettingslifecycle.go b/typedapi/types/indexsettingslifecycle.go index 597bd4b676..240bf249bb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndexSettingsLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L284-L323 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L284-L323 type IndexSettingsLifecycle struct { // IndexingComplete Indicates whether or not the index has been rolled over. Automatically set to // true when ILM completes the rollover action. diff --git a/typedapi/types/indexsettingslifecyclestep.go b/typedapi/types/indexsettingslifecyclestep.go index bd5bb07a25..dbcfe9f6c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsLifecycleStep type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L325-L331 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L325-L331 type IndexSettingsLifecycleStep struct { // WaitTimeThreshold Time to wait for the cluster to resolve allocation issues during an ILM // shrink action. Must be greater than 1h (1 hour). diff --git a/typedapi/types/indexsettingstimeseries.go b/typedapi/types/indexsettingstimeseries.go index d3166b0aba..8752a81ddd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IndexSettingsTimeSeries type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L341-L344 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L341-L344 type IndexSettingsTimeSeries struct { EndTime DateTime `json:"end_time,omitempty"` StartTime DateTime `json:"start_time,omitempty"` diff --git a/typedapi/types/indexstate.go b/typedapi/types/indexstate.go index a6c16ce740..5600b2dd5d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IndexState type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexState.ts#L27-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexState.ts#L27-L40 type IndexState struct { Aliases map[string]Alias `json:"aliases,omitempty"` DataStream *string `json:"data_stream,omitempty"` diff --git a/typedapi/types/indexstats.go b/typedapi/types/indexstats.go index cba49bd51d..91858dd98b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L52-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L52-L93 type IndexStats struct { Bulk *BulkStats `json:"bulk,omitempty"` // Completion Contains statistics about completions across all shards assigned to the node. diff --git a/typedapi/types/indextemplate.go b/typedapi/types/indextemplate.go index e4c1e91db1..d1dbc60258 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndexTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexTemplate.ts#L28-L81 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexTemplate.ts#L28-L81 type IndexTemplate struct { AllowAutoCreate *bool `json:"allow_auto_create,omitempty"` // ComposedOf An ordered list of component template names. diff --git a/typedapi/types/indextemplatedatastreamconfiguration.go b/typedapi/types/indextemplatedatastreamconfiguration.go index a818c6a866..193a5ff5a5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndexTemplateDataStreamConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexTemplate.ts#L83-L94 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexTemplate.ts#L83-L94 type IndexTemplateDataStreamConfiguration struct { // AllowCustomRouting If true, the data stream supports custom routing. AllowCustomRouting *bool `json:"allow_custom_routing,omitempty"` diff --git a/typedapi/types/indextemplateitem.go b/typedapi/types/indextemplateitem.go index 40d7affddf..15073f53e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IndexTemplateItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/get_index_template/IndicesGetIndexTemplateResponse.ts#L29-L32 type IndexTemplateItem struct { IndexTemplate IndexTemplate `json:"index_template"` Name string `json:"name"` diff --git a/typedapi/types/indextemplatemapping.go b/typedapi/types/indextemplatemapping.go index c96de1aa97..5b2266bc8b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndexTemplateMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L159-L181 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L159-L181 type IndexTemplateMapping struct { // Aliases Aliases to add. // If the index template includes a `data_stream` object, these are data stream diff --git a/typedapi/types/indextemplatesummary.go b/typedapi/types/indextemplatesummary.go index be8b47de11..28195ad5b9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndexTemplateSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexTemplate.ts#L96-L118 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexTemplate.ts#L96-L118 type IndexTemplateSummary struct { // Aliases Aliases to add. // If the index template includes a `data_stream` object, these are data stream diff --git a/typedapi/types/indexversioning.go b/typedapi/types/indexversioning.go index d0f76c52d7..ac726b2e89 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndexVersioning type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L279-L282 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L279-L282 type IndexVersioning struct { Created *string `json:"created,omitempty"` CreatedString *string `json:"created_string,omitempty"` diff --git a/typedapi/types/indicatornode.go b/typedapi/types/indicatornode.go index d66ba9bfcc..1f73d52a16 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndicatorNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L92-L95 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L92-L95 type IndicatorNode struct { Name *string `json:"name,omitempty"` NodeId *string `json:"node_id,omitempty"` diff --git a/typedapi/types/indicators.go b/typedapi/types/indicators.go index ffe7ddb62d..55de9d900d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Indicators type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L32-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L32-L42 type Indicators struct { DataStreamLifecycle *DataStreamLifecycleIndicator `json:"data_stream_lifecycle,omitempty"` Disk *DiskIndicator `json:"disk,omitempty"` diff --git a/typedapi/types/indices.go b/typedapi/types/indices.go index a1535ece1d..e33dd606bd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Indices type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L61-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 042390028c..21ac53512a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // IndicesAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/update_aliases/types.ts#L23-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/update_aliases/types.ts#L23-L39 type IndicesAction struct { // Add Adds a data stream or index to an alias. // If the alias doesn’t exist, the `add` action creates it. diff --git a/typedapi/types/indicesblockstatus.go b/typedapi/types/indicesblockstatus.go index 1d783835f0..c11c19cc99 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndicesBlockStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/add_block/IndicesAddBlockResponse.ts#L30-L33 type IndicesBlockStatus struct { Blocked bool `json:"blocked"` Name string `json:"name"` diff --git a/typedapi/types/indicesindexingpressure.go b/typedapi/types/indicesindexingpressure.go index 47f07de710..8e9ea30347 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndicesIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L575-L577 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L575-L577 type IndicesIndexingPressure struct { Memory IndicesIndexingPressureMemory `json:"memory"` } diff --git a/typedapi/types/indicesindexingpressurememory.go b/typedapi/types/indicesindexingpressurememory.go index 5e7abd570f..6340b24cf9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndicesIndexingPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L579-L586 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L579-L586 type IndicesIndexingPressureMemory struct { // Limit Number of outstanding bytes that may be consumed by indexing requests. When // this limit is reached or exceeded, diff --git a/typedapi/types/indicesmodifyaction.go b/typedapi/types/indicesmodifyaction.go index 2252699b38..6a68167105 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // IndicesModifyAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/modify_data_stream/types.ts#L22-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/modify_data_stream/types.ts#L22-L37 type IndicesModifyAction struct { // AddBackingIndex Adds an existing index as a backing index for a data stream. // The index is hidden as part of this operation. diff --git a/typedapi/types/indicesoptions.go b/typedapi/types/indicesoptions.go index f39755325f..bf848404c0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" ) // IndicesOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L332-L359 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L332-L359 type IndicesOptions struct { // AllowNoIndices If false, the request returns an error if any wildcard expression, index // alias, or `_all` value targets only diff --git a/typedapi/types/indicesprivileges.go b/typedapi/types/indicesprivileges.go index 80043f0dc2..d878b34187 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexprivilege" ) // IndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L216-L242 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L216-L242 type IndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited diff --git a/typedapi/types/indicesprivilegesquery.go b/typedapi/types/indicesprivilegesquery.go index 76d7df70ea..c085226735 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ package types // Query // RoleTemplateQuery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L341-L349 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e91999497a..45a52cda30 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndicesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/indices/types.ts#L20-L808 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/indices/types.ts#L20-L808 type IndicesRecord struct { // BulkAvgSizeInBytes average size in bytes of shard bulk BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"` diff --git a/typedapi/types/indicesshardsstats.go b/typedapi/types/indicesshardsstats.go index 8c490de78a..e306be7396 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndicesShardsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L52-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L53-L56 type IndicesShardsStats struct { AllFields FieldSummary `json:"all_fields"` Fields map[string]FieldSummary `json:"fields"` diff --git a/typedapi/types/indicesshardstats.go b/typedapi/types/indicesshardstats.go index 0a49c574c3..3bf3f5e0f3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // IndicesShardStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L192-L223 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L192-L223 type IndicesShardStats struct { Bulk *BulkStats `json:"bulk,omitempty"` Commit *ShardCommit `json:"commit,omitempty"` diff --git a/typedapi/types/indicesshardstores.go b/typedapi/types/indicesshardstores.go index 5b639c6039..6e9093fb15 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IndicesShardStores type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/shard_stores/types.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/shard_stores/types.ts#L25-L27 type IndicesShardStores struct { Shards map[string]ShardStoreWrapper `json:"shards"` } diff --git a/typedapi/types/indicesstats.go b/typedapi/types/indicesstats.go index 9d166096ee..d67166dab7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,13 +27,13 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexmetadatastate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/healthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexmetadatastate" ) // IndicesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L95-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L95-L110 type IndicesStats struct { Health *healthstatus.HealthStatus `json:"health,omitempty"` Primaries *IndexStats `json:"primaries,omitempty"` diff --git a/typedapi/types/indicesvalidationexplanation.go b/typedapi/types/indicesvalidationexplanation.go index 93c7850110..2122720e4f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndicesValidationExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/validate_query/IndicesValidateQueryResponse.ts#L32-L37 type IndicesValidationExplanation struct { Error *string `json:"error,omitempty"` Explanation *string `json:"explanation,omitempty"` diff --git a/typedapi/types/indicesversions.go b/typedapi/types/indicesversions.go index 357c229610..7c42fea050 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndicesVersions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L263-L268 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L263-L268 type IndicesVersions struct { IndexCount int `json:"index_count"` PrimaryShardCount int `json:"primary_shard_count"` diff --git a/typedapi/types/indonesiananalyzer.go b/typedapi/types/indonesiananalyzer.go index 2ea6e4e298..c342b4a16b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IndonesianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L213-L218 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L213-L218 type IndonesianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/inferenceaggregate.go b/typedapi/types/inferenceaggregate.go index cfaa1fc0da..8012a2cec5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InferenceAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L755-L770 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L755-L770 type InferenceAggregate struct { Data map[string]json.RawMessage `json:"-"` FeatureImportance []InferenceFeatureImportance `json:"feature_importance,omitempty"` diff --git a/typedapi/types/inferenceaggregation.go b/typedapi/types/inferenceaggregation.go index 72d3237f5d..b11e1a61cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // InferenceAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L225-L234 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L225-L234 type InferenceAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/inferencechunkingsettings.go b/typedapi/types/inferencechunkingsettings.go index 76e74165cb..3e021df5ab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,10 +31,8 @@ import ( // InferenceChunkingSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/_types/Services.ts#L60-L89 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/Services.ts#L60-L89 type InferenceChunkingSettings struct { - // ChunkingSettings Chunking configuration object - ChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"` // MaxChunkSize The maximum size of a chunk in words. // This value cannot be higher than `300` or lower than `20` (for `sentence` // strategy) or `10` (for `word` strategy). @@ -47,14 +45,8 @@ type InferenceChunkingSettings struct { // It is applicable only for a `sentence` chunking strategy. // It can be either `1` or `0`. SentenceOverlap *int `json:"sentence_overlap,omitempty"` - // Service The service type - Service string `json:"service"` - // ServiceSettings Settings specific to the service - ServiceSettings json.RawMessage `json:"service_settings"` // Strategy The chunking strategy: `sentence` or `word`. Strategy *string `json:"strategy,omitempty"` - // TaskSettings Task settings specific to the service and task type - TaskSettings json.RawMessage `json:"task_settings,omitempty"` } func (s *InferenceChunkingSettings) UnmarshalJSON(data []byte) error { @@ -72,11 +64,6 @@ func (s *InferenceChunkingSettings) UnmarshalJSON(data []byte) error { switch t { - case "chunking_settings": - if err := dec.Decode(&s.ChunkingSettings); err != nil { - return fmt.Errorf("%s | %w", "ChunkingSettings", err) - } - case "max_chunk_size": var tmp any @@ -125,23 +112,6 @@ func (s *InferenceChunkingSettings) UnmarshalJSON(data []byte) error { s.SentenceOverlap = &f } - case "service": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { - return fmt.Errorf("%s | %w", "Service", err) - } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.Service = o - - case "service_settings": - if err := dec.Decode(&s.ServiceSettings); err != nil { - return fmt.Errorf("%s | %w", "ServiceSettings", err) - } - case "strategy": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { @@ -154,11 +124,6 @@ func (s *InferenceChunkingSettings) UnmarshalJSON(data []byte) error { } s.Strategy = &o - case "task_settings": - if err := dec.Decode(&s.TaskSettings); err != nil { - return fmt.Errorf("%s | %w", "TaskSettings", err) - } - } } return nil diff --git a/typedapi/types/inferenceclassimportance.go b/typedapi/types/inferenceclassimportance.go index 5d5cf6b663..cfbeaf9688 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InferenceClassImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L784-L787 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L784-L787 type InferenceClassImportance struct { ClassName string `json:"class_name"` Importance Float64 `json:"importance"` diff --git a/typedapi/types/inferenceconfig.go b/typedapi/types/inferenceconfig.go index 10c058b29f..0cf77ccb94 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // InferenceConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1049-L1061 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Processors.ts#L1067-L1079 type InferenceConfig struct { AdditionalInferenceConfigProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. diff --git a/typedapi/types/inferenceconfigclassification.go b/typedapi/types/inferenceconfigclassification.go index 5abafe44b5..5a20738028 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InferenceConfigClassification type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1076-L1102 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` diff --git a/typedapi/types/inferenceconfigcontainer.go b/typedapi/types/inferenceconfigcontainer.go index e464c6a0dd..9c0e2baa47 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // InferenceConfigContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L236-L242 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L236-L242 type InferenceConfigContainer struct { AdditionalInferenceConfigContainerProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. diff --git a/typedapi/types/inferenceconfigcreatecontainer.go b/typedapi/types/inferenceconfigcreatecontainer.go index c3cddf8e13..5d71507d06 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,13 +27,14 @@ import ( // InferenceConfigCreateContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L23-L80 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L26-L85 type InferenceConfigCreateContainer struct { AdditionalInferenceConfigCreateContainerProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. Classification *ClassificationInferenceOptions `json:"classification,omitempty"` // FillMask Fill mask configuration for inference. - FillMask *FillMaskInferenceOptions `json:"fill_mask,omitempty"` + FillMask *FillMaskInferenceOptions `json:"fill_mask,omitempty"` + LearningToRank *LearningToRankConfig `json:"learning_to_rank,omitempty"` // Ner Named entity recognition configuration for inference. Ner *NerInferenceOptions `json:"ner,omitempty"` // PassThrough Pass through configuration for inference. diff --git a/typedapi/types/inferenceconfigregression.go b/typedapi/types/inferenceconfigregression.go index 8f8a224c5b..49c39140ee 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InferenceConfigRegression type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1063-L1074 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` diff --git a/typedapi/types/inferenceconfigupdatecontainer.go b/typedapi/types/inferenceconfigupdatecontainer.go index bf99db037a..c6e1336282 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // InferenceConfigUpdateContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L284-L306 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L315-L337 type InferenceConfigUpdateContainer struct { AdditionalInferenceConfigUpdateContainerProperty map[string]json.RawMessage `json:"-"` // Classification Classification configuration for inference. diff --git a/typedapi/types/inferenceendpoint.go b/typedapi/types/inferenceendpoint.go index 7a6bf557b2..f0c81e80ab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InferenceEndpoint type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/_types/Services.ts#L24-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/Services.ts#L24-L44 type InferenceEndpoint struct { // ChunkingSettings Chunking configuration object ChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"` diff --git a/typedapi/types/inferenceendpointinfo.go b/typedapi/types/inferenceendpointinfo.go index 6505cb5ece..c64e8d5c10 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tasktype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tasktype" ) // InferenceEndpointInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/_types/Services.ts#L46-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/Services.ts#L46-L58 type InferenceEndpointInfo struct { // ChunkingSettings Chunking configuration object ChunkingSettings *InferenceChunkingSettings `json:"chunking_settings,omitempty"` diff --git a/typedapi/types/inferencefeatureimportance.go b/typedapi/types/inferencefeatureimportance.go index f346d80f35..d6404389f3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InferenceFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L778-L782 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L778-L782 type InferenceFeatureImportance struct { Classes []InferenceClassImportance `json:"classes,omitempty"` FeatureName string `json:"feature_name"` diff --git a/typedapi/types/inferenceprocessor.go b/typedapi/types/inferenceprocessor.go index 3c8adfd089..8f140cc137 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InferenceProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1028-L1047 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. @@ -44,8 +44,18 @@ type InferenceProcessor struct { If *Script `json:"if,omitempty"` // IgnoreFailure Ignore failures for the processor. IgnoreFailure *bool `json:"ignore_failure,omitempty"` + // IgnoreMissing If true and any of the input fields defined in input_ouput are missing + // then those missing fields are quietly ignored, otherwise a missing field + // causes a failure. + // Only applies when using input_output configurations to explicitly list the + // input fields. + IgnoreMissing *bool `json:"ignore_missing,omitempty"` // InferenceConfig Contains the inference type and its options. InferenceConfig *InferenceConfig `json:"inference_config,omitempty"` + // InputOutput Input fields for inference and output (destination) fields for the inference + // results. + // This option is incompatible with the target_field and field_map options. + InputOutput []InputConfig `json:"input_output,omitempty"` // ModelId The ID or alias for the trained model, or the ID of the deployment. ModelId string `json:"model_id"` // OnFailure Handle failures for the processor. @@ -111,11 +121,41 @@ func (s *InferenceProcessor) UnmarshalJSON(data []byte) error { s.IgnoreFailure = &v } + case "ignore_missing": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "IgnoreMissing", err) + } + s.IgnoreMissing = &value + case bool: + s.IgnoreMissing = &v + } + case "inference_config": if err := dec.Decode(&s.InferenceConfig); err != nil { return fmt.Errorf("%s | %w", "InferenceConfig", err) } + case "input_output": + rawMsg := json.RawMessage{} + dec.Decode(&rawMsg) + if !bytes.HasPrefix(rawMsg, []byte("[")) { + o := NewInputConfig() + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "InputOutput", err) + } + + s.InputOutput = append(s.InputOutput, *o) + } else { + if err := json.NewDecoder(bytes.NewReader(rawMsg)).Decode(&s.InputOutput); err != nil { + return fmt.Errorf("%s | %w", "InputOutput", err) + } + } + case "model_id": if err := dec.Decode(&s.ModelId); err != nil { return fmt.Errorf("%s | %w", "ModelId", err) diff --git a/typedapi/types/inferenceresponseresult.go b/typedapi/types/inferenceresponseresult.go index 97d55f1bf7..407b53750c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InferenceResponseResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L447-L495 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L478-L526 type InferenceResponseResult struct { // Entities If the model is trained for named entity recognition (NER) tasks, the // response contains the recognized entities. diff --git a/typedapi/types/inferencetopclassentry.go b/typedapi/types/inferencetopclassentry.go index 702f41d9ea..313678274c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InferenceTopClassEntry type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L772-L776 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L772-L776 type InferenceTopClassEntry struct { ClassName FieldValue `json:"class_name"` ClassProbability Float64 `json:"class_probability"` diff --git a/typedapi/types/influence.go b/typedapi/types/influence.go index 6794e323d6..5321f18ab0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Influence type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Anomaly.ts#L141-L144 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Anomaly.ts#L141-L144 type Influence struct { InfluencerFieldName string `json:"influencer_field_name"` InfluencerFieldValues []string `json:"influencer_field_values"` diff --git a/typedapi/types/influencer.go b/typedapi/types/influencer.go index 0f3061921e..7cd1cbc307 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Influencer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Influencer.ts#L24-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Influencer.ts#L24-L76 type Influencer struct { // BucketSpan The length of the bucket in seconds. This value matches the bucket span that // is specified in the job. diff --git a/typedapi/types/infofeaturestate.go b/typedapi/types/infofeaturestate.go index 1d72c53bff..461ccc7bfc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InfoFeatureState type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotInfoFeatureState.ts#L22-L25 type InfoFeatureState struct { FeatureName string `json:"feature_name"` Indices []string `json:"indices"` diff --git a/typedapi/types/ingest.go b/typedapi/types/ingest.go index b28e13c8c6..9c89940a75 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Ingest type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Simulation.ts#L29-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Simulation.ts#L29-L37 type Ingest struct { Pipeline *string `json:"pipeline,omitempty"` Redact_ *Redact `json:"_redact,omitempty"` diff --git a/typedapi/types/ingestdocumentsimulation.go b/typedapi/types/ingestdocumentsimulation.go index ddd6899bd1..1bfae80cd2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IngestDocumentSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/simulate/ingest/SimulateIngestResponse.ts#L35-L78 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/simulate/ingest/SimulateIngestResponse.ts#L35-L78 type IngestDocumentSimulation struct { // Error Any error resulting from simulatng ingest on this doc. This can be an error // generated by diff --git a/typedapi/types/ingestpipeline.go b/typedapi/types/ingestpipeline.go index 033b2cf3ef..e5ffb0252d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IngestPipeline type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Pipeline.ts#L23-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Pipeline.ts#L23-L51 type IngestPipeline struct { // Deprecated Marks this ingest pipeline as deprecated. // When a deprecated ingest pipeline is referenced as the default or final diff --git a/typedapi/types/ingestpipelineparams.go b/typedapi/types/ingestpipelineparams.go index 020d0c43ab..50a46bb645 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IngestPipelineParams type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L148-L153 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L148-L153 type IngestPipelineParams struct { ExtractBinaryContent bool `json:"extract_binary_content"` Name string `json:"name"` diff --git a/typedapi/types/ingeststats.go b/typedapi/types/ingeststats.go index 863e996b6a..3dbf29048a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IngestStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L356-L394 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L356-L394 type IngestStats struct { // Count Total number of documents ingested during the lifetime of this node. Count int64 `json:"count"` diff --git a/typedapi/types/ingesttotal.go b/typedapi/types/ingesttotal.go index 0c7bbb7a4c..f34da471da 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IngestTotal type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L396-L413 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L396-L413 type IngestTotal struct { // Count Total number of documents ingested during the lifetime of this node. Count int64 `json:"count"` diff --git a/typedapi/types/inlineget.go b/typedapi/types/inlineget.go index 2d73f060d1..fb65c16103 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InlineGet type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L317-L330 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L317-L330 type InlineGet struct { Fields map[string]json.RawMessage `json:"fields,omitempty"` Found bool `json:"found"` diff --git a/typedapi/types/inlinegetdictuserdefined.go b/typedapi/types/inlinegetdictuserdefined.go index 04b8f32ee3..e22878b7bf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InlineGetDictUserDefined type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L317-L330 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L317-L330 type InlineGetDictUserDefined struct { Fields map[string]json.RawMessage `json:"fields,omitempty"` Found bool `json:"found"` diff --git a/typedapi/types/innerhits.go b/typedapi/types/innerhits.go index f4eafed023..6158d38655 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InnerHits type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/hits.ts#L107-L141 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/hits.ts#L107-L141 type InnerHits struct { Collapse *FieldCollapse `json:"collapse,omitempty"` DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"` diff --git a/typedapi/types/innerhitsresult.go b/typedapi/types/innerhitsresult.go index 8d9ad8f481..62043036a9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // InnerHitsResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/hits.ts#L85-L87 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/hits.ts#L85-L87 type InnerHitsResult struct { Hits HitsMetadata `json:"hits"` } diff --git a/typedapi/types/inprogress.go b/typedapi/types/inprogress.go index 776e856ac0..ccd84b1595 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // InProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/_types/SnapshotLifecycle.ts#L141-L146 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/slm/_types/SnapshotLifecycle.ts#L141-L146 type InProgress struct { Name string `json:"name"` StartTimeMillis int64 `json:"start_time_millis"` diff --git a/typedapi/types/input.go b/typedapi/types/input.go index 1eed8823b4..aa357c6fbf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Input type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L56-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L56-L58 type Input struct { FieldNames []string `json:"field_names"` } diff --git a/typedapi/types/inputconfig.go b/typedapi/types/inputconfig.go new file mode 100644 index 0000000000..e73386988c --- /dev/null +++ b/typedapi/types/inputconfig.go @@ -0,0 +1,99 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// InputConfig type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Processors.ts#L1062-L1065 +type InputConfig struct { + InputField string `json:"input_field"` + OutputField string `json:"output_field"` +} + +func (s *InputConfig) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "input_field": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "InputField", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.InputField = o + + case "output_field": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "OutputField", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.OutputField = o + + } + } + return nil +} + +// NewInputConfig returns a InputConfig. +func NewInputConfig() *InputConfig { + r := &InputConfig{} + + return r +} + +// true + +type InputConfigVariant interface { + InputConfigCaster() *InputConfig +} + +func (s *InputConfig) InputConfigCaster() *InputConfig { + return s +} diff --git a/typedapi/types/integernumberproperty.go b/typedapi/types/integernumberproperty.go index 9f2e292c67..aec4c75db8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // IntegerNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L161-L164 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L170-L173 type IntegerNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/integerrangeproperty.go b/typedapi/types/integerrangeproperty.go index a7d82c229a..252bf5efd5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // IntegerRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/range.ts#L42-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/range.ts#L42-L44 type IntegerRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/intervals.go b/typedapi/types/intervals.go index f02444fa5c..ea140fe543 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // Intervals type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L83-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L83-L110 type Intervals struct { AdditionalIntervalsProperty map[string]json.RawMessage `json:"-"` // AllOf Returns matches that span a combination of other rules. diff --git a/typedapi/types/intervalsallof.go b/typedapi/types/intervalsallof.go index 6a134460e3..38938baaef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IntervalsAllOf type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L50-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L50-L70 type IntervalsAllOf struct { // Filter Rule used to filter returned intervals. Filter *IntervalsFilter `json:"filter,omitempty"` diff --git a/typedapi/types/intervalsanyof.go b/typedapi/types/intervalsanyof.go index af5e6689e4..0963fb1381 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IntervalsAnyOf type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L72-L81 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L72-L81 type IntervalsAnyOf struct { // Filter Rule used to filter returned intervals. Filter *IntervalsFilter `json:"filter,omitempty"` diff --git a/typedapi/types/intervalsfilter.go b/typedapi/types/intervalsfilter.go index 0b87c50a67..10b93044bf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // IntervalsFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L112-L152 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L112-L152 type IntervalsFilter struct { AdditionalIntervalsFilterProperty map[string]json.RawMessage `json:"-"` // After Query used to return intervals that follow an interval from the `filter` diff --git a/typedapi/types/intervalsfuzzy.go b/typedapi/types/intervalsfuzzy.go index bea602a9c4..f30229fa95 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IntervalsFuzzy type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L154-L184 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L154-L184 type IntervalsFuzzy struct { // Analyzer Analyzer used to normalize the term. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/intervalsmatch.go b/typedapi/types/intervalsmatch.go index 9c2b00f8c0..41ff34c7e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IntervalsMatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L186-L216 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L186-L216 type IntervalsMatch struct { // Analyzer Analyzer used to analyze terms in the query. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/intervalsprefix.go b/typedapi/types/intervalsprefix.go index 1a6c862884..3bc9e03913 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IntervalsPrefix type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L218-L233 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L218-L233 type IntervalsPrefix struct { // Analyzer Analyzer used to analyze the `prefix`. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/intervalsquery.go b/typedapi/types/intervalsquery.go index 1663570596..3a6b5e320f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IntervalsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L235-L266 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L235-L266 type IntervalsQuery struct { AdditionalIntervalsQueryProperty map[string]json.RawMessage `json:"-"` // AllOf Returns matches that span a combination of other rules. diff --git a/typedapi/types/intervalswildcard.go b/typedapi/types/intervalswildcard.go index d0367f34ae..f4df368f6e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IntervalsWildcard type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L268-L283 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L268-L283 type IntervalsWildcard struct { // Analyzer Analyzer used to analyze the `pattern`. // Defaults to the top-level field's analyzer. diff --git a/typedapi/types/invertedindex.go b/typedapi/types/invertedindex.go index e85cbfd395..949e954f5e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // InvertedIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L68-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L69-L77 type InvertedIndex struct { Offsets uint `json:"offsets"` Payloads uint `json:"payloads"` diff --git a/typedapi/types/invocation.go b/typedapi/types/invocation.go index 4db6a14ba4..951dc39431 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Invocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/_types/SnapshotLifecycle.ts#L148-L151 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/slm/_types/SnapshotLifecycle.ts#L148-L151 type Invocation struct { SnapshotName string `json:"snapshot_name"` Time DateTime `json:"time"` diff --git a/typedapi/types/invocations.go b/typedapi/types/invocations.go index 1f30e6b579..477575dd20 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Invocations type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L41-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L41-L43 type Invocations struct { Total int64 `json:"total"` } diff --git a/typedapi/types/iostatdevice.go b/typedapi/types/iostatdevice.go index 62f2482778..c55d4856a7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IoStatDevice type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L801-L826 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L801-L826 type IoStatDevice struct { // DeviceName The Linux device name. DeviceName *string `json:"device_name,omitempty"` diff --git a/typedapi/types/iostats.go b/typedapi/types/iostats.go index c969f7c16f..de2df5df01 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // IoStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L789-L799 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L789-L799 type IoStats struct { // Devices Array of disk metrics for each device that is backing an Elasticsearch data // path. diff --git a/typedapi/types/ipfilter.go b/typedapi/types/ipfilter.go index be68e91ff0..677624991f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IpFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L177-L180 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L177-L180 type IpFilter struct { Http bool `json:"http"` Transport bool `json:"transport"` diff --git a/typedapi/types/ipinfo.go b/typedapi/types/ipinfo.go index 2643f7c665..a8a173fcd6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Ipinfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Database.ts#L59-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Database.ts#L59-L59 type Ipinfo struct { } diff --git a/typedapi/types/iplocationdatabaseconfigurationmetadata.go b/typedapi/types/iplocationdatabaseconfigurationmetadata.go index 59377d1cb4..5a21351ae4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IpLocationDatabaseConfigurationMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L28-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/get_ip_location_database/GetIpLocationDatabaseResponse.ts#L28-L34 type IpLocationDatabaseConfigurationMetadata struct { Database DatabaseConfigurationFull `json:"database"` Id string `json:"id"` diff --git a/typedapi/types/iplocationprocessor.go b/typedapi/types/iplocationprocessor.go index db84b22716..b41fa40f33 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IpLocationProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L479-L513 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 diff --git a/typedapi/types/ipprefixaggregate.go b/typedapi/types/ipprefixaggregate.go index f438757ee0..4847d684c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IpPrefixAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L709-L713 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L709-L713 type IpPrefixAggregate struct { Buckets BucketsIpPrefixBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/ipprefixaggregation.go b/typedapi/types/ipprefixaggregation.go index 8dfe1feb64..eb084d954e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IpPrefixAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1195-L1224 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L1195-L1224 type IpPrefixAggregation struct { // AppendPrefixLength Defines whether the prefix length is appended to IP address keys in the // response. diff --git a/typedapi/types/ipprefixbucket.go b/typedapi/types/ipprefixbucket.go index 4d9d03f496..241feb1c0e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // IpPrefixBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L715-L720 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L715-L720 type IpPrefixBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/ipproperty.go b/typedapi/types/ipproperty.go index ab91b3ce65..ad05812c2b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // IpProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/specialized.ts#L74-L88 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/specialized.ts#L74-L88 type IpProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/iprangeaggregate.go b/typedapi/types/iprangeaggregate.go index 61316792a0..b2e888072f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IpRangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L624-L629 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L624-L629 type IpRangeAggregate struct { Buckets BucketsIpRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/iprangeaggregation.go b/typedapi/types/iprangeaggregation.go index f0ea8f8d7a..3b379cc488 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // IpRangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L567-L576 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L567-L576 type IpRangeAggregation struct { // Field The date field whose values are used to build ranges. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/iprangeaggregationrange.go b/typedapi/types/iprangeaggregationrange.go index 2afb26d6b7..d88a0e9a65 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IpRangeAggregationRange type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L578-L591 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L578-L591 type IpRangeAggregationRange struct { // From Start of the range. From *string `json:"from,omitempty"` diff --git a/typedapi/types/iprangebucket.go b/typedapi/types/iprangebucket.go index 0d5daaeb4a..ce13306e0d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // IpRangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L631-L635 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L631-L635 type IpRangeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/iprangeproperty.go b/typedapi/types/iprangeproperty.go index bb8a4580a1..698033c1db 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // IpRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/range.ts#L46-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/range.ts#L46-L48 type IpRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/irishanalyzer.go b/typedapi/types/irishanalyzer.go index 808872aeef..37bb877af4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // IrishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L220-L225 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L220-L225 type IrishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/italiananalyzer.go b/typedapi/types/italiananalyzer.go index c2bf4166e5..080ad9ff66 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ItalianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L227-L232 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L227-L232 type ItalianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/jinaaiservicesettings.go b/typedapi/types/jinaaiservicesettings.go new file mode 100644 index 0000000000..3ed4b6ba1c --- /dev/null +++ b/typedapi/types/jinaaiservicesettings.go @@ -0,0 +1,133 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/jinaaisimilaritytype" +) + +// JinaAIServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L900-L929 +type JinaAIServiceSettings struct { + // ApiKey A valid API key of your JinaAI account. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey string `json:"api_key"` + // ModelId The name of the model to use for the inference task. + // For a `rerank` task, it is required. + // For a `text_embedding` task, it is optional. + ModelId *string `json:"model_id,omitempty"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // JinaAI. + // By default, the `jinaai` service sets the number of requests allowed per + // minute to 2000 for all task types. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` + // Similarity For a `text_embedding` task, the similarity measure. One of cosine, + // dot_product, l2_norm. + // The default values varies with the embedding type. + // For example, a float embedding type uses a `dot_product` similarity measure + // by default. + Similarity *jinaaisimilaritytype.JinaAISimilarityType `json:"similarity,omitempty"` +} + +func (s *JinaAIServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "api_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = &o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + case "similarity": + if err := dec.Decode(&s.Similarity); err != nil { + return fmt.Errorf("%s | %w", "Similarity", err) + } + + } + } + return nil +} + +// NewJinaAIServiceSettings returns a JinaAIServiceSettings. +func NewJinaAIServiceSettings() *JinaAIServiceSettings { + r := &JinaAIServiceSettings{} + + return r +} + +// true + +type JinaAIServiceSettingsVariant interface { + JinaAIServiceSettingsCaster() *JinaAIServiceSettings +} + +func (s *JinaAIServiceSettings) JinaAIServiceSettingsCaster() *JinaAIServiceSettings { + return s +} diff --git a/typedapi/types/jinaaitasksettings.go b/typedapi/types/jinaaitasksettings.go new file mode 100644 index 0000000000..b226b4da3d --- /dev/null +++ b/typedapi/types/jinaaitasksettings.go @@ -0,0 +1,127 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/jinaaitextembeddingtask" +) + +// JinaAITaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L931-L952 +type JinaAITaskSettings struct { + // ReturnDocuments For a `rerank` task, return the doc text within the results. + ReturnDocuments *bool `json:"return_documents,omitempty"` + // Task For a `text_embedding` task, the task passed to the model. + // Valid values are: + // + // * `classification`: Use it for embeddings passed through a text classifier. + // * `clustering`: Use it for the embeddings run through a clustering algorithm. + // * `ingest`: Use it for storing document embeddings in a vector database. + // * `search`: Use it for storing embeddings of search queries run against a + // vector database to find relevant documents. + Task *jinaaitextembeddingtask.JinaAITextEmbeddingTask `json:"task,omitempty"` + // TopN For a `rerank` task, the number of most relevant documents to return. + // It defaults to the number of the documents. + // If this inference endpoint is used in a `text_similarity_reranker` retriever + // query and `top_n` is set, it must be greater than or equal to + // `rank_window_size` in the query. + TopN *int `json:"top_n,omitempty"` +} + +func (s *JinaAITaskSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "return_documents": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "ReturnDocuments", err) + } + s.ReturnDocuments = &value + case bool: + s.ReturnDocuments = &v + } + + case "task": + if err := dec.Decode(&s.Task); err != nil { + return fmt.Errorf("%s | %w", "Task", err) + } + + case "top_n": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "TopN", err) + } + s.TopN = &value + case float64: + f := int(v) + s.TopN = &f + } + + } + } + return nil +} + +// NewJinaAITaskSettings returns a JinaAITaskSettings. +func NewJinaAITaskSettings() *JinaAITaskSettings { + r := &JinaAITaskSettings{} + + return r +} + +// true + +type JinaAITaskSettingsVariant interface { + JinaAITaskSettingsCaster() *JinaAITaskSettings +} + +func (s *JinaAITaskSettings) JinaAITaskSettingsCaster() *JinaAITaskSettings { + return s +} diff --git a/typedapi/types/job.go b/typedapi/types/job.go index 03c399e2ed..830d6b2d54 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Job type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Job.ts#L61-L180 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Job.ts#L61-L180 type Job struct { // AllowLazyOpen Advanced configuration option. // Specifies whether this job can open when there is insufficient machine diff --git a/typedapi/types/jobblocked.go b/typedapi/types/jobblocked.go index 68007ba81b..96c548aac5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jobblockedreason" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/jobblockedreason" ) // JobBlocked type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Job.ts#L392-L395 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Job.ts#L392-L395 type JobBlocked struct { Reason jobblockedreason.JobBlockedReason `json:"reason"` TaskId TaskId `json:"task_id,omitempty"` diff --git a/typedapi/types/jobconfig.go b/typedapi/types/jobconfig.go index cfad5b15aa..a7849714ae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // JobConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Job.ts#L182-L283 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Job.ts#L182-L283 type JobConfig struct { // AllowLazyOpen Advanced configuration option. Specifies whether this job can open when there // is insufficient machine learning node capacity for it to be immediately diff --git a/typedapi/types/jobforecaststatistics.go b/typedapi/types/jobforecaststatistics.go index 0003dc4d50..3a4e2d3a13 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // JobForecastStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Job.ts#L343-L350 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Job.ts#L343-L350 type JobForecastStatistics struct { ForecastedJobs int `json:"forecasted_jobs"` MemoryBytes *JobStatistics `json:"memory_bytes,omitempty"` diff --git a/typedapi/types/jobsrecord.go b/typedapi/types/jobsrecord.go index 1abba85df2..65e4ac50b1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/categorizationstatus" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jobstate" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/memorystatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/categorizationstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/jobstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/memorystatus" ) // JobsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/ml_jobs/types.ts#L24-L347 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/ml_jobs/types.ts#L24-L347 type JobsRecord struct { // AssignmentExplanation For open anomaly detection jobs only, contains messages relating to the // selection of a node to run the job. diff --git a/typedapi/types/jobstatistics.go b/typedapi/types/jobstatistics.go index 4e0ba8396a..9048e7d384 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // JobStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Job.ts#L54-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Job.ts#L54-L59 type JobStatistics struct { Avg Float64 `json:"avg"` Max Float64 `json:"max"` diff --git a/typedapi/types/jobstats.go b/typedapi/types/jobstats.go index 0769a22ffb..19bfff2390 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jobstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/jobstate" ) // JobStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Job.ts#L284-L330 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Job.ts#L284-L330 type JobStats struct { // AssignmentExplanation For open anomaly detection jobs only, contains messages relating to the // selection of a node to run the job. diff --git a/typedapi/types/jobtimingstats.go b/typedapi/types/jobtimingstats.go index 79899946e7..79ae077c54 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // JobTimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Job.ts#L332-L341 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Job.ts#L332-L341 type JobTimingStats struct { AverageBucketProcessingTimeMs Float64 `json:"average_bucket_processing_time_ms,omitempty"` BucketCount int64 `json:"bucket_count"` diff --git a/typedapi/types/jobusage.go b/typedapi/types/jobusage.go index 09ce415700..d6b2675f55 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // JobUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L370-L376 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L370-L376 type JobUsage struct { Count int `json:"count"` CreatedBy map[string]int64 `json:"created_by"` diff --git a/typedapi/types/joinprocessor.go b/typedapi/types/joinprocessor.go index 08aa82ed8b..81dcbdf179 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // JoinProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1104-L1119 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/joinproperty.go b/typedapi/types/joinproperty.go index 52b4f8b434..fc01b1ee81 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // JoinProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L92-L96 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L101-L105 type JoinProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` EagerGlobalOrdinals *bool `json:"eager_global_ordinals,omitempty"` diff --git a/typedapi/types/jsonprocessor.go b/typedapi/types/jsonprocessor.go index ee7664eecc..16a6889a36 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/jsonprocessorconflictstrategy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/jsonprocessorconflictstrategy" ) // JsonProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1121-L1150 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/jvm.go b/typedapi/types/jvm.go index 2233ea7092..6b0810d41f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Jvm type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L882-L916 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L882-L916 type Jvm struct { // BufferPools Contains statistics about JVM buffer pools for the node. BufferPools map[string]NodeBufferPool `json:"buffer_pools,omitempty"` diff --git a/typedapi/types/jvmclasses.go b/typedapi/types/jvmclasses.go index f4cfd9249b..a10db4e100 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // JvmClasses type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L979-L992 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L979-L992 type JvmClasses struct { // CurrentLoadedCount Number of classes currently loaded by JVM. CurrentLoadedCount *int64 `json:"current_loaded_count,omitempty"` diff --git a/typedapi/types/jvmmemorystats.go b/typedapi/types/jvmmemorystats.go index 17d49d68e7..50d4bdf3c6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // JvmMemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L918-L947 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L918-L947 type JvmMemoryStats struct { // HeapCommittedInBytes Amount of memory, in bytes, available for use by the heap. HeapCommittedInBytes *int64 `json:"heap_committed_in_bytes,omitempty"` diff --git a/typedapi/types/jvmstats.go b/typedapi/types/jvmstats.go index 2e5144ac28..1b66d37a7a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // JvmStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_memory_stats/types.ts#L50-L63 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/get_memory_stats/types.ts#L50-L63 type JvmStats struct { // HeapMax Maximum amount of memory available for use by the heap. HeapMax ByteSize `json:"heap_max,omitempty"` diff --git a/typedapi/types/jvmthreads.go b/typedapi/types/jvmthreads.go index c58748e2d7..65ca1a9cd5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // JvmThreads type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L968-L977 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L968-L977 type JvmThreads struct { // Count Number of active threads in use by JVM. Count *int64 `json:"count,omitempty"` diff --git a/typedapi/types/keeptypestokenfilter.go b/typedapi/types/keeptypestokenfilter.go index e15bde48a6..60d3fa58da 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/keeptypesmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/keeptypesmode" ) // KeepTypesTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L219-L223 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L219-L223 type KeepTypesTokenFilter struct { Mode *keeptypesmode.KeepTypesMode `json:"mode,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/keepwordstokenfilter.go b/typedapi/types/keepwordstokenfilter.go index b3ff4f31ca..416daae78c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KeepWordsTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L225-L230 type KeepWordsTokenFilter struct { KeepWords []string `json:"keep_words,omitempty"` KeepWordsCase *bool `json:"keep_words_case,omitempty"` diff --git a/typedapi/types/keyedpercentiles.go b/typedapi/types/keyedpercentiles.go index bc97928a44..88b3c1f632 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -34,7 +34,7 @@ import ( // KeyedPercentiles type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L160-L160 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bef2c1adae..06df88b827 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KeyedProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L415-L418 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L415-L418 type KeyedProcessor struct { Stats *Processor `json:"stats,omitempty"` Type *string `json:"type,omitempty"` diff --git a/typedapi/types/keyvalueprocessor.go b/typedapi/types/keyvalueprocessor.go index 3919082b59..0c9e44a324 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KeyValueProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1159-L1211 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/keywordanalyzer.go b/typedapi/types/keywordanalyzer.go index 078e06a77e..5eca8cb8b0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // KeywordAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L66-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L66-L70 type KeywordAnalyzer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/keywordmarkertokenfilter.go b/typedapi/types/keywordmarkertokenfilter.go index 52ae5e675b..35b92edfff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KeywordMarkerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L232-L238 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L232-L238 type KeywordMarkerTokenFilter struct { IgnoreCase *bool `json:"ignore_case,omitempty"` Keywords []string `json:"keywords,omitempty"` diff --git a/typedapi/types/keywordproperty.go b/typedapi/types/keywordproperty.go index 76346a0b6e..b8c7dc2e1b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // KeywordProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L98-L117 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L107-L126 type KeywordProperty struct { Boost *Float64 `json:"boost,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/keywordtokenizer.go b/typedapi/types/keywordtokenizer.go index 3235f0fabf..74b32e13a4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KeywordTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L68-L74 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L68-L74 type KeywordTokenizer struct { BufferSize *int `json:"buffer_size,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/kibanatoken.go b/typedapi/types/kibanatoken.go index 800c5c7a40..cc7109b462 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KibanaToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/enroll_kibana/Response.ts#L31-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/enroll_kibana/Response.ts#L31-L41 type KibanaToken struct { // Name The name of the bearer token for the `elastic/kibana` service account. Name string `json:"name"` diff --git a/typedapi/types/knncollectorresult.go b/typedapi/types/knncollectorresult.go index c5b62497bd..bf69dab2f7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KnnCollectorResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L222-L228 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L222-L228 type KnnCollectorResult struct { Children []KnnCollectorResult `json:"children,omitempty"` Name string `json:"name"` diff --git a/typedapi/types/knnquery.go b/typedapi/types/knnquery.go index 135f213a22..7a5f3c34e4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KnnQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Knn.ts#L64-L87 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Knn.ts#L64-L87 type KnnQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. @@ -53,7 +53,7 @@ type KnnQuery struct { // QueryVectorBuilder The query vector builder. You must provide a query_vector_builder or // query_vector, but not both. QueryVectorBuilder *QueryVectorBuilder `json:"query_vector_builder,omitempty"` - // RescoreVector Apply oversampling and rescoring to quantized vectors * + // RescoreVector Apply oversampling and rescoring to quantized vectors RescoreVector *RescoreVector `json:"rescore_vector,omitempty"` // Similarity The minimum similarity for a vector to be considered a match Similarity *float32 `json:"similarity,omitempty"` diff --git a/typedapi/types/knnqueryprofilebreakdown.go b/typedapi/types/knnqueryprofilebreakdown.go index f33e7435b2..d3423956e1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KnnQueryProfileBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L199-L220 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L199-L220 type KnnQueryProfileBreakdown struct { Advance int64 `json:"advance"` AdvanceCount int64 `json:"advance_count"` diff --git a/typedapi/types/knnqueryprofileresult.go b/typedapi/types/knnqueryprofileresult.go index 2f345e612a..f388594fe7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KnnQueryProfileResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L188-L196 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L188-L196 type KnnQueryProfileResult struct { Breakdown KnnQueryProfileBreakdown `json:"breakdown"` Children []KnnQueryProfileResult `json:"children,omitempty"` diff --git a/typedapi/types/knnretriever.go b/typedapi/types/knnretriever.go index ad4adcbe18..7a357b21d1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KnnRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Retriever.ts#L64-L82 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Retriever.ts#L64-L82 type KnnRetriever struct { // Field The name of the vector field to search against. Field string `json:"field"` @@ -50,7 +50,7 @@ type KnnRetriever struct { QueryVector []float32 `json:"query_vector,omitempty"` // QueryVectorBuilder Defines a model to build a query vector. QueryVectorBuilder *QueryVectorBuilder `json:"query_vector_builder,omitempty"` - // RescoreVector Apply oversampling and rescoring to quantized vectors * + // RescoreVector Apply oversampling and rescoring to quantized vectors RescoreVector *RescoreVector `json:"rescore_vector,omitempty"` // Similarity The minimum similarity required for a document to be considered a match. Similarity *float32 `json:"similarity,omitempty"` diff --git a/typedapi/types/knnsearch.go b/typedapi/types/knnsearch.go index 6f803cdf54..212494886e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KnnSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Knn.ts#L35-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Knn.ts#L35-L62 type KnnSearch struct { // Boost Boost value to apply to kNN scores Boost *float32 `json:"boost,omitempty"` @@ -50,7 +50,7 @@ type KnnSearch struct { // QueryVectorBuilder The query vector builder. You must provide a query_vector_builder or // query_vector, but not both. QueryVectorBuilder *QueryVectorBuilder `json:"query_vector_builder,omitempty"` - // RescoreVector Apply oversampling and rescoring to quantized vectors * + // RescoreVector Apply oversampling and rescoring to quantized vectors RescoreVector *RescoreVector `json:"rescore_vector,omitempty"` // Similarity The minimum similarity for a vector to be considered a match Similarity *float32 `json:"similarity,omitempty"` diff --git a/typedapi/types/kstemtokenfilter.go b/typedapi/types/kstemtokenfilter.go index 5c34f7aebc..ecd21e3837 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // KStemTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L240-L242 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L240-L242 type KStemTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/kuromojianalyzer.go b/typedapi/types/kuromojianalyzer.go index 8c6cc909d6..e3e6398f30 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/kuromojitokenizationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/kuromojitokenizationmode" ) // KuromojiAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/kuromoji-plugin.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/kuromoji-plugin.ts#L25-L29 type KuromojiAnalyzer struct { Mode kuromojitokenizationmode.KuromojiTokenizationMode `json:"mode"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/kuromojiiterationmarkcharfilter.go b/typedapi/types/kuromojiiterationmarkcharfilter.go index 0a7f27718b..70307eb645 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KuromojiIterationMarkCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/kuromoji-plugin.ts#L31-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/kuromoji-plugin.ts#L31-L35 type KuromojiIterationMarkCharFilter struct { NormalizeKana bool `json:"normalize_kana"` NormalizeKanji bool `json:"normalize_kanji"` diff --git a/typedapi/types/kuromojipartofspeechtokenfilter.go b/typedapi/types/kuromojipartofspeechtokenfilter.go index 5e300f1a44..3af372b948 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // KuromojiPartOfSpeechTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/kuromoji-plugin.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/kuromoji-plugin.ts#L37-L40 type KuromojiPartOfSpeechTokenFilter struct { Stoptags []string `json:"stoptags"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/kuromojireadingformtokenfilter.go b/typedapi/types/kuromojireadingformtokenfilter.go index 9505ce70f7..b7115ab511 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KuromojiReadingFormTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/kuromoji-plugin.ts#L42-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/kuromoji-plugin.ts#L42-L45 type KuromojiReadingFormTokenFilter struct { Type string `json:"type,omitempty"` UseRomaji bool `json:"use_romaji"` diff --git a/typedapi/types/kuromojistemmertokenfilter.go b/typedapi/types/kuromojistemmertokenfilter.go index 0171237a1f..76a1bc5802 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // KuromojiStemmerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/kuromoji-plugin.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/kuromoji-plugin.ts#L47-L50 type KuromojiStemmerTokenFilter struct { MinimumLength int `json:"minimum_length"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/kuromojitokenizer.go b/typedapi/types/kuromojitokenizer.go index 32600024a6..c3d911475f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/kuromojitokenizationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/kuromojitokenizationmode" ) // KuromojiTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/kuromoji-plugin.ts#L58-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/kuromoji-plugin.ts#L58-L67 type KuromojiTokenizer struct { DiscardCompoundToken *bool `json:"discard_compound_token,omitempty"` DiscardPunctuation *bool `json:"discard_punctuation,omitempty"` diff --git a/typedapi/types/languagecontext.go b/typedapi/types/languagecontext.go index 7b9d4a7682..0d09eb0472 100644 --- a/typedapi/types/languagecontext.go +++ b/typedapi/types/languagecontext.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptlanguage" ) // LanguageContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/get_script_languages/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/get_script_languages/types.ts#L22-L25 type LanguageContext struct { Contexts []string `json:"contexts"` Language scriptlanguage.ScriptLanguage `json:"language"` diff --git a/typedapi/types/laplacesmoothingmodel.go b/typedapi/types/laplacesmoothingmodel.go index d1f7c98545..94dbf5054b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LaplaceSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L430-L435 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` diff --git a/typedapi/types/latest.go b/typedapi/types/latest.go index 28c85d9d84..64dd3b0c92 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Latest type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/_types/Transform.ts#L47-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/_types/Transform.ts#L47-L52 type Latest struct { // Sort Specifies the date field that is used to identify the latest documents. Sort string `json:"sort"` diff --git a/typedapi/types/latlongeolocation.go b/typedapi/types/latlongeolocation.go index a37ba8a058..a9080743f8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LatLonGeoLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L120-L129 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Geo.ts#L120-L129 type LatLonGeoLocation struct { // Lat Latitude Lat Float64 `json:"lat"` diff --git a/typedapi/types/latviananalyzer.go b/typedapi/types/latviananalyzer.go index 3e23ca4a03..f4185cfee8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LatvianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L234-L239 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L234-L239 type LatvianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/learningtorank.go b/typedapi/types/learningtorank.go index dd8358b933..c14a0170f9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LearningToRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/rescoring.ts#L88-L97 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/rescoring.ts#L88-L97 type LearningToRank struct { // ModelId The unique identifier of the trained model uploaded to Elasticsearch ModelId string `json:"model_id"` diff --git a/typedapi/types/learningtorankconfig.go b/typedapi/types/learningtorankconfig.go new file mode 100644 index 0000000000..0cd767e8e9 --- /dev/null +++ b/typedapi/types/learningtorankconfig.go @@ -0,0 +1,107 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// LearningToRankConfig type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L87-L91 +type LearningToRankConfig struct { + DefaultParams map[string]json.RawMessage `json:"default_params,omitempty"` + FeatureExtractors []map[string]QueryFeatureExtractor `json:"feature_extractors,omitempty"` + NumTopFeatureImportanceValues int `json:"num_top_feature_importance_values"` +} + +func (s *LearningToRankConfig) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "default_params": + if s.DefaultParams == nil { + s.DefaultParams = make(map[string]json.RawMessage, 0) + } + if err := dec.Decode(&s.DefaultParams); err != nil { + return fmt.Errorf("%s | %w", "DefaultParams", err) + } + + case "feature_extractors": + if err := dec.Decode(&s.FeatureExtractors); err != nil { + return fmt.Errorf("%s | %w", "FeatureExtractors", err) + } + + case "num_top_feature_importance_values": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "NumTopFeatureImportanceValues", err) + } + s.NumTopFeatureImportanceValues = value + case float64: + f := int(v) + s.NumTopFeatureImportanceValues = f + } + + } + } + return nil +} + +// NewLearningToRankConfig returns a LearningToRankConfig. +func NewLearningToRankConfig() *LearningToRankConfig { + r := &LearningToRankConfig{ + DefaultParams: make(map[string]json.RawMessage), + } + + return r +} + +// true + +type LearningToRankConfigVariant interface { + LearningToRankConfigCaster() *LearningToRankConfig +} + +func (s *LearningToRankConfig) LearningToRankConfigCaster() *LearningToRankConfig { + return s +} diff --git a/typedapi/types/lengthtokenfilter.go b/typedapi/types/lengthtokenfilter.go index a53649373c..b79d37eae7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LengthTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L244-L248 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L244-L248 type LengthTokenFilter struct { Max *int `json:"max,omitempty"` Min *int `json:"min,omitempty"` diff --git a/typedapi/types/lessthanvalidation.go b/typedapi/types/lessthanvalidation.go index bf4347304a..40a169ef5d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LessThanValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L58-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L58-L61 type LessThanValidation struct { Constraint Float64 `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/lettertokenizer.go b/typedapi/types/lettertokenizer.go index 62105375ca..6072a963d9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // LetterTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L76-L78 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L76-L78 type LetterTokenizer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/license.go b/typedapi/types/license.go index 4b80a275e1..532c7ae207 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/licensetype" ) // License type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/_types/License.ts#L42-L53 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/license/_types/License.ts#L42-L53 type License struct { ExpiryDateInMillis int64 `json:"expiry_date_in_millis"` IssueDateInMillis int64 `json:"issue_date_in_millis"` diff --git a/typedapi/types/licenseinformation.go b/typedapi/types/licenseinformation.go index 09cfb7a78a..5fa3fba33a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensestatus" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/licensestatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/licensetype" ) // LicenseInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/license/get/types.ts#L25-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/license/get/types.ts#L25-L38 type LicenseInformation struct { ExpiryDate DateTime `json:"expiry_date,omitempty"` ExpiryDateInMillis *int64 `json:"expiry_date_in_millis,omitempty"` diff --git a/typedapi/types/lifecycle.go b/typedapi/types/lifecycle.go index 246c3d480b..17549301d5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Lifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/get_lifecycle/types.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/get_lifecycle/types.ts#L24-L28 type Lifecycle struct { ModifiedDate DateTime `json:"modified_date"` Policy IlmPolicy `json:"policy"` diff --git a/typedapi/types/lifecycleexplain.go b/typedapi/types/lifecycleexplain.go index 4c2e164cc9..0a10c24b16 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // LifecycleExplainManaged // LifecycleExplainUnmanaged // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/explain_lifecycle/types.ts#L64-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/explain_lifecycle/types.ts#L64-L67 type LifecycleExplain any diff --git a/typedapi/types/lifecycleexplainmanaged.go b/typedapi/types/lifecycleexplainmanaged.go index ba895b120b..dcfabf2865 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LifecycleExplainManaged type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/explain_lifecycle/types.ts#L27-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/explain_lifecycle/types.ts#L27-L57 type LifecycleExplainManaged struct { Action *string `json:"action,omitempty"` ActionTime DateTime `json:"action_time,omitempty"` diff --git a/typedapi/types/lifecycleexplainphaseexecution.go b/typedapi/types/lifecycleexplainphaseexecution.go index 8b4cd8ad52..63dfc78441 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // LifecycleExplainPhaseExecution type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/explain_lifecycle/types.ts#L69-L74 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/explain_lifecycle/types.ts#L69-L74 type LifecycleExplainPhaseExecution struct { ModifiedDateInMillis int64 `json:"modified_date_in_millis"` PhaseDefinition *Phase `json:"phase_definition,omitempty"` diff --git a/typedapi/types/lifecycleexplainunmanaged.go b/typedapi/types/lifecycleexplainunmanaged.go index 3141cbc0b5..3d00adc661 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // LifecycleExplainUnmanaged type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/explain_lifecycle/types.ts#L59-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/explain_lifecycle/types.ts#L59-L62 type LifecycleExplainUnmanaged struct { Index string `json:"index"` Managed bool `json:"managed,omitempty"` diff --git a/typedapi/types/like.go b/typedapi/types/like.go index 69824a491b..a011fe67d8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // LikeDocument // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L198-L203 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e27fc866ba..106f19b545 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) // LikeDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L174-L196 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L174-L196 type LikeDocument struct { // Doc A document not present in the index. Doc json.RawMessage `json:"doc,omitempty"` diff --git a/typedapi/types/limits.go b/typedapi/types/limits.go index 8c60e25266..f4562ce967 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Limits type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/info/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/info/types.ts#L34-L40 type Limits struct { EffectiveMaxModelMemoryLimit ByteSize `json:"effective_max_model_memory_limit,omitempty"` MaxModelMemoryLimit ByteSize `json:"max_model_memory_limit,omitempty"` diff --git a/typedapi/types/limittokencounttokenfilter.go b/typedapi/types/limittokencounttokenfilter.go index 08ec1157df..18ed8600f5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LimitTokenCountTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L250-L254 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L250-L254 type LimitTokenCountTokenFilter struct { ConsumeAllTokens *bool `json:"consume_all_tokens,omitempty"` MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"` diff --git a/typedapi/types/linearinterpolationsmoothingmodel.go b/typedapi/types/linearinterpolationsmoothingmodel.go index d8a0c14ee1..547b18c428 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LinearInterpolationSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L437-L441 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/suggester.ts#L438-L442 type LinearInterpolationSmoothingModel struct { BigramLambda Float64 `json:"bigram_lambda"` TrigramLambda Float64 `json:"trigram_lambda"` diff --git a/typedapi/types/linearmovingaverageaggregation.go b/typedapi/types/linearmovingaverageaggregation.go index a8aa369bbf..86d3c36892 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // LinearMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L268-L271 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L268-L271 type LinearMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/listtypevalidation.go b/typedapi/types/listtypevalidation.go index 0973a6b4d2..b84eaca522 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ListTypeValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L68-L71 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L68-L71 type ListTypeValidation struct { Constraint string `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/lithuaniananalyzer.go b/typedapi/types/lithuaniananalyzer.go index 7432085a2c..78fb80ea94 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LithuanianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L241-L246 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L241-L246 type LithuanianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/local.go b/typedapi/types/local.go index 193fb82080..e73cde5ef1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Local type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Database.ts#L63-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Database.ts#L63-L65 type Local struct { Type string `json:"type"` } diff --git a/typedapi/types/loggingaction.go b/typedapi/types/loggingaction.go index 8486945b6e..40dea85c4b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LoggingAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L281-L285 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L281-L285 type LoggingAction struct { Category *string `json:"category,omitempty"` Level *string `json:"level,omitempty"` diff --git a/typedapi/types/loggingresult.go b/typedapi/types/loggingresult.go index ba321d333a..aa00e36ddd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LoggingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L287-L289 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L287-L289 type LoggingResult struct { LoggedText string `json:"logged_text"` } diff --git a/typedapi/types/logstashpipeline.go b/typedapi/types/logstashpipeline.go index bda2a45854..caba13e97b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LogstashPipeline type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/logstash/_types/Pipeline.ts#L60-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/logstash/_types/Pipeline.ts#L60-L91 type LogstashPipeline struct { // Description A description of the pipeline. // This description is not used by Elasticsearch or Logstash. diff --git a/typedapi/types/longnumberproperty.go b/typedapi/types/longnumberproperty.go index 6f1970df87..fec481cc83 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // LongNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L166-L169 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L175-L178 type LongNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/longrangeproperty.go b/typedapi/types/longrangeproperty.go index 9c1ca7041c..5b47b296f9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // LongRangeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/range.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/range.ts#L50-L52 type LongRangeProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/longraretermsaggregate.go b/typedapi/types/longraretermsaggregate.go index 6d90825475..6bd52a13de 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // LongRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L471-L476 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L471-L476 type LongRareTermsAggregate struct { Buckets BucketsLongRareTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/longraretermsbucket.go b/typedapi/types/longraretermsbucket.go index bb83b3025d..fc64f3462b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // LongRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L478-L481 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L478-L481 type LongRareTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/longtermsaggregate.go b/typedapi/types/longtermsaggregate.go index c92c65dbb0..61effc5578 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LongTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L439-L444 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L439-L444 type LongTermsAggregate struct { Buckets BucketsLongTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` diff --git a/typedapi/types/longtermsbucket.go b/typedapi/types/longtermsbucket.go index 3fec3fa41f..8cce9517f8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // LongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L446-L449 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L446-L449 type LongTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/lowercasenormalizer.go b/typedapi/types/lowercasenormalizer.go index dd93d71f3f..d4400f98e9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // LowercaseNormalizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/normalizers.ts#L26-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/normalizers.ts#L26-L28 type LowercaseNormalizer struct { Type string `json:"type,omitempty"` } diff --git a/typedapi/types/lowercaseprocessor.go b/typedapi/types/lowercaseprocessor.go index 59a16cd5d4..41d7ecb945 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LowercaseProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1213-L1229 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/lowercasetokenfilter.go b/typedapi/types/lowercasetokenfilter.go index a180a1f6d9..f65a7cdc5f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // LowercaseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L256-L259 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L256-L259 type LowercaseTokenFilter struct { Language *string `json:"language,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/lowercasetokenizer.go b/typedapi/types/lowercasetokenizer.go index ef5c0520b9..cf3bf38335 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // LowercaseTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L80-L82 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L80-L82 type LowercaseTokenizer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/machinelearning.go b/typedapi/types/machinelearning.go index 175d49fa87..309402cb73 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MachineLearning type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L378-L385 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L378-L385 type MachineLearning struct { Available bool `json:"available"` DataFrameAnalyticsJobs MlDataFrameAnalyticsJobs `json:"data_frame_analytics_jobs"` diff --git a/typedapi/types/manageuserprivileges.go b/typedapi/types/manageuserprivileges.go index 5e5fe25bdd..a84ff8a7f6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ManageUserPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L438-L440 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L438-L440 type ManageUserPrivileges struct { Applications []string `json:"applications"` } diff --git a/typedapi/types/mapboxvectortiles.go b/typedapi/types/mapboxvectortiles.go index fb1bc17089..07758b91ee 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // MapboxVectorTiles type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Binary.ts#L21-L21 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Binary.ts#L21-L21 type MapboxVectorTiles []byte diff --git a/typedapi/types/mappingcharfilter.go b/typedapi/types/mappingcharfilter.go index 842d103474..0d2dcf6152 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MappingCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/char_filters.ts#L51-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/char_filters.ts#L51-L55 type MappingCharFilter struct { Mappings []string `json:"mappings,omitempty"` MappingsPath *string `json:"mappings_path,omitempty"` diff --git a/typedapi/types/mappinglimitsettings.go b/typedapi/types/mappinglimitsettings.go index db8cd6123e..7b0feaed45 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L425-L439 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L425-L439 type MappingLimitSettings struct { Coerce *bool `json:"coerce,omitempty"` Depth *MappingLimitSettingsDepth `json:"depth,omitempty"` diff --git a/typedapi/types/mappinglimitsettingsdepth.go b/typedapi/types/mappinglimitsettingsdepth.go index def710df95..e4466e34fe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsDepth type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L460-L467 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L460-L467 type MappingLimitSettingsDepth struct { // Limit The maximum depth for a field, which is measured as the number of inner // objects. For instance, if all fields are defined diff --git a/typedapi/types/mappinglimitsettingsdimensionfields.go b/typedapi/types/mappinglimitsettingsdimensionfields.go index 9178ace8ae..5a19b40261 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsDimensionFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L497-L503 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L497-L503 type MappingLimitSettingsDimensionFields struct { // Limit [preview] This functionality is in technical preview and may be changed or // removed in a future release. diff --git a/typedapi/types/mappinglimitsettingsfieldnamelength.go b/typedapi/types/mappinglimitsettingsfieldnamelength.go index 071bb76602..b1763f0442 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsFieldNameLength type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L488-L495 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L488-L495 type MappingLimitSettingsFieldNameLength struct { // Limit Setting for the maximum length of a field name. This setting isn’t really // something that addresses mappings explosion but diff --git a/typedapi/types/mappinglimitsettingsnestedfields.go b/typedapi/types/mappinglimitsettingsnestedfields.go index c54983a131..e8b0aa43c0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsNestedFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L469-L477 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L469-L477 type MappingLimitSettingsNestedFields struct { // Limit The maximum number of distinct nested mappings in an index. The nested type // should only be used in special cases, when diff --git a/typedapi/types/mappinglimitsettingsnestedobjects.go b/typedapi/types/mappinglimitsettingsnestedobjects.go index 14464d1ed0..ed4b43cb8c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsNestedObjects type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L479-L486 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L479-L486 type MappingLimitSettingsNestedObjects struct { // Limit The maximum number of nested JSON objects that a single document can contain // across all nested types. This limit helps diff --git a/typedapi/types/mappinglimitsettingssourcefields.go b/typedapi/types/mappinglimitsettingssourcefields.go index 4fcd8b123a..c69c151140 100644 --- a/typedapi/types/mappinglimitsettingssourcefields.go +++ b/typedapi/types/mappinglimitsettingssourcefields.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sourcemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sourcemode" ) // MappingLimitSettingsSourceFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L505-L507 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L505-L507 type MappingLimitSettingsSourceFields struct { Mode sourcemode.SourceMode `json:"mode"` } diff --git a/typedapi/types/mappinglimitsettingstotalfields.go b/typedapi/types/mappinglimitsettingstotalfields.go index a01e3b26f5..f798d82e5a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MappingLimitSettingsTotalFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L441-L458 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L441-L458 type MappingLimitSettingsTotalFields struct { // IgnoreDynamicBeyondLimit This setting determines what happens when a dynamically mapped field would // exceed the total fields limit. When set diff --git a/typedapi/types/mappingstats.go b/typedapi/types/mappingstats.go index f4046a7689..1566142855 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MappingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L186-L190 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L186-L190 type MappingStats struct { TotalCount int64 `json:"total_count"` TotalEstimatedOverhead ByteSize `json:"total_estimated_overhead,omitempty"` diff --git a/typedapi/types/masterisstableindicator.go b/typedapi/types/masterisstableindicator.go index 235f919c8b..a5fd526ab6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indicatorhealthstatus" ) // MasterIsStableIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L81-L85 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L81-L85 type MasterIsStableIndicator struct { Details *MasterIsStableIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/masterisstableindicatorclusterformationnode.go b/typedapi/types/masterisstableindicatorclusterformationnode.go index f427d99e71..d293b7d51d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MasterIsStableIndicatorClusterFormationNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L100-L104 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L100-L104 type MasterIsStableIndicatorClusterFormationNode struct { ClusterFormationMessage string `json:"cluster_formation_message"` Name *string `json:"name,omitempty"` diff --git a/typedapi/types/masterisstableindicatordetails.go b/typedapi/types/masterisstableindicatordetails.go index 3f0499d8a5..968ae4e22d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // MasterIsStableIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L86-L91 type MasterIsStableIndicatorDetails struct { ClusterFormation []MasterIsStableIndicatorClusterFormationNode `json:"cluster_formation,omitempty"` CurrentMaster IndicatorNode `json:"current_master"` diff --git a/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go b/typedapi/types/masterisstableindicatorexceptionfetchinghistory.go index 1e3f0ea192..10a2adf0f8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MasterIsStableIndicatorExceptionFetchingHistory type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L96-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L96-L99 type MasterIsStableIndicatorExceptionFetchingHistory struct { Message string `json:"message"` StackTrace string `json:"stack_trace"` diff --git a/typedapi/types/masterrecord.go b/typedapi/types/masterrecord.go index b78ab3fab2..ea64dcf267 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MasterRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/master/types.ts#L20-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/master/types.ts#L20-L39 type MasterRecord struct { // Host host name Host *string `json:"host,omitempty"` diff --git a/typedapi/types/matchallquery.go b/typedapi/types/matchallquery.go index 4578f8087d..19791e9bb8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MatchAllQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/MatchAllQuery.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/MatchAllQuery.ts#L22-L25 type MatchAllQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/matchboolprefixquery.go b/typedapi/types/matchboolprefixquery.go index 16b269b0a1..049f6559fb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" ) // MatchBoolPrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L355-L412 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L355-L412 type MatchBoolPrefixQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/matchedfield.go b/typedapi/types/matchedfield.go index 571b63c6dd..da1a756225 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MatchedField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/test_grok_pattern/types.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/text_structure/test_grok_pattern/types.ts#L23-L27 type MatchedField struct { Length int `json:"length"` Match string `json:"match"` diff --git a/typedapi/types/matchedtext.go b/typedapi/types/matchedtext.go index c2b94ead2a..0d712af804 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MatchedText type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/test_grok_pattern/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/text_structure/test_grok_pattern/types.ts#L29-L32 type MatchedText struct { Fields map[string][]MatchedField `json:"fields,omitempty"` Matched bool `json:"matched"` diff --git a/typedapi/types/matchnonequery.go b/typedapi/types/matchnonequery.go index be19a9d0de..65a5d47fc3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MatchNoneQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/MatchNoneQuery.ts#L22-L25 type MatchNoneQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/matchonlytextproperty.go b/typedapi/types/matchonlytextproperty.go index 8165be9e0a..85b198a04d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // MatchOnlyTextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L247-L272 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L256-L281 type MatchOnlyTextProperty struct { // CopyTo Allows you to copy the values of multiple fields into a group // field, which can then be queried as a single field. diff --git a/typedapi/types/matchphraseprefixquery.go b/typedapi/types/matchphraseprefixquery.go index 8da935d491..35cd725ad3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/zerotermsquery" ) // MatchPhrasePrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L440-L469 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L440-L469 type MatchPhrasePrefixQuery struct { // Analyzer Analyzer used to convert text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/matchphrasequery.go b/typedapi/types/matchphrasequery.go index 33a41c33c4..60c39b7117 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/zerotermsquery" ) // MatchPhraseQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L414-L438 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L414-L438 type MatchPhraseQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/matchquery.go b/typedapi/types/matchquery.go index c9b9214517..741f86db1b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/zerotermsquery" ) // MatchQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L285-L353 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L285-L353 type MatchQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/matrixstatsaggregate.go b/typedapi/types/matrixstatsaggregate.go index a59866158e..211e736768 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MatrixStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L866-L873 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L866-L873 type MatrixStatsAggregate struct { DocCount int64 `json:"doc_count"` Fields []MatrixStatsFields `json:"fields,omitempty"` diff --git a/typedapi/types/matrixstatsaggregation.go b/typedapi/types/matrixstatsaggregation.go index 23d11807a4..45e956b456 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortmode" ) // MatrixStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/matrix.ts#L38-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/matrix.ts#L38-L44 type MatrixStatsAggregation struct { // Fields An array of fields for computing the statistics. Fields []string `json:"fields,omitempty"` diff --git a/typedapi/types/matrixstatsfields.go b/typedapi/types/matrixstatsfields.go index 229f978782..60be46819a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MatrixStatsFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L875-L884 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L875-L884 type MatrixStatsFields struct { Correlation map[string]Float64 `json:"correlation"` Count int64 `json:"count"` diff --git a/typedapi/types/maxaggregate.go b/typedapi/types/maxaggregate.go index 4598959853..121b5a7328 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MaxAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L205-L209 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L205-L209 type MaxAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/maxaggregation.go b/typedapi/types/maxaggregation.go index 92c69f51c8..fee86a148f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MaxAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L165-L165 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L165-L165 type MaxAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/maxbucketaggregation.go b/typedapi/types/maxbucketaggregation.go index 2764bffa09..e5650aad2f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // MaxBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L244-L247 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L244-L247 type MaxBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/maxmind.go b/typedapi/types/maxmind.go index 0ac6a6501b..75187bd5d1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Maxmind type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Database.ts#L55-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Database.ts#L55-L57 type Maxmind struct { AccountId string `json:"account_id"` } diff --git a/typedapi/types/medianabsolutedeviationaggregate.go b/typedapi/types/medianabsolutedeviationaggregate.go index 7c4057a6bd..d7eafb2c50 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MedianAbsoluteDeviationAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L196-L197 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L196-L197 type MedianAbsoluteDeviationAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/medianabsolutedeviationaggregation.go b/typedapi/types/medianabsolutedeviationaggregation.go index 5961e82301..79177aa033 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MedianAbsoluteDeviationAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L167-L176 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L167-L176 type MedianAbsoluteDeviationAggregation struct { // Compression Limits the maximum number of nodes used by the underlying TDigest algorithm // to `20 * compression`, enabling control of memory usage and approximation diff --git a/typedapi/types/memmlstats.go b/typedapi/types/memmlstats.go index c1d4b057f0..de960db039 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MemMlStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_memory_stats/types.ts#L90-L111 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/get_memory_stats/types.ts#L90-L111 type MemMlStats struct { // AnomalyDetectors Amount of native memory set aside for anomaly detection jobs. AnomalyDetectors ByteSize `json:"anomaly_detectors,omitempty"` diff --git a/typedapi/types/memory.go b/typedapi/types/memory.go index 3d09548375..fd5f529556 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Memory type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_memory_stats/types.ts#L25-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/get_memory_stats/types.ts#L25-L48 type Memory struct { Attributes map[string]string `json:"attributes"` EphemeralId string `json:"ephemeral_id"` diff --git a/typedapi/types/memorystats.go b/typedapi/types/memorystats.go index a7cce98ddb..4512d73577 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MemoryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L632-L656 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L632-L656 type MemoryStats struct { // AdjustedTotalInBytes If the amount of physical memory has been overridden using the // `es`.`total_memory_bytes` system property then this reports the overridden diff --git a/typedapi/types/memstats.go b/typedapi/types/memstats.go index ae1453471a..bfbb1a93c8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MemStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/get_memory_stats/types.ts#L65-L88 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/get_memory_stats/types.ts#L65-L88 type MemStats struct { // AdjustedTotal If the amount of physical memory has been overridden using the // es.total_memory_bytes system property diff --git a/typedapi/types/merge.go b/typedapi/types/merge.go index 2d46d27776..1d2b28de63 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Merge type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L346-L348 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L346-L348 type Merge struct { Scheduler *MergeScheduler `json:"scheduler,omitempty"` } diff --git a/typedapi/types/mergescheduler.go b/typedapi/types/mergescheduler.go index eee79bc271..c55b06804a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // MergeScheduler type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L350-L353 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L350-L353 type MergeScheduler struct { MaxMergeCount Stringifiedinteger `json:"max_merge_count,omitempty"` MaxThreadCount Stringifiedinteger `json:"max_thread_count,omitempty"` diff --git a/typedapi/types/mergesstats.go b/typedapi/types/mergesstats.go index cec9e0b9d9..b9749171c4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MergesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L164-L181 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L166-L183 type MergesStats struct { Current int64 `json:"current"` CurrentDocs int64 `json:"current_docs"` diff --git a/typedapi/types/message.go b/typedapi/types/message.go index 706b543f9d..8c5164f187 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Message type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedRequest.ts#L145-L165 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L135-L155 type Message struct { // Content The content of the message. Content MessageContent `json:"content,omitempty"` diff --git a/typedapi/types/messagecontent.go b/typedapi/types/messagecontent.go index 7b32abf0b0..93b3859b9b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // []ContentObject // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedRequest.ts#L140-L143 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L130-L133 type MessageContent any type MessageContentVariant interface { diff --git a/typedapi/types/metadata.go b/typedapi/types/metadata.go index 8fb1f59a95..3299e97894 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // Metadata type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L93-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7ee99bf3a3..2c884e1978 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Metrics type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L70-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L70-L70 type Metrics []string diff --git a/typedapi/types/mgetoperation.go b/typedapi/types/mgetoperation.go index ede1d1756f..89fa6360eb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) // MgetOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/mget/types.ts#L32-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/mget/types.ts#L32-L55 type MgetOperation struct { // Id_ The unique document ID. Id_ string `json:"_id"` diff --git a/typedapi/types/mgetresponseitem.go b/typedapi/types/mgetresponseitem.go index cdd94d3c30..0c84773cba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // GetResult // MultiGetError // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/mget/types.ts#L57-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/mget/types.ts#L57-L60 type MgetResponseItem any diff --git a/typedapi/types/migrateaction.go b/typedapi/types/migrateaction.go index fa38253fb7..59e27dd206 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MigrateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L141-L143 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L141-L143 type MigrateAction struct { Enabled *bool `json:"enabled,omitempty"` } diff --git a/typedapi/types/migratereindex.go b/typedapi/types/migratereindex.go index bf8ef5ae20..55fad7d4f0 100644 --- a/typedapi/types/migratereindex.go +++ b/typedapi/types/migratereindex.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/modeenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/modeenum" ) // MigrateReindex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L39-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L39-L48 type MigrateReindex struct { // Mode Reindex mode. Currently only 'upgrade' is supported. Mode modeenum.ModeEnum `json:"mode"` diff --git a/typedapi/types/migrationfeatureindexinfo.go b/typedapi/types/migrationfeatureindexinfo.go index ca99e3afb1..96a1b5ac46 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // MigrationFeatureIndexInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/migration/get_feature_upgrade_status/GetFeatureUpgradeStatusResponse.ts#L44-L48 type MigrationFeatureIndexInfo struct { FailureCause *ErrorCause `json:"failure_cause,omitempty"` Index string `json:"index"` diff --git a/typedapi/types/minaggregate.go b/typedapi/types/minaggregate.go index f21019b5cf..6719d1fe0d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MinAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L199-L203 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L199-L203 type MinAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/minaggregation.go b/typedapi/types/minaggregation.go index f8780d3319..beaf1d79c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MinAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L178-L178 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L178-L178 type MinAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/minbucketaggregation.go b/typedapi/types/minbucketaggregation.go index df83b23b27..d1e1547e0b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // MinBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L249-L252 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L249-L252 type MinBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/minimallicenseinformation.go b/typedapi/types/minimallicenseinformation.go index 14dc67abfb..147cf1709a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensestatus" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/licensetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/licensestatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/licensetype" ) // MinimalLicenseInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/info/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/info/types.ts#L34-L40 type MinimalLicenseInformation struct { ExpiryDateInMillis int64 `json:"expiry_date_in_millis"` Mode licensetype.LicenseType `json:"mode"` diff --git a/typedapi/types/minimumshouldmatch.go b/typedapi/types/minimumshouldmatch.go index 8df2f9434c..fb82048645 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L160-L164 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e742025a72..173908cd8d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ package types // Float64 // bool // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/AggregationContainer.ts#L535-L535 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 630b3a3e34..ba5d66d558 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // MissingAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L528-L532 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L528-L532 type MissingAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/missingaggregation.go b/typedapi/types/missingaggregation.go index a3616cb072..9dfa6b55c6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // MissingAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L593-L599 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L593-L599 type MissingAggregation struct { // Field The name of the field. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/mistralservicesettings.go b/typedapi/types/mistralservicesettings.go new file mode 100644 index 0000000000..e1f335a474 --- /dev/null +++ b/typedapi/types/mistralservicesettings.go @@ -0,0 +1,140 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// MistralServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L976-L1003 +type MistralServiceSettings struct { + // ApiKey A valid API key of your Mistral account. + // You can find your Mistral API keys or you can create a new one on the API + // Keys page. + // + // IMPORTANT: You need to provide the API key only once, during the inference + // model creation. + // The get inference endpoint API does not retrieve your API key. + // After creating the inference model, you cannot change the associated API key. + // If you want to use a different API key, delete the inference model and + // recreate it with the same name and the updated API key. + ApiKey string `json:"api_key"` + // MaxInputTokens The maximum number of tokens per input before chunking occurs. + MaxInputTokens *int `json:"max_input_tokens,omitempty"` + // Model The name of the model to use for the inference task. + // Refer to the Mistral models documentation for the list of available text + // embedding models. + Model string `json:"model"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // the Mistral API. + // By default, the `mistral` service sets the number of requests allowed per + // minute to 240. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` +} + +func (s *MistralServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "api_key": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ApiKey", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ApiKey = o + + case "max_input_tokens": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "MaxInputTokens", err) + } + s.MaxInputTokens = &value + case float64: + f := int(v) + s.MaxInputTokens = &f + } + + case "model": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Model", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Model = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + } + } + return nil +} + +// NewMistralServiceSettings returns a MistralServiceSettings. +func NewMistralServiceSettings() *MistralServiceSettings { + r := &MistralServiceSettings{} + + return r +} + +// true + +type MistralServiceSettingsVariant interface { + MistralServiceSettingsCaster() *MistralServiceSettings +} + +func (s *MistralServiceSettings) MistralServiceSettingsCaster() *MistralServiceSettings { + return s +} diff --git a/typedapi/types/mlcounter.go b/typedapi/types/mlcounter.go index a25f0ec02f..b0cfce7b27 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MlCounter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L265-L267 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L265-L267 type MlCounter struct { Count int64 `json:"count"` } diff --git a/typedapi/types/mldatafeed.go b/typedapi/types/mldatafeed.go index 1e8394cc0c..294f87f5a8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MLDatafeed type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Datafeed.ts#L37-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Datafeed.ts#L37-L61 type MLDatafeed struct { Aggregations map[string]Aggregations `json:"aggregations,omitempty"` // Authorization The security privileges that the datafeed uses to run its queries. If Elastic diff --git a/typedapi/types/mldataframeanalyticsjobs.go b/typedapi/types/mldataframeanalyticsjobs.go index c869c93508..299bfc4e08 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // MlDataFrameAnalyticsJobs type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L187-L192 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L187-L192 type MlDataFrameAnalyticsJobs struct { All_ MlDataFrameAnalyticsJobsCount `json:"_all"` AnalysisCounts *MlDataFrameAnalyticsJobsAnalysis `json:"analysis_counts,omitempty"` diff --git a/typedapi/types/mldataframeanalyticsjobsanalysis.go b/typedapi/types/mldataframeanalyticsjobsanalysis.go index 7d889d1a2c..f3a5a29f32 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MlDataFrameAnalyticsJobsAnalysis type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L194-L198 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L194-L198 type MlDataFrameAnalyticsJobsAnalysis struct { Classification *int `json:"classification,omitempty"` OutlierDetection *int `json:"outlier_detection,omitempty"` diff --git a/typedapi/types/mldataframeanalyticsjobscount.go b/typedapi/types/mldataframeanalyticsjobscount.go index db0a967371..83165a6f75 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MlDataFrameAnalyticsJobsCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L204-L206 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L204-L206 type MlDataFrameAnalyticsJobsCount struct { Count int64 `json:"count"` } diff --git a/typedapi/types/mldataframeanalyticsjobsmemory.go b/typedapi/types/mldataframeanalyticsjobsmemory.go index 8be5db159a..1a82fdbb22 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // MlDataFrameAnalyticsJobsMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L200-L202 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L200-L202 type MlDataFrameAnalyticsJobsMemory struct { PeakUsageBytes JobStatistics `json:"peak_usage_bytes"` } diff --git a/typedapi/types/mlfilter.go b/typedapi/types/mlfilter.go index ea27254e77..e4fc84188d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MLFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Filter.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Filter.ts#L22-L29 type MLFilter struct { // Description A description of the filter. Description *string `json:"description,omitempty"` diff --git a/typedapi/types/mlinference.go b/typedapi/types/mlinference.go index 0deea57d76..6060578055 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // MlInference type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L208-L216 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L208-L216 type MlInference struct { Deployments *MlInferenceDeployments `json:"deployments,omitempty"` IngestProcessors map[string]MlInferenceIngestProcessor `json:"ingest_processors"` diff --git a/typedapi/types/mlinferencedeployments.go b/typedapi/types/mlinferencedeployments.go index 80558dbcba..02a84d4b48 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MlInferenceDeployments type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L237-L242 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L237-L242 type MlInferenceDeployments struct { Count int `json:"count"` InferenceCounts JobStatistics `json:"inference_counts"` diff --git a/typedapi/types/mlinferencedeploymentstimems.go b/typedapi/types/mlinferencedeploymentstimems.go index c28c660d3b..bb0c6a3d48 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MlInferenceDeploymentsTimeMs type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L244-L246 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L244-L246 type MlInferenceDeploymentsTimeMs struct { Avg Float64 `json:"avg"` } diff --git a/typedapi/types/mlinferenceingestprocessor.go b/typedapi/types/mlinferenceingestprocessor.go index bbf3144d88..43c013d06f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // MlInferenceIngestProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L218-L223 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L218-L223 type MlInferenceIngestProcessor struct { NumDocsProcessed MlInferenceIngestProcessorCount `json:"num_docs_processed"` NumFailures MlInferenceIngestProcessorCount `json:"num_failures"` diff --git a/typedapi/types/mlinferenceingestprocessorcount.go b/typedapi/types/mlinferenceingestprocessorcount.go index 76551653fd..a02d96deed 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MlInferenceIngestProcessorCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L248-L252 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L248-L252 type MlInferenceIngestProcessorCount struct { Max int64 `json:"max"` Min int64 `json:"min"` diff --git a/typedapi/types/mlinferencetrainedmodels.go b/typedapi/types/mlinferencetrainedmodels.go index 1cdc3a323b..e907e837c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // MlInferenceTrainedModels type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L225-L235 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L225-L235 type MlInferenceTrainedModels struct { All_ MlCounter `json:"_all"` Count *MlInferenceTrainedModelsCount `json:"count,omitempty"` diff --git a/typedapi/types/mlinferencetrainedmodelscount.go b/typedapi/types/mlinferencetrainedmodelscount.go index c78088f2fd..7ec439ee54 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MlInferenceTrainedModelsCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L254-L263 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L254-L263 type MlInferenceTrainedModelsCount struct { Classification *int64 `json:"classification,omitempty"` Ner *int64 `json:"ner,omitempty"` diff --git a/typedapi/types/mljobforecasts.go b/typedapi/types/mljobforecasts.go index 005f27c2c6..a08e1ec60a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MlJobForecasts type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L182-L185 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L182-L185 type MlJobForecasts struct { ForecastedJobs int64 `json:"forecasted_jobs"` Total int64 `json:"total"` diff --git a/typedapi/types/modelpackageconfig.go b/typedapi/types/modelpackageconfig.go index b81da518e6..244885aa8f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ModelPackageConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L256-L271 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L257-L272 type ModelPackageConfig struct { CreateTime *int64 `json:"create_time,omitempty"` Description *string `json:"description,omitempty"` diff --git a/typedapi/types/modelplotconfig.go b/typedapi/types/modelplotconfig.go index 7c5131d7e6..ee5dff520d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ModelPlotConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/ModelPlot.ts#L23-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/ModelPlot.ts#L23-L42 type ModelPlotConfig struct { // AnnotationsEnabled If true, enables calculation and storage of the model change annotations for // each entity that is being analyzed. diff --git a/typedapi/types/modelsizestats.go b/typedapi/types/modelsizestats.go index 713f06a8e5..73e71d7da0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/categorizationstatus" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/memorystatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/categorizationstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/memorystatus" ) // ModelSizeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Model.ts#L59-L82 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Model.ts#L59-L82 type ModelSizeStats struct { AssignmentMemoryBasis *string `json:"assignment_memory_basis,omitempty"` BucketAllocationFailuresCount int64 `json:"bucket_allocation_failures_count"` diff --git a/typedapi/types/modelsnapshot.go b/typedapi/types/modelsnapshot.go index f23a367762..fd10e906db 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ModelSnapshot type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Model.ts#L25-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Model.ts#L25-L46 type ModelSnapshot struct { // Description An optional description of the job. Description *string `json:"description,omitempty"` diff --git a/typedapi/types/modelsnapshotupgrade.go b/typedapi/types/modelsnapshotupgrade.go index 33ccadd133..236124b8b7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snapshotupgradestate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/snapshotupgradestate" ) // ModelSnapshotUpgrade type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Model.ts#L48-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Model.ts#L48-L57 type ModelSnapshotUpgrade struct { AssignmentExplanation string `json:"assignment_explanation"` JobId string `json:"job_id"` diff --git a/typedapi/types/monitoring.go b/typedapi/types/monitoring.go index 9f501fcd1e..655e2ceb05 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Monitoring type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L387-L390 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L387-L390 type Monitoring struct { Available bool `json:"available"` CollectionEnabled bool `json:"collection_enabled"` diff --git a/typedapi/types/morelikethisquery.go b/typedapi/types/morelikethisquery.go index 47b6faabcc..fe351784a4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) // MoreLikeThisQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L87-L172 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L87-L172 type MoreLikeThisQuery struct { // Analyzer The analyzer that is used to analyze the free form text. // Defaults to the analyzer associated with the first field in fields. diff --git a/typedapi/types/mountedsnapshot.go b/typedapi/types/mountedsnapshot.go index ddc9a01bae..c0010784a8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // MountedSnapshot type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/searchable_snapshots/mount/types.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/searchable_snapshots/mount/types.ts#L23-L27 type MountedSnapshot struct { Indices []string `json:"indices"` Shards ShardStatistics `json:"shards"` diff --git a/typedapi/types/movingaverageaggregation.go b/typedapi/types/movingaverageaggregation.go index df163bf438..e0d1e1a7e5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,7 +28,7 @@ package types // HoltMovingAverageAggregation // HoltWintersMovingAverageAggregation // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L254-L260 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 366478bd2b..194cbce110 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // MovingFunctionAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L314-L332 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L314-L332 type MovingFunctionAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/movingpercentilesaggregation.go b/typedapi/types/movingpercentilesaggregation.go index 8137476a99..91473ba04f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // MovingPercentilesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L334-L349 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L334-L349 type MovingPercentilesAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/msearchrequestitem.go b/typedapi/types/msearchrequestitem.go index c3ffe18cbb..fe26f22ee7 100644 --- a/typedapi/types/msearchrequestitem.go +++ b/typedapi/types/msearchrequestitem.go @@ -16,16 +16,16 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // MsearchRequestItem holds the union for the following types: // // MultisearchHeader -// MultisearchBody +// SearchRequestBody // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/msearch/types.ts#L47-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 cf47a45599..f2f6c569e3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // MultiSearchItem // ErrorResponseBase // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/msearch/types.ts#L211-L214 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/msearch/types.ts#L53-L56 type MsearchResponseItem any diff --git a/typedapi/types/mtermvectorsoperation.go b/typedapi/types/mtermvectorsoperation.go index 0698bcd8f8..3911391582 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) // MTermVectorsOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/mtermvectors/types.ts#L35-L94 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/mtermvectors/types.ts#L35-L94 type MTermVectorsOperation struct { // Doc An artificial document (a document not present in the index) for which you // want to retrieve term vectors. diff --git a/typedapi/types/multigeterror.go b/typedapi/types/multigeterror.go index b77d9911eb..8b7b5a030c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // MultiGetError type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/mget/types.ts#L62-L66 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/mget/types.ts#L62-L66 type MultiGetError struct { Error ErrorCause `json:"error"` Id_ string `json:"_id"` diff --git a/typedapi/types/multimatchquery.go b/typedapi/types/multimatchquery.go index 1447f3fdbe..4f7e4a0dec 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/textquerytype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/zerotermsquery" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/textquerytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/zerotermsquery" ) // MultiMatchQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L471-L557 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L471-L557 type MultiMatchQuery struct { // Analyzer Analyzer used to convert the text in the query value into tokens. Analyzer *string `json:"analyzer,omitempty"` diff --git a/typedapi/types/multiplexertokenfilter.go b/typedapi/types/multiplexertokenfilter.go index 1d868937db..0eeea8fb47 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // MultiplexerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L261-L265 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L261-L265 type MultiplexerTokenFilter struct { Filters []string `json:"filters"` PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` diff --git a/typedapi/types/multisearchheader.go b/typedapi/types/multisearchheader.go index 5d73718a94..f3957349c7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/expandwildcard" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/expandwildcard" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" ) // MultisearchHeader type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/msearch/types.ts#L52-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` diff --git a/typedapi/types/multisearchitem.go b/typedapi/types/multisearchitem.go index 620314167f..c87f0ed792 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // MultiSearchItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/msearch/types.ts#L216-L219 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/msearch/types.ts#L58-L61 type MultiSearchItem struct { Aggregations map[string]Aggregate `json:"aggregations,omitempty"` Clusters_ *ClusterStatistics `json:"_clusters,omitempty"` diff --git a/typedapi/types/multitermlookup.go b/typedapi/types/multitermlookup.go index 42867d8789..3a84a31e17 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // MultiTermLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L643-L653 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L643-L653 type MultiTermLookup struct { // Field A fields from which to retrieve terms. Field string `json:"field"` diff --git a/typedapi/types/multitermsaggregate.go b/typedapi/types/multitermsaggregate.go index f4b43b2c06..1ecd0f2d71 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MultiTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L501-L506 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L501-L506 type MultiTermsAggregate struct { Buckets BucketsMultiTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` diff --git a/typedapi/types/multitermsaggregation.go b/typedapi/types/multitermsaggregation.go index 625110e8ac..d9c05fff23 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationcollectmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termsaggregationcollectmode" ) // MultiTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L601-L641 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L601-L641 type MultiTermsAggregation struct { // CollectMode Specifies the strategy for data collection. CollectMode *termsaggregationcollectmode.TermsAggregationCollectMode `json:"collect_mode,omitempty"` diff --git a/typedapi/types/multitermsbucket.go b/typedapi/types/multitermsbucket.go index 7b097460f1..df716358c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // MultiTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L508-L512 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L508-L512 type MultiTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/murmur3hashproperty.go b/typedapi/types/murmur3hashproperty.go index 35d2826172..ba0ae23baa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // Murmur3HashProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/specialized.ts#L90-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/specialized.ts#L90-L92 type Murmur3HashProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/mutualinformationheuristic.go b/typedapi/types/mutualinformationheuristic.go index 7ad89be6bb..7e3d4c9aab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // MutualInformationHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L800-L809 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L800-L809 type MutualInformationHeuristic struct { // BackgroundIsSuperset Set to `false` if you defined a custom background filter that represents a // different set of documents that you want to compare to. diff --git a/typedapi/types/names.go b/typedapi/types/names.go index a35e7e2e84..070890d547 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Names type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L75-L75 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3f053d14ed..31425ea1a4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NativeCode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/info/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/info/types.ts#L29-L32 type NativeCode struct { BuildHash string `json:"build_hash"` Version string `json:"version"` diff --git a/typedapi/types/nativecodeinformation.go b/typedapi/types/nativecodeinformation.go index 198be4a348..b31d6edd99 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NativeCodeInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/info/types.ts#L29-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/info/types.ts#L29-L32 type NativeCodeInformation struct { BuildHash string `json:"build_hash"` Version string `json:"version"` diff --git a/typedapi/types/nerinferenceoptions.go b/typedapi/types/nerinferenceoptions.go index 47aee1f84a..f200a258a3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NerInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L242-L251 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L273-L282 type NerInferenceOptions struct { // ClassificationLabels The token classification labels. Must be IOB formatted tags ClassificationLabels []string `json:"classification_labels,omitempty"` diff --git a/typedapi/types/nerinferenceupdateoptions.go b/typedapi/types/nerinferenceupdateoptions.go index b5653b9b63..9268a8070a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NerInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L392-L397 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L423-L428 type NerInferenceUpdateOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/nestedaggregate.go b/typedapi/types/nestedaggregate.go index d1cdfece58..2828f3662e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // NestedAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L534-L538 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L534-L538 type NestedAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/nestedaggregation.go b/typedapi/types/nestedaggregation.go index 22bf50fe73..b6cbf04e46 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // NestedAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L655-L660 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L655-L660 type NestedAggregation struct { // Path The path to the field of type `nested`. Path *string `json:"path,omitempty"` diff --git a/typedapi/types/nestedidentity.go b/typedapi/types/nestedidentity.go index 929ab80dfb..27c332ef09 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NestedIdentity type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/hits.ts#L89-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/hits.ts#L89-L93 type NestedIdentity struct { Field string `json:"field"` Nested_ *NestedIdentity `json:"_nested,omitempty"` diff --git a/typedapi/types/nestedproperty.go b/typedapi/types/nestedproperty.go index fd53c76ea7..883b85439b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // NestedProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/complex.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/complex.ts#L39-L44 type NestedProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` diff --git a/typedapi/types/nestedquery.go b/typedapi/types/nestedquery.go index e4eaab9a8f..3412c89a04 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/childscoremode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/childscoremode" ) // NestedQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/joining.ts#L112-L139 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/joining.ts#L112-L139 type NestedQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/nestedsortvalue.go b/typedapi/types/nestedsortvalue.go index 426c914e9c..24e3b8eec8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NestedSortValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L29-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/sort.ts#L29-L34 type NestedSortValue struct { Filter *Query `json:"filter,omitempty"` MaxChildren *int `json:"max_children,omitempty"` diff --git a/typedapi/types/networkdirectionprocessor.go b/typedapi/types/networkdirectionprocessor.go index b2bfc6e7d9..fa7b3a9293 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NetworkDirectionProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1231-L1265 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/nevercondition.go b/typedapi/types/nevercondition.go index df89c15043..bd5d3a9f43 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NeverCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Conditions.ts#L72-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Conditions.ts#L73-L73 type NeverCondition struct { } diff --git a/typedapi/types/ngramtokenfilter.go b/typedapi/types/ngramtokenfilter.go index 908dd96485..f734f5f959 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NGramTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L267-L272 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L267-L272 type NGramTokenFilter struct { MaxGram *int `json:"max_gram,omitempty"` MinGram *int `json:"min_gram,omitempty"` diff --git a/typedapi/types/ngramtokenizer.go b/typedapi/types/ngramtokenizer.go index 8104c887e6..4671d3795e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenchar" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenchar" ) // NGramTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L84-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L84-L93 type NGramTokenizer struct { CustomTokenChars *string `json:"custom_token_chars,omitempty"` MaxGram *int `json:"max_gram,omitempty"` diff --git a/typedapi/types/nlpberttokenizationconfig.go b/typedapi/types/nlpberttokenizationconfig.go index b0e75f8041..b80cc230cb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenizationtruncate" ) // NlpBertTokenizationConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L161-L162 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L188-L189 type NlpBertTokenizationConfig struct { // DoLowerCase Should the tokenizer lower case the text DoLowerCase *bool `json:"do_lower_case,omitempty"` diff --git a/typedapi/types/nlprobertatokenizationconfig.go b/typedapi/types/nlprobertatokenizationconfig.go index 4d6fe96111..ad3671b4a0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenizationtruncate" ) // NlpRobertaTokenizationConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L164-L171 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L191-L198 type NlpRobertaTokenizationConfig struct { // AddPrefixSpace Should the tokenizer prefix input with a space character AddPrefixSpace *bool `json:"add_prefix_space,omitempty"` diff --git a/typedapi/types/nlptokenizationupdateoptions.go b/typedapi/types/nlptokenizationupdateoptions.go index 477738ed5b..08d297445f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/tokenizationtruncate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenizationtruncate" ) // NlpTokenizationUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L344-L349 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L375-L380 type NlpTokenizationUpdateOptions struct { // Span Span options to apply Span *int `json:"span,omitempty"` diff --git a/typedapi/types/node.go b/typedapi/types/node.go index e4e511d413..b2e1953c25 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Node type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/searchable_snapshots/cache_stats/Response.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/searchable_snapshots/cache_stats/Response.ts#L30-L32 type Node struct { SharedCache Shared `json:"shared_cache"` } diff --git a/typedapi/types/nodeallocationexplanation.go b/typedapi/types/nodeallocationexplanation.go index 4ef514cf6e..a0d7c82e97 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/decision" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/decision" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/noderole" ) // NodeAllocationExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L103-L117 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/allocation_explain/types.ts#L103-L117 type NodeAllocationExplanation struct { Deciders []AllocationDecision `json:"deciders"` NodeAttributes map[string]string `json:"node_attributes"` diff --git a/typedapi/types/nodeattributes.go b/typedapi/types/nodeattributes.go index 6029315454..60d1cbf112 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // NodeAttributes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Node.ts#L41-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Node.ts#L41-L52 type NodeAttributes struct { // Attributes Lists node attributes. Attributes map[string]string `json:"attributes"` diff --git a/typedapi/types/nodeattributesrecord.go b/typedapi/types/nodeattributesrecord.go index 43553edbac..694e141728 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeAttributesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/nodeattrs/types.ts#L20-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/nodeattrs/types.ts#L20-L55 type NodeAttributesRecord struct { // Attr The attribute name. Attr *string `json:"attr,omitempty"` diff --git a/typedapi/types/nodebufferpool.go b/typedapi/types/nodebufferpool.go index 2c2c68820c..09f2b4bdd5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeBufferPool type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L859-L880 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L859-L880 type NodeBufferPool struct { // Count Number of buffer pools. Count *int64 `json:"count,omitempty"` diff --git a/typedapi/types/nodediskusage.go b/typedapi/types/nodediskusage.go index e3aac3f0fe..fabeddfb34 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // NodeDiskUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L57-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/allocation_explain/types.ts#L57-L61 type NodeDiskUsage struct { LeastAvailable DiskUsage `json:"least_available"` MostAvailable DiskUsage `json:"most_available"` diff --git a/typedapi/types/nodeids.go b/typedapi/types/nodeids.go index 2916b06360..126371d94c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeIds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L58-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L58-L58 type NodeIds []string diff --git a/typedapi/types/nodeinfo.go b/typedapi/types/nodeinfo.go index d565555a56..82803d3181 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/noderole" ) // NodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L31-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L31-L67 type NodeInfo struct { Aggregations map[string]NodeInfoAggregation `json:"aggregations,omitempty"` Attributes map[string]string `json:"attributes"` diff --git a/typedapi/types/nodeinfoaction.go b/typedapi/types/nodeinfoaction.go index bd61d02c20..2b1e27c116 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L184-L186 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L184-L186 type NodeInfoAction struct { DestructiveRequiresName string `json:"destructive_requires_name"` } diff --git a/typedapi/types/nodeinfoaggregation.go b/typedapi/types/nodeinfoaggregation.go index 9317d35571..bc4b0ebe4a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeInfoAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L235-L237 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L235-L237 type NodeInfoAggregation struct { Types []string `json:"types"` } diff --git a/typedapi/types/nodeinfobootstrap.go b/typedapi/types/nodeinfobootstrap.go index 59ebf2a1f2..c273ee74a5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoBootstrap type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L204-L206 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L204-L206 type NodeInfoBootstrap struct { MemoryLock string `json:"memory_lock"` } diff --git a/typedapi/types/nodeinfoclient.go b/typedapi/types/nodeinfoclient.go index 42528885dc..d54be9db9f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoClient type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L188-L190 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L188-L190 type NodeInfoClient struct { Type string `json:"type"` } diff --git a/typedapi/types/nodeinfodiscover.go b/typedapi/types/nodeinfodiscover.go index 1e59b0c1cd..f7c795d1d5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoDiscover type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L173-L182 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L173-L182 type NodeInfoDiscover struct { NodeInfoDiscover map[string]json.RawMessage `json:"-"` SeedHosts []string `json:"seed_hosts,omitempty"` diff --git a/typedapi/types/nodeinfohttp.go b/typedapi/types/nodeinfohttp.go index ad44048d5e..c6eda42e0b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoHttp type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L311-L316 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L311-L316 type NodeInfoHttp struct { BoundAddress []string `json:"bound_address"` MaxContentLength ByteSize `json:"max_content_length,omitempty"` diff --git a/typedapi/types/nodeinfoingest.go b/typedapi/types/nodeinfoingest.go index 8d67df865c..cea23e45c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeInfoIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L227-L229 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L227-L229 type NodeInfoIngest struct { Processors []NodeInfoIngestProcessor `json:"processors"` } diff --git a/typedapi/types/nodeinfoingestdownloader.go b/typedapi/types/nodeinfoingestdownloader.go index 737df69af6..d4c1627f72 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoIngestDownloader type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L128-L130 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L128-L130 type NodeInfoIngestDownloader struct { Enabled string `json:"enabled"` } diff --git a/typedapi/types/nodeinfoingestinfo.go b/typedapi/types/nodeinfoingestinfo.go index 9a7af7471f..ed9301dfbe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeInfoIngestInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L124-L126 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L124-L126 type NodeInfoIngestInfo struct { Downloader NodeInfoIngestDownloader `json:"downloader"` } diff --git a/typedapi/types/nodeinfoingestprocessor.go b/typedapi/types/nodeinfoingestprocessor.go index 831c60f297..bcf643940d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoIngestProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L231-L233 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L231-L233 type NodeInfoIngestProcessor struct { Type string `json:"type"` } diff --git a/typedapi/types/nodeinfojvmmemory.go b/typedapi/types/nodeinfojvmmemory.go index 5a9bd47780..ac967c3d93 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoJvmMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L318-L329 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L318-L329 type NodeInfoJvmMemory struct { DirectMax ByteSize `json:"direct_max,omitempty"` DirectMaxInBytes int64 `json:"direct_max_in_bytes"` diff --git a/typedapi/types/nodeinfomemory.go b/typedapi/types/nodeinfomemory.go index a935d0267b..3ce2c5466c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L331-L334 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L331-L334 type NodeInfoMemory struct { Total string `json:"total"` TotalInBytes int64 `json:"total_in_bytes"` diff --git a/typedapi/types/nodeinfonetwork.go b/typedapi/types/nodeinfonetwork.go index cbb57927b9..7ff326c642 100644 --- a/typedapi/types/nodeinfonetwork.go +++ b/typedapi/types/nodeinfonetwork.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoNetwork type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L336-L339 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L336-L339 type NodeInfoNetwork struct { PrimaryInterface NodeInfoNetworkInterface `json:"primary_interface"` RefreshInterval int `json:"refresh_interval"` diff --git a/typedapi/types/nodeinfonetworkinterface.go b/typedapi/types/nodeinfonetworkinterface.go index 774315d3fe..4b5b47dc3c 100644 --- a/typedapi/types/nodeinfonetworkinterface.go +++ b/typedapi/types/nodeinfonetworkinterface.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoNetworkInterface type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L341-L345 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L341-L345 type NodeInfoNetworkInterface struct { Address string `json:"address"` MacAddress string `json:"mac_address"` diff --git a/typedapi/types/nodeinfooscpu.go b/typedapi/types/nodeinfooscpu.go index af5f8169eb..1c08ebc619 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoOSCPU type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L347-L356 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L347-L356 type NodeInfoOSCPU struct { CacheSize string `json:"cache_size"` CacheSizeInBytes int `json:"cache_size_in_bytes"` diff --git a/typedapi/types/nodeinfopath.go b/typedapi/types/nodeinfopath.go index 80e741707a..b821444f03 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoPath type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L158-L163 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L158-L163 type NodeInfoPath struct { Data []string `json:"data,omitempty"` Home *string `json:"home,omitempty"` diff --git a/typedapi/types/nodeinforepositories.go b/typedapi/types/nodeinforepositories.go index 3965217d6c..e9ea8e0bd9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeInfoRepositories type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L165-L167 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L165-L167 type NodeInfoRepositories struct { Url NodeInfoRepositoriesUrl `json:"url"` } diff --git a/typedapi/types/nodeinforepositoriesurl.go b/typedapi/types/nodeinforepositoriesurl.go index 3ba18ecaed..2abed99fda 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoRepositoriesUrl type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L169-L171 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L169-L171 type NodeInfoRepositoriesUrl struct { AllowedUrls string `json:"allowed_urls"` } diff --git a/typedapi/types/nodeinfoscript.go b/typedapi/types/nodeinfoscript.go index 116e43158c..38a5c18d8b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L289-L292 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L289-L292 type NodeInfoScript struct { AllowedTypes string `json:"allowed_types"` DisableMaxCompilationsRate *string `json:"disable_max_compilations_rate,omitempty"` diff --git a/typedapi/types/nodeinfosearch.go b/typedapi/types/nodeinfosearch.go index 48abb3266f..e78126f3f0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeInfoSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L294-L296 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L294-L296 type NodeInfoSearch struct { Remote NodeInfoSearchRemote `json:"remote"` } diff --git a/typedapi/types/nodeinfosearchremote.go b/typedapi/types/nodeinfosearchremote.go index 9f4daba1d0..3242dab3ff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSearchRemote type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L298-L300 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L298-L300 type NodeInfoSearchRemote struct { Connect string `json:"connect"` } diff --git a/typedapi/types/nodeinfosettings.go b/typedapi/types/nodeinfosettings.go index b0093db75e..fc2e5ac282 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeInfoSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L69-L85 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L69-L85 type NodeInfoSettings struct { Action *NodeInfoAction `json:"action,omitempty"` Bootstrap *NodeInfoBootstrap `json:"bootstrap,omitempty"` diff --git a/typedapi/types/nodeinfosettingscluster.go b/typedapi/types/nodeinfosettingscluster.go index a2117402e2..e6db2e443b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsCluster type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L132-L142 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L132-L142 type NodeInfoSettingsCluster struct { DeprecationIndexing *DeprecationIndexing `json:"deprecation_indexing,omitempty"` Election NodeInfoSettingsClusterElection `json:"election"` diff --git a/typedapi/types/nodeinfosettingsclusterelection.go b/typedapi/types/nodeinfosettingsclusterelection.go index e979fc8ef3..df7eaed730 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsClusterElection type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L148-L150 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L148-L150 type NodeInfoSettingsClusterElection struct { Strategy string `json:"strategy"` } diff --git a/typedapi/types/nodeinfosettingshttp.go b/typedapi/types/nodeinfosettingshttp.go index 79c31792f0..0d87da81ae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsHttp type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L192-L197 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L192-L197 type NodeInfoSettingsHttp struct { Compression string `json:"compression,omitempty"` Port string `json:"port,omitempty"` diff --git a/typedapi/types/nodeinfosettingshttptype.go b/typedapi/types/nodeinfosettingshttptype.go index fcb267b3df..e80b151ff4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsHttpType type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L199-L202 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L199-L202 type NodeInfoSettingsHttpType struct { Default string `json:"default"` } diff --git a/typedapi/types/nodeinfosettingsingest.go b/typedapi/types/nodeinfosettingsingest.go index 334f9a658f..c97d679168 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeInfoSettingsIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L87-L122 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L87-L122 type NodeInfoSettingsIngest struct { Append *NodeInfoIngestInfo `json:"append,omitempty"` Attachment *NodeInfoIngestInfo `json:"attachment,omitempty"` diff --git a/typedapi/types/nodeinfosettingsnetwork.go b/typedapi/types/nodeinfosettingsnetwork.go index e2004bcdc8..de1d37a923 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // NodeInfoSettingsNetwork type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L223-L225 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L223-L225 type NodeInfoSettingsNetwork struct { Host []string `json:"host,omitempty"` } diff --git a/typedapi/types/nodeinfosettingsnode.go b/typedapi/types/nodeinfosettingsnode.go index bceabd8d44..0056c7f3c5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L152-L156 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L152-L156 type NodeInfoSettingsNode struct { Attr map[string]json.RawMessage `json:"attr"` MaxLocalStorageNodes *string `json:"max_local_storage_nodes,omitempty"` diff --git a/typedapi/types/nodeinfosettingstransport.go b/typedapi/types/nodeinfosettingstransport.go index c2b3f65c1c..3f72b5d116 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransport type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L208-L212 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L208-L212 type NodeInfoSettingsTransport struct { Features *NodeInfoSettingsTransportFeatures `json:"features,omitempty"` Type NodeInfoSettingsTransportType `json:"type"` diff --git a/typedapi/types/nodeinfosettingstransportfeatures.go b/typedapi/types/nodeinfosettingstransportfeatures.go index ceeb4f4955..f35ab184f7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransportFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L219-L221 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L219-L221 type NodeInfoSettingsTransportFeatures struct { XPack string `json:"x-pack"` } diff --git a/typedapi/types/nodeinfosettingstransporttype.go b/typedapi/types/nodeinfosettingstransporttype.go index b1fc12d2fb..737f4e2b05 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoSettingsTransportType type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L214-L217 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L214-L217 type NodeInfoSettingsTransportType struct { Default string `json:"default"` } diff --git a/typedapi/types/nodeinfotransport.go b/typedapi/types/nodeinfotransport.go index 68f548a5e1..3066f1a9a7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoTransport type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L358-L362 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L358-L362 type NodeInfoTransport struct { BoundAddress []string `json:"bound_address"` Profiles map[string]string `json:"profiles"` diff --git a/typedapi/types/nodeinfoxpack.go b/typedapi/types/nodeinfoxpack.go index 37fd46f669..2c0ea45246 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // NodeInfoXpack type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L239-L244 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L239-L244 type NodeInfoXpack struct { License *NodeInfoXpackLicense `json:"license,omitempty"` Ml *NodeInfoXpackMl `json:"ml,omitempty"` diff --git a/typedapi/types/nodeinfoxpacklicense.go b/typedapi/types/nodeinfoxpacklicense.go index 0929402cd0..22fdb7d820 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeInfoXpackLicense type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L281-L283 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L281-L283 type NodeInfoXpackLicense struct { SelfGenerated NodeInfoXpackLicenseType `json:"self_generated"` } diff --git a/typedapi/types/nodeinfoxpacklicensetype.go b/typedapi/types/nodeinfoxpacklicensetype.go index 4cd987082b..ed07c6761c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackLicenseType type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L285-L287 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L285-L287 type NodeInfoXpackLicenseType struct { Type string `json:"type"` } diff --git a/typedapi/types/nodeinfoxpackml.go b/typedapi/types/nodeinfoxpackml.go index e8e60bdb0a..dc93c0da50 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackMl type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L253-L255 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L253-L255 type NodeInfoXpackMl struct { UseAutoMachineMemoryPercent *bool `json:"use_auto_machine_memory_percent,omitempty"` } diff --git a/typedapi/types/nodeinfoxpacksecurity.go b/typedapi/types/nodeinfoxpacksecurity.go index c87341e5f0..141eb2f84e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurity type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L246-L251 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L246-L251 type NodeInfoXpackSecurity struct { Authc *NodeInfoXpackSecurityAuthc `json:"authc,omitempty"` Enabled string `json:"enabled"` diff --git a/typedapi/types/nodeinfoxpacksecurityauthc.go b/typedapi/types/nodeinfoxpacksecurityauthc.go index 017854b982..f31f798470 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeInfoXpackSecurityAuthc type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L261-L264 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L261-L264 type NodeInfoXpackSecurityAuthc struct { Realms *NodeInfoXpackSecurityAuthcRealms `json:"realms,omitempty"` Token *NodeInfoXpackSecurityAuthcToken `json:"token,omitempty"` diff --git a/typedapi/types/nodeinfoxpacksecurityauthcrealms.go b/typedapi/types/nodeinfoxpacksecurityauthcrealms.go index b05fb4640c..bc14c5fe32 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeInfoXpackSecurityAuthcRealms type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L266-L270 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L266-L270 type NodeInfoXpackSecurityAuthcRealms struct { File map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"file,omitempty"` Native map[string]NodeInfoXpackSecurityAuthcRealmsStatus `json:"native,omitempty"` diff --git a/typedapi/types/nodeinfoxpacksecurityauthcrealmsstatus.go b/typedapi/types/nodeinfoxpacksecurityauthcrealmsstatus.go index 7706350087..a7028302af 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurityAuthcRealmsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L276-L279 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L276-L279 type NodeInfoXpackSecurityAuthcRealmsStatus struct { Enabled *string `json:"enabled,omitempty"` Order string `json:"order"` diff --git a/typedapi/types/nodeinfoxpacksecurityauthctoken.go b/typedapi/types/nodeinfoxpacksecurityauthctoken.go index 6dff6f8e60..5241ced58c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeInfoXpackSecurityAuthcToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L272-L274 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L272-L274 type NodeInfoXpackSecurityAuthcToken struct { Enabled string `json:"enabled"` } diff --git a/typedapi/types/nodeinfoxpacksecurityssl.go b/typedapi/types/nodeinfoxpacksecurityssl.go index 7c0bd7a6e8..75a50eb05d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodeInfoXpackSecuritySsl type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L257-L259 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L257-L259 type NodeInfoXpackSecuritySsl struct { Ssl map[string]string `json:"ssl"` } diff --git a/typedapi/types/nodejvminfo.go b/typedapi/types/nodejvminfo.go index 3d3d0c1e21..289e5f6a38 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeJvmInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L364-L378 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L364-L378 type NodeJvmInfo struct { GcCollectors []string `json:"gc_collectors"` InputArguments []string `json:"input_arguments"` diff --git a/typedapi/types/nodeoperatingsysteminfo.go b/typedapi/types/nodeoperatingsysteminfo.go index 404ef873fb..ed6dbdc47e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeOperatingSystemInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L380-L397 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L380-L397 type NodeOperatingSystemInfo struct { // AllocatedProcessors The number of processors actually used to calculate thread pool size. This // number can be set with the node.processors setting of a node and defaults to diff --git a/typedapi/types/nodepackagingtype.go b/typedapi/types/nodepackagingtype.go index e835f2e4e6..991f3cff5b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodePackagingType type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L526-L539 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L526-L539 type NodePackagingType struct { // Count Number of selected nodes using the distribution flavor and file type. Count int `json:"count"` diff --git a/typedapi/types/nodeprocessinfo.go b/typedapi/types/nodeprocessinfo.go index 844ca692ae..dadab422fb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeProcessInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L399-L406 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L399-L406 type NodeProcessInfo struct { // Id Process identifier (PID) Id int64 `json:"id"` diff --git a/typedapi/types/nodereloadresult.go b/typedapi/types/nodereloadresult.go index 0b152eb77a..e532f66a33 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // NodeReloadResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/NodeReloadResult.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/NodeReloadResult.ts#L23-L26 type NodeReloadResult struct { Name string `json:"name"` ReloadException *ErrorCause `json:"reload_exception,omitempty"` diff --git a/typedapi/types/nodescontext.go b/typedapi/types/nodescontext.go index 95556c2f3a..d37fce6bf0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodesContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L1068-L1073 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L1068-L1073 type NodesContext struct { CacheEvictions *int64 `json:"cache_evictions,omitempty"` CompilationLimitTriggered *int64 `json:"compilation_limit_triggered,omitempty"` diff --git a/typedapi/types/nodescredentials.go b/typedapi/types/nodescredentials.go index 600b485b21..4e74f2eda2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodesCredentials type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_service_credentials/types.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/get_service_credentials/types.ts#L23-L28 type NodesCredentials struct { // FileTokens File-backed tokens collected from all nodes FileTokens map[string]NodesCredentialsFileToken `json:"file_tokens"` diff --git a/typedapi/types/nodescredentialsfiletoken.go b/typedapi/types/nodescredentialsfiletoken.go index 38a10939f2..a0097be490 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodesCredentialsFileToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_service_credentials/types.ts#L30-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/get_service_credentials/types.ts#L30-L32 type NodesCredentialsFileToken struct { Nodes []string `json:"nodes"` } diff --git a/typedapi/types/nodeshard.go b/typedapi/types/nodeshard.go index fe4d74e12d..38749d6452 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardroutingstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shardroutingstate" ) // NodeShard type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Node.ts#L54-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Node.ts#L54-L65 type NodeShard struct { AllocationId map[string]string `json:"allocation_id,omitempty"` Index string `json:"index"` diff --git a/typedapi/types/nodeshutdownstatus.go b/typedapi/types/nodeshutdownstatus.go index 282cb279bd..2dae9d0aeb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdownstatus" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdowntype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shutdownstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shutdowntype" ) // NodeShutdownStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L29-L38 type NodeShutdownStatus struct { NodeId string `json:"node_id"` PersistentTasks PersistentTaskStatus `json:"persistent_tasks"` diff --git a/typedapi/types/nodesindexingpressure.go b/typedapi/types/nodesindexingpressure.go index 2fdd6322dd..870aa56c8e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodesIndexingPressure type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L116-L121 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L116-L121 type NodesIndexingPressure struct { // Memory Contains statistics for memory consumption from indexing load. Memory *NodesIndexingPressureMemory `json:"memory,omitempty"` diff --git a/typedapi/types/nodesindexingpressurememory.go b/typedapi/types/nodesindexingpressurememory.go index e8bb08b3cb..50d24451c1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodesIndexingPressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L123-L142 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L123-L142 type NodesIndexingPressureMemory struct { // Current Contains statistics for current indexing load. Current *PressureMemory `json:"current,omitempty"` diff --git a/typedapi/types/nodesingest.go b/typedapi/types/nodesingest.go index 398676d0ca..e6a57d11e5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // NodesIngest type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L345-L354 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L345-L354 type NodesIngest struct { // Pipelines Contains statistics about ingest pipelines for the node. Pipelines map[string]IngestStats `json:"pipelines,omitempty"` diff --git a/typedapi/types/nodesrecord.go b/typedapi/types/nodesrecord.go index 89d27b20d8..d5b928c761 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/nodes/types.ts#L23-L542 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/nodes/types.ts#L23-L542 type NodesRecord struct { // Build The Elasticsearch build hash. Build *string `json:"build,omitempty"` diff --git a/typedapi/types/nodestatistics.go b/typedapi/types/nodestatistics.go index d9ebaaa46c..80cb5bacae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Node.ts#L28-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Node.ts#L28-L39 type NodeStatistics struct { // Failed Number of nodes that rejected the request or failed to respond. If this value // is not 0, a reason for the rejection or failure is included in the response. diff --git a/typedapi/types/nodetasks.go b/typedapi/types/nodetasks.go index f996e6e404..e54312be14 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // NodeTasks type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/tasks/_types/TaskListResponseBase.ts#L49-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/tasks/_types/TaskListResponseBase.ts#L49-L57 type NodeTasks struct { Attributes map[string]string `json:"attributes,omitempty"` Host *string `json:"host,omitempty"` diff --git a/typedapi/types/nodethreadpoolinfo.go b/typedapi/types/nodethreadpoolinfo.go index f0aa2e64d1..9eac1bcc12 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NodeThreadPoolInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/info/types.ts#L302-L309 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/info/types.ts#L302-L309 type NodeThreadPoolInfo struct { Core *int `json:"core,omitempty"` KeepAlive Duration `json:"keep_alive,omitempty"` diff --git a/typedapi/types/nodeusage.go b/typedapi/types/nodeusage.go index e1ddd83f75..8be62b199d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // NodeUsage type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/usage/types.ts#L25-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/usage/types.ts#L25-L30 type NodeUsage struct { Aggregations map[string]json.RawMessage `json:"aggregations"` RestActions map[string]int `json:"rest_actions"` diff --git a/typedapi/types/norianalyzer.go b/typedapi/types/norianalyzer.go index 423e4fe9ce..4a75fe4dc2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noridecompoundmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/noridecompoundmode" ) // NoriAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L323-L330 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L323-L330 type NoriAnalyzer struct { DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"` Stoptags []string `json:"stoptags,omitempty"` diff --git a/typedapi/types/noripartofspeechtokenfilter.go b/typedapi/types/noripartofspeechtokenfilter.go index 0dd67faa32..da77eebead 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // NoriPartOfSpeechTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L274-L277 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L274-L277 type NoriPartOfSpeechTokenFilter struct { Stoptags []string `json:"stoptags,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/noritokenizer.go b/typedapi/types/noritokenizer.go index 9da0152d27..e271bee536 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noridecompoundmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/noridecompoundmode" ) // NoriTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/nori-plugin.ts#L28-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/nori-plugin.ts#L28-L34 type NoriTokenizer struct { DecompoundMode *noridecompoundmode.NoriDecompoundMode `json:"decompound_mode,omitempty"` DiscardPunctuation *bool `json:"discard_punctuation,omitempty"` diff --git a/typedapi/types/normalizeaggregation.go b/typedapi/types/normalizeaggregation.go index b1ef7ad377..6ae31520ba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalizemethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/normalizemethod" ) // NormalizeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L351-L359 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L351-L359 type NormalizeAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/normalizer.go b/typedapi/types/normalizer.go index 51f5854cb2..890e79d23f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // LowercaseNormalizer // CustomNormalizer // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/normalizers.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a275ee8397..4a250e55df 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // NorwegianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L248-L253 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L248-L253 type NorwegianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/numberrangequery.go b/typedapi/types/numberrangequery.go index 95b7cf4ffa..0e05a4f7bb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/rangerelation" ) // NumberRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L172-L172 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L172-L172 type NumberRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/numericdecayfunction.go b/typedapi/types/numericdecayfunction.go index f3680e990f..1d2284c432 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/multivaluemode" ) // NumericDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L208-L208 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L208-L208 type NumericDecayFunction struct { DecayFunctionBasedoubledouble map[string]DecayPlacementdoubledouble `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/typedapi/types/numericfielddata.go b/typedapi/types/numericfielddata.go index 4a65d8f717..c536bfd105 100644 --- a/typedapi/types/numericfielddata.go +++ b/typedapi/types/numericfielddata.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/numericfielddataformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/numericfielddataformat" ) // NumericFielddata type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/NumericFielddata.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/NumericFielddata.ts#L22-L24 type NumericFielddata struct { Format numericfielddataformat.NumericFielddataFormat `json:"format"` } diff --git a/typedapi/types/objectproperty.go b/typedapi/types/objectproperty.go index a77492791c..b8a4b5af13 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/subobjects" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/subobjects" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // ObjectProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/complex.ts#L46-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/complex.ts#L46-L50 type ObjectProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` diff --git a/typedapi/types/onehotencodingpreprocessor.go b/typedapi/types/onehotencodingpreprocessor.go index 4f77d3fac5..755b03b058 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // OneHotEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L44-L47 type OneHotEncodingPreprocessor struct { Field string `json:"field"` HotMap map[string]string `json:"hot_map"` diff --git a/typedapi/types/openaiservicesettings.go b/typedapi/types/openaiservicesettings.go index d8fd813fdc..81d072c968 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // OpenAIServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put_openai/PutOpenAiRequest.ts#L94-L136 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1013-L1055 type OpenAIServiceSettings struct { // ApiKey A valid API key of your OpenAI account. // You can find your OpenAI API keys in your OpenAI account under the API keys diff --git a/typedapi/types/openaitasksettings.go b/typedapi/types/openaitasksettings.go index 698aa2cc05..9f5223f55c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,11 +31,11 @@ import ( // OpenAITaskSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put_openai/PutOpenAiRequest.ts#L138-L144 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1057-L1063 type OpenAITaskSettings struct { // User For a `completion` or `text_embedding` task, specify the user issuing the // request. - // This informaiton can be used for abuse detection. + // This information can be used for abuse detection. User *string `json:"user,omitempty"` } diff --git a/typedapi/types/operatingsystem.go b/typedapi/types/operatingsystem.go index c341584d91..2f37ba4d34 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // OperatingSystem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L1016-L1022 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L1016-L1022 type OperatingSystem struct { Cgroup *Cgroup `json:"cgroup,omitempty"` Cpu *Cpu `json:"cpu,omitempty"` diff --git a/typedapi/types/operatingsystemmemoryinfo.go b/typedapi/types/operatingsystemmemoryinfo.go index 9c647c73ef..e099b5ae74 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // OperatingSystemMemoryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/stats/types.ts#L541-L568 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/stats/types.ts#L541-L568 type OperatingSystemMemoryInfo struct { // AdjustedTotalInBytes Total amount, in bytes, of memory across all selected nodes, but using the // value specified using the `es.total_memory_bytes` system property instead of diff --git a/typedapi/types/operationcontainer.go b/typedapi/types/operationcontainer.go index 2ce2e2bdb8..cc3423ad40 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // OperationContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/bulk/types.ts#L158-L180 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/bulk/types.ts#L158-L180 type OperationContainer struct { AdditionalOperationContainerProperty map[string]json.RawMessage `json:"-"` // Create Index the specified document if it does not already exist. diff --git a/typedapi/types/outlierdetectionparameters.go b/typedapi/types/outlierdetectionparameters.go index 4fa9380a06..3652d04ab4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // OutlierDetectionParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L528-L562 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L528-L562 type OutlierDetectionParameters struct { // ComputeFeatureInfluence Specifies whether the feature influence calculation is enabled. ComputeFeatureInfluence *bool `json:"compute_feature_influence,omitempty"` diff --git a/typedapi/types/overallbucket.go b/typedapi/types/overallbucket.go index 11d9c7fd16..53f7a959ad 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // OverallBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Bucket.ts#L129-L144 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Bucket.ts#L129-L144 type OverallBucket struct { // BucketSpan The length of the bucket in seconds. Matches the job with the longest // bucket_span value. diff --git a/typedapi/types/overallbucketjob.go b/typedapi/types/overallbucketjob.go index 2daf992b2f..372b069c22 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // OverallBucketJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Bucket.ts#L145-L148 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Bucket.ts#L145-L148 type OverallBucketJob struct { JobId string `json:"job_id"` MaxAnomalyScore Float64 `json:"max_anomaly_score"` diff --git a/typedapi/types/overlapping.go b/typedapi/types/overlapping.go index e857a1f278..dca5d48057 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Overlapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L39-L42 type Overlapping struct { IndexPatterns []string `json:"index_patterns"` Name string `json:"name"` diff --git a/typedapi/types/page.go b/typedapi/types/page.go index 6674aea2ba..1aac6f5945 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Page type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Page.ts#L22-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Page.ts#L22-L33 type Page struct { // From Skips the specified number of items. From *int `json:"from,omitempty"` diff --git a/typedapi/types/pagerdutyaction.go b/typedapi/types/pagerdutyaction.go index 65befa88e0..6bda76b721 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutyeventtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/pagerdutyeventtype" ) // PagerDutyAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L54-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L54-L54 type PagerDutyAction struct { Account *string `json:"account,omitempty"` AttachPayload bool `json:"attach_payload"` diff --git a/typedapi/types/pagerdutycontext.go b/typedapi/types/pagerdutycontext.go index 302642d5c5..99b70d151f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutycontexttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/pagerdutycontexttype" ) // PagerDutyContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L61-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L61-L65 type PagerDutyContext struct { Href *string `json:"href,omitempty"` Src *string `json:"src,omitempty"` diff --git a/typedapi/types/pagerdutyevent.go b/typedapi/types/pagerdutyevent.go index 4e11890c20..e3d354ef63 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/pagerdutyeventtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/pagerdutyeventtype" ) // PagerDutyEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L40-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L40-L52 type PagerDutyEvent struct { Account *string `json:"account,omitempty"` AttachPayload bool `json:"attach_payload"` diff --git a/typedapi/types/pagerdutyeventproxy.go b/typedapi/types/pagerdutyeventproxy.go index a9ffe3ad48..b80ddb455f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PagerDutyEventProxy type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L56-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L56-L59 type PagerDutyEventProxy struct { Host *string `json:"host,omitempty"` Port *int `json:"port,omitempty"` diff --git a/typedapi/types/pagerdutyresult.go b/typedapi/types/pagerdutyresult.go index 0457d76c17..2617b6bf34 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PagerDutyResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L78-L83 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L78-L83 type PagerDutyResult struct { Event PagerDutyEvent `json:"event"` Reason *string `json:"reason,omitempty"` diff --git a/typedapi/types/painlesscontextsetup.go b/typedapi/types/painlesscontextsetup.go index 401c1de24e..47278ec16f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // PainlessContextSetup type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/scripts_painless_execute/types.ts#L27-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/scripts_painless_execute/types.ts#L27-L46 type PainlessContextSetup struct { // Document Document that's temporarily indexed in-memory and accessible from the script. Document json.RawMessage `json:"document,omitempty"` diff --git a/typedapi/types/parentaggregate.go b/typedapi/types/parentaggregate.go index 58b4d3954e..fab8628bf7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // ParentAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L894-L898 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L894-L898 type ParentAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/parentaggregation.go b/typedapi/types/parentaggregation.go index a79c3cb196..a74a857dc4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ParentAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L662-L667 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L662-L667 type ParentAggregation struct { // Type The child type that should be selected. Type *string `json:"type,omitempty"` diff --git a/typedapi/types/parentidquery.go b/typedapi/types/parentidquery.go index 5b97407f92..24b42bf6fb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ParentIdQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/joining.ts#L141-L158 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/joining.ts#L141-L158 type ParentIdQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/parenttaskinfo.go b/typedapi/types/parenttaskinfo.go index 550eef1912..864d80bf4f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ParentTaskInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/tasks/_types/TaskListResponseBase.ts#L45-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/tasks/_types/TaskListResponseBase.ts#L45-L47 type ParentTaskInfo struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` diff --git a/typedapi/types/passthroughinferenceoptions.go b/typedapi/types/passthroughinferenceoptions.go index bcfb47ff1c..35a1fc44b8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PassThroughInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L208-L215 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L239-L246 type PassThroughInferenceOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/passthroughinferenceupdateoptions.go b/typedapi/types/passthroughinferenceupdateoptions.go index dc4987eea0..5f4fe060ee 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PassThroughInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L373-L378 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L404-L409 type PassThroughInferenceUpdateOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/passthroughobjectproperty.go b/typedapi/types/passthroughobjectproperty.go index 72645fe73b..4ee8ada5f7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // PassthroughObjectProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/complex.ts#L52-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/complex.ts#L52-L57 type PassthroughObjectProperty struct { CopyTo []string `json:"copy_to,omitempty"` Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` diff --git a/typedapi/types/pathhierarchytokenizer.go b/typedapi/types/pathhierarchytokenizer.go index f00d676024..a3ec045d17 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PathHierarchyTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L95-L102 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L95-L102 type PathHierarchyTokenizer struct { BufferSize Stringifiedinteger `json:"buffer_size,omitempty"` Delimiter *string `json:"delimiter,omitempty"` diff --git a/typedapi/types/patternanalyzer.go b/typedapi/types/patternanalyzer.go index 02ceb6cdc4..c8cc04746f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PatternAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L332-L365 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L332-L365 type PatternAnalyzer struct { // Flags Java regular expression flags. Flags should be pipe-separated, eg // "CASE_INSENSITIVE|COMMENTS". diff --git a/typedapi/types/patterncapturetokenfilter.go b/typedapi/types/patterncapturetokenfilter.go index 4ed573172b..96c09335b4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // PatternCaptureTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L279-L283 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L279-L283 type PatternCaptureTokenFilter struct { Patterns []string `json:"patterns"` PreserveOriginal Stringifiedboolean `json:"preserve_original,omitempty"` diff --git a/typedapi/types/patternreplacecharfilter.go b/typedapi/types/patternreplacecharfilter.go index 7cfbe8cf95..944f55e3cc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PatternReplaceCharFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/char_filters.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/char_filters.ts#L57-L62 type PatternReplaceCharFilter struct { Flags *string `json:"flags,omitempty"` Pattern string `json:"pattern"` diff --git a/typedapi/types/patternreplacetokenfilter.go b/typedapi/types/patternreplacetokenfilter.go index 3e9d45d1d7..0979443cb6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PatternReplaceTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L285-L291 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L285-L291 type PatternReplaceTokenFilter struct { All *bool `json:"all,omitempty"` Flags *string `json:"flags,omitempty"` diff --git a/typedapi/types/patterntokenizer.go b/typedapi/types/patterntokenizer.go index 57f90c89a1..635f3ce885 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PatternTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L104-L109 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L104-L109 type PatternTokenizer struct { Flags *string `json:"flags,omitempty"` Group *int `json:"group,omitempty"` diff --git a/typedapi/types/pendingtask.go b/typedapi/types/pendingtask.go index 85337130be..e385803e40 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PendingTask type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/pending_tasks/types.ts#L23-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/pending_tasks/types.ts#L23-L47 type PendingTask struct { // Executing Indicates whether the pending tasks are currently executing or not. Executing bool `json:"executing"` diff --git a/typedapi/types/pendingtasksrecord.go b/typedapi/types/pendingtasksrecord.go index c63e9a8c18..8dab7c81f2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PendingTasksRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/pending_tasks/types.ts#L20-L41 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/pending_tasks/types.ts#L20-L41 type PendingTasksRecord struct { // InsertOrder The task insertion order. InsertOrder *string `json:"insertOrder,omitempty"` diff --git a/typedapi/types/percentage.go b/typedapi/types/percentage.go index 9abddd9a8c..ac0fab0224 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // float32 // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Numeric.ts#L28-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 141d5c907b..2f8a2e6fdf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // PercentageScoreHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L811-L811 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L811-L811 type PercentageScoreHeuristic struct { } diff --git a/typedapi/types/percentileranksaggregation.go b/typedapi/types/percentileranksaggregation.go index 7891529d6a..6a9cb50ffb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PercentileRanksAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L180-L202 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L180-L202 type PercentileRanksAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/percentiles.go b/typedapi/types/percentiles.go index 4610cf180d..1c4470100a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // KeyedPercentiles // []ArrayPercentilesItem // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L152-L153 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L152-L153 type Percentiles any diff --git a/typedapi/types/percentilesaggregation.go b/typedapi/types/percentilesaggregation.go index 5bd24a7049..b14ed91e60 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PercentilesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L204-L223 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L204-L223 type PercentilesAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/percentilesbucketaggregate.go b/typedapi/types/percentilesbucketaggregate.go index 0b19a37ed0..5a695c2739 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // PercentilesBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L180-L181 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L180-L181 type PercentilesBucketAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` diff --git a/typedapi/types/percentilesbucketaggregation.go b/typedapi/types/percentilesbucketaggregation.go index dddd4311e2..dd0253f2e4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // PercentilesBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L389-L397 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L389-L397 type PercentilesBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/percolatequery.go b/typedapi/types/percolatequery.go index d2d22b1089..ce04aeb9fd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PercolateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L205-L245 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L205-L245 type PercolateQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/percolatorproperty.go b/typedapi/types/percolatorproperty.go index 8861ac7481..2a94042ab6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // PercolatorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L192-L194 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L201-L203 type PercolatorProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/perpartitioncategorization.go b/typedapi/types/perpartitioncategorization.go index c5aade0096..a3e1fe4b43 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PerPartitionCategorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Analysis.ts#L150-L159 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Analysis.ts#L150-L159 type PerPartitionCategorization struct { // Enabled To enable this setting, you must also set the `partition_field_name` property // to the same value in every detector that uses the keyword `mlcategory`. diff --git a/typedapi/types/persiananalyzer.go b/typedapi/types/persiananalyzer.go index 49782f3d3b..d3ad20ecea 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PersianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L255-L259 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L255-L259 type PersianAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/persistenttaskstatus.go b/typedapi/types/persistenttaskstatus.go index e8eca7643b..91f07a2d42 100644 --- a/typedapi/types/persistenttaskstatus.go +++ b/typedapi/types/persistenttaskstatus.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdownstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shutdownstatus" ) // PersistentTaskStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L56-L58 type PersistentTaskStatus struct { Status shutdownstatus.ShutdownStatus `json:"status"` } diff --git a/typedapi/types/phase.go b/typedapi/types/phase.go index 35ef710754..21452cbea9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Phase type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L26-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L26-L29 type Phase struct { Actions *IlmActions `json:"actions,omitempty"` MinAge Duration `json:"min_age,omitempty"` diff --git a/typedapi/types/phases.go b/typedapi/types/phases.go index fb4ba5b298..e19120ac60 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Phases type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L31-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L31-L37 type Phases struct { Cold *Phase `json:"cold,omitempty"` Delete *Phase `json:"delete,omitempty"` diff --git a/typedapi/types/phonetictokenfilter.go b/typedapi/types/phonetictokenfilter.go index e702ea330c..a879127679 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticencoder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticlanguage" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticnametype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/phoneticruletype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/phoneticencoder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/phoneticlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/phoneticnametype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/phoneticruletype" ) // PhoneticTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/phonetic-plugin.ts#L64-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/phonetic-plugin.ts#L64-L72 type PhoneticTokenFilter struct { Encoder phoneticencoder.PhoneticEncoder `json:"encoder"` Languageset []phoneticlanguage.PhoneticLanguage `json:"languageset,omitempty"` diff --git a/typedapi/types/phrasesuggest.go b/typedapi/types/phrasesuggest.go index 6de9371544..aa8e754b4f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L57-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/suggester.ts#L58-L63 type PhraseSuggest struct { Length int `json:"length"` Offset int `json:"offset"` diff --git a/typedapi/types/phrasesuggestcollate.go b/typedapi/types/phrasesuggestcollate.go index f02e175952..53a9610e9e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestCollate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L333-L346 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` diff --git a/typedapi/types/phrasesuggestcollatequery.go b/typedapi/types/phrasesuggestcollatequery.go index 42d7fa8684..44524ed675 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,17 +26,16 @@ import ( "errors" "fmt" "io" - "strconv" ) // PhraseSuggestCollateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L348-L357 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/suggester.ts#L349-L358 type PhraseSuggestCollateQuery struct { // Id The search template ID. Id *string `json:"id,omitempty"` // Source The query source. - Source *string `json:"source,omitempty"` + Source ScriptSource `json:"source,omitempty"` } func (s *PhraseSuggestCollateQuery) UnmarshalJSON(data []byte) error { @@ -60,16 +59,40 @@ func (s *PhraseSuggestCollateQuery) UnmarshalJSON(data []byte) error { } case "source": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) + keyDec := json.NewDecoder(bytes.NewReader(message)) + source_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source", err) + } + + switch t { + + case "aggregations", "collapse", "docvalue_fields", "explain", "ext", "fields", "from", "highlight", "indices_boost", "knn", "min_score", "pit", "post_filter", "profile", "query", "rank", "rescore", "retriever", "runtime_mappings", "script_fields", "search_after", "seq_no_primary_term", "size", "slice", "sort", "_source", "stats", "stored_fields", "suggest", "terminate_after", "timeout", "track_scores", "track_total_hits", "version": + o := NewSearchRequestBody() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + s.Source = o + break source_field + + } + } + if s.Source == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } } - s.Source = &o } } diff --git a/typedapi/types/phrasesuggester.go b/typedapi/types/phrasesuggester.go index 47120e25fa..6e9a1da7cc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L359-L417 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/phrasesuggesthighlight.go b/typedapi/types/phrasesuggesthighlight.go index b336ae594c..c75584167b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestHighlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L419-L428 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/phrasesuggestoption.go b/typedapi/types/phrasesuggestoption.go index 1fd76d4465..6337496761 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PhraseSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L86-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/suggester.ts#L87-L92 type PhraseSuggestOption struct { CollateMatch *bool `json:"collate_match,omitempty"` Highlighted *string `json:"highlighted,omitempty"` diff --git a/typedapi/types/pinneddoc.go b/typedapi/types/pinneddoc.go index 49300381c8..c77e05db2a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // PinnedDoc type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L269-L278 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L269-L278 type PinnedDoc struct { // Id_ The unique document ID. Id_ string `json:"_id"` diff --git a/typedapi/types/pinnedquery.go b/typedapi/types/pinnedquery.go index 4d27e0278c..4767699e94 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PinnedQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L247-L267 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L247-L267 type PinnedQuery struct { AdditionalPinnedQueryProperty map[string]json.RawMessage `json:"-"` // Boost Floating point number used to decrease or increase the relevance scores of diff --git a/typedapi/types/pipelineconfig.go b/typedapi/types/pipelineconfig.go index 34cabef3cc..66437dd05e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PipelineConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Pipeline.ts#L67-L81 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Pipeline.ts#L67-L81 type PipelineConfig struct { // Description Description of the ingest pipeline. Description *string `json:"description,omitempty"` diff --git a/typedapi/types/pipelinemetadata.go b/typedapi/types/pipelinemetadata.go index c520219efa..66abe127a8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PipelineMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/logstash/_types/Pipeline.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/logstash/_types/Pipeline.ts#L23-L26 type PipelineMetadata struct { Type string `json:"type"` Version string `json:"version"` diff --git a/typedapi/types/pipelineprocessor.go b/typedapi/types/pipelineprocessor.go index e38a7f6384..245aecefb0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PipelineProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1267-L1278 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/pipelinesettings.go b/typedapi/types/pipelinesettings.go index d9b1c42699..e7f965a0b6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PipelineSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/logstash/_types/Pipeline.ts#L28-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/logstash/_types/Pipeline.ts#L28-L59 type PipelineSettings struct { // PipelineBatchDelay When creating pipeline event batches, how long in milliseconds to wait for // each event before dispatching an undersized batch to pipeline workers. diff --git a/typedapi/types/pipelinesimulation.go b/typedapi/types/pipelinesimulation.go index cb45b14549..b00e4e9918 100644 --- a/typedapi/types/pipelinesimulation.go +++ b/typedapi/types/pipelinesimulation.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionstatusoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/actionstatusoptions" ) // PipelineSimulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Simulation.ts#L52-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Simulation.ts#L52-L60 type PipelineSimulation struct { Description *string `json:"description,omitempty"` Doc *DocumentSimulation `json:"doc,omitempty"` diff --git a/typedapi/types/pipeseparatedflagssimplequerystringflag.go b/typedapi/types/pipeseparatedflagssimplequerystringflag.go index 5543c027e4..8371209b26 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // simplequerystringflag.SimpleQueryStringFlag // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_spec_utils/PipeSeparatedFlags.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8056e305eb..569e3ed3be 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Pivot type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/_types/Transform.ts#L54-L68 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/_types/Transform.ts#L54-L68 type Pivot struct { // Aggregations Defines how to aggregate the grouped data. The following aggregations are // currently supported: average, bucket diff --git a/typedapi/types/pivotgroupbycontainer.go b/typedapi/types/pivotgroupbycontainer.go index 38a8f09391..b6f4502f11 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // PivotGroupByContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/_types/Transform.ts#L70-L78 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/_types/Transform.ts#L70-L78 type PivotGroupByContainer struct { AdditionalPivotGroupByContainerProperty map[string]json.RawMessage `json:"-"` DateHistogram *DateHistogramAggregation `json:"date_histogram,omitempty"` diff --git a/typedapi/types/pluginsrecord.go b/typedapi/types/pluginsrecord.go index dbf10e1fd6..710f1709b7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PluginsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/plugins/types.ts#L22-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/plugins/types.ts#L22-L52 type PluginsRecord struct { // Component The component name. Component *string `json:"component,omitempty"` diff --git a/typedapi/types/pluginsstatus.go b/typedapi/types/pluginsstatus.go index c955c3c3e5..fc08e2285f 100644 --- a/typedapi/types/pluginsstatus.go +++ b/typedapi/types/pluginsstatus.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdownstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shutdownstatus" ) // PluginsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L60-L62 type PluginsStatus struct { Status shutdownstatus.ShutdownStatus `json:"status"` } diff --git a/typedapi/types/pluginstats.go b/typedapi/types/pluginstats.go index 1186416e6f..6724ffc1f4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PluginStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L183-L193 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L185-L195 type PluginStats struct { Classname string `json:"classname"` Description string `json:"description"` diff --git a/typedapi/types/pointintimereference.go b/typedapi/types/pointintimereference.go index 2f5db09795..f8bc3f913e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // PointInTimeReference type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/PointInTimeReference.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/PointInTimeReference.ts#L23-L26 type PointInTimeReference struct { Id string `json:"id"` KeepAlive Duration `json:"keep_alive,omitempty"` diff --git a/typedapi/types/pointproperty.go b/typedapi/types/pointproperty.go index 6ddf3ef1b4..e3ace6af28 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // PointProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/geo.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/geo.ts#L67-L72 type PointProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/pool.go b/typedapi/types/pool.go index 6c73b5d040..8a3105e7b8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Pool type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L949-L966 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L949-L966 type Pool struct { // MaxInBytes Maximum amount of memory, in bytes, available for use by the heap. MaxInBytes *int64 `json:"max_in_bytes,omitempty"` diff --git a/typedapi/types/porterstemtokenfilter.go b/typedapi/types/porterstemtokenfilter.go index decaff6443..b1aceec86d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // PorterStemTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L293-L295 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L293-L295 type PorterStemTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/portugueseanalyzer.go b/typedapi/types/portugueseanalyzer.go index 609c82e97c..0c1e26cb9b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PortugueseAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L261-L266 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L261-L266 type PortugueseAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/postmigrationfeature.go b/typedapi/types/postmigrationfeature.go index 49ba8b35a7..699f4a84dd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PostMigrationFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29 type PostMigrationFeature struct { FeatureName string `json:"feature_name"` } diff --git a/typedapi/types/predicatetokenfilter.go b/typedapi/types/predicatetokenfilter.go index 3b8d648b48..d7927bf409 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // PredicateTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L297-L300 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L297-L300 type PredicateTokenFilter struct { Script Script `json:"script"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/predictedvalue.go b/typedapi/types/predictedvalue.go index 647983620a..1fc7f0103b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // PredictedValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L445-L445 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L476-L476 type PredictedValue []ScalarValue diff --git a/typedapi/types/prefixquery.go b/typedapi/types/prefixquery.go index 6dbb5f89eb..2c53fb5abb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PrefixQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L98-L120 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L98-L120 type PrefixQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/preprocessor.go b/typedapi/types/preprocessor.go index 57b500c7c2..b2160be9f6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // Preprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L31-L36 type Preprocessor struct { AdditionalPreprocessorProperty map[string]json.RawMessage `json:"-"` FrequencyEncoding *FrequencyEncodingPreprocessor `json:"frequency_encoding,omitempty"` diff --git a/typedapi/types/pressurememory.go b/typedapi/types/pressurememory.go index c8e2c4e8b4..6b26e97fbe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PressureMemory type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L144-L199 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L144-L199 type PressureMemory struct { // All Memory consumed by indexing requests in the coordinating, primary, or replica // stage. diff --git a/typedapi/types/privileges.go b/typedapi/types/privileges.go index 269a054e4d..d014a42235 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Privileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/has_privileges/types.ts#L49-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a1e12a1dcb..f2396c008e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PrivilegesActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/put_privileges/types.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/put_privileges/types.ts#L22-L27 type PrivilegesActions struct { Actions []string `json:"actions"` Application *string `json:"application,omitempty"` diff --git a/typedapi/types/privilegescheck.go b/typedapi/types/privilegescheck.go index df25bfcdd3..0f235dc00a 100644 --- a/typedapi/types/privilegescheck.go +++ b/typedapi/types/privilegescheck.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" ) // PrivilegesCheck type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/has_privileges_user_profile/types.ts#L30-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/has_privileges_user_profile/types.ts#L30-L37 type PrivilegesCheck struct { Application []ApplicationPrivilegesCheck `json:"application,omitempty"` // Cluster A list of the cluster privileges that you want to check. diff --git a/typedapi/types/process.go b/typedapi/types/process.go index 5f17454e7e..e8adf1f31a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Process type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L1024-L1046 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L1024-L1046 type Process struct { // Cpu Contains CPU statistics for the node. Cpu *Cpu `json:"cpu,omitempty"` diff --git a/typedapi/types/processor.go b/typedapi/types/processor.go index 5e6c882bbf..726e30d78b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Processor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L420-L437 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L420-L437 type Processor struct { // Count Number of documents transformed by the processor. Count *int64 `json:"count,omitempty"` diff --git a/typedapi/types/processorcontainer.go b/typedapi/types/processorcontainer.go index e912ea485b..03eec89c55 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // ProcessorContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L28-L302 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 diff --git a/typedapi/types/profile.go b/typedapi/types/profile.go index 1ce6776fa0..4f39d6d342 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Profile type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L101-L103 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L101-L103 type Profile struct { Shards []ShardProfile `json:"shards"` } diff --git a/typedapi/types/property.go b/typedapi/types/property.go index 638b85452d..ca13124e6a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -74,7 +74,7 @@ package types // LongRangeProperty // IcuCollationProperty // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/Property.ts#L119-L189 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/Property.ts#L119-L189 type Property any type PropertyVariant interface { diff --git a/typedapi/types/publishedclusterstates.go b/typedapi/types/publishedclusterstates.go index 37fbfee9d9..a70441e07e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // PublishedClusterStates type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L263-L276 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L263-L276 type PublishedClusterStates struct { // CompatibleDiffs Number of compatible differences between published cluster states. CompatibleDiffs *int64 `json:"compatible_diffs,omitempty"` diff --git a/typedapi/types/queries.go b/typedapi/types/queries.go index 2cd707579c..9faa3b5db1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Queries type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L417-L419 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L417-L419 type Queries struct { Cache *CacheQueries `json:"cache,omitempty"` } diff --git a/typedapi/types/query.go b/typedapi/types/query.go index 5effcc995b..00e875ee1f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Query type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/abstractions.ts#L103-L434 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/abstractions.ts#L103-L434 type Query struct { AdditionalQueryProperty map[string]json.RawMessage `json:"-"` // Bool matches documents matching boolean combinations of other queries. diff --git a/typedapi/types/querybreakdown.go b/typedapi/types/querybreakdown.go index 2b36ee2ffe..6dd03eb493 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // QueryBreakdown type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L105-L126 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L105-L126 type QueryBreakdown struct { Advance int64 `json:"advance"` AdvanceCount int64 `json:"advance_count"` diff --git a/typedapi/types/querycachestats.go b/typedapi/types/querycachestats.go index a30512a21d..4288f93630 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // QueryCacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L195-L229 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L197-L231 type QueryCacheStats struct { // CacheCount Total number of entries added to the query cache across all shards assigned // to selected nodes. diff --git a/typedapi/types/queryfeatureextractor.go b/typedapi/types/queryfeatureextractor.go new file mode 100644 index 0000000000..f2a7e8b6fe --- /dev/null +++ b/typedapi/types/queryfeatureextractor.go @@ -0,0 +1,109 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// QueryFeatureExtractor type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L98-L105 +type QueryFeatureExtractor struct { + DefaultScore *float32 `json:"default_score,omitempty"` + FeatureName string `json:"feature_name"` + Query Query `json:"query"` +} + +func (s *QueryFeatureExtractor) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "default_score": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "DefaultScore", err) + } + f := float32(value) + s.DefaultScore = &f + case float64: + f := float32(v) + s.DefaultScore = &f + } + + case "feature_name": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "FeatureName", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.FeatureName = o + + case "query": + if err := dec.Decode(&s.Query); err != nil { + return fmt.Errorf("%s | %w", "Query", err) + } + + } + } + return nil +} + +// NewQueryFeatureExtractor returns a QueryFeatureExtractor. +func NewQueryFeatureExtractor() *QueryFeatureExtractor { + r := &QueryFeatureExtractor{} + + return r +} + +// true + +type QueryFeatureExtractorVariant interface { + QueryFeatureExtractorCaster() *QueryFeatureExtractor +} + +func (s *QueryFeatureExtractor) QueryFeatureExtractorCaster() *QueryFeatureExtractor { + return s +} diff --git a/typedapi/types/queryprofile.go b/typedapi/types/queryprofile.go index 0944f5bcd7..2ec4585692 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // QueryProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L128-L134 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L128-L134 type QueryProfile struct { Breakdown QueryBreakdown `json:"breakdown"` Children []QueryProfile `json:"children,omitempty"` diff --git a/typedapi/types/queryrole.go b/typedapi/types/queryrole.go index 09998731c6..d5c99ad4c7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" ) // QueryRole type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_role/types.ts#L103-L109 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/query_role/types.ts#L103-L109 type QueryRole struct { // Applications A list of application privilege entries Applications []ApplicationPrivileges `json:"applications,omitempty"` diff --git a/typedapi/types/queryrule.go b/typedapi/types/queryrule.go index 9ca4d50275..a205252fb3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryruletype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/queryruletype" ) // QueryRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/_types/QueryRuleset.ts#L36-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/query_rules/_types/QueryRuleset.ts#L36-L58 type QueryRule struct { // Actions The actions to take when the rule is matched. // The format of this action depends on the rule type. diff --git a/typedapi/types/queryruleactions.go b/typedapi/types/queryruleactions.go index 23715a3c3d..f606f7565f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // QueryRuleActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/_types/QueryRuleset.ts#L110-L126 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/query_rules/_types/QueryRuleset.ts#L110-L126 type QueryRuleActions struct { // Docs The documents to apply the rule to. // Only one of `ids` or `docs` may be specified and at least one must be diff --git a/typedapi/types/queryrulecriteria.go b/typedapi/types/queryrulecriteria.go index ac265d1b70..ce46db1894 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/queryrulecriteriatype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/queryrulecriteriatype" ) // QueryRuleCriteria type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/_types/QueryRuleset.ts#L65-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/query_rules/_types/QueryRuleset.ts#L65-L93 type QueryRuleCriteria struct { // Metadata The metadata field to match against. // This metadata will be used to match against `match_criteria` sent in the diff --git a/typedapi/types/queryrulesetlistitem.go b/typedapi/types/queryrulesetlistitem.go index aa8decded6..9bcfa5c0b6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // QueryRulesetListItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/list_rulesets/types.ts#L23-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/query_rules/list_rulesets/types.ts#L23-L44 type QueryRulesetListItem struct { // RuleCriteriaTypesCounts A map of criteria type (for example, `exact`) to the number of rules of that // type. diff --git a/typedapi/types/queryrulesetmatchedrule.go b/typedapi/types/queryrulesetmatchedrule.go index 6ad4bf78ba..aed6448a11 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // QueryRulesetMatchedRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/query_rules/test/QueryRulesetTestResponse.ts#L30-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/query_rules/test/QueryRulesetTestResponse.ts#L30-L39 type QueryRulesetMatchedRule struct { // RuleId Rule unique identifier within that ruleset RuleId string `json:"rule_id"` diff --git a/typedapi/types/querystringquery.go b/typedapi/types/querystringquery.go index ad442b3c06..7048042384 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/textquerytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/textquerytype" ) // QueryStringQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L598-L721 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L598-L721 type QueryStringQuery struct { // AllowLeadingWildcard If `true`, the wildcard characters `*` and `?` are allowed as the first // character of the query string. diff --git a/typedapi/types/queryuser.go b/typedapi/types/queryuser.go index 08e0164dc1..1b3922133d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // QueryUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_user/types.ts#L103-L105 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/query_user/types.ts#L103-L105 type QueryUser struct { Email *string `json:"email,omitempty"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/queryvectorbuilder.go b/typedapi/types/queryvectorbuilder.go index b5c67121ec..cfcb39a130 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // QueryVectorBuilder type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Knn.ts#L89-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Knn.ts#L89-L92 type QueryVectorBuilder struct { AdditionalQueryVectorBuilderProperty map[string]json.RawMessage `json:"-"` TextEmbedding *TextEmbedding `json:"text_embedding,omitempty"` diff --git a/typedapi/types/querywatch.go b/typedapi/types/querywatch.go index 7904a9bd08..03b0b19182 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // QueryWatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Watch.ts#L58-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Watch.ts#L58-L64 type QueryWatch struct { Id_ string `json:"_id"` PrimaryTerm_ *int `json:"_primary_term,omitempty"` diff --git a/typedapi/types/questionansweringinferenceoptions.go b/typedapi/types/questionansweringinferenceoptions.go index 9d44e0ec71..63612b3e33 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // QuestionAnsweringInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L270-L280 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L301-L311 type QuestionAnsweringInferenceOptions struct { // MaxAnswerLength The maximum answer length to consider MaxAnswerLength *int `json:"max_answer_length,omitempty"` diff --git a/typedapi/types/questionansweringinferenceupdateoptions.go b/typedapi/types/questionansweringinferenceupdateoptions.go index b0f84f20b4..ebc7164a2d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // QuestionAnsweringInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L408-L419 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L439-L450 type QuestionAnsweringInferenceUpdateOptions struct { // MaxAnswerLength The maximum answer length to consider for extraction MaxAnswerLength *int `json:"max_answer_length,omitempty"` diff --git a/typedapi/types/randomsampleraggregation.go b/typedapi/types/randomsampleraggregation.go index 08f7ee1b6e..d2c216ab5e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RandomSamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L749-L769 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L749-L769 type RandomSamplerAggregation struct { // Probability The probability that a document will be included in the aggregated data. // Must be greater than 0, less than 0.5, or exactly 1. diff --git a/typedapi/types/randomscorefunction.go b/typedapi/types/randomscorefunction.go index 2a2be6d6c8..3ad448ec8b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RandomScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L144-L147 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L144-L147 type RandomScoreFunction struct { Field *string `json:"field,omitempty"` Seed string `json:"seed,omitempty"` diff --git a/typedapi/types/rangeaggregate.go b/typedapi/types/rangeaggregate.go index 0140f6c3d9..4a807a5167 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RangeAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L594-L598 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L594-L598 type RangeAggregate struct { Buckets BucketsRangeBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/rangeaggregation.go b/typedapi/types/rangeaggregation.go index ce7a615cf9..7a20758ef1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RangeAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L669-L689 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L669-L689 type RangeAggregation struct { // Field The date field whose values are use to build ranges. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/rangebucket.go b/typedapi/types/rangebucket.go index 8072fc9596..77e41d410b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // RangeBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L600-L607 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L600-L607 type RangeBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/rangequery.go b/typedapi/types/rangequery.go index 4b9f6406a0..3c5dce8385 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ package types // NumberRangeQuery // TermRangeQuery // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L176-L186 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L176-L186 type RangeQuery any type RangeQueryVariant interface { diff --git a/typedapi/types/rankcontainer.go b/typedapi/types/rankcontainer.go index 670009f8ec..b36d02d1ff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // RankContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Rank.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Rank.ts#L22-L28 type RankContainer struct { AdditionalRankContainerProperty map[string]json.RawMessage `json:"-"` // Rrf The reciprocal rank fusion parameters diff --git a/typedapi/types/rankeddocument.go b/typedapi/types/rankeddocument.go index b3a0311de7..fe606dfbd5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankedDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/_types/Results.ts#L91-L101 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/Results.ts#L91-L101 type RankedDocument struct { Index int `json:"index"` RelevanceScore float32 `json:"relevance_score"` diff --git a/typedapi/types/rankevalhit.go b/typedapi/types/rankevalhit.go index 7067191d79..fdd4f3645e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankEvalHit type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L144-L148 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L144-L148 type RankEvalHit struct { Id_ string `json:"_id"` Index_ string `json:"_index"` diff --git a/typedapi/types/rankevalhititem.go b/typedapi/types/rankevalhititem.go index 4e65a63243..e085714ddb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RankEvalHitItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L139-L142 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L139-L142 type RankEvalHitItem struct { Hit RankEvalHit `json:"hit"` Rating *Float64 `json:"rating,omitempty"` diff --git a/typedapi/types/rankevalmetric.go b/typedapi/types/rankevalmetric.go index 714e9e04f0..5a128c10d1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // RankEvalMetric type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L90-L96 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L90-L96 type RankEvalMetric struct { Dcg *RankEvalMetricDiscountedCumulativeGain `json:"dcg,omitempty"` ExpectedReciprocalRank *RankEvalMetricExpectedReciprocalRank `json:"expected_reciprocal_rank,omitempty"` diff --git a/typedapi/types/rankevalmetricdetail.go b/typedapi/types/rankevalmetricdetail.go index 088d4ee648..d4ff52579f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L128-L137 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L128-L137 type RankEvalMetricDetail struct { // Hits The hits section shows a grouping of the search results with their supplied // ratings diff --git a/typedapi/types/rankevalmetricdiscountedcumulativegain.go b/typedapi/types/rankevalmetricdiscountedcumulativegain.go index 15485e250d..5a7ecb7b77 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricDiscountedCumulativeGain type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L66-L77 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L66-L77 type RankEvalMetricDiscountedCumulativeGain struct { // K Sets the maximum number of documents retrieved per query. This value will act // in place of the usual size parameter in the query. diff --git a/typedapi/types/rankevalmetricexpectedreciprocalrank.go b/typedapi/types/rankevalmetricexpectedreciprocalrank.go index 021587427e..2525d0dd89 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricExpectedReciprocalRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L79-L88 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L79-L88 type RankEvalMetricExpectedReciprocalRank struct { // K Sets the maximum number of documents retrieved per query. This value will act // in place of the usual size parameter in the query. diff --git a/typedapi/types/rankevalmetricmeanreciprocalrank.go b/typedapi/types/rankevalmetricmeanreciprocalrank.go index def8fc9866..9cfa422f48 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricMeanReciprocalRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L60-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L60-L64 type RankEvalMetricMeanReciprocalRank struct { // K Sets the maximum number of documents retrieved per query. This value will act // in place of the usual size parameter in the query. diff --git a/typedapi/types/rankevalmetricprecision.go b/typedapi/types/rankevalmetricprecision.go index 6cc152981d..9405c05d2b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricPrecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L42-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L42-L52 type RankEvalMetricPrecision struct { // IgnoreUnlabeled Controls how unlabeled documents in the search results are counted. If set to // true, unlabeled documents are ignored and neither count as relevant or diff --git a/typedapi/types/rankevalmetricrecall.go b/typedapi/types/rankevalmetricrecall.go index 53bfd0302f..6221f1cb0f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankEvalMetricRecall type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L54-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L54-L58 type RankEvalMetricRecall struct { // K Sets the maximum number of documents retrieved per query. This value will act // in place of the usual size parameter in the query. diff --git a/typedapi/types/rankevalquery.go b/typedapi/types/rankevalquery.go index c55cdcfe3f..5da2e6dead 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankEvalQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L111-L117 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L111-L117 type RankEvalQuery struct { Query Query `json:"query"` Size *int `json:"size,omitempty"` diff --git a/typedapi/types/rankevalrequestitem.go b/typedapi/types/rankevalrequestitem.go index a6463e5555..cee74384d9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RankEvalRequestItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L98-L109 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L98-L109 type RankEvalRequestItem struct { // Id The search request’s ID, used to group result details later. Id string `json:"id"` diff --git a/typedapi/types/rankfeaturefunctionlinear.go b/typedapi/types/rankfeaturefunctionlinear.go index ba6cdfc51d..7ab806df27 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // RankFeatureFunctionLinear type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L282-L282 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L282-L282 type RankFeatureFunctionLinear struct { } diff --git a/typedapi/types/rankfeaturefunctionlogarithm.go b/typedapi/types/rankfeaturefunctionlogarithm.go index 737c7b7a63..3dc4433450 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionLogarithm type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L284-L289 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L284-L289 type RankFeatureFunctionLogarithm struct { // ScalingFactor Configurable scaling factor. ScalingFactor float32 `json:"scaling_factor"` diff --git a/typedapi/types/rankfeaturefunctionsaturation.go b/typedapi/types/rankfeaturefunctionsaturation.go index 5238eaedf8..d1e9e193a9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionSaturation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L291-L296 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L291-L296 type RankFeatureFunctionSaturation struct { // Pivot Configurable pivot value so that the result will be less than 0.5. Pivot *float32 `json:"pivot,omitempty"` diff --git a/typedapi/types/rankfeaturefunctionsigmoid.go b/typedapi/types/rankfeaturefunctionsigmoid.go index c52a2a964c..1e9141927f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankFeatureFunctionSigmoid type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L298-L307 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L298-L307 type RankFeatureFunctionSigmoid struct { // Exponent Configurable Exponent. Exponent float32 `json:"exponent"` diff --git a/typedapi/types/rankfeatureproperty.go b/typedapi/types/rankfeatureproperty.go index 29b95f96cd..36f3b54fd4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // RankFeatureProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L196-L199 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L205-L208 type RankFeatureProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/rankfeaturequery.go b/typedapi/types/rankfeaturequery.go index 45c06bc47f..eb12df318e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RankFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L309-L335 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L309-L335 type RankFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/rankfeaturesproperty.go b/typedapi/types/rankfeaturesproperty.go index 0662f2029f..2390b5b107 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // RankFeaturesProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L201-L204 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L210-L213 type RankFeaturesProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/raretermsaggregation.go b/typedapi/types/raretermsaggregation.go index c1f94be359..17214bb14e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RareTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L706-L739 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L706-L739 type RareTermsAggregation struct { // Exclude Terms that should be excluded from the aggregation. Exclude []string `json:"exclude,omitempty"` diff --git a/typedapi/types/rateaggregate.go b/typedapi/types/rateaggregate.go index 69599e4765..b21e915e9d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RateAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L847-L854 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L847-L854 type RateAggregate struct { Meta Metadata `json:"meta,omitempty"` Value Float64 `json:"value"` diff --git a/typedapi/types/rateaggregation.go b/typedapi/types/rateaggregation.go index 8471c28382..a4006fec6c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/calendarinterval" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ratemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/calendarinterval" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ratemode" ) // RateAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L239-L250 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L239-L250 type RateAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/ratelimitsetting.go b/typedapi/types/ratelimitsetting.go index 2455f4bfc4..4c23fde808 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RateLimitSetting type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/_types/Services.ts#L95-L100 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/Services.ts#L95-L100 type RateLimitSetting struct { // RequestsPerMinute The number of requests allowed per minute. RequestsPerMinute *int `json:"requests_per_minute,omitempty"` diff --git a/typedapi/types/readblobdetails.go b/typedapi/types/readblobdetails.go index 445a426abc..019b799376 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ReadBlobDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L204-L248 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L204-L248 type ReadBlobDetails struct { // BeforeWriteComplete Indicates whether the read operation may have started before the write // operation was complete. diff --git a/typedapi/types/readexception.go b/typedapi/types/readexception.go index 8260185e3e..468b2987cd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ReadException type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ccr/_types/FollowIndexStats.ts#L111-L118 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ccr/_types/FollowIndexStats.ts#L111-L118 type ReadException struct { // Exception The exception that caused the read to fail. Exception ErrorCause `json:"exception"` diff --git a/typedapi/types/readonlyurlrepository.go b/typedapi/types/readonlyurlrepository.go index 20031afc85..e192682da8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ReadOnlyUrlRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L92-L102 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotRepository.ts#L92-L102 type ReadOnlyUrlRepository struct { // Settings The repository settings. Settings ReadOnlyUrlRepositorySettings `json:"settings"` diff --git a/typedapi/types/readonlyurlrepositorysettings.go b/typedapi/types/readonlyurlrepositorysettings.go index 3bcc4c2f84..62b983cf36 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ReadOnlyUrlRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L377-L412 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/readsummaryinfo.go b/typedapi/types/readsummaryinfo.go index 78b458a041..f7f70c574d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ReadSummaryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L115-L160 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L115-L160 type ReadSummaryInfo struct { // Count The number of read operations performed in the test. Count int `json:"count"` diff --git a/typedapi/types/realmcache.go b/typedapi/types/realmcache.go index c6f002788c..3bd48b26d9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RealmCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L276-L278 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L276-L278 type RealmCache struct { Size int64 `json:"size"` } diff --git a/typedapi/types/realminfo.go b/typedapi/types/realminfo.go index 9dde04d268..7950f62786 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RealmInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/RealmInfo.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/RealmInfo.ts#L22-L25 type RealmInfo struct { Name string `json:"name"` Type string `json:"type"` diff --git a/typedapi/types/recording.go b/typedapi/types/recording.go index dfb2dfbdf7..0fc5b0a9c4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Recording type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L225-L230 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L225-L230 type Recording struct { CumulativeExecutionCount *int64 `json:"cumulative_execution_count,omitempty"` CumulativeExecutionTime Duration `json:"cumulative_execution_time,omitempty"` diff --git a/typedapi/types/recoverybytes.go b/typedapi/types/recoverybytes.go index 396aed47b4..e9bf36b79f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RecoveryBytes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/recovery/types.ts#L38-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/recovery/types.ts#L38-L48 type RecoveryBytes struct { Percent Percentage `json:"percent"` Recovered ByteSize `json:"recovered,omitempty"` diff --git a/typedapi/types/recoveryfiles.go b/typedapi/types/recoveryfiles.go index 3d3e85414a..ce0a700f11 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RecoveryFiles type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/recovery/types.ts#L56-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/recovery/types.ts#L56-L62 type RecoveryFiles struct { Details []FileDetails `json:"details,omitempty"` Percent Percentage `json:"percent"` diff --git a/typedapi/types/recoveryindexstatus.go b/typedapi/types/recoveryindexstatus.go index d8b6ea8a70..8ad7362b7e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RecoveryIndexStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/recovery/types.ts#L64-L74 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/recovery/types.ts#L64-L74 type RecoveryIndexStatus struct { Bytes *RecoveryBytes `json:"bytes,omitempty"` Files RecoveryFiles `json:"files"` diff --git a/typedapi/types/recoveryorigin.go b/typedapi/types/recoveryorigin.go index 5bb7c88c14..20f8b0e1c8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RecoveryOrigin type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/recovery/types.ts#L76-L89 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/recovery/types.ts#L76-L89 type RecoveryOrigin struct { BootstrapNewHistoryUuid *bool `json:"bootstrap_new_history_uuid,omitempty"` Host *string `json:"host,omitempty"` diff --git a/typedapi/types/recoveryrecord.go b/typedapi/types/recoveryrecord.go index b2b7817613..8b267282c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RecoveryRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/recovery/types.ts#L24-L155 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/recovery/types.ts#L24-L155 type RecoveryRecord struct { // Bytes The number of bytes to recover. Bytes *string `json:"bytes,omitempty"` diff --git a/typedapi/types/recoverystartstatus.go b/typedapi/types/recoverystartstatus.go index f70bbf8e35..9a2bd25bf3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RecoveryStartStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/recovery/types.ts#L91-L96 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/recovery/types.ts#L91-L96 type RecoveryStartStatus struct { CheckIndexTime Duration `json:"check_index_time,omitempty"` CheckIndexTimeInMillis int64 `json:"check_index_time_in_millis"` diff --git a/typedapi/types/recoverystats.go b/typedapi/types/recoverystats.go index b02ab0f68b..7f59c55563 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RecoveryStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L231-L236 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L233-L238 type RecoveryStats struct { CurrentAsSource int64 `json:"current_as_source"` CurrentAsTarget int64 `json:"current_as_target"` diff --git a/typedapi/types/recoverystatus.go b/typedapi/types/recoverystatus.go index 02419f4ea1..752bfd0a7a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // RecoveryStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/recovery/types.ts#L98-L100 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/recovery/types.ts#L98-L100 type RecoveryStatus struct { Shards []ShardRecovery `json:"shards"` } diff --git a/typedapi/types/redact.go b/typedapi/types/redact.go index c5c5c25521..7f42e40abc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Redact type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Simulation.ts#L39-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Simulation.ts#L39-L44 type Redact struct { // IsRedacted_ indicates if document has been redacted IsRedacted_ bool `json:"_is_redacted"` diff --git a/typedapi/types/redactprocessor.go b/typedapi/types/redactprocessor.go index 7adfb5e8c3..53e57f48d3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RedactProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1280-L1321 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/refreshstats.go b/typedapi/types/refreshstats.go index 6eea8c237c..8290320693 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RefreshStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L238-L245 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L240-L247 type RefreshStats struct { ExternalTotal int64 `json:"external_total"` ExternalTotalTimeInMillis int64 `json:"external_total_time_in_millis"` diff --git a/typedapi/types/regexoptions.go b/typedapi/types/regexoptions.go index 8499e44bdc..b8f309722f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RegexOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L183-L194 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/suggester.ts#L184-L195 type RegexOptions struct { // Flags Optional operators for the regular expression. Flags string `json:"flags,omitempty"` diff --git a/typedapi/types/regexpquery.go b/typedapi/types/regexpquery.go index 90eda33ea8..0d365537d8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RegexpQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L203-L236 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L203-L236 type RegexpQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/regexvalidation.go b/typedapi/types/regexvalidation.go index 6f3f11f60f..f24d362584 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RegexValidation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L78-L81 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L78-L81 type RegexValidation struct { Constraint string `json:"constraint"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/registereddomainprocessor.go b/typedapi/types/registereddomainprocessor.go index aca47dae6f..c2364edaaa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RegisteredDomainProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1323-L1339 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/regressioninferenceoptions.go b/typedapi/types/regressioninferenceoptions.go index 10d10ffdd7..3a0d5691ee 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RegressionInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L82-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L107-L116 type RegressionInferenceOptions struct { // NumTopFeatureImportanceValues Specifies the maximum number of feature importance values per document. NumTopFeatureImportanceValues *int `json:"num_top_feature_importance_values,omitempty"` diff --git a/typedapi/types/reindexdestination.go b/typedapi/types/reindexdestination.go index 37cf24e042..7d7691efb0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/optype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/optype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) // ReindexDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/reindex/types.ts#L39-L67 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/reindex/types.ts#L39-L67 type ReindexDestination struct { // Index The name of the data stream, index, or index alias you are copying to. Index string `json:"index"` diff --git a/typedapi/types/reindexnode.go b/typedapi/types/reindexnode.go index 0233bebd80..4322faa5ac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/noderole" ) // ReindexNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/reindex_rethrottle/types.ts#L33-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/reindex_rethrottle/types.ts#L33-L35 type ReindexNode struct { Attributes map[string]string `json:"attributes"` Host string `json:"host"` diff --git a/typedapi/types/reindexsource.go b/typedapi/types/reindexsource.go index e8f4ed1110..46bb8287c8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ReindexSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/reindex/types.ts#L69-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/reindex/types.ts#L69-L110 type ReindexSource struct { // Index The name of the data stream, index, or alias you are copying from. // It accepts a comma-separated list to reindex from multiple sources. diff --git a/typedapi/types/reindexstatus.go b/typedapi/types/reindexstatus.go index 80d9d02893..036711fa9f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ReindexStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/reindex_rethrottle/types.ts#L37-L85 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/reindex_rethrottle/types.ts#L37-L85 type ReindexStatus struct { // Batches The number of scroll responses pulled back by the reindex. Batches int64 `json:"batches"` diff --git a/typedapi/types/reindextask.go b/typedapi/types/reindextask.go index c4ebbf50ae..943c9cd4b5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ReindexTask type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/reindex_rethrottle/types.ts#L87-L98 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/reindex_rethrottle/types.ts#L87-L98 type ReindexTask struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` diff --git a/typedapi/types/reloaddetails.go b/typedapi/types/reloaddetails.go index ed440d7f14..da8eb28969 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ReloadDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/reload_search_analyzers/types.ts#L27-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/reload_search_analyzers/types.ts#L27-L31 type ReloadDetails struct { Index string `json:"index"` ReloadedAnalyzers []string `json:"reloaded_analyzers"` diff --git a/typedapi/types/reloadresult.go b/typedapi/types/reloadresult.go index ecee348276..2554069053 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ReloadResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/reload_search_analyzers/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/reload_search_analyzers/types.ts#L22-L25 type ReloadResult struct { ReloadDetails []ReloadDetails `json:"reload_details"` Shards_ ShardStatistics `json:"_shards"` diff --git a/typedapi/types/relocationfailureinfo.go b/typedapi/types/relocationfailureinfo.go index 70d66489c1..116e85e577 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RelocationFailureInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Node.ts#L67-L69 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Node.ts#L67-L69 type RelocationFailureInfo struct { FailedAttempts int `json:"failed_attempts"` } diff --git a/typedapi/types/remoteclusterprivileges.go b/typedapi/types/remoteclusterprivileges.go index e1b7ef1d17..aeac2a6eb0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/remoteclusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/remoteclusterprivilege" ) // RemoteClusterPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L278-L290 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L278-L290 type RemoteClusterPrivileges struct { // Clusters A list of cluster aliases to which the permissions in this entry apply. Clusters []string `json:"clusters"` diff --git a/typedapi/types/remoteindicesprivileges.go b/typedapi/types/remoteindicesprivileges.go index 5a7058014d..4e0e32ede9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexprivilege" ) // RemoteIndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L244-L276 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L244-L276 type RemoteIndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited diff --git a/typedapi/types/remotesource.go b/typedapi/types/remotesource.go index 4e5ccb77b3..bce6f319f4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RemoteSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/reindex/types.ts#L112-L140 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/reindex/types.ts#L112-L140 type RemoteSource struct { // ConnectTimeout The remote connection timeout. ConnectTimeout Duration `json:"connect_timeout,omitempty"` diff --git a/typedapi/types/remoteuserindicesprivileges.go b/typedapi/types/remoteuserindicesprivileges.go index 8080c4e3ce..842f8ccccf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexprivilege" ) // RemoteUserIndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L316-L339 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L316-L339 type RemoteUserIndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited diff --git a/typedapi/types/removeaction.go b/typedapi/types/removeaction.go index 0026f90d89..64b1bbe632 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RemoveAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/update_aliases/types.ts#L97-L122 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/update_aliases/types.ts#L97-L122 type RemoveAction struct { // Alias Alias for the action. // Index alias names support date math. diff --git a/typedapi/types/removeduplicatestokenfilter.go b/typedapi/types/removeduplicatestokenfilter.go index d945761162..fbe15b0a66 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RemoveDuplicatesTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L302-L304 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L302-L304 type RemoveDuplicatesTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/removeindexaction.go b/typedapi/types/removeindexaction.go index fe6d576dae..774c3d1ca4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RemoveIndexAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/update_aliases/types.ts#L124-L139 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/update_aliases/types.ts#L124-L139 type RemoveIndexAction struct { // Index Data stream or index for the action. // Supports wildcards (`*`). diff --git a/typedapi/types/removeprocessor.go b/typedapi/types/removeprocessor.go index 1d9bfa3048..cfc0e5e97b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RemoveProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1341-L1355 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/renameprocessor.go b/typedapi/types/renameprocessor.go index 7660fb7f75..0b52629402 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RenameProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1357-L1373 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/replicationaccess.go b/typedapi/types/replicationaccess.go index b6dcf56809..7d2a8a8201 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ReplicationAccess type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L442-L452 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L442-L452 type ReplicationAccess struct { // AllowRestrictedIndices This needs to be set to true if the patterns in the names field should cover // system indices. diff --git a/typedapi/types/reportingemailattachment.go b/typedapi/types/reportingemailattachment.go index 2b0e7b58c5..3116d43352 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ReportingEmailAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L224-L232 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L224-L232 type ReportingEmailAttachment struct { Inline *bool `json:"inline,omitempty"` Interval Duration `json:"interval,omitempty"` diff --git a/typedapi/types/repositoriesrecord.go b/typedapi/types/repositoriesrecord.go index 06bfc13fb1..c852033d6b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RepositoriesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/repositories/types.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/repositories/types.ts#L20-L31 type RepositoriesRecord struct { // Id The unique repository identifier. Id *string `json:"id,omitempty"` diff --git a/typedapi/types/repository.go b/typedapi/types/repository.go index 97b191949c..209b22056e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -29,7 +29,7 @@ package types // ReadOnlyUrlRepository // SourceOnlyRepository // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b77c28297b..7065817746 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indicatorhealthstatus" ) // RepositoryIntegrityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L137-L141 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L137-L141 type RepositoryIntegrityIndicator struct { Details *RepositoryIntegrityIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/repositoryintegrityindicatordetails.go b/typedapi/types/repositoryintegrityindicatordetails.go index 4645fde43b..3c4f1673df 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RepositoryIntegrityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L142-L146 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L142-L146 type RepositoryIntegrityIndicatorDetails struct { Corrupted []string `json:"corrupted,omitempty"` CorruptedRepositories *int64 `json:"corrupted_repositories,omitempty"` diff --git a/typedapi/types/repositorylocation.go b/typedapi/types/repositorylocation.go index ea012f4e91..1063e7b982 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RepositoryLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/RepositoryMeteringInformation.ts#L68-L74 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/RepositoryMeteringInformation.ts#L68-L74 type RepositoryLocation struct { BasePath string `json:"base_path"` // Bucket Bucket name (GCP, S3) diff --git a/typedapi/types/repositorymeteringinformation.go b/typedapi/types/repositorymeteringinformation.go index 7c5bb2e96e..944b602481 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RepositoryMeteringInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/RepositoryMeteringInformation.ts#L24-L66 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/RepositoryMeteringInformation.ts#L24-L66 type RepositoryMeteringInformation struct { // Archived A flag that tells whether or not this object has been archived. When a // repository is closed or updated the diff --git a/typedapi/types/requestcachestats.go b/typedapi/types/requestcachestats.go index fd840149c5..a0339f4100 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RequestCacheStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L247-L253 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L249-L255 type RequestCacheStats struct { Evictions int64 `json:"evictions"` HitCount int64 `json:"hit_count"` diff --git a/typedapi/types/requestchatcompletion.go b/typedapi/types/requestchatcompletion.go new file mode 100644 index 0000000000..037f0cadc8 --- /dev/null +++ b/typedapi/types/requestchatcompletion.go @@ -0,0 +1,201 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// RequestChatCompletion type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L25-L58 +type RequestChatCompletion struct { + // MaxCompletionTokens The upper bound limit for the number of tokens that can be generated for a + // completion request. + MaxCompletionTokens *int64 `json:"max_completion_tokens,omitempty"` + // Messages A list of objects representing the conversation. + Messages []Message `json:"messages"` + // Model The ID of the model to use. + Model *string `json:"model,omitempty"` + // Stop A sequence of strings to control when the model should stop generating + // additional tokens. + Stop []string `json:"stop,omitempty"` + // Temperature The sampling temperature to use. + Temperature *float32 `json:"temperature,omitempty"` + // ToolChoice Controls which tool is called by the model. + ToolChoice CompletionToolType `json:"tool_choice,omitempty"` + // Tools A list of tools that the model can call. + Tools []CompletionTool `json:"tools,omitempty"` + // TopP Nucleus sampling, an alternative to sampling with temperature. + TopP *float32 `json:"top_p,omitempty"` +} + +func (s *RequestChatCompletion) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "max_completion_tokens": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseInt(v, 10, 64) + if err != nil { + return fmt.Errorf("%s | %w", "MaxCompletionTokens", err) + } + s.MaxCompletionTokens = &value + case float64: + f := int64(v) + s.MaxCompletionTokens = &f + } + + case "messages": + if err := dec.Decode(&s.Messages); err != nil { + return fmt.Errorf("%s | %w", "Messages", err) + } + + case "model": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Model", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Model = &o + + case "stop": + if err := dec.Decode(&s.Stop); err != nil { + return fmt.Errorf("%s | %w", "Stop", err) + } + + case "temperature": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "Temperature", err) + } + f := float32(value) + s.Temperature = &f + case float64: + f := float32(v) + s.Temperature = &f + } + + case "tool_choice": + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { + return fmt.Errorf("%s | %w", "ToolChoice", err) + } + keyDec := json.NewDecoder(bytes.NewReader(message)) + toolchoice_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "ToolChoice", err) + } + + switch t { + + case "function", "type": + o := NewCompletionToolChoice() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "ToolChoice", err) + } + s.ToolChoice = o + break toolchoice_field + + } + } + if s.ToolChoice == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.ToolChoice); err != nil { + return fmt.Errorf("%s | %w", "ToolChoice", err) + } + } + + case "tools": + if err := dec.Decode(&s.Tools); err != nil { + return fmt.Errorf("%s | %w", "Tools", err) + } + + case "top_p": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "TopP", err) + } + f := float32(value) + s.TopP = &f + case float64: + f := float32(v) + s.TopP = &f + } + + } + } + return nil +} + +// NewRequestChatCompletion returns a RequestChatCompletion. +func NewRequestChatCompletion() *RequestChatCompletion { + r := &RequestChatCompletion{} + + return r +} + +// true + +type RequestChatCompletionVariant interface { + RequestChatCompletionCaster() *RequestChatCompletion +} + +func (s *RequestChatCompletion) RequestChatCompletionCaster() *RequestChatCompletion { + return s +} diff --git a/typedapi/types/requestcounts.go b/typedapi/types/requestcounts.go index 64e24f5bd1..3a0e34b140 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RequestCounts type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/RepositoryMeteringInformation.ts#L76-L103 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/RepositoryMeteringInformation.ts#L76-L103 type RequestCounts struct { // GetBlob Number of Get Blob requests (Azure) GetBlob *int64 `json:"GetBlob,omitempty"` diff --git a/typedapi/types/requestitem.go b/typedapi/types/requestitem.go index 382cc5650d..4fd6fb961a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // MultisearchHeader // TemplateConfig // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/msearch_template/types.ts#L25-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 b69c761d6d..3216ff2d5a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RerouteDecision type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/reroute/types.ts#L86-L90 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/reroute/types.ts#L86-L90 type RerouteDecision struct { Decider string `json:"decider"` Decision string `json:"decision"` diff --git a/typedapi/types/rerouteexplanation.go b/typedapi/types/rerouteexplanation.go index 3f6f9b7332..5ea84b4ff5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RerouteExplanation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/reroute/types.ts#L92-L96 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/reroute/types.ts#L92-L96 type RerouteExplanation struct { Command string `json:"command"` Decisions []RerouteDecision `json:"decisions"` diff --git a/typedapi/types/rerouteparameters.go b/typedapi/types/rerouteparameters.go index 90c2b116a2..5e7e6cbbc7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RerouteParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/reroute/types.ts#L98-L105 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/reroute/types.ts#L98-L105 type RerouteParameters struct { AllowPrimary bool `json:"allow_primary"` FromNode *string `json:"from_node,omitempty"` diff --git a/typedapi/types/rerouteprocessor.go b/typedapi/types/rerouteprocessor.go index 605c2edd63..d23b8555a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RerouteProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1375-L1403 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/rescore.go b/typedapi/types/rescore.go index 7f04f4ab31..488b360af2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Rescore type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/rescoring.ts#L25-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/rescoring.ts#L25-L38 type Rescore struct { AdditionalRescoreProperty map[string]json.RawMessage `json:"-"` LearningToRank *LearningToRank `json:"learning_to_rank,omitempty"` diff --git a/typedapi/types/rescorequery.go b/typedapi/types/rescorequery.go index 3261601ebc..c97003d909 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scoremode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scoremode" ) // RescoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/rescoring.ts#L40-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/rescoring.ts#L40-L62 type RescoreQuery struct { // Query The query to use for rescoring. // This query is only run on the Top-K results returned by the `query` and diff --git a/typedapi/types/rescorevector.go b/typedapi/types/rescorevector.go index abf359c7ce..c1bace8229 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RescoreVector type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Knn.ts#L30-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Knn.ts#L30-L33 type RescoreVector struct { // Oversample Applies the specified oversample factor to k on the approximate kNN search Oversample float32 `json:"oversample"` diff --git a/typedapi/types/reservedsize.go b/typedapi/types/reservedsize.go index 92a79f965d..8a1022c049 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ReservedSize type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L72-L77 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/allocation_explain/types.ts#L72-L77 type ReservedSize struct { NodeId string `json:"node_id"` Path string `json:"path"` diff --git a/typedapi/types/resolveclusterinfo.go b/typedapi/types/resolveclusterinfo.go index 1f80e3e8c6..231bee801a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ResolveClusterInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L29-L55 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/resolve_cluster/ResolveClusterResponse.ts#L29-L55 type ResolveClusterInfo struct { // Connected Whether the remote cluster is connected to the local (querying) cluster. Connected bool `json:"connected"` diff --git a/typedapi/types/resolveindexaliasitem.go b/typedapi/types/resolveindexaliasitem.go index e6dce02767..d58eda121a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexAliasItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/resolve_index/ResolveIndexResponse.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/resolve_index/ResolveIndexResponse.ts#L37-L40 type ResolveIndexAliasItem struct { Indices []string `json:"indices"` Name string `json:"name"` diff --git a/typedapi/types/resolveindexdatastreamsitem.go b/typedapi/types/resolveindexdatastreamsitem.go index 5980e9bf28..46a464bf01 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexDataStreamsItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/resolve_index/ResolveIndexResponse.ts#L42-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/resolve_index/ResolveIndexResponse.ts#L42-L46 type ResolveIndexDataStreamsItem struct { BackingIndices []string `json:"backing_indices"` Name string `json:"name"` diff --git a/typedapi/types/resolveindexitem.go b/typedapi/types/resolveindexitem.go index a7059c9a27..2c6b4308e2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ResolveIndexItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/resolve_index/ResolveIndexResponse.ts#L30-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/resolve_index/ResolveIndexResponse.ts#L30-L35 type ResolveIndexItem struct { Aliases []string `json:"aliases,omitempty"` Attributes []string `json:"attributes"` diff --git a/typedapi/types/resourceprivileges.go b/typedapi/types/resourceprivileges.go index 693c90087a..4356dc4b7d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ResourcePrivileges type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/has_privileges/types.ts#L48-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7d17e122a1..305b375bbf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/failurestorestatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/failurestorestatus" ) // ResponseItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/bulk/types.ts#L37-L84 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/bulk/types.ts#L37-L84 type ResponseItem struct { // Error Additional information about the failed operation. // The property is returned only for failed operations. diff --git a/typedapi/types/restriction.go b/typedapi/types/restriction.go index ac8d86c0ea..74a4c00261 100644 --- a/typedapi/types/restriction.go +++ b/typedapi/types/restriction.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/restrictionworkflow" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/restrictionworkflow" ) // Restriction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/RoleDescriptor.ts#L135-L141 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/RoleDescriptor.ts#L135-L141 type Restriction struct { // Workflows A list of workflows to which the API key is restricted. // NOTE: In order to use a role restriction, an API key must be created with a diff --git a/typedapi/types/retention.go b/typedapi/types/retention.go index 29176701a8..b7427abb0e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Retention type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/_types/SnapshotLifecycle.ts#L94-L107 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/slm/_types/SnapshotLifecycle.ts#L94-L107 type Retention struct { // ExpireAfter Time period after which a snapshot is considered expired and eligible for // deletion. SLM deletes expired snapshots based on the slm.retention_schedule. diff --git a/typedapi/types/retentionlease.go b/typedapi/types/retentionlease.go index 09de1f9dac..a4cb6c16d5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RetentionLease type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L66-L68 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L66-L68 type RetentionLease struct { Period Duration `json:"period"` } diff --git a/typedapi/types/retentionpolicy.go b/typedapi/types/retentionpolicy.go index b2eed539ff..14197222b8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RetentionPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/_types/Transform.ts#L88-L96 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/_types/Transform.ts#L88-L96 type RetentionPolicy struct { // Field The date field that is used to calculate the age of the document. Field string `json:"field"` diff --git a/typedapi/types/retentionpolicycontainer.go b/typedapi/types/retentionpolicycontainer.go index 92a8915694..88a6ebdab8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // RetentionPolicyContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/_types/Transform.ts#L80-L86 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/_types/Transform.ts#L80-L86 type RetentionPolicyContainer struct { AdditionalRetentionPolicyContainerProperty map[string]json.RawMessage `json:"-"` // Time Specifies that the transform uses a time field to set the retention policy. diff --git a/typedapi/types/retries.go b/typedapi/types/retries.go index 8d74cfb4c8..0565877ec2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Retries type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Retries.ts#L22-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Retries.ts#L22-L31 type Retries struct { // Bulk The number of bulk actions retried. Bulk int64 `json:"bulk"` diff --git a/typedapi/types/retrievercontainer.go b/typedapi/types/retrievercontainer.go index 94afe97669..9f3372ae36 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // RetrieverContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Retriever.ts#L28-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Retriever.ts#L28-L42 type RetrieverContainer struct { AdditionalRetrieverContainerProperty map[string]json.RawMessage `json:"-"` // Knn A retriever that replaces the functionality of a knn search. diff --git a/typedapi/types/reversenestedaggregate.go b/typedapi/types/reversenestedaggregate.go index 10df212dec..a81fb6ff09 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // ReverseNestedAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L540-L544 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L540-L544 type ReverseNestedAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/reversenestedaggregation.go b/typedapi/types/reversenestedaggregation.go index 1bb236dfdf..db79956bb8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ReverseNestedAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L741-L747 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L741-L747 type ReverseNestedAggregation struct { // Path Defines the nested object field that should be joined back to. // The default is empty, which means that it joins back to the root/main diff --git a/typedapi/types/reversetokenfilter.go b/typedapi/types/reversetokenfilter.go index 30d1ac1e67..1ddd257d9d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ReverseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L306-L308 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L306-L308 type ReverseTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/role.go b/typedapi/types/role.go index 160dee63ab..8e8762a61c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" ) // Role type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_role/types.ts#L32-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/get_role/types.ts#L32-L54 type Role struct { Applications []ApplicationPrivileges `json:"applications"` Cluster []clusterprivilege.ClusterPrivilege `json:"cluster"` diff --git a/typedapi/types/roledescriptor.go b/typedapi/types/roledescriptor.go index 08a9a4ccec..de91aba43b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" ) // RoleDescriptor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/RoleDescriptor.ts#L33-L83 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/RoleDescriptor.ts#L33-L83 type RoleDescriptor struct { // Applications A list of application privilege entries Applications []ApplicationPrivileges `json:"applications,omitempty"` diff --git a/typedapi/types/roledescriptorread.go b/typedapi/types/roledescriptorread.go index 9a00240fe8..9497ca691d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/clusterprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/clusterprivilege" ) // RoleDescriptorRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/RoleDescriptor.ts#L85-L133 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/RoleDescriptor.ts#L85-L133 type RoleDescriptorRead struct { // Applications A list of application privilege entries Applications []ApplicationPrivileges `json:"applications,omitempty"` diff --git a/typedapi/types/roledescriptorwrapper.go b/typedapi/types/roledescriptorwrapper.go index 91f255e960..98c8cf02e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // RoleDescriptorWrapper type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_service_accounts/types.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/get_service_accounts/types.ts#L22-L24 type RoleDescriptorWrapper struct { RoleDescriptor RoleDescriptorRead `json:"role_descriptor"` } diff --git a/typedapi/types/rolemappingrule.go b/typedapi/types/rolemappingrule.go index a8aa0d1863..09b492f0d9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // RoleMappingRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/RoleMappingRule.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/RoleMappingRule.ts#L23-L31 type RoleMappingRule struct { AdditionalRoleMappingRuleProperty map[string]json.RawMessage `json:"-"` All []RoleMappingRule `json:"all,omitempty"` diff --git a/typedapi/types/rolequerycontainer.go b/typedapi/types/rolequerycontainer.go index 6e46e502c6..1c77929bbe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RoleQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_role/types.ts#L37-L101 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/query_role/types.ts#L37-L101 type RoleQueryContainer struct { AdditionalRoleQueryContainerProperty map[string]json.RawMessage `json:"-"` // Bool matches roles matching boolean combinations of other queries. diff --git a/typedapi/types/roletemplate.go b/typedapi/types/roletemplate.go index b93f44b21f..33ff7371e9 100644 --- a/typedapi/types/roletemplate.go +++ b/typedapi/types/roletemplate.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/templateformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/templateformat" ) // RoleTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/RoleTemplate.ts#L28-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/RoleTemplate.ts#L28-L31 type RoleTemplate struct { Format *templateformat.TemplateFormat `json:"format,omitempty"` Template Script `json:"template"` diff --git a/typedapi/types/roletemplateinlinequery.go b/typedapi/types/roletemplateinlinequery.go index 75e0f0d69e..6ab375a792 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // Query // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L383-L384 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2a6827a60b..e4d03fa82c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // RoleTemplateQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L351-L361 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L351-L361 type RoleTemplateQuery struct { // Template When you create a role, you can specify a query that defines the document // level security permissions. You can optionally diff --git a/typedapi/types/roletemplatescript.go b/typedapi/types/roletemplatescript.go index fb32eb266f..b7d987dba3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptlanguage" ) // RoleTemplateScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L363-L381 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L363-L381 type RoleTemplateScript struct { // Id The `id` for a stored script. Id *string `json:"id,omitempty"` diff --git a/typedapi/types/rolloveraction.go b/typedapi/types/rolloveraction.go index 4034ea1bd0..a642427ebc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RolloverAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L99-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L99-L110 type RolloverAction struct { MaxAge Duration `json:"max_age,omitempty"` MaxDocs *int64 `json:"max_docs,omitempty"` diff --git a/typedapi/types/rolloverconditions.go b/typedapi/types/rolloverconditions.go index 67ce11d721..19d08f2507 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RolloverConditions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/rollover/types.ts#L24-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/rollover/types.ts#L24-L40 type RolloverConditions struct { MaxAge Duration `json:"max_age,omitempty"` MaxAgeMillis *int64 `json:"max_age_millis,omitempty"` diff --git a/typedapi/types/rollupcapabilities.go b/typedapi/types/rollupcapabilities.go index 7d8f3e9593..2c7ddd284c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // RollupCapabilities type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_rollup_caps/types.ts#L24-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/get_rollup_caps/types.ts#L24-L29 type RollupCapabilities struct { // RollupJobs There can be multiple, independent jobs configured for a single index or // index pattern. Each of these jobs may have different configurations, so the diff --git a/typedapi/types/rollupcapabilitysummary.go b/typedapi/types/rollupcapabilitysummary.go index 30870a8522..4aaf4daf18 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RollupCapabilitySummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_rollup_caps/types.ts#L31-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/get_rollup_caps/types.ts#L31-L36 type RollupCapabilitySummary struct { Fields map[string][]RollupFieldSummary `json:"fields"` IndexPattern string `json:"index_pattern"` diff --git a/typedapi/types/rollupfieldsummary.go b/typedapi/types/rollupfieldsummary.go index 6f3566643d..3a16e0a726 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RollupFieldSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_rollup_caps/types.ts#L38-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/get_rollup_caps/types.ts#L38-L42 type RollupFieldSummary struct { Agg string `json:"agg"` CalendarInterval Duration `json:"calendar_interval,omitempty"` diff --git a/typedapi/types/rollupjob.go b/typedapi/types/rollupjob.go index f05a8de958..3fa2862c16 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // RollupJob type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_jobs/types.ts#L28-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/get_jobs/types.ts#L28-L43 type RollupJob struct { // Config The rollup job configuration. Config RollupJobConfiguration `json:"config"` diff --git a/typedapi/types/rollupjobconfiguration.go b/typedapi/types/rollupjobconfiguration.go index b01cd6515f..a1e1fcee5d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RollupJobConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_jobs/types.ts#L45-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/get_jobs/types.ts#L45-L54 type RollupJobConfiguration struct { Cron string `json:"cron"` Groups Groupings `json:"groups"` diff --git a/typedapi/types/rollupjobstats.go b/typedapi/types/rollupjobstats.go index 6aa24c8491..71ea4f8d04 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RollupJobStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_jobs/types.ts#L56-L69 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/get_jobs/types.ts#L56-L69 type RollupJobStats struct { DocumentsProcessed int64 `json:"documents_processed"` IndexFailures int64 `json:"index_failures"` diff --git a/typedapi/types/rollupjobstatus.go b/typedapi/types/rollupjobstatus.go index f4562fa9fd..e02eab5aef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexingjobstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexingjobstate" ) // RollupJobStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_jobs/types.ts#L71-L75 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/get_jobs/types.ts#L71-L75 type RollupJobStatus struct { CurrentPosition map[string]json.RawMessage `json:"current_position,omitempty"` JobState indexingjobstate.IndexingJobState `json:"job_state"` diff --git a/typedapi/types/rollupjobsummary.go b/typedapi/types/rollupjobsummary.go index 37bd58d079..06f67b26b8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RollupJobSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_rollup_index_caps/types.ts#L28-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/get_rollup_index_caps/types.ts#L28-L33 type RollupJobSummary struct { Fields map[string][]RollupJobSummaryField `json:"fields"` IndexPattern string `json:"index_pattern"` diff --git a/typedapi/types/rollupjobsummaryfield.go b/typedapi/types/rollupjobsummaryfield.go index da7ace8c13..543b536989 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RollupJobSummaryField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/get_rollup_index_caps/types.ts#L35-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/get_rollup_index_caps/types.ts#L35-L39 type RollupJobSummaryField struct { Agg string `json:"agg"` CalendarInterval Duration `json:"calendar_interval,omitempty"` diff --git a/typedapi/types/romaniananalyzer.go b/typedapi/types/romaniananalyzer.go index 2dbd9dee0c..a83e3c7056 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RomanianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L268-L273 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L268-L273 type RomanianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/routingfield.go b/typedapi/types/routingfield.go index ab85483d0c..6c4316fd25 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RoutingField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/meta-fields.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/meta-fields.ts#L50-L52 type RoutingField struct { Required bool `json:"required"` } diff --git a/typedapi/types/rrfrank.go b/typedapi/types/rrfrank.go index a8eadd3e93..09139b7fcd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RrfRank type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Rank.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Rank.ts#L32-L37 type RrfRank struct { // RankConstant How much influence documents in individual result sets per query have over // the final ranked result set diff --git a/typedapi/types/rrfretriever.go b/typedapi/types/rrfretriever.go index 565313fe8e..9ccbfb0d6b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RRFRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Retriever.ts#L84-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Retriever.ts#L84-L91 type RRFRetriever struct { // Filter Query to filter the documents that can match. Filter []Query `json:"filter,omitempty"` diff --git a/typedapi/types/rulecondition.go b/typedapi/types/rulecondition.go index 91c13c28e3..9f4d58c483 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/appliesto" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionoperator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/appliesto" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/conditionoperator" ) // RuleCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Rule.ts#L52-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Rule.ts#L52-L65 type RuleCondition struct { // AppliesTo Specifies the result property to which the condition applies. If your // detector uses `lat_long`, `metric`, `rare`, or `freq_rare` functions, you can diff --git a/typedapi/types/rulequery.go b/typedapi/types/rulequery.go index 344e75234e..3d7e5ea001 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RuleQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L398-L405 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L398-L405 type RuleQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/ruleretriever.go b/typedapi/types/ruleretriever.go index 1344d21d0b..20dd56738d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RuleRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Retriever.ts#L106-L115 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Retriever.ts#L106-L115 type RuleRetriever struct { // Filter Query to filter the documents that can match. Filter []Query `json:"filter,omitempty"` diff --git a/typedapi/types/runningstatesearchinterval.go b/typedapi/types/runningstatesearchinterval.go index d19f326f58..04a4463f9f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // RunningStateSearchInterval type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Datafeed.ts#L226-L243 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Datafeed.ts#L226-L243 type RunningStateSearchInterval struct { // End The end time. End Duration `json:"end,omitempty"` diff --git a/typedapi/types/runtimefield.go b/typedapi/types/runtimefield.go index 1b23fdb95d..c6dd6acbeb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/runtimefieldtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/runtimefieldtype" ) // RuntimeField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/RuntimeFields.ts#L26-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/RuntimeFields.ts#L26-L50 type RuntimeField struct { // FetchFields For type `lookup` FetchFields []RuntimeFieldFetchFields `json:"fetch_fields,omitempty"` diff --git a/typedapi/types/runtimefieldfetchfields.go b/typedapi/types/runtimefieldfetchfields.go index abc7b3464d..c35a6ffaaf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RuntimeFieldFetchFields type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/RuntimeFields.ts#L56-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/RuntimeFields.ts#L56-L60 type RuntimeFieldFetchFields struct { Field string `json:"field"` Format *string `json:"format,omitempty"` diff --git a/typedapi/types/runtimefields.go b/typedapi/types/runtimefields.go index cdaf384436..2b7ec2e30f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // RuntimeFields type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/RuntimeFields.ts#L24-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 5b82b9ea03..ddbcbff1fd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RuntimeFieldsType type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L289-L304 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L289-L304 type RuntimeFieldsType struct { CharsMax int64 `json:"chars_max"` CharsTotal int64 `json:"chars_total"` diff --git a/typedapi/types/russiananalyzer.go b/typedapi/types/russiananalyzer.go index c8cd40ccb9..6772bfc379 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // RussianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L275-L280 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L275-L280 type RussianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/s3repository.go b/typedapi/types/s3repository.go index 521c8c9ed9..eec6f82526 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // S3Repository type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L64-L78 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotRepository.ts#L64-L78 type S3Repository struct { // Settings The repository settings. // diff --git a/typedapi/types/s3repositorysettings.go b/typedapi/types/s3repositorysettings.go index 8b260a5702..f7f310d934 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // S3RepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L237-L346 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 diff --git a/typedapi/types/samplediversity.go b/typedapi/types/samplediversity.go index 365b5220dd..3422adcfa3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SampleDiversity type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/graph/_types/ExploreControls.ts#L51-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/graph/_types/ExploreControls.ts#L51-L54 type SampleDiversity struct { Field string `json:"field"` MaxDocsPerValue int `json:"max_docs_per_value"` diff --git a/typedapi/types/sampleraggregate.go b/typedapi/types/sampleraggregate.go index 7c71600b9c..b95507b91d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // SamplerAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L558-L559 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L558-L559 type SamplerAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/sampleraggregation.go b/typedapi/types/sampleraggregation.go index 5dbe7fbdbd..99cedaf963 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SamplerAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L771-L780 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L771-L780 type SamplerAggregation struct { // ShardSize Limits how many top-scoring documents are collected in the sample processed // on each shard. diff --git a/typedapi/types/scalarvalue.go b/typedapi/types/scalarvalue.go index 125f722606..1ec938ca23 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,7 +28,7 @@ package types // bool // nil // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3891f82e66..f439296267 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // ScaledFloatNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L186-L190 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L195-L199 type ScaledFloatNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/schedulecontainer.go b/typedapi/types/schedulecontainer.go index d9125af2c9..eb48017f8b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ScheduleContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Schedule.ts#L80-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Schedule.ts#L80-L92 type ScheduleContainer struct { AdditionalScheduleContainerProperty map[string]json.RawMessage `json:"-"` Cron *string `json:"cron,omitempty"` diff --git a/typedapi/types/scheduletimeofday.go b/typedapi/types/scheduletimeofday.go index b51695ba63..470ce2898f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // HourAndMinute // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Schedule.ts#L99-L104 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f09d525c4b..9ada517407 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ScheduleTriggerEvent type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Schedule.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Schedule.ts#L94-L97 type ScheduleTriggerEvent struct { ScheduledTime DateTime `json:"scheduled_time"` TriggeredTime DateTime `json:"triggered_time,omitempty"` diff --git a/typedapi/types/schedulingconfiguration.go b/typedapi/types/schedulingconfiguration.go index 86a29e0290..eae7fdd795 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SchedulingConfiguration type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L246-L250 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L246-L250 type SchedulingConfiguration struct { AccessControl *ConnectorScheduling `json:"access_control,omitempty"` Full *ConnectorScheduling `json:"full,omitempty"` diff --git a/typedapi/types/scoresort.go b/typedapi/types/scoresort.go index 4020d3b688..ce6c68613b 100644 --- a/typedapi/types/scoresort.go +++ b/typedapi/types/scoresort.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) // ScoreSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/sort.ts#L54-L56 type ScoreSort struct { Order *sortorder.SortOrder `json:"order,omitempty"` } diff --git a/typedapi/types/script.go b/typedapi/types/script.go index 1c7dfc29d1..4eaf778f51 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,14 +26,13 @@ import ( "errors" "fmt" "io" - "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptlanguage" ) // Script type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Scripting.ts#L75-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Scripting.ts#L65-L89 type Script struct { // Id The `id` for a stored script. Id *string `json:"id,omitempty"` @@ -44,21 +43,14 @@ type Script struct { // Use parameters instead of hard-coded values to decrease compile time. Params map[string]json.RawMessage `json:"params,omitempty"` // Source The script source. - Source *string `json:"source,omitempty"` + Source ScriptSource `json:"source,omitempty"` } func (s *Script) UnmarshalJSON(data []byte) error { if !bytes.HasPrefix(data, []byte(`{`)) { - if !bytes.HasPrefix(data, []byte(`"`)) { - data = append([]byte{'"'}, data...) - data = append(data, []byte{'"'}...) - } err := json.NewDecoder(bytes.NewReader(data)).Decode(&s.Source) - if err != nil { - return err - } - return nil + return err } dec := json.NewDecoder(bytes.NewReader(data)) @@ -101,16 +93,40 @@ func (s *Script) UnmarshalJSON(data []byte) error { } case "source": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) + keyDec := json.NewDecoder(bytes.NewReader(message)) + source_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source", err) + } + + switch t { + + case "aggregations", "collapse", "docvalue_fields", "explain", "ext", "fields", "from", "highlight", "indices_boost", "knn", "min_score", "pit", "post_filter", "profile", "query", "rank", "rescore", "retriever", "runtime_mappings", "script_fields", "search_after", "seq_no_primary_term", "size", "slice", "sort", "_source", "stats", "stored_fields", "suggest", "terminate_after", "timeout", "track_scores", "track_total_hits", "version": + o := NewSearchRequestBody() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + s.Source = o + break source_field + + } + } + if s.Source == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } } - s.Source = &o } } diff --git a/typedapi/types/scriptcache.go b/typedapi/types/scriptcache.go index 8f87522060..b9558671cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ScriptCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L1102-L1116 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L1102-L1116 type ScriptCache struct { // CacheEvictions Total number of times the script cache has evicted old data. CacheEvictions *int64 `json:"cache_evictions,omitempty"` diff --git a/typedapi/types/scriptcondition.go b/typedapi/types/scriptcondition.go index 4abee6f79e..41193bb861 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,16 +27,18 @@ import ( "fmt" "io" "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptlanguage" ) // ScriptCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Conditions.ts#L79-L87 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Conditions.ts#L80-L88 type ScriptCondition struct { - Id *string `json:"id,omitempty"` - Lang *string `json:"lang,omitempty"` - Params map[string]json.RawMessage `json:"params,omitempty"` - Source *string `json:"source,omitempty"` + Id *string `json:"id,omitempty"` + Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"` + Params map[string]json.RawMessage `json:"params,omitempty"` + Source ScriptSource `json:"source,omitempty"` } func (s *ScriptCondition) UnmarshalJSON(data []byte) error { @@ -67,16 +69,9 @@ func (s *ScriptCondition) UnmarshalJSON(data []byte) error { s.Id = &o case "lang": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + if err := dec.Decode(&s.Lang); err != nil { return fmt.Errorf("%s | %w", "Lang", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.Lang = &o case "params": if s.Params == nil { @@ -87,16 +82,40 @@ func (s *ScriptCondition) UnmarshalJSON(data []byte) error { } case "source": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) + keyDec := json.NewDecoder(bytes.NewReader(message)) + source_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source", err) + } + + switch t { + + case "aggregations", "collapse", "docvalue_fields", "explain", "ext", "fields", "from", "highlight", "indices_boost", "knn", "min_score", "pit", "post_filter", "profile", "query", "rank", "rescore", "retriever", "runtime_mappings", "script_fields", "search_after", "seq_no_primary_term", "size", "slice", "sort", "_source", "stats", "stored_fields", "suggest", "terminate_after", "timeout", "track_scores", "track_total_hits", "version": + o := NewSearchRequestBody() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + s.Source = o + break source_field + + } + } + if s.Source == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } } - s.Source = &o } } diff --git a/typedapi/types/scriptedheuristic.go b/typedapi/types/scriptedheuristic.go index 44c8c52afb..6f0365ccc2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ScriptedHeuristic type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L813-L815 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L813-L815 type ScriptedHeuristic struct { Script Script `json:"script"` } diff --git a/typedapi/types/scriptedmetricaggregate.go b/typedapi/types/scriptedmetricaggregate.go index 9e2f720cf9..5128c6f42c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ScriptedMetricAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L739-L745 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L739-L745 type ScriptedMetricAggregate struct { Meta Metadata `json:"meta,omitempty"` Value json.RawMessage `json:"value,omitempty"` diff --git a/typedapi/types/scriptedmetricaggregation.go b/typedapi/types/scriptedmetricaggregation.go index 19802ff149..b9007b684f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ScriptedMetricAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L263-L289 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L263-L289 type ScriptedMetricAggregation struct { // CombineScript Runs once on each shard after document collection is complete. // Allows the aggregation to consolidate the state returned from each shard. diff --git a/typedapi/types/scriptfield.go b/typedapi/types/scriptfield.go index 8e327616bf..3142d6abd5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ScriptField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Scripting.ts#L101-L104 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Scripting.ts#L91-L94 type ScriptField struct { IgnoreFailure *bool `json:"ignore_failure,omitempty"` Script Script `json:"script"` diff --git a/typedapi/types/scripting.go b/typedapi/types/scripting.go index ab4c517e63..3011dc5227 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Scripting type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L1048-L1066 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L1048-L1066 type Scripting struct { // CacheEvictions Total number of times the script cache has evicted old data. CacheEvictions *int64 `json:"cache_evictions,omitempty"` diff --git a/typedapi/types/scriptprocessor.go b/typedapi/types/scriptprocessor.go index c3e42af60f..7303d900f8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,11 +27,13 @@ import ( "fmt" "io" "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptlanguage" ) // ScriptProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1405-L1425 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. @@ -44,14 +46,14 @@ type ScriptProcessor struct { // IgnoreFailure Ignore failures for the processor. IgnoreFailure *bool `json:"ignore_failure,omitempty"` // Lang Script language. - Lang *string `json:"lang,omitempty"` + Lang *scriptlanguage.ScriptLanguage `json:"lang,omitempty"` // OnFailure Handle failures for the processor. OnFailure []ProcessorContainer `json:"on_failure,omitempty"` // Params Object containing parameters for the script. Params map[string]json.RawMessage `json:"params,omitempty"` // Source Inline script. // If no `id` is specified, this parameter is required. - Source *string `json:"source,omitempty"` + Source ScriptSource `json:"source,omitempty"` // Tag Identifier for the processor. // Useful for debugging and metrics. Tag *string `json:"tag,omitempty"` @@ -109,16 +111,9 @@ func (s *ScriptProcessor) UnmarshalJSON(data []byte) error { } case "lang": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + if err := dec.Decode(&s.Lang); err != nil { return fmt.Errorf("%s | %w", "Lang", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) - } - s.Lang = &o case "on_failure": if err := dec.Decode(&s.OnFailure); err != nil { @@ -134,16 +129,40 @@ func (s *ScriptProcessor) UnmarshalJSON(data []byte) error { } case "source": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) + keyDec := json.NewDecoder(bytes.NewReader(message)) + source_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source", err) + } + + switch t { + + case "aggregations", "collapse", "docvalue_fields", "explain", "ext", "fields", "from", "highlight", "indices_boost", "knn", "min_score", "pit", "post_filter", "profile", "query", "rank", "rescore", "retriever", "runtime_mappings", "script_fields", "search_after", "seq_no_primary_term", "size", "slice", "sort", "_source", "stats", "stored_fields", "suggest", "terminate_after", "timeout", "track_scores", "track_total_hits", "version": + o := NewSearchRequestBody() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + s.Source = o + break source_field + + } + } + if s.Source == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } } - s.Source = &o case "tag": var tmp json.RawMessage diff --git a/typedapi/types/scriptquery.go b/typedapi/types/scriptquery.go index 97c09504c2..86cd052303 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ScriptQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L337-L346 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L337-L346 type ScriptQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/scriptscorefunction.go b/typedapi/types/scriptscorefunction.go index 98ae5f7b46..b1f0e7bd28 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ScriptScoreFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L137-L142 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L137-L142 type ScriptScoreFunction struct { // Script A script that computes a score. Script Script `json:"script"` diff --git a/typedapi/types/scriptscorequery.go b/typedapi/types/scriptscorequery.go index 04234df669..bea837ecac 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ScriptScoreQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L348-L365 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L348-L365 type ScriptScoreQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/scriptsort.go b/typedapi/types/scriptsort.go index c2a3e29eac..5aa27e8831 100644 --- a/typedapi/types/scriptsort.go +++ b/typedapi/types/scriptsort.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptsorttype" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptsorttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) // ScriptSort type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L72-L78 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/sort.ts#L72-L78 type ScriptSort struct { Mode *sortmode.SortMode `json:"mode,omitempty"` Nested *NestedSortValue `json:"nested,omitempty"` diff --git a/typedapi/types/scriptsource.go b/typedapi/types/scriptsource.go new file mode 100644 index 0000000000..ed44bf9745 --- /dev/null +++ b/typedapi/types/scriptsource.go @@ -0,0 +1,33 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +// ScriptSource holds the union for the following types: +// +// string +// SearchRequestBody +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Scripting.ts#L48-L49 +type ScriptSource any + +type ScriptSourceVariant interface { + ScriptSourceCaster() *ScriptSource +} diff --git a/typedapi/types/scripttransform.go b/typedapi/types/scripttransform.go index bc59690e28..17f794ccd9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,12 +31,12 @@ import ( // ScriptTransform type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Transform.ts#L36-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Transform.ts#L37-L45 type ScriptTransform struct { Id *string `json:"id,omitempty"` Lang *string `json:"lang,omitempty"` Params map[string]json.RawMessage `json:"params,omitempty"` - Source *string `json:"source,omitempty"` + Source ScriptSource `json:"source,omitempty"` } func (s *ScriptTransform) UnmarshalJSON(data []byte) error { @@ -87,16 +87,40 @@ func (s *ScriptTransform) UnmarshalJSON(data []byte) error { } case "source": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) + keyDec := json.NewDecoder(bytes.NewReader(message)) + source_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source", err) + } + + switch t { + + case "aggregations", "collapse", "docvalue_fields", "explain", "ext", "fields", "from", "highlight", "indices_boost", "knn", "min_score", "pit", "post_filter", "profile", "query", "rank", "rescore", "retriever", "runtime_mappings", "script_fields", "search_after", "seq_no_primary_term", "size", "slice", "sort", "_source", "stats", "stored_fields", "suggest", "terminate_after", "timeout", "track_scores", "track_total_hits", "version": + o := NewSearchRequestBody() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + s.Source = o + break source_field + + } + } + if s.Source == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } } - s.Source = &o } } diff --git a/typedapi/types/scrollids.go b/typedapi/types/scrollids.go index 30fa0c849d..206136c4c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ScrollIds type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L50-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3a23050def..afa02152f4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SearchableSnapshotAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L128-L131 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L128-L131 type SearchableSnapshotAction struct { ForceMergeIndex *bool `json:"force_merge_index,omitempty"` SnapshotRepository string `json:"snapshot_repository"` diff --git a/typedapi/types/searchablesnapshots.go b/typedapi/types/searchablesnapshots.go index 23fa45345f..6f5b293cef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SearchableSnapshots type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L434-L438 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L434-L438 type SearchableSnapshots struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/searchaccess.go b/typedapi/types/searchaccess.go index 3d7d6db49e..287f090725 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SearchAccess type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L454-L474 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L454-L474 type SearchAccess struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited diff --git a/typedapi/types/searchapplication.go b/typedapi/types/searchapplication.go index 90938cf3c6..6e4ea455f9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SearchApplication type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/_types/SearchApplication.ts#L24-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/search_application/_types/SearchApplication.ts#L24-L33 type SearchApplication struct { // AnalyticsCollectionName Analytics collection associated to the Search Application. AnalyticsCollectionName *string `json:"analytics_collection_name,omitempty"` diff --git a/typedapi/types/searchapplicationparameters.go b/typedapi/types/searchapplicationparameters.go index 79f44485d3..88b8cd1cf6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SearchApplicationParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/_types/SearchApplicationParameters.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/search_application/_types/SearchApplicationParameters.ts#L23-L36 type SearchApplicationParameters struct { // AnalyticsCollectionName Analytics collection associated to the Search Application. AnalyticsCollectionName *string `json:"analytics_collection_name,omitempty"` diff --git a/typedapi/types/searchapplicationtemplate.go b/typedapi/types/searchapplicationtemplate.go index f834f0cdd9..bc39975d1f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SearchApplicationTemplate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/search_application/_types/SearchApplicationTemplate.ts#L22-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/search_application/_types/SearchApplicationTemplate.ts#L22-L27 type SearchApplicationTemplate struct { // Script The associated mustache template. Script Script `json:"script"` diff --git a/typedapi/types/searchasyoutypeproperty.go b/typedapi/types/searchasyoutypeproperty.go index ac0261a893..bc7a271411 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termvectoroption" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termvectoroption" ) // SearchAsYouTypeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L228-L239 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L237-L248 type SearchAsYouTypeProperty struct { Analyzer *string `json:"analyzer,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/searchidle.go b/typedapi/types/searchidle.go index 13558f0e89..4fc21ad887 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SearchIdle type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L253-L256 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L253-L256 type SearchIdle struct { After Duration `json:"after,omitempty"` } diff --git a/typedapi/types/searchinput.go b/typedapi/types/searchinput.go index b6da24e596..f9b78deab5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SearchInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L112-L116 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L112-L116 type SearchInput struct { Extract []string `json:"extract,omitempty"` Request SearchInputRequestDefinition `json:"request"` diff --git a/typedapi/types/searchinputrequestbody.go b/typedapi/types/searchinputrequestbody.go index d62e3b9521..25d56a0927 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SearchInputRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L147-L149 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L147-L149 type SearchInputRequestBody struct { Query Query `json:"query"` } diff --git a/typedapi/types/searchinputrequestdefinition.go b/typedapi/types/searchinputrequestdefinition.go index 03f37ace8b..0b4981697c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/searchtype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/searchtype" ) // SearchInputRequestDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L118-L125 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L118-L125 type SearchInputRequestDefinition struct { Body *SearchInputRequestBody `json:"body,omitempty"` Indices []string `json:"indices,omitempty"` diff --git a/typedapi/types/searchprofile.go b/typedapi/types/searchprofile.go index 4d8ff87caf..e9f79776c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SearchProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L136-L140 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L136-L140 type SearchProfile struct { Collector []Collector `json:"collector"` Query []QueryProfile `json:"query"` diff --git a/typedapi/types/multisearchbody.go b/typedapi/types/searchrequestbody.go similarity index 60% rename from typedapi/types/multisearchbody.go rename to typedapi/types/searchrequestbody.go index c0b5f0f8b3..67d09e67ff 100644 --- a/typedapi/types/multisearchbody.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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -29,99 +29,142 @@ import ( "strconv" ) -// MultisearchBody type. +// SearchRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/msearch/types.ts#L70-L204 -type MultisearchBody struct { +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/SearchRequestBody.ts#L42-L238 +type SearchRequestBody struct { + // Aggregations Defines the aggregations that are run as part of the search request. Aggregations map[string]Aggregations `json:"aggregations,omitempty"` - Collapse *FieldCollapse `json:"collapse,omitempty"` - // DocvalueFields Array of wildcard (*) patterns. The request returns doc values for field - // names matching these patterns in the hits.fields property of the response. + // Collapse Collapses search results the values of the specified field. + Collapse *FieldCollapse `json:"collapse,omitempty"` + // DocvalueFields An array of wildcard (`*`) field patterns. + // The request returns doc values for field names matching these patterns in the + // `hits.fields` property of the response. DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"` - // Explain If true, returns detailed information about score computation as part of a - // hit. + // Explain If `true`, the request returns detailed information about score computation + // as part of a hit. Explain *bool `json:"explain,omitempty"` // Ext Configuration of search extensions defined by Elasticsearch plugins. Ext map[string]json.RawMessage `json:"ext,omitempty"` - // Fields Array of wildcard (*) patterns. The request returns values for field names - // matching these patterns in the hits.fields property of the response. + // Fields An array of wildcard (`*`) field patterns. + // The request returns values for field names matching these patterns in the + // `hits.fields` property of the response. Fields []FieldAndFormat `json:"fields,omitempty"` - // From Starting document offset. By default, you cannot page through more than - // 10,000 - // hits using the from and size parameters. To page through more hits, use the - // search_after parameter. - From *int `json:"from,omitempty"` + // From The starting document offset, which must be non-negative. + // By default, you cannot page through more than 10,000 hits using the `from` + // and `size` parameters. + // To page through more hits, use the `search_after` parameter. + From *int `json:"from,omitempty"` + // Highlight Specifies the highlighter to use for retrieving highlighted snippets from one + // or more fields in your search results. Highlight *Highlight `json:"highlight,omitempty"` - // IndicesBoost Boosts the _score of documents from specified indices. + // IndicesBoost Boost the `_score` of documents from specified indices. + // The boost value is the factor by which scores are multiplied. + // A boost value greater than `1.0` increases the score. + // A boost value between `0` and `1.0` decreases the score. IndicesBoost []map[string]Float64 `json:"indices_boost,omitempty"` - // Knn Defines the approximate kNN search to run. + // Knn The approximate kNN search to run. Knn []KnnSearch `json:"knn,omitempty"` - // MinScore Minimum _score for matching documents. Documents with a lower _score are - // not included in the search results. + // MinScore The minimum `_score` for matching documents. + // Documents with a lower `_score` are not included in search results or results + // collected by aggregations. MinScore *Float64 `json:"min_score,omitempty"` - // Pit Limits the search to a point in time (PIT). If you provide a PIT, you - // cannot specify an in the request path. - Pit *PointInTimeReference `json:"pit,omitempty"` - PostFilter *Query `json:"post_filter,omitempty"` - Profile *bool `json:"profile,omitempty"` - // Query Defines the search definition using the Query DSL. - Query *Query `json:"query,omitempty"` + // Pit Limit the search to a point in time (PIT). + // If you provide a PIT, you cannot specify an `` in the request path. + Pit *PointInTimeReference `json:"pit,omitempty"` + // PostFilter Use the `post_filter` parameter to filter search results. + // The search hits are filtered after the aggregations are calculated. + // A post filter has no impact on the aggregation results. + PostFilter *Query `json:"post_filter,omitempty"` + // Profile Set to `true` to return detailed timing information about the execution of + // individual components in a search request. + // NOTE: This is a debugging tool and adds significant overhead to search + // execution. + Profile *bool `json:"profile,omitempty"` + // Query The search definition using the Query DSL. + Query *Query `json:"query,omitempty"` + // Rank The Reciprocal Rank Fusion (RRF) to use. + Rank *RankContainer `json:"rank,omitempty"` + // Rescore Can be used to improve precision by reordering just the top (for example 100 + // - 500) documents returned by the `query` and `post_filter` phases. Rescore []Rescore `json:"rescore,omitempty"` - // RuntimeMappings Defines one or more runtime fields in the search request. These fields take - // precedence over mapped fields with the same name. + // Retriever A retriever is a specification to describe top documents returned from a + // search. + // A retriever replaces other elements of the search API that also return top + // documents such as `query` and `knn`. + Retriever *RetrieverContainer `json:"retriever,omitempty"` + // RuntimeMappings One or more runtime fields in the search request. + // These fields take precedence over mapped fields with the same name. RuntimeMappings RuntimeFields `json:"runtime_mappings,omitempty"` // ScriptFields Retrieve a script evaluation (based on different fields) for each hit. ScriptFields map[string]ScriptField `json:"script_fields,omitempty"` - SearchAfter []FieldValue `json:"search_after,omitempty"` - // SeqNoPrimaryTerm If true, returns sequence number and primary term of the last modification - // of each hit. See Optimistic concurrency control. + // SearchAfter Used to retrieve the next page of hits using a set of sort values from the + // previous page. + SearchAfter []FieldValue `json:"search_after,omitempty"` + // SeqNoPrimaryTerm If `true`, the request returns sequence number and primary term of the last + // modification of each hit. SeqNoPrimaryTerm *bool `json:"seq_no_primary_term,omitempty"` - // Size The number of hits to return. By default, you cannot page through more - // than 10,000 hits using the from and size parameters. To page through more - // hits, use the search_after parameter. - Size *int `json:"size,omitempty"` + // Size The number of hits to return, which must not be negative. + // By default, you cannot page through more than 10,000 hits using the `from` + // and `size` parameters. + // To page through more hits, use the `search_after` property. + Size *int `json:"size,omitempty"` + // Slice Split a scrolled search into multiple slices that can be consumed + // independently. + Slice *SlicedScroll `json:"slice,omitempty"` + // Sort A comma-separated list of : pairs. Sort []SortCombinations `json:"sort,omitempty"` - // Source_ Indicates which source fields are returned for matching documents. These - // fields are returned in the hits._source property of the search response. + // Source_ The source fields that are returned for matching documents. + // These fields are returned in the `hits._source` property of the search + // response. + // If the `stored_fields` property is specified, the `_source` property defaults + // to `false`. + // Otherwise, it defaults to `true`. Source_ SourceConfig `json:"_source,omitempty"` - // Stats Stats groups to associate with the search. Each group maintains a statistics - // aggregation for its associated searches. You can retrieve these stats using - // the indices stats API. + // Stats The stats groups to associate with the search. + // Each group maintains a statistics aggregation for its associated searches. + // You can retrieve these stats using the indices stats API. Stats []string `json:"stats,omitempty"` - // StoredFields 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. You can pass _source: true to return both source - // fields - // and stored fields in the search response. - StoredFields []string `json:"stored_fields,omitempty"` - Suggest *Suggester `json:"suggest,omitempty"` - // TerminateAfter Maximum number of documents to collect for each shard. If a query reaches - // this - // limit, Elasticsearch terminates the query early. Elasticsearch collects - // documents - // before sorting. Defaults to 0, which does not terminate query execution - // early. + // 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` property defaults to `false`. + // You can pass `_source: true` to return both source fields and stored fields + // in the search response. + StoredFields []string `json:"stored_fields,omitempty"` + // Suggest Defines a suggester that provides similar looking terms based on a provided + // text. + Suggest *Suggester `json:"suggest,omitempty"` + // TerminateAfter The maximum number of documents to collect for each shard. + // If a query reaches this limit, Elasticsearch terminates the query early. + // Elasticsearch collects documents before sorting. + // + // IMPORTANT: Use with caution. + // Elasticsearch applies this property to each shard handling the request. + // When possible, let Elasticsearch perform early termination automatically. + // Avoid specifying this property for requests that target data streams with + // backing indices across multiple data tiers. + // + // If set to `0` (default), the query does not terminate early. TerminateAfter *int64 `json:"terminate_after,omitempty"` - // Timeout Specifies the period of time to wait for a response from each shard. If no - // response - // is received before the timeout expires, the request fails and returns an - // error. + // Timeout The period of time to wait for a response from each shard. + // If no response is received before the timeout expires, the request fails and + // returns an error. // Defaults to no timeout. Timeout *string `json:"timeout,omitempty"` - // TrackScores If true, calculate and return document scores, even if the scores are not + // TrackScores If `true`, calculate and return document scores, even if the scores are not // used for sorting. TrackScores *bool `json:"track_scores,omitempty"` - // TrackTotalHits Number of hits matching the query to count accurately. If true, the exact - // number of hits is returned at the cost of some performance. If false, the - // response does not include the total number of hits matching the query. - // Defaults to 10,000 hits. + // TrackTotalHits Number of hits matching the query to count accurately. + // If `true`, the exact number of hits is returned at the cost of some + // performance. + // If `false`, the response does not include the total number of hits matching + // the query. TrackTotalHits TrackHits `json:"track_total_hits,omitempty"` - // Version If true, returns document version as part of a hit. + // Version If `true`, the request returns the document version as part of a hit. Version *bool `json:"version,omitempty"` } -func (s *MultisearchBody) UnmarshalJSON(data []byte) error { +func (s *SearchRequestBody) UnmarshalJSON(data []byte) error { dec := json.NewDecoder(bytes.NewReader(data)) @@ -268,6 +311,11 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Query", err) } + case "rank": + if err := dec.Decode(&s.Rank); err != nil { + return fmt.Errorf("%s | %w", "Rank", err) + } + case "rescore": rawMsg := json.RawMessage{} dec.Decode(&rawMsg) @@ -284,6 +332,11 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error { } } + case "retriever": + if err := dec.Decode(&s.Retriever); err != nil { + return fmt.Errorf("%s | %w", "Retriever", err) + } + case "runtime_mappings": if err := dec.Decode(&s.RuntimeMappings); err != nil { return fmt.Errorf("%s | %w", "RuntimeMappings", err) @@ -332,6 +385,11 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error { s.Size = &f } + case "slice": + if err := dec.Decode(&s.Slice); err != nil { + return fmt.Errorf("%s | %w", "Slice", err) + } + case "sort": rawMsg := json.RawMessage{} dec.Decode(&rawMsg) @@ -475,9 +533,9 @@ func (s *MultisearchBody) UnmarshalJSON(data []byte) error { return nil } -// NewMultisearchBody returns a MultisearchBody. -func NewMultisearchBody() *MultisearchBody { - r := &MultisearchBody{ +// NewSearchRequestBody returns a SearchRequestBody. +func NewSearchRequestBody() *SearchRequestBody { + r := &SearchRequestBody{ Aggregations: make(map[string]Aggregations), Ext: make(map[string]json.RawMessage), ScriptFields: make(map[string]ScriptField), @@ -488,10 +546,10 @@ func NewMultisearchBody() *MultisearchBody { // true -type MultisearchBodyVariant interface { - MultisearchBodyCaster() *MultisearchBody +type SearchRequestBodyVariant interface { + SearchRequestBodyCaster() *SearchRequestBody } -func (s *MultisearchBody) MultisearchBodyCaster() *MultisearchBody { +func (s *SearchRequestBody) SearchRequestBodyCaster() *SearchRequestBody { return s } diff --git a/typedapi/types/searchshardsnodeattributes.go b/typedapi/types/searchshardsnodeattributes.go index 3403d4c089..3fcf5f5789 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/noderole" ) // SearchShardsNodeAttributes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search_shards/SearchShardsResponse.ts#L42-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search_shards/SearchShardsResponse.ts#L42-L60 type SearchShardsNodeAttributes struct { // Attributes Lists node attributes. Attributes map[string]string `json:"attributes"` diff --git a/typedapi/types/searchstats.go b/typedapi/types/searchstats.go index 60ca7353a9..87daae68eb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SearchStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L255-L274 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L257-L276 type SearchStats struct { FetchCurrent int64 `json:"fetch_current"` FetchTime Duration `json:"fetch_time,omitempty"` diff --git a/typedapi/types/searchtemplaterequestbody.go b/typedapi/types/searchtemplaterequestbody.go index cffa1926b8..c4b749ecb9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SearchTemplateRequestBody type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L128-L145 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L128-L145 type SearchTemplateRequestBody struct { Explain *bool `json:"explain,omitempty"` // Id ID of the search template to use. If no source is specified, diff --git a/typedapi/types/searchtransform.go b/typedapi/types/searchtransform.go index 7d622ac9e1..ba0f69c6d6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SearchTransform type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Transform.ts#L46-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Transform.ts#L47-L50 type SearchTransform struct { Request SearchInputRequestDefinition `json:"request"` Timeout Duration `json:"timeout"` diff --git a/typedapi/types/security.go b/typedapi/types/security.go index cd94fc060e..4e7fe34689 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Security type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L440-L453 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L440-L453 type Security struct { Anonymous FeatureToggle `json:"anonymous"` ApiKeyService FeatureToggle `json:"api_key_service"` diff --git a/typedapi/types/securityrolemapping.go b/typedapi/types/securityrolemapping.go index b80de3040f..c144445ea1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SecurityRoleMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/RoleMapping.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/RoleMapping.ts#L25-L33 type SecurityRoleMapping struct { Enabled bool `json:"enabled"` Metadata Metadata `json:"metadata"` diff --git a/typedapi/types/securityroles.go b/typedapi/types/securityroles.go index 1ff130da59..bae8a8a280 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SecurityRoles type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L306-L310 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L306-L310 type SecurityRoles struct { Dls SecurityRolesDls `json:"dls"` File SecurityRolesFile `json:"file"` diff --git a/typedapi/types/securityrolesdls.go b/typedapi/types/securityrolesdls.go index 05ed52dcb8..1b6cb107ec 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SecurityRolesDls type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L318-L320 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L318-L320 type SecurityRolesDls struct { BitSetCache SecurityRolesDlsBitSetCache `json:"bit_set_cache"` } diff --git a/typedapi/types/securityrolesdlsbitsetcache.go b/typedapi/types/securityrolesdlsbitsetcache.go index d41e97a674..0fe4888df8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesDlsBitSetCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L322-L326 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L322-L326 type SecurityRolesDlsBitSetCache struct { Count int `json:"count"` Memory ByteSize `json:"memory,omitempty"` diff --git a/typedapi/types/securityrolesfile.go b/typedapi/types/securityrolesfile.go index 47986c85af..21c066c2db 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesFile type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L328-L332 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L328-L332 type SecurityRolesFile struct { Dls bool `json:"dls"` Fls bool `json:"fls"` diff --git a/typedapi/types/securityrolesnative.go b/typedapi/types/securityrolesnative.go index 5069a160f1..0eb6e8cb32 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SecurityRolesNative type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L312-L316 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L312-L316 type SecurityRolesNative struct { Dls bool `json:"dls"` Fls bool `json:"fls"` diff --git a/typedapi/types/securitysettings.go b/typedapi/types/securitysettings.go index ca7b9411bb..97210ae5b0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SecuritySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/SecuritySettings.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/SecuritySettings.ts#L22-L24 type SecuritySettings struct { Index *IndexSettings `json:"index,omitempty"` } diff --git a/typedapi/types/segment.go b/typedapi/types/segment.go index ad789ae92b..2a8da1ef61 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Segment type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/segments/types.ts#L28-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/segments/types.ts#L28-L38 type Segment struct { Attributes map[string]string `json:"attributes"` Committed bool `json:"committed"` diff --git a/typedapi/types/segmentsrecord.go b/typedapi/types/segmentsrecord.go index 6cbb688b27..7e2a71874c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SegmentsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/segments/types.ts#L22-L107 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/segments/types.ts#L22-L107 type SegmentsRecord struct { // Committed If `true`, the segment is synced to disk. // Segments that are synced can survive a hard reboot. diff --git a/typedapi/types/segmentsstats.go b/typedapi/types/segmentsstats.go index bfdfe788d4..37b5de88df 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SegmentsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L276-L369 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L278-L371 type SegmentsStats struct { // Count Total number of segments across all shards assigned to selected nodes. Count int `json:"count"` diff --git a/typedapi/types/selectoption.go b/typedapi/types/selectoption.go index 6fb739b62c..d1f5e2a2fe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SelectOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L25-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L25-L28 type SelectOption struct { Label string `json:"label"` Value ScalarValue `json:"value"` diff --git a/typedapi/types/semanticquery.go b/typedapi/types/semanticquery.go index b619b8259b..472a0c866c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SemanticQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/SemanticQuery.ts#L22-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/SemanticQuery.ts#L22-L30 type SemanticQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/semantictextproperty.go b/typedapi/types/semantictextproperty.go index eafdc45ac8..5d56e5bc7e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SemanticTextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L210-L226 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L219-L235 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 diff --git a/typedapi/types/serbiananalyzer.go b/typedapi/types/serbiananalyzer.go index 4953f23044..2b9666bb30 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SerbianAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L282-L287 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L282-L287 type SerbianAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/serialdifferencingaggregation.go b/typedapi/types/serialdifferencingaggregation.go index d7eb91fb01..0174234a93 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // SerialDifferencingAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L399-L408 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L399-L408 type SerialDifferencingAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/serializedclusterstate.go b/typedapi/types/serializedclusterstate.go index 72e7570060..0f8e8dd884 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SerializedClusterState type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L232-L238 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L232-L238 type SerializedClusterState struct { Diffs *SerializedClusterStateDetail `json:"diffs,omitempty"` // FullStates Number of published cluster states. diff --git a/typedapi/types/serializedclusterstatedetail.go b/typedapi/types/serializedclusterstatedetail.go index 74f3211e4b..f65d41ad0e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SerializedClusterStateDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L240-L246 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L240-L246 type SerializedClusterStateDetail struct { CompressedSize *string `json:"compressed_size,omitempty"` CompressedSizeInBytes *int64 `json:"compressed_size_in_bytes,omitempty"` diff --git a/typedapi/types/servicetoken.go b/typedapi/types/servicetoken.go index 446129c308..ceb954e417 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ServiceToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/create_service_token/types.ts#L22-L25 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/create_service_token/types.ts#L22-L25 type ServiceToken struct { Name string `json:"name"` Value string `json:"value"` diff --git a/typedapi/types/setpriorityaction.go b/typedapi/types/setpriorityaction.go index 371f527458..7ff4c8da61 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SetPriorityAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L95-L97 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L95-L97 type SetPriorityAction struct { Priority *int `json:"priority,omitempty"` } diff --git a/typedapi/types/setprocessor.go b/typedapi/types/setprocessor.go index 3ca1bcfb90..b768f597d6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SetProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1427-L1461 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Processors.ts#L1445-L1479 type SetProcessor struct { // CopyFrom The origin field which will be copied to `field`, cannot set `value` // simultaneously. diff --git a/typedapi/types/setsecurityuserprocessor.go b/typedapi/types/setsecurityuserprocessor.go index bcb43a6502..1ccd200558 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SetSecurityUserProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1463-L1472 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/settings.go b/typedapi/types/settings.go index f14f549da9..39c3446f52 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Settings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/_types/Transform.ts#L98-L144 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/_types/Transform.ts#L98-L144 type Settings struct { // AlignCheckpoints Specifies whether the transform checkpoint ranges should be optimized for // performance. Such optimization can align diff --git a/typedapi/types/settingsanalyze.go b/typedapi/types/settingsanalyze.go index a0b8b23d5e..cf78b5c5bd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SettingsAnalyze type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L243-L246 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L243-L246 type SettingsAnalyze struct { MaxTokenCount Stringifiedinteger `json:"max_token_count,omitempty"` } diff --git a/typedapi/types/settingshighlight.go b/typedapi/types/settingshighlight.go index 05d01fe5ed..07f5131264 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SettingsHighlight type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L238-L241 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L238-L241 type SettingsHighlight struct { MaxAnalyzedOffset *int `json:"max_analyzed_offset,omitempty"` } diff --git a/typedapi/types/settingsquerystring.go b/typedapi/types/settingsquerystring.go index 9d2e086453..0a80f45fd0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SettingsQueryString type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L258-L260 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L258-L260 type SettingsQueryString struct { Lenient Stringifiedboolean `json:"lenient"` } diff --git a/typedapi/types/settingssearch.go b/typedapi/types/settingssearch.go index 005b871f4d..b9033356b1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SettingsSearch type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L248-L251 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L248-L251 type SettingsSearch struct { Idle *SearchIdle `json:"idle,omitempty"` Slowlog *SlowlogSettings `json:"slowlog,omitempty"` diff --git a/typedapi/types/settingssimilarity.go b/typedapi/types/settingssimilarity.go index fa722a7ebb..29f686e66e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ package types // SettingsSimilarityLmj // SettingsSimilarityScripted // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L178-L190 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L178-L190 type SettingsSimilarity any type SettingsSimilarityVariant interface { diff --git a/typedapi/types/settingssimilaritybm25.go b/typedapi/types/settingssimilaritybm25.go index bb99f0010d..ddfd0e9804 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityBm25 type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L196-L201 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L196-L201 type SettingsSimilarityBm25 struct { B *Float64 `json:"b,omitempty"` DiscountOverlaps *bool `json:"discount_overlaps,omitempty"` diff --git a/typedapi/types/settingssimilarityboolean.go b/typedapi/types/settingssimilarityboolean.go index 4acbe40bcc..2e791d7b4f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // SettingsSimilarityBoolean type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L192-L194 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L192-L194 type SettingsSimilarityBoolean struct { Type string `json:"type,omitempty"` } diff --git a/typedapi/types/settingssimilaritydfi.go b/typedapi/types/settingssimilaritydfi.go index a79deb7c13..d9462d64f3 100644 --- a/typedapi/types/settingssimilaritydfi.go +++ b/typedapi/types/settingssimilaritydfi.go @@ -16,19 +16,19 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfiindependencemeasure" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dfiindependencemeasure" ) // SettingsSimilarityDfi type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L203-L206 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L203-L206 type SettingsSimilarityDfi struct { IndependenceMeasure dfiindependencemeasure.DFIIndependenceMeasure `json:"independence_measure"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/settingssimilaritydfr.go b/typedapi/types/settingssimilaritydfr.go index 72ac6b0d74..143ee2e0aa 100644 --- a/typedapi/types/settingssimilaritydfr.go +++ b/typedapi/types/settingssimilaritydfr.go @@ -16,21 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfraftereffect" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dfrbasicmodel" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalization" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dfraftereffect" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dfrbasicmodel" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/normalization" ) // SettingsSimilarityDfr type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L208-L213 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L208-L213 type SettingsSimilarityDfr struct { AfterEffect dfraftereffect.DFRAfterEffect `json:"after_effect"` BasicModel dfrbasicmodel.DFRBasicModel `json:"basic_model"` diff --git a/typedapi/types/settingssimilarityib.go b/typedapi/types/settingssimilarityib.go index 6e4dc924d4..c204cf0837 100644 --- a/typedapi/types/settingssimilarityib.go +++ b/typedapi/types/settingssimilarityib.go @@ -16,21 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( "encoding/json" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ibdistribution" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/iblambda" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/normalization" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ibdistribution" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/iblambda" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/normalization" ) // SettingsSimilarityIb type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L215-L220 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L215-L220 type SettingsSimilarityIb struct { Distribution ibdistribution.IBDistribution `json:"distribution"` Lambda iblambda.IBLambda `json:"lambda"` diff --git a/typedapi/types/settingssimilaritylmd.go b/typedapi/types/settingssimilaritylmd.go index 6e9b693acb..6976c3f07a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityLmd type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L222-L225 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L222-L225 type SettingsSimilarityLmd struct { Mu *Float64 `json:"mu,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/settingssimilaritylmj.go b/typedapi/types/settingssimilaritylmj.go index 0a419c3c56..9e0c1774ff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SettingsSimilarityLmj type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L227-L230 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L227-L230 type SettingsSimilarityLmj struct { Lambda *Float64 `json:"lambda,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/settingssimilarityscripted.go b/typedapi/types/settingssimilarityscripted.go index 19af0cb680..329f64c457 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ import ( // SettingsSimilarityScripted type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L232-L236 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L232-L236 type SettingsSimilarityScripted struct { Script Script `json:"script"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/shapefieldquery.go b/typedapi/types/shapefieldquery.go index fdec5bbdaf..943233ba26 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoshaperelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geoshaperelation" ) // ShapeFieldQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L383-L396 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L383-L396 type ShapeFieldQuery struct { // IndexedShape Queries using a pre-indexed shape. IndexedShape *FieldLookup `json:"indexed_shape,omitempty"` diff --git a/typedapi/types/shapeproperty.go b/typedapi/types/shapeproperty.go index bd99a9e59c..69378d7eab 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/geoorientation" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/geoorientation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // ShapeProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/geo.ts#L74-L86 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/geo.ts#L74-L86 type ShapeProperty struct { Coerce *bool `json:"coerce,omitempty"` CopyTo []string `json:"copy_to,omitempty"` diff --git a/typedapi/types/shapequery.go b/typedapi/types/shapequery.go index 0d3638c69c..230021087b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShapeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L367-L381 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L367-L381 type ShapeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/shardcommit.go b/typedapi/types/shardcommit.go index 2ba9b54f25..809fd5c38e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardCommit type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L112-L117 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L112-L117 type ShardCommit struct { Generation int `json:"generation"` Id string `json:"id"` diff --git a/typedapi/types/shardfailure.go b/typedapi/types/shardfailure.go index 996083247e..c1014da640 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Errors.ts#L52-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Errors.ts#L52-L58 type ShardFailure struct { Index *string `json:"index,omitempty"` Node *string `json:"node,omitempty"` diff --git a/typedapi/types/shardfilesizeinfo.go b/typedapi/types/shardfilesizeinfo.go index 7e3d369f7b..482c04cb7a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardFileSizeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L124-L131 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L124-L131 type ShardFileSizeInfo struct { AverageSizeInBytes *int64 `json:"average_size_in_bytes,omitempty"` Count *int64 `json:"count,omitempty"` diff --git a/typedapi/types/shardhealthstats.go b/typedapi/types/shardhealthstats.go index e0a8318c2c..8db06b4f2f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/healthstatus" ) // ShardHealthStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/health/types.ts#L37-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/health/types.ts#L37-L45 type ShardHealthStats struct { ActiveShards int `json:"active_shards"` InitializingShards int `json:"initializing_shards"` diff --git a/typedapi/types/shardlease.go b/typedapi/types/shardlease.go index 0c79140b7e..d91efa9cf4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardLease type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L133-L138 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L133-L138 type ShardLease struct { Id string `json:"id"` RetainingSeqNo int64 `json:"retaining_seq_no"` diff --git a/typedapi/types/shardmigrationstatus.go b/typedapi/types/shardmigrationstatus.go index ffc79c88bd..5a5a962bbb 100644 --- a/typedapi/types/shardmigrationstatus.go +++ b/typedapi/types/shardmigrationstatus.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shutdownstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shutdownstatus" ) // ShardMigrationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/shutdown/get_node/ShutdownGetNodeResponse.ts#L52-L54 type ShardMigrationStatus struct { Status shutdownstatus.ShutdownStatus `json:"status"` } diff --git a/typedapi/types/shardpath.go b/typedapi/types/shardpath.go index 93d2150742..a4ea6a1ac5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardPath type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L140-L144 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L140-L144 type ShardPath struct { DataPath string `json:"data_path"` IsCustomDataPath bool `json:"is_custom_data_path"` diff --git a/typedapi/types/shardprofile.go b/typedapi/types/shardprofile.go index 6635e2ab2b..10e29f62e8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/profile.ts#L142-L152 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/profile.ts#L142-L152 type ShardProfile struct { Aggregations []AggregationProfile `json:"aggregations"` Cluster string `json:"cluster"` diff --git a/typedapi/types/shardquerycache.go b/typedapi/types/shardquerycache.go index 10160645d5..058ebcb7bf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardQueryCache type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L146-L154 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L146-L154 type ShardQueryCache struct { CacheCount int64 `json:"cache_count"` CacheSize int64 `json:"cache_size"` diff --git a/typedapi/types/shardrecovery.go b/typedapi/types/shardrecovery.go index 89950a973f..181b7633b3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardRecovery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/recovery/types.ts#L118-L135 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/recovery/types.ts#L118-L135 type ShardRecovery struct { Id int64 `json:"id"` Index RecoveryIndexStatus `json:"index"` diff --git a/typedapi/types/shardretentionleases.go b/typedapi/types/shardretentionleases.go index 88ed222cb0..75e358280c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardRetentionLeases type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L156-L160 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L156-L160 type ShardRetentionLeases struct { Leases []ShardLease `json:"leases"` PrimaryTerm int64 `json:"primary_term"` diff --git a/typedapi/types/shardrouting.go b/typedapi/types/shardrouting.go index a6acca1e65..05e1d61cb6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardroutingstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shardroutingstate" ) // ShardRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L162-L167 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L162-L167 type ShardRouting struct { Node string `json:"node"` Primary bool `json:"primary"` diff --git a/typedapi/types/shardsavailabilityindicator.go b/typedapi/types/shardsavailabilityindicator.go index 3b589fb3f1..c7ef46aa7d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indicatorhealthstatus" ) // ShardsAvailabilityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L106-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L106-L110 type ShardsAvailabilityIndicator struct { Details *ShardsAvailabilityIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/shardsavailabilityindicatordetails.go b/typedapi/types/shardsavailabilityindicatordetails.go index e67c18f196..6b9fb90688 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardsAvailabilityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L111-L122 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L111-L122 type ShardsAvailabilityIndicatorDetails struct { CreatingPrimaries int64 `json:"creating_primaries"` CreatingReplicas int64 `json:"creating_replicas"` diff --git a/typedapi/types/shardscapacityindicator.go b/typedapi/types/shardscapacityindicator.go index e8f39c4832..b28843ff65 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indicatorhealthstatus" ) // ShardsCapacityIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L191-L195 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L191-L195 type ShardsCapacityIndicator struct { Details *ShardsCapacityIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/shardscapacityindicatordetails.go b/typedapi/types/shardscapacityindicatordetails.go index 2349f15d11..04b2fb0c33 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ShardsCapacityIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L197-L200 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L197-L200 type ShardsCapacityIndicatorDetails struct { Data ShardsCapacityIndicatorTierDetail `json:"data"` Frozen ShardsCapacityIndicatorTierDetail `json:"frozen"` diff --git a/typedapi/types/shardscapacityindicatortierdetail.go b/typedapi/types/shardscapacityindicatortierdetail.go index ff662cefc0..b91a87bb08 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardsCapacityIndicatorTierDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L202-L205 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L202-L205 type ShardsCapacityIndicatorTierDetail struct { CurrentUsedShards *int `json:"current_used_shards,omitempty"` MaxShardsInCluster int `json:"max_shards_in_cluster"` diff --git a/typedapi/types/shardsegmentrouting.go b/typedapi/types/shardsegmentrouting.go index 41562d6e9e..d52be0fc7a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardSegmentRouting type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/segments/types.ts#L40-L44 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/segments/types.ts#L40-L44 type ShardSegmentRouting struct { Node string `json:"node"` Primary bool `json:"primary"` diff --git a/typedapi/types/shardsequencenumber.go b/typedapi/types/shardsequencenumber.go index 4690e51127..e2a51900d3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardSequenceNumber type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L176-L180 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L176-L180 type ShardSequenceNumber struct { GlobalCheckpoint int64 `json:"global_checkpoint"` LocalCheckpoint int64 `json:"local_checkpoint"` diff --git a/typedapi/types/shardsrecord.go b/typedapi/types/shardsrecord.go index ff60a6abfe..97cfa263b3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/shards/types.ts#L20-L427 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/shards/types.ts#L20-L427 type ShardsRecord struct { // BulkAvgSizeInBytes The average size in bytes of shard bulk operations. BulkAvgSizeInBytes *string `json:"bulk.avg_size_in_bytes,omitempty"` diff --git a/typedapi/types/shardssegment.go b/typedapi/types/shardssegment.go index 11cfbad464..19de0b2fec 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardsSegment type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/segments/types.ts#L46-L51 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/segments/types.ts#L46-L51 type ShardsSegment struct { NumCommittedSegments int `json:"num_committed_segments"` NumSearchSegments int `json:"num_search_segments"` diff --git a/typedapi/types/shardsstatssummary.go b/typedapi/types/shardsstatssummary.go index 74fdb80d7c..820534867d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ShardsStatsSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotShardsStatus.ts#L29-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotShardsStatus.ts#L29-L35 type ShardsStatsSummary struct { Incremental ShardsStatsSummaryItem `json:"incremental"` StartTimeInMillis int64 `json:"start_time_in_millis"` diff --git a/typedapi/types/shardsstatssummaryitem.go b/typedapi/types/shardsstatssummaryitem.go index 694a761642..302932382b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardsStatsSummaryItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotShardsStatus.ts#L37-L40 type ShardsStatsSummaryItem struct { FileCount int64 `json:"file_count"` SizeInBytes int64 `json:"size_in_bytes"` diff --git a/typedapi/types/shardstatistics.go b/typedapi/types/shardstatistics.go index aa18d25409..c2f34acf93 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ShardStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L54-L69 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L54-L69 type ShardStatistics struct { // Failed The number of shards the operation or search attempted to run on but failed. Failed uint `json:"failed"` diff --git a/typedapi/types/shardstore.go b/typedapi/types/shardstore.go index 944db0177e..280014f8c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardstoreallocation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shardstoreallocation" ) // ShardStore type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/shard_stores/types.ts#L29-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/shard_stores/types.ts#L29-L36 type ShardStore struct { Allocation shardstoreallocation.ShardStoreAllocation `json:"allocation"` AllocationId *string `json:"allocation_id,omitempty"` diff --git a/typedapi/types/shardstoreexception.go b/typedapi/types/shardstoreexception.go index 365c954f3a..158d494e1b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardStoreException type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/shard_stores/types.ts#L53-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/shard_stores/types.ts#L53-L56 type ShardStoreException struct { Reason string `json:"reason"` Type string `json:"type"` diff --git a/typedapi/types/shardstoreindex.go b/typedapi/types/shardstoreindex.go index 15fd14faf6..00a48eac0c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ShardStoreIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search_shards/SearchShardsResponse.ts#L62-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search_shards/SearchShardsResponse.ts#L62-L65 type ShardStoreIndex struct { Aliases []string `json:"aliases,omitempty"` Filter *Query `json:"filter,omitempty"` diff --git a/typedapi/types/shardstorenode.go b/typedapi/types/shardstorenode.go index ad906d9ba8..ee61a0c0a9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardStoreNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/shard_stores/types.ts#L38-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/shard_stores/types.ts#L38-L45 type ShardStoreNode struct { Attributes map[string]string `json:"attributes"` EphemeralId *string `json:"ephemeral_id,omitempty"` diff --git a/typedapi/types/shardstorewrapper.go b/typedapi/types/shardstorewrapper.go index 8121d9a3b4..d778a6600a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // ShardStoreWrapper type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/shard_stores/types.ts#L58-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/shard_stores/types.ts#L58-L60 type ShardStoreWrapper struct { Stores []ShardStore `json:"stores"` } diff --git a/typedapi/types/shardstotalstats.go b/typedapi/types/shardstotalstats.go index 5b172c28f5..e42f650d6a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShardsTotalStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/stats/types.ts#L182-L184 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/stats/types.ts#L182-L184 type ShardsTotalStats struct { TotalCount int64 `json:"total_count"` } diff --git a/typedapi/types/shared.go b/typedapi/types/shared.go index a4de0cce0c..1137a44e3c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Shared type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/searchable_snapshots/cache_stats/Response.ts#L34-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/searchable_snapshots/cache_stats/Response.ts#L34-L43 type Shared struct { BytesReadInBytes ByteSize `json:"bytes_read_in_bytes"` BytesWrittenInBytes ByteSize `json:"bytes_written_in_bytes"` diff --git a/typedapi/types/sharedfilesystemrepository.go b/typedapi/types/sharedfilesystemrepository.go index 8cd30dc97c..4770a9f2a5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SharedFileSystemRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L80-L90 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotRepository.ts#L80-L90 type SharedFileSystemRepository struct { // Settings The repository settings. Settings SharedFileSystemRepositorySettings `json:"settings"` diff --git a/typedapi/types/sharedfilesystemrepositorysettings.go b/typedapi/types/sharedfilesystemrepositorysettings.go index ada38b74c7..696dffd684 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SharedFileSystemRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L348-L375 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/shingletokenfilter.go b/typedapi/types/shingletokenfilter.go index b5660beca4..6585b47329 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShingleTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L86-L94 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L86-L94 type ShingleTokenFilter struct { FillerToken *string `json:"filler_token,omitempty"` MaxShingleSize string `json:"max_shingle_size,omitempty"` diff --git a/typedapi/types/shortnumberproperty.go b/typedapi/types/shortnumberproperty.go index 1bca7acd59..c4a59eddb5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // ShortNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L171-L174 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L180-L183 type ShortNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/shrinkaction.go b/typedapi/types/shrinkaction.go index 7bc91774db..2c1c7a1a24 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ShrinkAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L117-L121 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L117-L121 type ShrinkAction struct { AllowWriteAfterShrink *bool `json:"allow_write_after_shrink,omitempty"` MaxPrimaryShardSize ByteSize `json:"max_primary_shard_size,omitempty"` diff --git a/typedapi/types/significantlongtermsaggregate.go b/typedapi/types/significantlongtermsaggregate.go index aff5392914..d6aee4b642 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SignificantLongTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L668-L670 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L668-L670 type SignificantLongTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsSignificantLongTermsBucket `json:"buckets"` diff --git a/typedapi/types/significantlongtermsbucket.go b/typedapi/types/significantlongtermsbucket.go index 7c55b442e0..1292fb3d72 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // SignificantLongTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L677-L680 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L677-L680 type SignificantLongTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` BgCount int64 `json:"bg_count"` diff --git a/typedapi/types/significantstringtermsaggregate.go b/typedapi/types/significantstringtermsaggregate.go index a7039ce785..350b484174 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SignificantStringTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L682-L684 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L682-L684 type SignificantStringTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsSignificantStringTermsBucket `json:"buckets"` diff --git a/typedapi/types/significantstringtermsbucket.go b/typedapi/types/significantstringtermsbucket.go index b24362e432..c2a734ff9d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // SignificantStringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L686-L688 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L686-L688 type SignificantStringTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` BgCount int64 `json:"bg_count"` diff --git a/typedapi/types/significanttermsaggregation.go b/typedapi/types/significanttermsaggregation.go index e7b0b7dc02..cd71da9864 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationexecutionhint" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termsaggregationexecutionhint" ) // SignificantTermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L817-L884 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L817-L884 type SignificantTermsAggregation struct { // BackgroundFilter A background filter that can be used to focus in on significant terms within // a narrower context, instead of the entire index. diff --git a/typedapi/types/significanttextaggregation.go b/typedapi/types/significanttextaggregation.go index 44c5c8d986..d51012b3a3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationexecutionhint" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termsaggregationexecutionhint" ) // SignificantTextAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L886-L961 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L886-L961 type SignificantTextAggregation struct { // BackgroundFilter A background filter that can be used to focus in on significant terms within // a narrower context, instead of the entire index. diff --git a/typedapi/types/simpleanalyzer.go b/typedapi/types/simpleanalyzer.go index efc3f0e0d1..26585d95ce 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SimpleAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L367-L371 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L367-L371 type SimpleAnalyzer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/simplemovingaverageaggregation.go b/typedapi/types/simplemovingaverageaggregation.go index 1663f327e7..48e900cdd7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // SimpleMovingAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L273-L276 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L273-L276 type SimpleMovingAverageAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/simplepatternsplittokenizer.go b/typedapi/types/simplepatternsplittokenizer.go index ebfb99da1b..cfed874f56 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SimplePatternSplitTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L116-L119 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L116-L119 type SimplePatternSplitTokenizer struct { Pattern *string `json:"pattern,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/simplepatterntokenizer.go b/typedapi/types/simplepatterntokenizer.go index 83dbb92bf5..3e81cfcd72 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SimplePatternTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L111-L114 type SimplePatternTokenizer struct { Pattern *string `json:"pattern,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/simplequerystringflags.go b/typedapi/types/simplequerystringflags.go index 1316cc8989..0544d55490 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SimpleQueryStringFlags type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L723-L727 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L723-L727 type SimpleQueryStringFlags PipeSeparatedFlagsSimpleQueryStringFlag type SimpleQueryStringFlagsVariant interface { diff --git a/typedapi/types/simplequerystringquery.go b/typedapi/types/simplequerystringquery.go index e5b88c0fb5..ab7ce6c86c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/operator" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/operator" ) // SimpleQueryStringQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/fulltext.ts#L786-L854 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/fulltext.ts#L786-L854 type SimpleQueryStringQuery struct { // AnalyzeWildcard If `true`, the query attempts to analyze wildcard terms in the query string. AnalyzeWildcard *bool `json:"analyze_wildcard,omitempty"` diff --git a/typedapi/types/simplevalueaggregate.go b/typedapi/types/simplevalueaggregate.go index d8cc8144d0..588d34fff0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SimpleValueAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L238-L239 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L238-L239 type SimpleValueAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/simulatedactions.go b/typedapi/types/simulatedactions.go index d4d2a2cf25..97d841f278 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SimulatedActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Action.ts#L90-L94 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Action.ts#L90-L94 type SimulatedActions struct { Actions []string `json:"actions"` All *SimulatedActions `json:"all,omitempty"` diff --git a/typedapi/types/simulatedocumentresult.go b/typedapi/types/simulatedocumentresult.go index 2fa6820021..c4b97be417 100644 --- a/typedapi/types/simulatedocumentresult.go +++ b/typedapi/types/simulatedocumentresult.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SimulateDocumentResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Simulation.ts#L46-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Simulation.ts#L46-L50 type SimulateDocumentResult struct { Doc *DocumentSimulation `json:"doc,omitempty"` Error *ErrorCause `json:"error,omitempty"` diff --git a/typedapi/types/simulateingestdocumentresult.go b/typedapi/types/simulateingestdocumentresult.go index 79f5b78608..aa3d082dba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SimulateIngestDocumentResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/simulate/ingest/SimulateIngestResponse.ts#L31-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/simulate/ingest/SimulateIngestResponse.ts#L31-L33 type SimulateIngestDocumentResult struct { Doc *IngestDocumentSimulation `json:"doc,omitempty"` } diff --git a/typedapi/types/sizefield.go b/typedapi/types/sizefield.go index 4c91ce5177..c73b24d0c4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SizeField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/meta-fields.ts#L54-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/meta-fields.ts#L54-L56 type SizeField struct { Enabled bool `json:"enabled"` } diff --git a/typedapi/types/sizehttphistogram.go b/typedapi/types/sizehttphistogram.go index b2856f6aa8..11d90485bd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SizeHttpHistogram type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L714-L718 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L714-L718 type SizeHttpHistogram struct { Count int64 `json:"count"` GeBytes *int64 `json:"ge_bytes,omitempty"` diff --git a/typedapi/types/slackaction.go b/typedapi/types/slackaction.go index 1cbdb24fdf..9865bb2ee1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SlackAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L91-L94 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L91-L94 type SlackAction struct { Account *string `json:"account,omitempty"` Message SlackMessage `json:"message"` diff --git a/typedapi/types/slackattachment.go b/typedapi/types/slackattachment.go index bc62f66aeb..4b59b4ac1d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SlackAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L101-L117 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L101-L117 type SlackAttachment struct { AuthorIcon *string `json:"author_icon,omitempty"` AuthorLink *string `json:"author_link,omitempty"` diff --git a/typedapi/types/slackattachmentfield.go b/typedapi/types/slackattachmentfield.go index e9a3bb3c56..ff5888ad7e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SlackAttachmentField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L119-L123 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L119-L123 type SlackAttachmentField struct { Int bool `json:"short"` Title string `json:"title"` diff --git a/typedapi/types/slackdynamicattachment.go b/typedapi/types/slackdynamicattachment.go index b0fe489516..506e517177 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SlackDynamicAttachment type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L125-L128 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L125-L128 type SlackDynamicAttachment struct { AttachmentTemplate SlackAttachment `json:"attachment_template"` ListPath string `json:"list_path"` diff --git a/typedapi/types/slackmessage.go b/typedapi/types/slackmessage.go index ee07776f1d..9c461f977a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SlackMessage type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L130-L137 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L130-L137 type SlackMessage struct { Attachments []SlackAttachment `json:"attachments"` DynamicAttachments *SlackDynamicAttachment `json:"dynamic_attachments,omitempty"` diff --git a/typedapi/types/slackresult.go b/typedapi/types/slackresult.go index a1f6fc617f..5c9164ae93 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SlackResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L96-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L96-L99 type SlackResult struct { Account *string `json:"account,omitempty"` Message SlackMessage `json:"message"` diff --git a/typedapi/types/slicedscroll.go b/typedapi/types/slicedscroll.go index 08763a4b7f..f7c2e24391 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SlicedScroll type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/SlicedScroll.ts#L23-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/SlicedScroll.ts#L23-L27 type SlicedScroll struct { Field *string `json:"field,omitempty"` Id string `json:"id"` diff --git a/typedapi/types/slices.go b/typedapi/types/slices.go index b4c6c3f03b..9830d79990 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // int // slicescalculation.SlicesCalculation // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L361-L366 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L361-L366 type Slices any diff --git a/typedapi/types/slm.go b/typedapi/types/slm.go index 5fa4d39280..2ff8671e27 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Slm type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L455-L458 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L455-L458 type Slm struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/slmindicator.go b/typedapi/types/slmindicator.go index faf75d696b..c5103a70e6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indicatorhealthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indicatorhealthstatus" ) // SlmIndicator type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L175-L179 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L175-L179 type SlmIndicator struct { Details *SlmIndicatorDetails `json:"details,omitempty"` Diagnosis []Diagnosis `json:"diagnosis,omitempty"` diff --git a/typedapi/types/slmindicatordetails.go b/typedapi/types/slmindicatordetails.go index 0a6c8e4caf..70be505cc7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/lifecycleoperationmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/lifecycleoperationmode" ) // SlmIndicatorDetails type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L180-L184 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L180-L184 type SlmIndicatorDetails struct { Policies int64 `json:"policies"` SlmStatus lifecycleoperationmode.LifecycleOperationMode `json:"slm_status"` diff --git a/typedapi/types/slmindicatorunhealthypolicies.go b/typedapi/types/slmindicatorunhealthypolicies.go index 1c7805232b..be8a450c12 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SlmIndicatorUnhealthyPolicies type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L186-L189 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L186-L189 type SlmIndicatorUnhealthyPolicies struct { Count int64 `json:"count"` InvocationsSinceLastSuccess map[string]int64 `json:"invocations_since_last_success,omitempty"` diff --git a/typedapi/types/slmpolicy.go b/typedapi/types/slmpolicy.go index 6d736480f2..797786fb7a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SLMPolicy type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/_types/SnapshotLifecycle.ts#L86-L92 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/slm/_types/SnapshotLifecycle.ts#L86-L92 type SLMPolicy struct { Config *Configuration `json:"config,omitempty"` Name string `json:"name"` diff --git a/typedapi/types/slowlogsettings.go b/typedapi/types/slowlogsettings.go index 11d4f1fa75..d5209a9050 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SlowlogSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L515-L520 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L515-L520 type SlowlogSettings struct { Level *string `json:"level,omitempty"` Reformat *bool `json:"reformat,omitempty"` diff --git a/typedapi/types/slowlogtresholdlevels.go b/typedapi/types/slowlogtresholdlevels.go index 31dbdcdde9..abda65302b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SlowlogTresholdLevels type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L527-L532 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L527-L532 type SlowlogTresholdLevels struct { Debug Duration `json:"debug,omitempty"` Info Duration `json:"info,omitempty"` diff --git a/typedapi/types/slowlogtresholds.go b/typedapi/types/slowlogtresholds.go index 95af21c5cd..5684bdc7e3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SlowlogTresholds type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L522-L525 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L522-L525 type SlowlogTresholds struct { Fetch *SlowlogTresholdLevels `json:"fetch,omitempty"` Query *SlowlogTresholdLevels `json:"query,omitempty"` diff --git a/typedapi/types/smoothingmodelcontainer.go b/typedapi/types/smoothingmodelcontainer.go index 95ca8aa8f1..f06abce183 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // SmoothingModelContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L445-L461 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 diff --git a/typedapi/types/snapshotindexstats.go b/typedapi/types/snapshotindexstats.go index af14610702..19ec34bbec 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SnapshotIndexStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotIndexStats.ts#L25-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotIndexStats.ts#L25-L29 type SnapshotIndexStats struct { Shards map[string]SnapshotShardsStatus `json:"shards"` ShardsStats SnapshotShardsStats `json:"shards_stats"` diff --git a/typedapi/types/snapshotinfo.go b/typedapi/types/snapshotinfo.go index 25b1ef5d36..344a81cd4c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SnapshotInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotInfo.ts#L41-L71 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotInfo.ts#L41-L71 type SnapshotInfo struct { DataStreams []string `json:"data_streams"` Duration Duration `json:"duration,omitempty"` diff --git a/typedapi/types/snapshotlifecycle.go b/typedapi/types/snapshotlifecycle.go index d295e1b683..b398041b10 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SnapshotLifecycle type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/_types/SnapshotLifecycle.ts#L38-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/slm/_types/SnapshotLifecycle.ts#L38-L59 type SnapshotLifecycle struct { InProgress *InProgress `json:"in_progress,omitempty"` LastFailure *Invocation `json:"last_failure,omitempty"` diff --git a/typedapi/types/snapshotnodeinfo.go b/typedapi/types/snapshotnodeinfo.go index 2ed22462e2..9f36ae05cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SnapshotNodeInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L110-L113 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L110-L113 type SnapshotNodeInfo struct { Id string `json:"id"` Name string `json:"name"` diff --git a/typedapi/types/snapshotresponseitem.go b/typedapi/types/snapshotresponseitem.go index 73c18857ab..20cea4f88e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SnapshotResponseItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/get/SnapshotGetResponse.ts#L49-L53 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/get/SnapshotGetResponse.ts#L49-L53 type SnapshotResponseItem struct { Error *ErrorCause `json:"error,omitempty"` Repository string `json:"repository"` diff --git a/typedapi/types/snapshotrestore.go b/typedapi/types/snapshotrestore.go index 17813c9385..1199434abe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SnapshotRestore type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/restore/SnapshotRestoreResponse.ts#L30-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/restore/SnapshotRestoreResponse.ts#L30-L34 type SnapshotRestore struct { Indices []string `json:"indices"` Shards ShardStatistics `json:"shards"` diff --git a/typedapi/types/snapshotshardfailure.go b/typedapi/types/snapshotshardfailure.go index 4c203d25d5..a082089d27 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SnapshotShardFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotShardFailure.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotShardFailure.ts#L22-L29 type SnapshotShardFailure struct { Index string `json:"index"` IndexUuid string `json:"index_uuid"` diff --git a/typedapi/types/snapshotshardsstats.go b/typedapi/types/snapshotshardsstats.go index a44176a79a..0c658b091c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SnapshotShardsStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotShardsStats.ts#L22-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` diff --git a/typedapi/types/snapshotshardsstatus.go b/typedapi/types/snapshotshardsstatus.go index 5574b29f87..4112c023f0 100644 --- a/typedapi/types/snapshotshardsstatus.go +++ b/typedapi/types/snapshotshardsstatus.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/shardsstatsstage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/shardsstatsstage" ) // SnapshotShardsStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotShardsStatus.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotShardsStatus.ts#L24-L27 type SnapshotShardsStatus struct { Stage shardsstatsstage.ShardsStatsStage `json:"stage"` Stats ShardsStatsSummary `json:"stats"` diff --git a/typedapi/types/snapshotsrecord.go b/typedapi/types/snapshotsrecord.go index 0720becdd7..3da49a15f9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SnapshotsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/snapshots/types.ts#L24-L96 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/snapshots/types.ts#L24-L96 type SnapshotsRecord struct { // Duration The time it took the snapshot process to complete, in time units. Duration Duration `json:"duration,omitempty"` diff --git a/typedapi/types/snapshotstats.go b/typedapi/types/snapshotstats.go index 1c0a41f3e4..cc54f2fe8b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SnapshotStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotStats.ts#L23-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/snowballanalyzer.go b/typedapi/types/snowballanalyzer.go index ba2202a18e..3c5566b2ff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snowballlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/snowballlanguage" ) // SnowballAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L374-L380 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L374-L380 type SnowballAnalyzer struct { Language snowballlanguage.SnowballLanguage `json:"language"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/snowballtokenfilter.go b/typedapi/types/snowballtokenfilter.go index 72127b10dc..2746fefe91 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/snowballlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/snowballlanguage" ) // SnowballTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L310-L313 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L310-L313 type SnowballTokenFilter struct { Language *snowballlanguage.SnowballLanguage `json:"language,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/softdeletes.go b/typedapi/types/softdeletes.go index ab98b50edb..f8dd1c1178 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SoftDeletes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L51-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L51-L64 type SoftDeletes struct { // Enabled Indicates whether soft deletes are enabled on the index. Enabled *bool `json:"enabled,omitempty"` diff --git a/typedapi/types/soranianalyzer.go b/typedapi/types/soranianalyzer.go index 9c81718b17..acfcd8dfb6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SoraniAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L289-L294 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L289-L294 type SoraniAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/sort.go b/typedapi/types/sort.go index cd9c322623..36cadc9469 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Sort type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L104-L104 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3be0db62e8..659ddf0468 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // SortOptions // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L98-L102 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f28fdb2a77..9d0b950af3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // SortOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/sort.ts#L86-L96 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/sort.ts#L86-L96 type SortOptions struct { Doc_ *ScoreSort `json:"_doc,omitempty"` GeoDistance_ *GeoDistanceSort `json:"_geo_distance,omitempty"` diff --git a/typedapi/types/sortprocessor.go b/typedapi/types/sortprocessor.go index afbb50bd46..a5d1810e6e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" ) // SortProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1479-L1495 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/sourceconfig.go b/typedapi/types/sourceconfig.go index 7c23f71d19..3f5402ed30 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // bool // SourceFilter // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/SourceFilter.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 9053f3c3f9..75447c2828 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // bool // []string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/SourceFilter.ts#L39-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/SourceFilter.ts#L39-L45 type SourceConfigParam any diff --git a/typedapi/types/sourcefield.go b/typedapi/types/sourcefield.go index 913018d91d..1b4a178142 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sourcefieldmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sourcefieldmode" ) // SourceField type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/meta-fields.ts#L58-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/meta-fields.ts#L58-L65 type SourceField struct { Compress *bool `json:"compress,omitempty"` CompressThreshold *string `json:"compress_threshold,omitempty"` diff --git a/typedapi/types/sourcefilter.go b/typedapi/types/sourcefilter.go index 85ebf2490e..6176f35195 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SourceFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/SourceFilter.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/SourceFilter.ts#L23-L31 type SourceFilter struct { Excludes []string `json:"excludes,omitempty"` Includes []string `json:"includes,omitempty"` diff --git a/typedapi/types/sourceindex.go b/typedapi/types/sourceindex.go index 8ea7d994bb..b16741b3c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SourceIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L50-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/migrate_reindex/MigrateReindexRequest.ts#L50-L52 type SourceIndex struct { Index string `json:"index"` } diff --git a/typedapi/types/sourceonlyrepository.go b/typedapi/types/sourceonlyrepository.go index 544e094518..fb7a939718 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SourceOnlyRepository type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L104-L114 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/_types/SnapshotRepository.ts#L104-L114 type SourceOnlyRepository struct { // Settings The repository settings. Settings SourceOnlyRepositorySettings `json:"settings"` diff --git a/typedapi/types/sourceonlyrepositorysettings.go b/typedapi/types/sourceonlyrepositorysettings.go index b96d651c21..ab79934a2a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SourceOnlyRepositorySettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotRepository.ts#L414-L441 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/spancontainingquery.go b/typedapi/types/spancontainingquery.go index c0ee4a7957..ec4967497e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SpanContainingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/span.ts#L25-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/span.ts#L25-L39 type SpanContainingQuery struct { // Big Can be any span query. // Matching spans from `big` that contain matches from `little` are returned. diff --git a/typedapi/types/spanfieldmaskingquery.go b/typedapi/types/spanfieldmaskingquery.go index 98736500ea..3ea484dbae 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SpanFieldMaskingQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/span.ts#L41-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/span.ts#L41-L47 type SpanFieldMaskingQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spanfirstquery.go b/typedapi/types/spanfirstquery.go index 694ffd452b..e083c7ecea 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SpanFirstQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/span.ts#L49-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/span.ts#L49-L61 type SpanFirstQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spangapquery.go b/typedapi/types/spangapquery.go index 02f833acbd..5540c37708 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SpanGapQuery type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/span.ts#L63-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fb7864779c..0c4ced815f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SpanishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L296-L301 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L296-L301 type SpanishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/spanmultitermquery.go b/typedapi/types/spanmultitermquery.go index 3f98c5493c..de9eb2e53c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SpanMultiTermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/span.ts#L67-L75 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/span.ts#L67-L75 type SpanMultiTermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spannearquery.go b/typedapi/types/spannearquery.go index bc109de364..1d415a8ae1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SpanNearQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/span.ts#L77-L93 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/span.ts#L77-L93 type SpanNearQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spannotquery.go b/typedapi/types/spannotquery.go index 303624ca15..cd2a49dcda 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SpanNotQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/span.ts#L95-L122 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/span.ts#L95-L122 type SpanNotQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spanorquery.go b/typedapi/types/spanorquery.go index 8a7f574ec9..8456559a5e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SpanOrQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/span.ts#L124-L132 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/span.ts#L124-L132 type SpanOrQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/spanquery.go b/typedapi/types/spanquery.go index ee506e4e5d..81ac8ffbf5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SpanQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/span.ts#L159-L201 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 diff --git a/typedapi/types/spantermquery.go b/typedapi/types/spantermquery.go index d303dad4d1..0e08bf4244 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SpanTermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/span.ts#L134-L141 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/spanwithinquery.go b/typedapi/types/spanwithinquery.go index ac73bf8c4c..8360a7e77d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SpanWithinQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/span.ts#L143-L157 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/sparseembeddingresult.go b/typedapi/types/sparseembeddingresult.go index dc1e5254ec..fcbad4e0dd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SparseEmbeddingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/_types/Results.ts#L36-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/Results.ts#L36-L38 type SparseEmbeddingResult struct { Embedding SparseVector `json:"embedding"` } diff --git a/typedapi/types/sparsevector.go b/typedapi/types/sparsevector.go index b1409257f2..258cf40a1a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SparseVector type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/_types/Results.ts#L24-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 74d1ed59c7..38e22b35a5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // SparseVectorProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L206-L208 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L215-L217 type SparseVectorProperty struct { Dynamic *dynamicmapping.DynamicMapping `json:"dynamic,omitempty"` Fields map[string]Property `json:"fields,omitempty"` diff --git a/typedapi/types/sparsevectorquery.go b/typedapi/types/sparsevectorquery.go index 7747d7b096..6d291fb113 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SparseVectorQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/SparseVectorQuery.ts#L26-L80 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/SparseVectorQuery.ts#L26-L80 type SparseVectorQuery struct { AdditionalSparseVectorQueryProperty map[string]json.RawMessage `json:"-"` // Boost Floating point number used to decrease or increase the relevance scores of diff --git a/typedapi/types/splitprocessor.go b/typedapi/types/splitprocessor.go index 5579084bb0..e3d9195b47 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SplitProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1497-L1522 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/sql.go b/typedapi/types/sql.go index b1128910b1..55c6054811 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Sql type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L392-L395 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L392-L395 type Sql struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/ssl.go b/typedapi/types/ssl.go index 92f7c5c0da..f2b51834fb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Ssl type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L397-L400 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L397-L400 type Ssl struct { Http FeatureToggle `json:"http"` Transport FeatureToggle `json:"transport"` diff --git a/typedapi/types/stagnatingbackingindices.go b/typedapi/types/stagnatingbackingindices.go index c2fbf051a9..4fee183622 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StagnatingBackingIndices type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/health_report/types.ts#L158-L162 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/health_report/types.ts#L158-L162 type StagnatingBackingIndices struct { FirstOccurrenceTimestamp int64 `json:"first_occurrence_timestamp"` IndexName string `json:"index_name"` diff --git a/typedapi/types/standardanalyzer.go b/typedapi/types/standardanalyzer.go index acd5bab6d8..5914af2518 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StandardAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L382-L402 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/standarddeviationbounds.go b/typedapi/types/standarddeviationbounds.go index b4e2838a0d..feef41976f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // StandardDeviationBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L281-L288 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L281-L288 type StandardDeviationBounds struct { Lower *Float64 `json:"lower,omitempty"` LowerPopulation *Float64 `json:"lower_population,omitempty"` diff --git a/typedapi/types/standarddeviationboundsasstring.go b/typedapi/types/standarddeviationboundsasstring.go index 39fed21af4..a5d19239fa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StandardDeviationBoundsAsString type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L290-L297 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L290-L297 type StandardDeviationBoundsAsString struct { Lower string `json:"lower"` LowerPopulation string `json:"lower_population"` diff --git a/typedapi/types/standardretriever.go b/typedapi/types/standardretriever.go index 3b78ceea54..71428e16e2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StandardRetriever type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Retriever.ts#L51-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Retriever.ts#L51-L62 type StandardRetriever struct { // Collapse Collapses the top documents by a specified key into a single top document per // key. diff --git a/typedapi/types/standardtokenizer.go b/typedapi/types/standardtokenizer.go index 680cf14348..187cfcb3c6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StandardTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L121-L124 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L121-L124 type StandardTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/statistics.go b/typedapi/types/statistics.go index 5db934a591..48ce636c8c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Statistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/slm/_types/SnapshotLifecycle.ts#L61-L84 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/slm/_types/SnapshotLifecycle.ts#L61-L84 type Statistics struct { Policy *string `json:"policy,omitempty"` RetentionDeletionTime Duration `json:"retention_deletion_time,omitempty"` diff --git a/typedapi/types/stats.go b/typedapi/types/stats.go index af375967d8..2a38e7a39e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/noderole" ) // Stats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L30-L114 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L30-L114 type Stats struct { // AdaptiveSelection Statistics about adaptive replica selection. AdaptiveSelection map[string]AdaptiveSelection `json:"adaptive_selection,omitempty"` diff --git a/typedapi/types/statsaggregate.go b/typedapi/types/statsaggregate.go index 93cc6f3937..a7aa69c00f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L257-L273 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L257-L273 type StatsAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` diff --git a/typedapi/types/statsaggregation.go b/typedapi/types/statsaggregation.go index 812a036759..9c775224bb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L291-L291 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L291-L291 type StatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/statsbucketaggregate.go b/typedapi/types/statsbucketaggregate.go index 17a248531b..9146f52589 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StatsBucketAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L275-L279 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L275-L279 type StatsBucketAggregate struct { Avg *Float64 `json:"avg,omitempty"` AvgAsString *string `json:"avg_as_string,omitempty"` diff --git a/typedapi/types/statsbucketaggregation.go b/typedapi/types/statsbucketaggregation.go index 5a3bfb5e57..528ce838fb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // StatsBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L410-L410 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L410-L410 type StatsBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/status.go b/typedapi/types/status.go index 7371eea81a..78170479e4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Status type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/_types/SnapshotStatus.ts#L26-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` diff --git a/typedapi/types/statuserror.go b/typedapi/types/statuserror.go index ddda8bb40d..738397be7f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StatusError type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L44-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L44-L47 type StatusError struct { Index string `json:"index"` Message string `json:"message"` diff --git a/typedapi/types/statusinprogress.go b/typedapi/types/statusinprogress.go index aad31ea098..6ebf971d23 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StatusInProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L38-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/get_migrate_reindex_status/MigrateGetReindexStatusResponse.ts#L38-L42 type StatusInProgress struct { Index string `json:"index"` ReindexedDocCount int64 `json:"reindexed_doc_count"` diff --git a/typedapi/types/stemmeroverridetokenfilter.go b/typedapi/types/stemmeroverridetokenfilter.go index 79d90cdd67..006f99d63b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StemmerOverrideTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L315-L319 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L315-L319 type StemmerOverrideTokenFilter struct { Rules []string `json:"rules,omitempty"` RulesPath *string `json:"rules_path,omitempty"` diff --git a/typedapi/types/stemmertokenfilter.go b/typedapi/types/stemmertokenfilter.go index 314d2be7a7..7538cffc9f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StemmerTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L321-L325 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L321-L325 type StemmerTokenFilter struct { Language *string `json:"language,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/stepkey.go b/typedapi/types/stepkey.go index 1f92ad1d0d..80ab4b4060 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StepKey type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/move_to_step/types.ts#L20-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/move_to_step/types.ts#L20-L31 type StepKey struct { // Action The optional action to which the index will be moved. Action *string `json:"action,omitempty"` diff --git a/typedapi/types/stopanalyzer.go b/typedapi/types/stopanalyzer.go index 821ea53c54..2e4c47fd3a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StopAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L404-L419 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/stoptokenfilter.go b/typedapi/types/stoptokenfilter.go index b5941ae273..fa696cff5b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StopTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L96-L102 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L96-L102 type StopTokenFilter struct { IgnoreCase *bool `json:"ignore_case,omitempty"` RemoveTrailing *bool `json:"remove_trailing,omitempty"` diff --git a/typedapi/types/stopwords.go b/typedapi/types/stopwords.go index 6488aeb2cf..a45f1a40bf 100644 --- a/typedapi/types/stopwords.go +++ b/typedapi/types/stopwords.go @@ -16,13 +16,13 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // StopWords type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/StopWords.ts#L20-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/StopWords.ts#L20-L26 type StopWords []string type StopWordsVariant interface { diff --git a/typedapi/types/storage.go b/typedapi/types/storage.go index ad9ed6209e..76e1026dcf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/storagetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/storagetype" ) // Storage type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L534-L543 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L534-L543 type Storage struct { // AllowMmap You can restrict the use of the mmapfs and the related hybridfs store type // via the setting node.store.allow_mmap. diff --git a/typedapi/types/storedscript.go b/typedapi/types/storedscript.go index 915c4f0466..ce93a4a9d5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,22 +26,21 @@ import ( "errors" "fmt" "io" - "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/scriptlanguage" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/scriptlanguage" ) // StoredScript type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Scripting.ts#L47-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Scripting.ts#L51-L63 type StoredScript struct { // Lang The language the script is written in. - // For serach templates, use `mustache`. + // For search templates, use `mustache`. Lang scriptlanguage.ScriptLanguage `json:"lang"` Options map[string]string `json:"options,omitempty"` // Source The script source. // For search templates, an object containing the search template. - Source string `json:"source"` + Source ScriptSource `json:"source"` } func (s *StoredScript) UnmarshalJSON(data []byte) error { @@ -73,16 +72,40 @@ func (s *StoredScript) UnmarshalJSON(data []byte) error { } case "source": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) + keyDec := json.NewDecoder(bytes.NewReader(message)) + source_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source", err) + } + + switch t { + + case "aggregations", "collapse", "docvalue_fields", "explain", "ext", "fields", "from", "highlight", "indices_boost", "knn", "min_score", "pit", "post_filter", "profile", "query", "rank", "rescore", "retriever", "runtime_mappings", "script_fields", "search_after", "seq_no_primary_term", "size", "slice", "sort", "_source", "stats", "stored_fields", "suggest", "terminate_after", "timeout", "track_scores", "track_total_hits", "version": + o := NewSearchRequestBody() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + s.Source = o + break source_field + + } + } + if s.Source == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } } - s.Source = o } } diff --git a/typedapi/types/storestats.go b/typedapi/types/storestats.go index 6c63686c7f..4959c4da8a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StoreStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L371-L398 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L373-L400 type StoreStats struct { // Reserved A prediction of how much larger the shard stores will eventually grow due to // ongoing peer recoveries, restoring snapshots, and similar activities. diff --git a/typedapi/types/streamresult.go b/typedapi/types/streamresult.go index 3436b12885..482b6e327b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // StreamResult type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Binary.ts#L27-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Binary.ts#L24-L24 type StreamResult []byte diff --git a/typedapi/types/stringifiedboolean.go b/typedapi/types/stringifiedboolean.go index 1e7685198a..f1e198f3ce 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // bool // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 030820cf08..88e908d674 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // Float64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_spec_utils/Stringified.ts#L20-L27 type Stringifieddouble any diff --git a/typedapi/types/stringifiedepochtimeunitmillis.go b/typedapi/types/stringifiedepochtimeunitmillis.go index 07e315dfce..803423c236 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c4135c2b86..2d1c757468 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_spec_utils/Stringified.ts#L20-L27 type StringifiedEpochTimeUnitSeconds any diff --git a/typedapi/types/stringifiedinteger.go b/typedapi/types/stringifiedinteger.go index f308c4cf9e..36506fe306 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // int // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 becd852afe..7b69f8ed33 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // int64 // string // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_spec_utils/Stringified.ts#L20-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_spec_utils/Stringified.ts#L20-L27 type StringifiedVersionNumber any diff --git a/typedapi/types/stringraretermsaggregate.go b/typedapi/types/stringraretermsaggregate.go index a0f0f3033a..01764a8d55 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // StringRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L483-L487 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L483-L487 type StringRareTermsAggregate struct { Buckets BucketsStringRareTermsBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/stringraretermsbucket.go b/typedapi/types/stringraretermsbucket.go index 28ffd8c27d..c2d7c87b06 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // StringRareTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L489-L491 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L489-L491 type StringRareTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/stringstatsaggregate.go b/typedapi/types/stringstatsaggregate.go index 7034abea7a..16cc336581 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StringStatsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L793-L804 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L793-L804 type StringStatsAggregate struct { AvgLength *Float64 `json:"avg_length,omitempty"` AvgLengthAsString *string `json:"avg_length_as_string,omitempty"` diff --git a/typedapi/types/stringstatsaggregation.go b/typedapi/types/stringstatsaggregation.go index da94614767..6e6f89d7e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StringStatsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L293-L299 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L293-L299 type StringStatsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/stringtermsaggregate.go b/typedapi/types/stringtermsaggregate.go index a238144f23..78e8fe645b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StringTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L424-L429 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L424-L429 type StringTermsAggregate struct { Buckets BucketsStringTermsBucket `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` diff --git a/typedapi/types/stringtermsbucket.go b/typedapi/types/stringtermsbucket.go index ac57516615..f52c84f60f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // StringTermsBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L435-L437 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L435-L437 type StringTermsBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/stupidbackoffsmoothingmodel.go b/typedapi/types/stupidbackoffsmoothingmodel.go index 10dbc5c97e..2eaea946d5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // StupidBackoffSmoothingModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L463-L468 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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"` diff --git a/typedapi/types/suggest.go b/typedapi/types/suggest.go index 730c6f4da1..ff6146d16d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,5 +26,5 @@ package types // PhraseSuggest // TermSuggest // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/suggester.ts#L35-L41 type Suggest any diff --git a/typedapi/types/suggestcontext.go b/typedapi/types/suggestcontext.go index cc2c44a6b5..7a48c29cfb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SuggestContext type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/specialized.ts#L43-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/specialized.ts#L43-L48 type SuggestContext struct { Name string `json:"name"` Path *string `json:"path,omitempty"` diff --git a/typedapi/types/suggester.go b/typedapi/types/suggester.go index a63c9b8954..cabc8afaf9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Suggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L101-L107 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 diff --git a/typedapi/types/suggestfuzziness.go b/typedapi/types/suggestfuzziness.go index 41c65f4783..c7eebf3879 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SuggestFuzziness type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L196-L224 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/suggester.ts#L197-L225 type SuggestFuzziness struct { // Fuzziness The fuzziness factor. Fuzziness Fuzziness `json:"fuzziness,omitempty"` diff --git a/typedapi/types/sumaggregate.go b/typedapi/types/sumaggregate.go index 41348b26b6..ed20d7a008 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SumAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L211-L216 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L211-L216 type SumAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/sumaggregation.go b/typedapi/types/sumaggregation.go index b36fe7da07..7bc5ceaee0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SumAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L301-L301 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L301-L301 type SumAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/sumbucketaggregation.go b/typedapi/types/sumbucketaggregation.go index c2193e986a..a401a7cc26 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/gappolicy" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/gappolicy" ) // SumBucketAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/pipeline.ts#L412-L415 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/pipeline.ts#L412-L415 type SumBucketAggregation struct { // BucketsPath Path to the buckets that contain one set of values to correlate. BucketsPath BucketsPath `json:"buckets_path,omitempty"` diff --git a/typedapi/types/summary.go b/typedapi/types/summary.go index 332ca92274..0ae828171b 100644 --- a/typedapi/types/summary.go +++ b/typedapi/types/summary.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/policytype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/policytype" ) // Summary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/enrich/_types/Policy.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/enrich/_types/Policy.ts#L24-L26 type Summary struct { Config map[policytype.PolicyType]EnrichPolicy `json:"config"` } diff --git a/typedapi/types/summaryinfo.go b/typedapi/types/summaryinfo.go index 7d05daa644..8abd5acecb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SummaryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L193-L202 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L193-L202 type SummaryInfo struct { // Read A collection of statistics that summarise the results of the read operations // in the test. diff --git a/typedapi/types/swedishanalyzer.go b/typedapi/types/swedishanalyzer.go index 2e614976e8..e414501ad3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SwedishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L303-L308 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L303-L308 type SwedishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/synccontainer.go b/typedapi/types/synccontainer.go index c7e888e051..61568959d1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // SyncContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/_types/Transform.ts#L169-L175 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/_types/Transform.ts#L169-L175 type SyncContainer struct { AdditionalSyncContainerProperty map[string]json.RawMessage `json:"-"` // Time Specifies that the transform uses a time field to synchronize the source and diff --git a/typedapi/types/syncjobconnectorreference.go b/typedapi/types/syncjobconnectorreference.go index aae8af34d9..2aaf38c001 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SyncJobConnectorReference type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/SyncJob.ts#L31-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/SyncJob.ts#L31-L40 type SyncJobConnectorReference struct { Configuration ConnectorConfiguration `json:"configuration"` Filtering FilteringRules `json:"filtering"` diff --git a/typedapi/types/syncrulesfeature.go b/typedapi/types/syncrulesfeature.go index 77968cccbf..d379539512 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // SyncRulesFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L219-L228 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/connector/_types/Connector.ts#L219-L228 type SyncRulesFeature struct { // Advanced Indicates whether advanced sync rules are enabled. Advanced *FeatureEnabled `json:"advanced,omitempty"` diff --git a/typedapi/types/synonymgraphtokenfilter.go b/typedapi/types/synonymgraphtokenfilter.go index 51e04e0c95..8b48db0cc5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/synonymformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/synonymformat" ) // SynonymGraphTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L109-L119 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L109-L119 type SynonymGraphTokenFilter struct { Expand *bool `json:"expand,omitempty"` Format *synonymformat.SynonymFormat `json:"format,omitempty"` diff --git a/typedapi/types/synonymrule.go b/typedapi/types/synonymrule.go index ad59165734..5ae2354cf9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SynonymRule type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/_types/SynonymRule.ts#L26-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/synonyms/_types/SynonymRule.ts#L26-L37 type SynonymRule struct { // Id The identifier for the synonym rule. // If you do not specify a synonym rule ID when you create a rule, an identifier diff --git a/typedapi/types/synonymruleread.go b/typedapi/types/synonymruleread.go index 27fb99de58..0980debe43 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // SynonymRuleRead type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/_types/SynonymRule.ts#L40-L49 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/synonyms/_types/SynonymRule.ts#L40-L49 type SynonymRuleRead struct { // Id Synonym Rule identifier Id string `json:"id"` diff --git a/typedapi/types/synonymssetitem.go b/typedapi/types/synonymssetitem.go index 50a42f81a7..ed178dcf53 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // SynonymsSetItem type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L36-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/synonyms/get_synonyms_sets/SynonymsSetsGetResponse.ts#L36-L45 type SynonymsSetItem struct { // Count Number of synonym rules that the synonym set contains Count int `json:"count"` diff --git a/typedapi/types/synonymtokenfilter.go b/typedapi/types/synonymtokenfilter.go index 4d610c3319..f1aed7a9c9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/synonymformat" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/synonymformat" ) // SynonymTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L121-L131 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L121-L131 type SynonymTokenFilter struct { Expand *bool `json:"expand,omitempty"` Format *synonymformat.SynonymFormat `json:"format,omitempty"` diff --git a/typedapi/types/tablevaluescontainer.go b/typedapi/types/tablevaluescontainer.go index 57183a2a04..ed985f40df 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // TableValuesContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/_types/TableValuesContainer.ts#L22-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/esql/_types/TableValuesContainer.ts#L22-L28 type TableValuesContainer struct { AdditionalTableValuesContainerProperty map[string]json.RawMessage `json:"-"` Float64 [][]Float64 `json:"double,omitempty"` diff --git a/typedapi/types/tablevaluesintegervalue.go b/typedapi/types/tablevaluesintegervalue.go index d835abced9..d2861db3c2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TableValuesIntegerValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/_types/TableValuesContainer.ts#L30-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 951ea70d42..12efd075e0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TableValuesKeywordValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/_types/TableValuesContainer.ts#L31-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3d5ff09dc8..32d031c264 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TableValuesLongDouble type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/_types/TableValuesContainer.ts#L33-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 fe41746484..fd31bd923a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TableValuesLongValue type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/esql/_types/TableValuesContainer.ts#L32-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 7bc999b1d0..224810636f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TargetMeanEncodingPreprocessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L49-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L49-L54 type TargetMeanEncodingPreprocessor struct { DefaultValue Float64 `json:"default_value"` FeatureName string `json:"feature_name"` diff --git a/typedapi/types/taskfailure.go b/typedapi/types/taskfailure.go index f96a78e2ee..62dccf975f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TaskFailure type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Errors.ts#L67-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Errors.ts#L67-L72 type TaskFailure struct { NodeId string `json:"node_id"` Reason ErrorCause `json:"reason"` diff --git a/typedapi/types/taskid.go b/typedapi/types/taskid.go index 2278c85238..0eb0ac61f9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // string // int // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L129-L129 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L129-L129 type TaskId any diff --git a/typedapi/types/taskinfo.go b/typedapi/types/taskinfo.go index f9ce8ddc72..4aba82c6cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TaskInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/tasks/_types/TaskInfo.ts#L32-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/tasks/_types/TaskInfo.ts#L32-L58 type TaskInfo struct { Action string `json:"action"` Cancellable bool `json:"cancellable"` diff --git a/typedapi/types/taskinfos.go b/typedapi/types/taskinfos.go index 62e1c3cb7c..94e94ba57b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // []TaskInfo // map[string]ParentTaskInfo // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/tasks/_types/TaskListResponseBase.ts#L40-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/tasks/_types/TaskListResponseBase.ts#L40-L43 type TaskInfos any diff --git a/typedapi/types/tasksrecord.go b/typedapi/types/tasksrecord.go index 4b86353caa..18d96964f5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TasksRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/tasks/types.ts#L22-L101 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/tasks/types.ts#L22-L101 type TasksRecord struct { // Action The task action. Action *string `json:"action,omitempty"` diff --git a/typedapi/types/tdigest.go b/typedapi/types/tdigest.go index eccff98118..0fd7320a1b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TDigest type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L232-L237 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L232-L237 type TDigest struct { // Compression Limits the maximum number of nodes used by the underlying TDigest algorithm // to `20 * compression`, enabling control of memory usage and approximation diff --git a/typedapi/types/tdigestpercentileranksaggregate.go b/typedapi/types/tdigestpercentileranksaggregate.go index 62c094546c..2ce3ef5347 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TDigestPercentileRanksAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L177-L178 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L177-L178 type TDigestPercentileRanksAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` diff --git a/typedapi/types/tdigestpercentilesaggregate.go b/typedapi/types/tdigestpercentilesaggregate.go index 421a3cfe86..c5854be164 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TDigestPercentilesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L174-L175 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L174-L175 type TDigestPercentilesAggregate struct { Meta Metadata `json:"meta,omitempty"` Values Percentiles `json:"values"` diff --git a/typedapi/types/template.go b/typedapi/types/template.go index 5dbbefa293..b9192c8f34 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Template type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/simulate_template/IndicesSimulateTemplateResponse.ts#L33-L37 type Template struct { Aliases map[string]Alias `json:"aliases"` Mappings TypeMapping `json:"mappings"` diff --git a/typedapi/types/templateconfig.go b/typedapi/types/templateconfig.go index b37d2bf67b..5287dafb46 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TemplateConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/msearch_template/types.ts#L28-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. @@ -49,7 +49,7 @@ type TemplateConfig struct { // request body. It also supports Mustache variables. If no `id` is specified, // this // parameter is required. - Source *string `json:"source,omitempty"` + Source ScriptSource `json:"source,omitempty"` } func (s *TemplateConfig) UnmarshalJSON(data []byte) error { @@ -109,16 +109,40 @@ func (s *TemplateConfig) UnmarshalJSON(data []byte) error { } case "source": - var tmp json.RawMessage - if err := dec.Decode(&tmp); err != nil { + message := json.RawMessage{} + if err := dec.Decode(&message); err != nil { return fmt.Errorf("%s | %w", "Source", err) } - o := string(tmp[:]) - o, err = strconv.Unquote(o) - if err != nil { - o = string(tmp[:]) + keyDec := json.NewDecoder(bytes.NewReader(message)) + source_field: + for { + t, err := keyDec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return fmt.Errorf("%s | %w", "Source", err) + } + + switch t { + + case "aggregations", "collapse", "docvalue_fields", "explain", "ext", "fields", "from", "highlight", "indices_boost", "knn", "min_score", "pit", "post_filter", "profile", "query", "rank", "rescore", "retriever", "runtime_mappings", "script_fields", "search_after", "seq_no_primary_term", "size", "slice", "sort", "_source", "stats", "stored_fields", "suggest", "terminate_after", "timeout", "track_scores", "track_total_hits", "version": + o := NewSearchRequestBody() + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&o); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } + s.Source = o + break source_field + + } + } + if s.Source == nil { + localDec := json.NewDecoder(bytes.NewReader(message)) + if err := localDec.Decode(&s.Source); err != nil { + return fmt.Errorf("%s | %w", "Source", err) + } } - s.Source = &o } } diff --git a/typedapi/types/templatemapping.go b/typedapi/types/templatemapping.go index 6d936b52bf..f04801210d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TemplateMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/TemplateMapping.ts#L27-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/TemplateMapping.ts#L27-L34 type TemplateMapping struct { Aliases map[string]Alias `json:"aliases"` IndexPatterns []string `json:"index_patterns"` diff --git a/typedapi/types/templatesrecord.go b/typedapi/types/templatesrecord.go index b421f0f3d9..94a7fd2ecc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TemplatesRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/templates/types.ts#L22-L48 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/templates/types.ts#L22-L48 type TemplatesRecord struct { // ComposedOf The component templates that comprise the index template. ComposedOf *string `json:"composed_of,omitempty"` diff --git a/typedapi/types/term.go b/typedapi/types/term.go index 72d4cfdcba..1c0508a4ba 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Term type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/termvectors/types.ts#L34-L40 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/termvectors/types.ts#L34-L40 type Term struct { DocFreq *int `json:"doc_freq,omitempty"` Score *Float64 `json:"score,omitempty"` diff --git a/typedapi/types/terminateprocessor.go b/typedapi/types/terminateprocessor.go index f5134e72ca..c7d7724cfd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TerminateProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1524-L1524 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/termquery.go b/typedapi/types/termquery.go index d8e04f45c9..10bce195d6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TermQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L238-L255 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L238-L255 type TermQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/termrangequery.go b/typedapi/types/termrangequery.go index 9eb079a1ac..4ee1a5e923 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/rangerelation" ) // TermRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L174-L174 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L174-L174 type TermRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/termsaggregation.go b/typedapi/types/termsaggregation.go index b41b3a40a5..1896ad4d76 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/missingorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/sortorder" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationcollectmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termsaggregationexecutionhint" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/missingorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/sortorder" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termsaggregationcollectmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termsaggregationexecutionhint" ) // TermsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L963-L1031 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L963-L1031 type TermsAggregation struct { // CollectMode Determines how child aggregations should be calculated: breadth-first or // depth-first. diff --git a/typedapi/types/termsexclude.go b/typedapi/types/termsexclude.go index 771bf599d4..ed0785928f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TermsExclude type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1077-L1078 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 15f23c8060..967f2a0d61 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TermsGrouping type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/rollup/_types/Groupings.ts#L75-L82 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/rollup/_types/Groupings.ts#L75-L82 type TermsGrouping struct { // Fields The set of fields that you wish to collect terms for. // This array can contain fields that are both keyword and numerics. diff --git a/typedapi/types/termsinclude.go b/typedapi/types/termsinclude.go index 0761081543..f4060c2c27 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -26,7 +26,7 @@ package types // []string // TermsPartition // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1074-L1075 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 c2cb8bc3b7..8a361958ef 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TermsLookup type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L270-L275 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L270-L275 type TermsLookup struct { Id string `json:"id"` Index string `json:"index"` diff --git a/typedapi/types/termspartition.go b/typedapi/types/termspartition.go index 3f95c80dae..6559d3a2f9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TermsPartition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1080-L1089 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L1080-L1089 type TermsPartition struct { // NumPartitions The number of partitions. NumPartitions int64 `json:"num_partitions"` diff --git a/typedapi/types/termsquery.go b/typedapi/types/termsquery.go index 7cfea826c0..1955af1ffe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TermsQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L257-L263 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L257-L263 type TermsQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/termsqueryfield.go b/typedapi/types/termsqueryfield.go index f28cdb7b8c..689564c547 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // []FieldValue // TermsLookup // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L265-L268 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L265-L268 type TermsQueryField any type TermsQueryFieldVariant interface { diff --git a/typedapi/types/termssetquery.go b/typedapi/types/termssetquery.go index fb9e8214a5..d441791484 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TermsSetQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L277-L299 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L277-L299 type TermsSetQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/termsuggest.go b/typedapi/types/termsuggest.go index e2e36d49b1..e4912c8385 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TermSuggest type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L64-L69 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/suggester.ts#L65-L70 type TermSuggest struct { Length int `json:"length"` Offset int `json:"offset"` diff --git a/typedapi/types/termsuggester.go b/typedapi/types/termsuggester.go index 9d273c6b91..78be039a1b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,14 +28,14 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/stringdistance" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestmode" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/suggestsort" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/stringdistance" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/suggestmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/suggestsort" ) // TermSuggester type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L506-L568 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/termsuggestoption.go b/typedapi/types/termsuggestoption.go index aec7afe6e4..9e9cefbfce 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TermSuggestOption type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/suggester.ts#L93-L99 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/search/_types/suggester.ts#L94-L100 type TermSuggestOption struct { CollateMatch *bool `json:"collate_match,omitempty"` Freq int64 `json:"freq"` diff --git a/typedapi/types/termvector.go b/typedapi/types/termvector.go index 88ff62ce68..9f4349bcbb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TermVector type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/termvectors/types.ts#L23-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/termvectors/types.ts#L23-L26 type TermVector struct { FieldStatistics *FieldStatistics `json:"field_statistics,omitempty"` Terms map[string]Term `json:"terms"` diff --git a/typedapi/types/termvectorsfilter.go b/typedapi/types/termvectorsfilter.go index 81b75d8435..8c1ad31a17 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TermVectorsFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/termvectors/types.ts#L49-L86 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/termvectors/types.ts#L49-L86 type TermVectorsFilter struct { // MaxDocFreq Ignore words which occur in more than this many docs. // Defaults to unbounded. diff --git a/typedapi/types/termvectorsresult.go b/typedapi/types/termvectorsresult.go index 887ccbb36b..1425414c53 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TermVectorsResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/mtermvectors/types.ts#L96-L104 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/mtermvectors/types.ts#L96-L104 type TermVectorsResult struct { Error *ErrorCause `json:"error,omitempty"` Found *bool `json:"found,omitempty"` diff --git a/typedapi/types/termvectorstoken.go b/typedapi/types/termvectorstoken.go index 24b19285d9..e81fc22b39 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TermVectorsToken type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/termvectors/types.ts#L42-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/termvectors/types.ts#L42-L47 type TermVectorsToken struct { EndOffset *int `json:"end_offset,omitempty"` Payload *string `json:"payload,omitempty"` diff --git a/typedapi/types/testpopulation.go b/typedapi/types/testpopulation.go index 0c813a1ff8..ac3ecf7f29 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TestPopulation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L319-L329 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L319-L329 type TestPopulation struct { // Field The field to aggregate. Field string `json:"field"` diff --git a/typedapi/types/textclassificationinferenceoptions.go b/typedapi/types/textclassificationinferenceoptions.go index 0b0048e77a..70ea08549a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TextClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L173-L183 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L202-L214 type TextClassificationInferenceOptions struct { // ClassificationLabels Classification labels to apply other than the stored labels. Must have the // same deminsions as the default configured labels @@ -43,6 +43,7 @@ type TextClassificationInferenceOptions struct { ResultsField *string `json:"results_field,omitempty"` // Tokenization The tokenization options Tokenization *TokenizationConfigContainer `json:"tokenization,omitempty"` + Vocabulary *Vocabulary `json:"vocabulary,omitempty"` } func (s *TextClassificationInferenceOptions) UnmarshalJSON(data []byte) error { @@ -98,6 +99,11 @@ func (s *TextClassificationInferenceOptions) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "Tokenization", err) } + case "vocabulary": + if err := dec.Decode(&s.Vocabulary); err != nil { + return fmt.Errorf("%s | %w", "Vocabulary", err) + } + } } return nil diff --git a/typedapi/types/textclassificationinferenceupdateoptions.go b/typedapi/types/textclassificationinferenceupdateoptions.go index ddaddcfa4d..65a2e99d16 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TextClassificationInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L351-L360 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L382-L391 type TextClassificationInferenceUpdateOptions struct { // ClassificationLabels Classification labels to apply other than the stored labels. Must have the // same deminsions as the default configured labels diff --git a/typedapi/types/textembedding.go b/typedapi/types/textembedding.go index ffd4a681ca..5583b05871 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TextEmbedding type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Knn.ts#L94-L97 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Knn.ts#L94-L97 type TextEmbedding struct { ModelId string `json:"model_id"` ModelText string `json:"model_text"` diff --git a/typedapi/types/textembeddingbyteresult.go b/typedapi/types/textembeddingbyteresult.go index 11411ecef8..783e6870b5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TextEmbeddingByteResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/_types/Results.ts#L53-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/Results.ts#L53-L58 type TextEmbeddingByteResult struct { Embedding []byte `json:"embedding"` } diff --git a/typedapi/types/textembeddinginferenceoptions.go b/typedapi/types/textembeddinginferenceoptions.go index ec764a98c9..4958263bb8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TextEmbeddingInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L221-L231 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L252-L262 type TextEmbeddingInferenceOptions struct { // EmbeddingSize The number of dimensions in the embedding output EmbeddingSize *int `json:"embedding_size,omitempty"` diff --git a/typedapi/types/textembeddinginferenceupdateoptions.go b/typedapi/types/textembeddinginferenceupdateoptions.go index d2b7b0cee6..cade52828d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TextEmbeddingInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L380-L384 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L411-L415 type TextEmbeddingInferenceUpdateOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/textembeddingresult.go b/typedapi/types/textembeddingresult.go index c61badd7cc..ed734652cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TextEmbeddingResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/_types/Results.ts#L60-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/Results.ts#L60-L65 type TextEmbeddingResult struct { Embedding []float32 `json:"embedding"` } diff --git a/typedapi/types/textexpansioninferenceoptions.go b/typedapi/types/textexpansioninferenceoptions.go index c6f8d65fb7..ef645e4c30 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TextExpansionInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L233-L240 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L264-L271 type TextExpansionInferenceOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/textexpansioninferenceupdateoptions.go b/typedapi/types/textexpansioninferenceupdateoptions.go index 7d085bdf1c..117bc99398 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TextExpansionInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L386-L390 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L417-L421 type TextExpansionInferenceUpdateOptions struct { // ResultsField The field that is added to incoming documents to contain the inference // prediction. Defaults to predicted_value. diff --git a/typedapi/types/textexpansionquery.go b/typedapi/types/textexpansionquery.go index 4543266447..308e08988f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TextExpansionQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L36 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/TextExpansionQuery.ts#L23-L36 type TextExpansionQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/textindexprefixes.go b/typedapi/types/textindexprefixes.go index 81d653b060..05b031d449 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TextIndexPrefixes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L281-L284 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L290-L293 type TextIndexPrefixes struct { MaxChars int `json:"max_chars"` MinChars int `json:"min_chars"` diff --git a/typedapi/types/textproperty.go b/typedapi/types/textproperty.go index 24ca978a81..b3df0b2e04 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexoptions" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/termvectoroption" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexoptions" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/termvectoroption" ) // TextProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L286-L303 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L295-L312 type TextProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` diff --git a/typedapi/types/textsimilarityreranker.go b/typedapi/types/textsimilarityreranker.go index 5f9b33ac77..e248e66508 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TextSimilarityReranker type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Retriever.ts#L93-L104 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Retriever.ts#L93-L104 type TextSimilarityReranker struct { // Field The document field to be used for text similarity comparisons. This field // should contain the text that will be evaluated against the inference_text diff --git a/typedapi/types/texttoanalyze.go b/typedapi/types/texttoanalyze.go index 531beefb84..73ea4ef5e0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TextToAnalyze type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/analyze/types.ts#L69-L69 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 412a1ea867..736762c81f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ThaiAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L317-L321 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L317-L321 type ThaiAnalyzer struct { Stopwords []string `json:"stopwords,omitempty"` StopwordsPath *string `json:"stopwords_path,omitempty"` diff --git a/typedapi/types/thaitokenizer.go b/typedapi/types/thaitokenizer.go index 4c7f51fee2..ae8c443c3f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // ThaiTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L126-L128 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L126-L128 type ThaiTokenizer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/threadcount.go b/typedapi/types/threadcount.go index a90fbc954c..1fc1842ebb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ThreadCount type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L1075-L1100 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L1075-L1100 type ThreadCount struct { // Active Number of active threads in the thread pool. Active *int64 `json:"active,omitempty"` diff --git a/typedapi/types/threadpoolrecord.go b/typedapi/types/threadpoolrecord.go index aad91f9b06..2844119c12 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ThreadPoolRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/thread_pool/types.ts#L22-L124 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/thread_pool/types.ts#L22-L124 type ThreadPoolRecord struct { // Active The number of active threads in the current thread pool. Active *string `json:"active,omitempty"` diff --git a/typedapi/types/throttlestate.go b/typedapi/types/throttlestate.go index 6772620568..40255a3c5e 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ThrottleState type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Action.ts#L120-L123 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Action.ts#L120-L123 type ThrottleState struct { Reason string `json:"reason"` Timestamp DateTime `json:"timestamp"` diff --git a/typedapi/types/timehttphistogram.go b/typedapi/types/timehttphistogram.go index f215960f64..a9f2de2196 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TimeHttpHistogram type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L708-L712 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L708-L712 type TimeHttpHistogram struct { Count int64 `json:"count"` GeMillis *int64 `json:"ge_millis,omitempty"` diff --git a/typedapi/types/timeofmonth.go b/typedapi/types/timeofmonth.go index d340b0aa43..8771b532cc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TimeOfMonth type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Schedule.ts#L111-L114 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Schedule.ts#L111-L114 type TimeOfMonth struct { At []string `json:"at"` On []int `json:"on"` diff --git a/typedapi/types/timeofweek.go b/typedapi/types/timeofweek.go index 4494181c0d..6fa59b2818 100644 --- a/typedapi/types/timeofweek.go +++ b/typedapi/types/timeofweek.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/day" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/day" ) // TimeOfWeek type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Schedule.ts#L116-L119 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Schedule.ts#L116-L119 type TimeOfWeek struct { At []string `json:"at"` On []day.Day `json:"on"` diff --git a/typedapi/types/timeofyear.go b/typedapi/types/timeofyear.go index c5f48e63da..4cf88b1ffb 100644 --- a/typedapi/types/timeofyear.go +++ b/typedapi/types/timeofyear.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/month" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/month" ) // TimeOfYear type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Schedule.ts#L121-L125 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Schedule.ts#L121-L125 type TimeOfYear struct { At []string `json:"at"` Int []month.Month `json:"int"` diff --git a/typedapi/types/timeseriesaggregate.go b/typedapi/types/timeseriesaggregate.go index c821808e41..64ad299158 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TimeSeriesAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L730-L731 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L730-L731 type TimeSeriesAggregate struct { Buckets BucketsTimeSeriesBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/timeseriesaggregation.go b/typedapi/types/timeseriesaggregation.go index 2c948ceaea..be68f33868 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TimeSeriesAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1033-L1046 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L1033-L1046 type TimeSeriesAggregation struct { // Keyed Set to `true` to associate a unique string key with each bucket and returns // the ranges as a hash rather than an array. diff --git a/typedapi/types/timeseriesbucket.go b/typedapi/types/timeseriesbucket.go index 6df2454e58..9b847c4c56 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // TimeSeriesBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L733-L735 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L733-L735 type TimeSeriesBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/timesync.go b/typedapi/types/timesync.go index 71ae61c724..3253282b3f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TimeSync type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/_types/Transform.ts#L177-L189 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/_types/Transform.ts#L177-L189 type TimeSync struct { // Delay The time delay between the current time and the latest input data time. Delay Duration `json:"delay,omitempty"` diff --git a/typedapi/types/timingstats.go b/typedapi/types/timingstats.go index a24c166ffc..97a7293e91 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TimingStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L564-L569 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L564-L569 type TimingStats struct { // ElapsedTime Runtime of the analysis in milliseconds. ElapsedTime int64 `json:"elapsed_time"` diff --git a/typedapi/types/tokencountproperty.go b/typedapi/types/tokencountproperty.go index e920e72d3b..248a6e1003 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // TokenCountProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/specialized.ts#L94-L101 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/specialized.ts#L94-L101 type TokenCountProperty struct { Analyzer *string `json:"analyzer,omitempty"` Boost *Float64 `json:"boost,omitempty"` diff --git a/typedapi/types/tokendetail.go b/typedapi/types/tokendetail.go index c70f2c5875..d060095ce0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TokenDetail type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/analyze/types.ts#L71-L74 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/analyze/types.ts#L71-L74 type TokenDetail struct { Name string `json:"name"` Tokens []ExplainAnalyzeToken `json:"tokens"` diff --git a/typedapi/types/tokenfilter.go b/typedapi/types/tokenfilter.go index 855093f5d8..22c0114358 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // TokenFilterDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L345-L350 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L345-L350 type TokenFilter any type TokenFilterVariant interface { diff --git a/typedapi/types/tokenfilterdefinition.go b/typedapi/types/tokenfilterdefinition.go index 683e859b1b..f0bac88706 100644 --- a/typedapi/types/tokenfilterdefinition.go +++ b/typedapi/types/tokenfilterdefinition.go @@ -16,7 +16,7 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -70,7 +70,7 @@ package types // PhoneticTokenFilter // DictionaryDecompounderTokenFilter // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L352-L404 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L352-L404 type TokenFilterDefinition any type TokenFilterDefinitionVariant interface { diff --git a/typedapi/types/tokenizationconfigcontainer.go b/typedapi/types/tokenizationconfigcontainer.go index 18b23d84c7..4634709ada 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // TokenizationConfigContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L110-L131 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L135-L158 type TokenizationConfigContainer struct { AdditionalTokenizationConfigContainerProperty map[string]json.RawMessage `json:"-"` // Bert Indicates BERT tokenization and its options @@ -37,7 +37,8 @@ type TokenizationConfigContainer struct { // Mpnet Indicates MPNET tokenization and its options Mpnet *NlpBertTokenizationConfig `json:"mpnet,omitempty"` // Roberta Indicates RoBERTa tokenization and its options - Roberta *NlpRobertaTokenizationConfig `json:"roberta,omitempty"` + Roberta *NlpRobertaTokenizationConfig `json:"roberta,omitempty"` + XlmRoberta *XlmRobertaTokenizationConfig `json:"xlm_roberta,omitempty"` } // MarhsalJSON overrides marshalling for types with additional properties diff --git a/typedapi/types/tokenizer.go b/typedapi/types/tokenizer.go index 5a7175e363..fa012276cd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // string // TokenizerDefinition // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L140-L145 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L140-L145 type Tokenizer any type TokenizerVariant interface { diff --git a/typedapi/types/tokenizerdefinition.go b/typedapi/types/tokenizerdefinition.go index 34dacc9852..19eb88038d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -41,7 +41,7 @@ package types // KuromojiTokenizer // NoriTokenizer // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L147-L170 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L147-L170 type TokenizerDefinition any type TokenizerDefinitionVariant interface { diff --git a/typedapi/types/tokenpruningconfig.go b/typedapi/types/tokenpruningconfig.go index e138839231..112d5925b2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TokenPruningConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/TokenPruningConfig.ts#L22-L35 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/TokenPruningConfig.ts#L22-L35 type TokenPruningConfig struct { // OnlyScorePrunedTokens Whether to only score pruned tokens, vs only scoring kept tokens. OnlyScorePrunedTokens *bool `json:"only_score_pruned_tokens,omitempty"` diff --git a/typedapi/types/toolcall.go b/typedapi/types/toolcall.go index 233182f489..8599ce4dbc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ToolCall type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedRequest.ts#L122-L138 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L112-L128 type ToolCall struct { // Function The function that the model called. Function ToolCallFunction `json:"function"` diff --git a/typedapi/types/toolcallfunction.go b/typedapi/types/toolcallfunction.go index a63649f37f..b5533ee026 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ToolCallFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/chat_completion_unified/UnifiedRequest.ts#L108-L120 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L98-L110 type ToolCallFunction struct { // Arguments The arguments to call the function with in JSON format. Arguments string `json:"arguments"` diff --git a/typedapi/types/topclassentry.go b/typedapi/types/topclassentry.go index 940e93274b..435ebd3ec6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TopClassEntry type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L428-L432 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L459-L463 type TopClassEntry struct { ClassName string `json:"class_name"` ClassProbability Float64 `json:"class_probability"` diff --git a/typedapi/types/tophit.go b/typedapi/types/tophit.go index 916995e07f..f3fbf8e1e1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TopHit type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/text_structure/_types/Structure.ts#L35-L38 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/text_structure/_types/Structure.ts#L35-L38 type TopHit struct { Count int64 `json:"count"` Value json.RawMessage `json:"value,omitempty"` diff --git a/typedapi/types/tophitsaggregate.go b/typedapi/types/tophitsaggregate.go index 88c8735fcc..3fa16bd4e7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TopHitsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L747-L753 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L747-L753 type TopHitsAggregate struct { Hits HitsMetadata `json:"hits"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/tophitsaggregation.go b/typedapi/types/tophitsaggregation.go index 14faf76a0f..2002ab8adc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TopHitsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L346-L406 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L346-L406 type TopHitsAggregation struct { // DocvalueFields Fields for which to return doc values. DocvalueFields []FieldAndFormat `json:"docvalue_fields,omitempty"` diff --git a/typedapi/types/topleftbottomrightgeobounds.go b/typedapi/types/topleftbottomrightgeobounds.go index ed83176255..dbf7b152d5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TopLeftBottomRightGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L161-L164 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Geo.ts#L161-L164 type TopLeftBottomRightGeoBounds struct { BottomRight GeoLocation `json:"bottom_right"` TopLeft GeoLocation `json:"top_left"` diff --git a/typedapi/types/topmetrics.go b/typedapi/types/topmetrics.go index 24870358ac..ec518b5429 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TopMetrics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L832-L836 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L832-L836 type TopMetrics struct { Metrics map[string]FieldValue `json:"metrics"` Sort []FieldValue `json:"sort"` diff --git a/typedapi/types/topmetricsaggregate.go b/typedapi/types/topmetricsaggregate.go index 4b93fa0de2..69610d3c91 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TopMetricsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L827-L830 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L827-L830 type TopMetricsAggregate struct { Meta Metadata `json:"meta,omitempty"` Top []TopMetrics `json:"top"` diff --git a/typedapi/types/topmetricsaggregation.go b/typedapi/types/topmetricsaggregation.go index 514a8d0803..39deb81d17 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TopMetricsAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L408-L425 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L408-L425 type TopMetricsAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/topmetricsvalue.go b/typedapi/types/topmetricsvalue.go index 10b05133e9..8e686132fd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TopMetricsValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L427-L432 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L427-L432 type TopMetricsValue struct { // Field A field to return as a metric. Field string `json:"field"` diff --git a/typedapi/types/toprightbottomleftgeobounds.go b/typedapi/types/toprightbottomleftgeobounds.go index dc4f17a9ca..0ddcf9ecad 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TopRightBottomLeftGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L166-L169 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Geo.ts#L166-L169 type TopRightBottomLeftGeoBounds struct { BottomLeft GeoLocation `json:"bottom_left"` TopRight GeoLocation `json:"top_right"` diff --git a/typedapi/types/totalfeatureimportance.go b/typedapi/types/totalfeatureimportance.go index 1a5df6dd80..4169e02069 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TotalFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L289-L296 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L290-L297 type TotalFeatureImportance struct { // Classes If the trained model is a classification model, feature importance statistics // are gathered per target class value. diff --git a/typedapi/types/totalfeatureimportanceclass.go b/typedapi/types/totalfeatureimportanceclass.go index fecdfd3930..80c0d3eec8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TotalFeatureImportanceClass type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L298-L303 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L299-L304 type TotalFeatureImportanceClass struct { // ClassName The target class value. Could be a string, boolean, or number. ClassName string `json:"class_name"` diff --git a/typedapi/types/totalfeatureimportancestatistics.go b/typedapi/types/totalfeatureimportancestatistics.go index 2773875511..ec7b8e19c7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TotalFeatureImportanceStatistics type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L305-L312 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L306-L313 type TotalFeatureImportanceStatistics struct { // Max The maximum importance value across all the training data for this feature. Max int `json:"max"` diff --git a/typedapi/types/totalhits.go b/typedapi/types/totalhits.go index 4adf03c6db..aa66d5bb1f 100644 --- a/typedapi/types/totalhits.go +++ b/typedapi/types/totalhits.go @@ -22,7 +22,7 @@ import ( "encoding/json" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/totalhitsrelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/totalhitsrelation" ) // TotalHits type. diff --git a/typedapi/types/totaluserprofiles.go b/typedapi/types/totaluserprofiles.go index 04340c3c0d..a9da0af7c4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TotalUserProfiles type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/suggest_user_profiles/Response.ts#L24-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/suggest_user_profiles/Response.ts#L24-L27 type TotalUserProfiles struct { Relation string `json:"relation"` Value int64 `json:"value"` diff --git a/typedapi/types/trackhits.go b/typedapi/types/trackhits.go index 2444d29171..50c7460034 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,7 +25,7 @@ package types // bool // int // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/search/_types/hits.ts#L143-L151 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 539ea1eeea..463234fcce 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TrainedModel type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L60-L72 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L60-L72 type TrainedModel struct { // Ensemble The definition for an ensemble model Ensemble *Ensemble `json:"ensemble,omitempty"` diff --git a/typedapi/types/trainedmodelassignment.go b/typedapi/types/trainedmodelassignment.go index 31b5687bf3..ca34a8f84c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/deploymentassignmentstate" ) // TrainedModelAssignment type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L459-L476 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L472-L489 type TrainedModelAssignment struct { AdaptiveAllocations *AdaptiveAllocationsSettings `json:"adaptive_allocations,omitempty"` // AssignmentState The overall assignment state. diff --git a/typedapi/types/trainedmodelassignmentroutingstateandreason.go b/typedapi/types/trainedmodelassignmentroutingstateandreason.go new file mode 100644 index 0000000000..ed1ee2f856 --- /dev/null +++ b/typedapi/types/trainedmodelassignmentroutingstateandreason.go @@ -0,0 +1,89 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/routingstate" +) + +// TrainedModelAssignmentRoutingStateAndReason type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L431-L441 +type TrainedModelAssignmentRoutingStateAndReason struct { + // Reason The reason for the current state. It is usually populated only when the + // `routing_state` is `failed`. + Reason *string `json:"reason,omitempty"` + // RoutingState The current routing state. + RoutingState routingstate.RoutingState `json:"routing_state"` +} + +func (s *TrainedModelAssignmentRoutingStateAndReason) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "reason": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Reason", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Reason = &o + + case "routing_state": + if err := dec.Decode(&s.RoutingState); err != nil { + return fmt.Errorf("%s | %w", "RoutingState", err) + } + + } + } + return nil +} + +// NewTrainedModelAssignmentRoutingStateAndReason returns a TrainedModelAssignmentRoutingStateAndReason. +func NewTrainedModelAssignmentRoutingStateAndReason() *TrainedModelAssignmentRoutingStateAndReason { + r := &TrainedModelAssignmentRoutingStateAndReason{} + + return r +} + +// false diff --git a/typedapi/types/trainedmodelassignmentroutingtable.go b/typedapi/types/trainedmodelassignmentroutingtable.go index 600c768375..ca622daffd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/routingstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/routingstate" ) // TrainedModelAssignmentRoutingTable type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L430-L448 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L443-L461 type TrainedModelAssignmentRoutingTable struct { // CurrentAllocations Current number of allocations. CurrentAllocations int `json:"current_allocations"` diff --git a/typedapi/types/trainedmodelassignmenttaskparameters.go b/typedapi/types/trainedmodelassignmenttaskparameters.go index b7bc1a1b8b..138cf42929 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainingpriority" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/trainingpriority" ) // TrainedModelAssignmentTaskParameters type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L369-L405 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L370-L406 type TrainedModelAssignmentTaskParameters struct { // CacheSize The size of the trained model cache. CacheSize ByteSize `json:"cache_size,omitempty"` diff --git a/typedapi/types/trainedmodelconfig.go b/typedapi/types/trainedmodelconfig.go index 959370d959..a98b114bf6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainedmodeltype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/trainedmodeltype" ) // TrainedModelConfig type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L203-L239 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L203-L240 type TrainedModelConfig struct { CompressedDefinition *string `json:"compressed_definition,omitempty"` // CreateTime The time when the trained model was created. @@ -68,8 +68,9 @@ type TrainedModelConfig struct { ModelPackage *ModelPackageConfig `json:"model_package,omitempty"` ModelSizeBytes ByteSize `json:"model_size_bytes,omitempty"` // ModelType The model type - ModelType *trainedmodeltype.TrainedModelType `json:"model_type,omitempty"` - PrefixStrings *TrainedModelPrefixStrings `json:"prefix_strings,omitempty"` + ModelType *trainedmodeltype.TrainedModelType `json:"model_type,omitempty"` + PlatformArchitecture *string `json:"platform_architecture,omitempty"` + PrefixStrings *TrainedModelPrefixStrings `json:"prefix_strings,omitempty"` // Tags A comma delimited string of tags. A trained model can have many tags, or // none. Tags []string `json:"tags"` @@ -239,6 +240,18 @@ func (s *TrainedModelConfig) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "ModelType", err) } + case "platform_architecture": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "PlatformArchitecture", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.PlatformArchitecture = &o + case "prefix_strings": if err := dec.Decode(&s.PrefixStrings); err != nil { return fmt.Errorf("%s | %w", "PrefixStrings", err) diff --git a/typedapi/types/trainedmodelconfiginput.go b/typedapi/types/trainedmodelconfiginput.go index fc078a0ddd..aa3f3b82fa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TrainedModelConfigInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L241-L244 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L242-L245 type TrainedModelConfigInput struct { // FieldNames An array of input field names for the model. FieldNames []string `json:"field_names"` diff --git a/typedapi/types/trainedmodelconfigmetadata.go b/typedapi/types/trainedmodelconfigmetadata.go index 1b8a189d41..646663b3f4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TrainedModelConfigMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L246-L254 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L247-L255 type TrainedModelConfigMetadata struct { // FeatureImportanceBaseline An object that contains the baseline for feature importance values. For // regression analysis, it is a single value. For classification analysis, there diff --git a/typedapi/types/trainedmodeldeploymentallocationstatus.go b/typedapi/types/trainedmodeldeploymentallocationstatus.go index f69efa040b..11ada2839f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentallocationstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/deploymentallocationstate" ) // TrainedModelDeploymentAllocationStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L450-L457 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L463-L470 type TrainedModelDeploymentAllocationStatus struct { // AllocationCount The current number of nodes where the model is allocated. AllocationCount int `json:"allocation_count"` diff --git a/typedapi/types/trainedmodeldeploymentnodesstats.go b/typedapi/types/trainedmodeldeploymentnodesstats.go index 8ab9230fe0..bf65e44e48 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TrainedModelDeploymentNodesStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L156-L201 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L156-L201 type TrainedModelDeploymentNodesStats struct { // AverageInferenceTimeMs The average time for each inference call to complete on this node. AverageInferenceTimeMs Float64 `json:"average_inference_time_ms,omitempty"` @@ -54,12 +54,12 @@ type TrainedModelDeploymentNodesStats struct { // NumberOfPendingRequests The number of inference requests queued to be processed. NumberOfPendingRequests *int `json:"number_of_pending_requests,omitempty"` PeakThroughputPerMinute int64 `json:"peak_throughput_per_minute"` - // RejectionExecutionCount The number of inference requests that were not processed because the queue + // RejectedExecutionCount The number of inference requests that were not processed because the queue // was full. - RejectionExecutionCount *int `json:"rejection_execution_count,omitempty"` + RejectedExecutionCount *int `json:"rejected_execution_count,omitempty"` // RoutingState The current routing state and reason for the current routing state for this // allocation. - RoutingState TrainedModelAssignmentRoutingTable `json:"routing_state"` + RoutingState TrainedModelAssignmentRoutingStateAndReason `json:"routing_state"` // StartTime The epoch timestamp when the allocation started. StartTime *int64 `json:"start_time,omitempty"` // ThreadsPerAllocation The number of threads used by each allocation during inference. @@ -217,7 +217,7 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error { s.PeakThroughputPerMinute = f } - case "rejection_execution_count": + case "rejected_execution_count": var tmp any dec.Decode(&tmp) @@ -225,12 +225,12 @@ func (s *TrainedModelDeploymentNodesStats) UnmarshalJSON(data []byte) error { case string: value, err := strconv.Atoi(v) if err != nil { - return fmt.Errorf("%s | %w", "RejectionExecutionCount", err) + return fmt.Errorf("%s | %w", "RejectedExecutionCount", err) } - s.RejectionExecutionCount = &value + s.RejectedExecutionCount = &value case float64: f := int(v) - s.RejectionExecutionCount = &f + s.RejectedExecutionCount = &f } case "routing_state": diff --git a/typedapi/types/trainedmodeldeploymentstats.go b/typedapi/types/trainedmodeldeploymentstats.go index 790a566591..e3e162cac6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/deploymentassignmentstate" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/trainingpriority" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/deploymentassignmentstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/trainingpriority" ) // TrainedModelDeploymentStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L62-L107 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L62-L107 type TrainedModelDeploymentStats struct { AdaptiveAllocations *AdaptiveAllocationsSettings `json:"adaptive_allocations,omitempty"` // AllocationStatus The detailed allocation status for the deployment. diff --git a/typedapi/types/trainedmodelentities.go b/typedapi/types/trainedmodelentities.go index 0a8f5db42a..03ade78899 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TrainedModelEntities type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L421-L427 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L452-L458 type TrainedModelEntities struct { ClassName string `json:"class_name"` ClassProbability Float64 `json:"class_probability"` diff --git a/typedapi/types/trainedmodelinferenceclassimportance.go b/typedapi/types/trainedmodelinferenceclassimportance.go index 51e941c093..9b091f31e8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceClassImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L434-L437 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L465-L468 type TrainedModelInferenceClassImportance struct { ClassName string `json:"class_name"` Importance Float64 `json:"importance"` diff --git a/typedapi/types/trainedmodelinferencefeatureimportance.go b/typedapi/types/trainedmodelinferencefeatureimportance.go index 7edcc18a47..e4c4eb6ab2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceFeatureImportance type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L439-L443 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L470-L474 type TrainedModelInferenceFeatureImportance struct { Classes []TrainedModelInferenceClassImportance `json:"classes,omitempty"` FeatureName string `json:"feature_name"` diff --git a/typedapi/types/trainedmodelinferencestats.go b/typedapi/types/trainedmodelinferencestats.go index dd5ef8aaf1..cb7be047f0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TrainedModelInferenceStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L127-L147 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L127-L147 type TrainedModelInferenceStats struct { // CacheMissCount The number of times the model was loaded for inference and was not retrieved // from the cache. diff --git a/typedapi/types/trainedmodellocation.go b/typedapi/types/trainedmodellocation.go index 0525cba607..a441cb6826 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TrainedModelLocation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L478-L480 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L491-L493 type TrainedModelLocation struct { Index TrainedModelLocationIndex `json:"index"` } diff --git a/typedapi/types/trainedmodellocationindex.go b/typedapi/types/trainedmodellocationindex.go index 16a222f38b..e54890fa05 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TrainedModelLocationIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L482-L484 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L495-L497 type TrainedModelLocationIndex struct { Name string `json:"name"` } diff --git a/typedapi/types/trainedmodelprefixstrings.go b/typedapi/types/trainedmodelprefixstrings.go index 14f855cf2f..2e63b37dec 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TrainedModelPrefixStrings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L486-L495 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L499-L508 type TrainedModelPrefixStrings struct { // Ingest String prepended to input at ingest Ingest *string `json:"ingest,omitempty"` diff --git a/typedapi/types/trainedmodelsizestats.go b/typedapi/types/trainedmodelsizestats.go index f1c3242e17..1a05cd4446 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TrainedModelSizeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L149-L154 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L149-L154 type TrainedModelSizeStats struct { // ModelSizeBytes The size of the model in bytes. ModelSizeBytes ByteSize `json:"model_size_bytes"` diff --git a/typedapi/types/trainedmodelsrecord.go b/typedapi/types/trainedmodelsrecord.go index d0c2cd7a3d..0511ec35e4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TrainedModelsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/ml_trained_models/types.ts#L23-L115 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/ml_trained_models/types.ts#L23-L115 type TrainedModelsRecord struct { // CreateTime The time the model was created. CreateTime DateTime `json:"create_time,omitempty"` diff --git a/typedapi/types/trainedmodelstats.go b/typedapi/types/trainedmodelstats.go index b5bfdc00c6..0d472cd166 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TrainedModelStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/TrainedModel.ts#L42-L60 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/TrainedModel.ts#L42-L60 type TrainedModelStats struct { // DeploymentStats A collection of deployment stats, which is present when the models are // deployed. diff --git a/typedapi/types/trainedmodeltree.go b/typedapi/types/trainedmodeltree.go index 2e2f4a0af9..c25c114f6f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TrainedModelTree type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L74-L79 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L74-L79 type TrainedModelTree struct { ClassificationLabels []string `json:"classification_labels,omitempty"` FeatureNames []string `json:"feature_names"` diff --git a/typedapi/types/trainedmodeltreenode.go b/typedapi/types/trainedmodeltreenode.go index f65569a4d7..d9c9ed29f6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TrainedModelTreeNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L81-L91 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L81-L91 type TrainedModelTreeNode struct { DecisionType *string `json:"decision_type,omitempty"` DefaultLeft *bool `json:"default_left,omitempty"` diff --git a/typedapi/types/transformauthorization.go b/typedapi/types/transformauthorization.go index f60aefd5a3..2386b9913d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TransformAuthorization type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/Authorization.ts#L59-L71 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/Authorization.ts#L59-L71 type TransformAuthorization struct { // ApiKey If an API key was used for the most recent update to the transform, its name // and identifier are listed in the response. diff --git a/typedapi/types/transformcontainer.go b/typedapi/types/transformcontainer.go index 548171b525..54f8e0c4c3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // TransformContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Transform.ts#L27-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Transform.ts#L28-L35 type TransformContainer struct { AdditionalTransformContainerProperty map[string]json.RawMessage `json:"-"` Chain []TransformContainer `json:"chain,omitempty"` diff --git a/typedapi/types/transformdestination.go b/typedapi/types/transformdestination.go index 754d939881..bd7a7c1b29 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TransformDestination type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/_types/Transform.ts#L34-L45 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/_types/Transform.ts#L34-L45 type TransformDestination struct { // Index The destination index for the transform. The mappings of the destination // index are deduced based on the source diff --git a/typedapi/types/transformhealthissue.go b/typedapi/types/transformhealthissue.go new file mode 100644 index 0000000000..fd0433bbb3 --- /dev/null +++ b/typedapi/types/transformhealthissue.go @@ -0,0 +1,138 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// TransformHealthIssue type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/get_transform_stats/types.ts#L51-L63 +type TransformHealthIssue struct { + // Count Number of times this issue has occurred since it started + Count int `json:"count"` + // Details Details about the issue + Details *string `json:"details,omitempty"` + FirstOccurenceString DateTime `json:"first_occurence_string,omitempty"` + // FirstOccurrence The timestamp this issue occurred for for the first time + FirstOccurrence *int64 `json:"first_occurrence,omitempty"` + // Issue A description of the issue + Issue string `json:"issue"` + // Type The type of the issue + Type string `json:"type"` +} + +func (s *TransformHealthIssue) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "count": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "Count", err) + } + s.Count = value + case float64: + f := int(v) + s.Count = f + } + + case "details": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Details", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Details = &o + + case "first_occurence_string": + if err := dec.Decode(&s.FirstOccurenceString); err != nil { + return fmt.Errorf("%s | %w", "FirstOccurenceString", err) + } + + case "first_occurrence": + if err := dec.Decode(&s.FirstOccurrence); err != nil { + return fmt.Errorf("%s | %w", "FirstOccurrence", err) + } + + case "issue": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Issue", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Issue = o + + case "type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "Type", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.Type = o + + } + } + return nil +} + +// NewTransformHealthIssue returns a TransformHealthIssue. +func NewTransformHealthIssue() *TransformHealthIssue { + r := &TransformHealthIssue{} + + return r +} + +// false diff --git a/typedapi/types/transformindexerstats.go b/typedapi/types/transformindexerstats.go index c6aaad2d98..2b8e0fd1fa 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TransformIndexerStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/get_transform_stats/types.ts#L56-L74 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/get_transform_stats/types.ts#L73-L91 type TransformIndexerStats struct { DeleteTimeInMs *int64 `json:"delete_time_in_ms,omitempty"` DocumentsDeleted *int64 `json:"documents_deleted,omitempty"` diff --git a/typedapi/types/transformprogress.go b/typedapi/types/transformprogress.go index d5424db5a2..94280f612a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TransformProgress type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/get_transform_stats/types.ts#L48-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/get_transform_stats/types.ts#L65-L71 type TransformProgress struct { DocsIndexed int64 `json:"docs_indexed"` DocsProcessed int64 `json:"docs_processed"` diff --git a/typedapi/types/transformsource.go b/typedapi/types/transformsource.go index b3244b69ca..f05d7396d7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TransformSource type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/_types/Transform.ts#L146-L165 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/_types/Transform.ts#L146-L165 type TransformSource struct { // Index The source indices for the transform. It can be a single index, an index // pattern (for example, `"my-index-*""`), an diff --git a/typedapi/types/transformsrecord.go b/typedapi/types/transformsrecord.go index 6c10b810cf..88e2e05746 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TransformsRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cat/transforms/types.ts#L22-L197 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cat/transforms/types.ts#L22-L197 type TransformsRecord struct { // ChangesLastDetectionTime The timestamp when changes were last detected in the source indices. ChangesLastDetectionTime *string `json:"changes_last_detection_time,omitempty"` diff --git a/typedapi/types/transformstats.go b/typedapi/types/transformstats.go index ee683637d7..ed687a718a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TransformStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/get_transform_stats/types.ts#L31-L42 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/get_transform_stats/types.ts#L31-L42 type TransformStats struct { Checkpointing Checkpointing `json:"checkpointing"` Health *TransformStatsHealth `json:"health,omitempty"` diff --git a/typedapi/types/transformstatshealth.go b/typedapi/types/transformstatshealth.go index ab782d773f..2464083909 100644 --- a/typedapi/types/transformstatshealth.go +++ b/typedapi/types/transformstatshealth.go @@ -16,18 +16,21 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/healthstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/healthstatus" ) // TransformStatsHealth type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/get_transform_stats/types.ts#L44-L46 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/get_transform_stats/types.ts#L44-L49 type TransformStatsHealth struct { + // Issues If a non-healthy status is returned, contains a list of issues of the + // transform. + Issues []TransformHealthIssue `json:"issues,omitempty"` Status healthstatus.HealthStatus `json:"status"` } diff --git a/typedapi/types/transformsummary.go b/typedapi/types/transformsummary.go index b437ccdca4..1f75ff2a4d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,14 +31,15 @@ import ( // TransformSummary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/transform/get_transform/types.ts#L33-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/transform/get_transform/types.ts#L33-L62 type TransformSummary struct { // Authorization The security privileges that the transform uses to run its queries. If // Elastic Stack security features were disabled at the time of the most recent // update to the transform, this property is omitted. Authorization *TransformAuthorization `json:"authorization,omitempty"` // CreateTime The time the transform was created. - CreateTime *int64 `json:"create_time,omitempty"` + CreateTime *int64 `json:"create_time,omitempty"` + CreateTimeString DateTime `json:"create_time_string,omitempty"` // Description Free text description of the transform. Description *string `json:"description,omitempty"` // Dest The destination for the transform. @@ -86,6 +87,11 @@ func (s *TransformSummary) UnmarshalJSON(data []byte) error { return fmt.Errorf("%s | %w", "CreateTime", err) } + case "create_time_string": + if err := dec.Decode(&s.CreateTimeString); err != nil { + return fmt.Errorf("%s | %w", "CreateTimeString", err) + } + case "description": var tmp json.RawMessage if err := dec.Decode(&tmp); err != nil { diff --git a/typedapi/types/translog.go b/typedapi/types/translog.go index 660d86bbbf..b6895b4b36 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/translogdurability" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/translogdurability" ) // Translog type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L355-L377 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L355-L377 type Translog struct { // Durability Whether or not to `fsync` and commit the translog after every index, delete, // update, or bulk request. diff --git a/typedapi/types/translogretention.go b/typedapi/types/translogretention.go index bd49b71cfa..75c6775511 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TranslogRetention type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/_types/IndexSettings.ts#L396-L415 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/_types/IndexSettings.ts#L396-L415 type TranslogRetention struct { // Age This controls the maximum duration for which translog files are kept by each // shard. Keeping more diff --git a/typedapi/types/translogstats.go b/typedapi/types/translogstats.go index 0f70fe2532..3fde7ba147 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TranslogStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L400-L408 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L402-L410 type TranslogStats struct { EarliestLastModifiedAge int64 `json:"earliest_last_modified_age"` Operations int64 `json:"operations"` diff --git a/typedapi/types/translogstatus.go b/typedapi/types/translogstatus.go index 75f8d8d418..426d0de6a3 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TranslogStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/recovery/types.ts#L102-L109 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/recovery/types.ts#L102-L109 type TranslogStatus struct { Percent Percentage `json:"percent"` Recovered int64 `json:"recovered"` diff --git a/typedapi/types/transport.go b/typedapi/types/transport.go index ac780bb933..38bbd023e2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Transport type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L1118-L1161 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L1118-L1161 type Transport struct { // InboundHandlingTimeHistogram The distribution of the time spent handling each inbound message on a // transport thread, represented as a histogram. diff --git a/typedapi/types/transporthistogram.go b/typedapi/types/transporthistogram.go index 7553acdf7d..8c6a059011 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TransportHistogram type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/nodes/_types/Stats.ts#L1163-L1177 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/nodes/_types/Stats.ts#L1163-L1177 type TransportHistogram struct { // Count The number of times a transport thread took a period of time within the // bounds of this bucket to handle an inbound message. diff --git a/typedapi/types/triggercontainer.go b/typedapi/types/triggercontainer.go index 5fdce75eb8..d3a36d6795 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // TriggerContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Trigger.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Trigger.ts#L23-L28 type TriggerContainer struct { AdditionalTriggerContainerProperty map[string]json.RawMessage `json:"-"` Schedule *ScheduleContainer `json:"schedule,omitempty"` diff --git a/typedapi/types/triggereventcontainer.go b/typedapi/types/triggereventcontainer.go index c8b94f6d89..6b432d8fd2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // TriggerEventContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Trigger.ts#L32-L37 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Trigger.ts#L32-L37 type TriggerEventContainer struct { AdditionalTriggerEventContainerProperty map[string]json.RawMessage `json:"-"` Schedule *ScheduleTriggerEvent `json:"schedule,omitempty"` diff --git a/typedapi/types/triggereventresult.go b/typedapi/types/triggereventresult.go index e9cf7a7f1a..0b1ed068e4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TriggerEventResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Trigger.ts#L39-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Trigger.ts#L39-L43 type TriggerEventResult struct { Manual TriggerEventContainer `json:"manual"` TriggeredTime DateTime `json:"triggered_time"` diff --git a/typedapi/types/trimprocessor.go b/typedapi/types/trimprocessor.go index a997c65b41..a895cd8f56 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TrimProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1526-L1542 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/trimtokenfilter.go b/typedapi/types/trimtokenfilter.go index 09c5858970..6ed42664a1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // TrimTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L327-L329 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L327-L329 type TrimTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/truncatetokenfilter.go b/typedapi/types/truncatetokenfilter.go index c5d6db3b6d..b1ad73fb19 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TruncateTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L331-L334 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L331-L334 type TruncateTokenFilter struct { Length *int `json:"length,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/ttestaggregate.go b/typedapi/types/ttestaggregate.go index dd934d642a..0413d65df5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TTestAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L838-L845 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L838-L845 type TTestAggregate struct { Meta Metadata `json:"meta,omitempty"` Value *Float64 `json:"value,omitempty"` diff --git a/typedapi/types/ttestaggregation.go b/typedapi/types/ttestaggregation.go index 6331326945..a4ffc853ed 100644 --- a/typedapi/types/ttestaggregation.go +++ b/typedapi/types/ttestaggregation.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/ttesttype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/ttesttype" ) // TTestAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L303-L317 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L303-L317 type TTestAggregation struct { // A Test population A. A *TestPopulation `json:"a,omitempty"` diff --git a/typedapi/types/turkishanalyzer.go b/typedapi/types/turkishanalyzer.go index 9d31af917f..9b034e32c5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TurkishAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L310-L315 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L310-L315 type TurkishAnalyzer struct { StemExclusion []string `json:"stem_exclusion,omitempty"` Stopwords []string `json:"stopwords,omitempty"` diff --git a/typedapi/types/typefieldmappings.go b/typedapi/types/typefieldmappings.go index 8e0d6f5f1d..0f3272fea2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // TypeFieldMappings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/get_field_mapping/types.ts#L24-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/get_field_mapping/types.ts#L24-L26 type TypeFieldMappings struct { Mappings map[string]FieldMapping `json:"mappings"` } diff --git a/typedapi/types/typemapping.go b/typedapi/types/typemapping.go index 04c772ea84..21c677af88 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/subobjects" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/subobjects" ) // TypeMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/TypeMapping.ts#L34-L57 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/TypeMapping.ts#L34-L57 type TypeMapping struct { AllField *AllField `json:"all_field,omitempty"` DataStreamTimestamp_ *DataStreamTimestamp `json:"_data_stream_timestamp,omitempty"` diff --git a/typedapi/types/typequery.go b/typedapi/types/typequery.go index de9b770838..32b953751f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // TypeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L301-L303 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L301-L303 type TypeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/uaxemailurltokenizer.go b/typedapi/types/uaxemailurltokenizer.go index 1c6b8edbb3..0db37fddeb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UaxEmailUrlTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L130-L133 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L130-L133 type UaxEmailUrlTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/unassignedinformation.go b/typedapi/types/unassignedinformation.go index 5132b89ab0..6abcdefb75 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/unassignedinformationreason" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/unassignedinformationreason" ) // UnassignedInformation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/cluster/allocation_explain/types.ts#L128-L136 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/allocation_explain/types.ts#L128-L136 type UnassignedInformation struct { AllocationStatus *string `json:"allocation_status,omitempty"` At DateTime `json:"at"` diff --git a/typedapi/types/uniquetokenfilter.go b/typedapi/types/uniquetokenfilter.go index 4a0f566444..0679a3291a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UniqueTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L336-L339 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L336-L339 type UniqueTokenFilter struct { OnlyOnSamePosition *bool `json:"only_on_same_position,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/unmappedraretermsaggregate.go b/typedapi/types/unmappedraretermsaggregate.go index 7c990d1e15..3df9817991 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // UnmappedRareTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L493-L499 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L493-L499 type UnmappedRareTermsAggregate struct { Buckets BucketsVoid `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/unmappedsampleraggregate.go b/typedapi/types/unmappedsampleraggregate.go index 8dc8f4ef33..a81876d059 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // UnmappedSamplerAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L561-L562 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L561-L562 type UnmappedSamplerAggregate struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/unmappedsignificanttermsaggregate.go b/typedapi/types/unmappedsignificanttermsaggregate.go index 79eef939cf..0f25383e23 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UnmappedSignificantTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L690-L696 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L690-L696 type UnmappedSignificantTermsAggregate struct { BgCount *int64 `json:"bg_count,omitempty"` Buckets BucketsVoid `json:"buckets"` diff --git a/typedapi/types/unmappedtermsaggregate.go b/typedapi/types/unmappedtermsaggregate.go index 16b06c8dbc..1f8bb752a9 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UnmappedTermsAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L463-L469 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L463-L469 type UnmappedTermsAggregate struct { Buckets BucketsVoid `json:"buckets"` DocCountErrorUpperBound *int64 `json:"doc_count_error_upper_bound,omitempty"` diff --git a/typedapi/types/unrateddocument.go b/typedapi/types/unrateddocument.go index 1dc008223b..871190ad32 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // UnratedDocument type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/rank_eval/types.ts#L150-L153 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/rank_eval/types.ts#L150-L153 type UnratedDocument struct { Id_ string `json:"_id"` Index_ string `json:"_index"` diff --git a/typedapi/types/unsignedlongnumberproperty.go b/typedapi/types/unsignedlongnumberproperty.go index 7f132d0360..6ed4265586 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,15 +28,15 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/onscripterror" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/timeseriesmetrictype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/onscripterror" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/timeseriesmetrictype" ) // UnsignedLongNumberProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L181-L184 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L190-L193 type UnsignedLongNumberProperty struct { Boost *Float64 `json:"boost,omitempty"` Coerce *bool `json:"coerce,omitempty"` diff --git a/typedapi/types/untypeddecayfunction.go b/typedapi/types/untypeddecayfunction.go index fca82477b6..0515b0a0cc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/multivaluemode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/multivaluemode" ) // UntypedDecayFunction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/compound.ts#L204-L207 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/compound.ts#L204-L207 type UntypedDecayFunction struct { DecayFunctionBase map[string]DecayPlacement `json:"-"` // MultiValueMode Determines how the distance is calculated when a field used for computing the diff --git a/typedapi/types/untypeddistancefeaturequery.go b/typedapi/types/untypeddistancefeaturequery.go index 7d7a4d4db1..13557f3844 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UntypedDistanceFeatureQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/specialized.ts#L61-L64 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/specialized.ts#L61-L64 type UntypedDistanceFeatureQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/untypedrangequery.go b/typedapi/types/untypedrangequery.go index 05d12d80ab..616855729b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/rangerelation" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/rangerelation" ) // UntypedRangeQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L150-L159 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L150-L159 type UntypedRangeQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/updateaction.go b/typedapi/types/updateaction.go index cb8eb3f6fe..27e2aea311 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UpdateAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/bulk/types.ts#L182-L217 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/bulk/types.ts#L182-L217 type UpdateAction struct { // DetectNoop If true, the `result` in the response is set to 'noop' when no changes to the // document occur. diff --git a/typedapi/types/updatebyqueryrethrottlenode.go b/typedapi/types/updatebyqueryrethrottlenode.go index 1134fae435..74b5e03306 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/noderole" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/noderole" ) // UpdateByQueryRethrottleNode type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/update_by_query_rethrottle/UpdateByQueryRethrottleNode.ts#L25-L27 type UpdateByQueryRethrottleNode struct { Attributes map[string]string `json:"attributes"` Host string `json:"host"` diff --git a/typedapi/types/updateoperation.go b/typedapi/types/updateoperation.go index 177a9f5b89..2f282490b0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/versiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/versiontype" ) // UpdateOperation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_global/bulk/types.ts#L146-L156 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_global/bulk/types.ts#L146-L156 type UpdateOperation struct { // Id_ The document ID. Id_ *string `json:"_id,omitempty"` diff --git a/typedapi/types/uppercaseprocessor.go b/typedapi/types/uppercaseprocessor.go index 0311337ebf..c95af67fb0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UppercaseProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1544-L1560 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/uppercasetokenfilter.go b/typedapi/types/uppercasetokenfilter.go index 8b1756ba85..cb8441c542 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // UppercaseTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L341-L343 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L341-L343 type UppercaseTokenFilter struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/uripartsprocessor.go b/typedapi/types/uripartsprocessor.go index 6cd3a95a17..c38acc7d45 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UriPartsProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1580-L1606 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/urldecodeprocessor.go b/typedapi/types/urldecodeprocessor.go index b709b92b76..7f9f13ba94 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UrlDecodeProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L1562-L1578 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/usagephase.go b/typedapi/types/usagephase.go index 60d36d3185..cbb58cfc1c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // UsagePhase type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L154-L157 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L154-L157 type UsagePhase struct { Actions []string `json:"actions"` MinAge int64 `json:"min_age"` diff --git a/typedapi/types/usagephases.go b/typedapi/types/usagephases.go index 9e953192ac..cc6550d462 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // UsagePhases type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L159-L165 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L159-L165 type UsagePhases struct { Cold *UsagePhase `json:"cold,omitempty"` Delete *UsagePhase `json:"delete,omitempty"` diff --git a/typedapi/types/usagestatsindex.go b/typedapi/types/usagestatsindex.go index dd7ca59d69..8eee94fe9c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // UsageStatsIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L41-L43 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L42-L44 type UsageStatsIndex struct { Shards []UsageStatsShards `json:"shards"` } diff --git a/typedapi/types/usagestatsshards.go b/typedapi/types/usagestatsshards.go index 56e30867ca..b3678f526f 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UsageStatsShards type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L45-L50 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/field_usage_stats/IndicesFieldUsageStatsResponse.ts#L46-L51 type UsageStatsShards struct { Routing ShardRouting `json:"routing"` Stats IndicesShardsStats `json:"stats"` diff --git a/typedapi/types/user.go b/typedapi/types/user.go index 72b8ac99d9..d3e2f6d4ad 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // User type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/User.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/User.ts#L23-L31 type User struct { Email *string `json:"email,omitempty"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/useragentprocessor.go b/typedapi/types/useragentprocessor.go index ce35a64da1..85d683d802 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/useragentproperty" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/useragentproperty" ) // UserAgentProcessor type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Processors.ts#L515-L546 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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. diff --git a/typedapi/types/userindicesprivileges.go b/typedapi/types/userindicesprivileges.go index e4730e3515..50f4c49019 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/indexprivilege" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/indexprivilege" ) // UserIndicesPrivileges type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/Privileges.ts#L292-L314 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/Privileges.ts#L292-L314 type UserIndicesPrivileges struct { // AllowRestrictedIndices Set to `true` if using wildcard or regular expressions for patterns that // cover restricted indices. Implicitly, restricted indices have limited diff --git a/typedapi/types/userprofile.go b/typedapi/types/userprofile.go index 7454346329..ca5253e2b6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UserProfile type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/UserProfile.ts#L41-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/UserProfile.ts#L41-L47 type UserProfile struct { Data map[string]json.RawMessage `json:"data"` Enabled *bool `json:"enabled,omitempty"` diff --git a/typedapi/types/userprofilehitmetadata.go b/typedapi/types/userprofilehitmetadata.go index 5b8d58df30..c3efecde05 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UserProfileHitMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/UserProfile.ts#L27-L30 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/UserProfile.ts#L27-L30 type UserProfileHitMetadata struct { PrimaryTerm_ int64 `json:"_primary_term"` SeqNo_ int64 `json:"_seq_no"` diff --git a/typedapi/types/userprofileuser.go b/typedapi/types/userprofileuser.go index da3f0bf888..a6ced7d8cf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UserProfileUser type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/UserProfile.ts#L32-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/UserProfile.ts#L32-L39 type UserProfileUser struct { Email *string `json:"email,omitempty"` FullName *string `json:"full_name,omitempty"` diff --git a/typedapi/types/userprofilewithmetadata.go b/typedapi/types/userprofilewithmetadata.go index d64c85b96a..2628e731d5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UserProfileWithMetadata type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/_types/UserProfile.ts#L49-L52 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/_types/UserProfile.ts#L49-L52 type UserProfileWithMetadata struct { Data map[string]json.RawMessage `json:"data"` Doc_ UserProfileHitMetadata `json:"_doc"` diff --git a/typedapi/types/userquerycontainer.go b/typedapi/types/userquerycontainer.go index 695d2a384d..5e3e8690ff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // UserQueryContainer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/query_user/types.ts#L37-L101 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/query_user/types.ts#L37-L101 type UserQueryContainer struct { AdditionalUserQueryContainerProperty map[string]json.RawMessage `json:"-"` // Bool matches users matching boolean combinations of other queries. diff --git a/typedapi/types/userrealm.go b/typedapi/types/userrealm.go index 768fbf1b7e..cc21c592f6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // UserRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/security/get_token/types.ts#L50-L53 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/security/get_token/types.ts#L50-L53 type UserRealm struct { Name string `json:"name"` Type string `json:"type"` diff --git a/typedapi/types/validation.go b/typedapi/types/validation.go index cb3cb053bd..3211f614d6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,7 +28,7 @@ package types // IncludedInValidation // RegexValidation // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/connector/_types/Connector.ts#L50-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 0f58525e51..e8b0946b33 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ValidationLoss type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/DataframeAnalytics.ts#L571-L576 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/DataframeAnalytics.ts#L571-L576 type ValidationLoss struct { // FoldValues Validation loss values for every added decision tree during the forest // growing procedure. diff --git a/typedapi/types/valuecountaggregate.go b/typedapi/types/valuecountaggregate.go index 7a64edd882..9c2a6e5da8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ValueCountAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L231-L236 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L231-L236 type ValueCountAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/valuecountaggregation.go b/typedapi/types/valuecountaggregation.go index 6cb302cf4f..eb4d59adff 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ValueCountAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L434-L434 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L434-L434 type ValueCountAggregation struct { // Field The field on which to run the aggregation. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/variablewidthhistogramaggregate.go b/typedapi/types/variablewidthhistogramaggregate.go index 6fdb46394d..5603d0f31b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // VariableWidthHistogramAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L402-L404 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L402-L404 type VariableWidthHistogramAggregate struct { Buckets BucketsVariableWidthHistogramBucket `json:"buckets"` Meta Metadata `json:"meta,omitempty"` diff --git a/typedapi/types/variablewidthhistogramaggregation.go b/typedapi/types/variablewidthhistogramaggregation.go index cc0c48013b..d742abe573 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // VariableWidthHistogramAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/bucket.ts#L1091-L1115 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/bucket.ts#L1091-L1115 type VariableWidthHistogramAggregation struct { // Buckets The target number of buckets. Buckets *int `json:"buckets,omitempty"` diff --git a/typedapi/types/variablewidthhistogrambucket.go b/typedapi/types/variablewidthhistogrambucket.go index 1618c9cc7f..5760615a06 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -32,7 +32,7 @@ import ( // VariableWidthHistogramBucket type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L406-L413 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L406-L413 type VariableWidthHistogramBucket struct { Aggregations map[string]Aggregate `json:"-"` DocCount int64 `json:"doc_count"` diff --git a/typedapi/types/vector.go b/typedapi/types/vector.go index 3cdd63653f..3efda4c1bb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Vector type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L460-L464 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L460-L464 type Vector struct { Available bool `json:"available"` DenseVectorDimsAvgCount int `json:"dense_vector_dims_avg_count"` diff --git a/typedapi/types/verifyindex.go b/typedapi/types/verifyindex.go index b9095e6987..d995576420 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // VerifyIndex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/indices/recovery/types.ts#L111-L116 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/indices/recovery/types.ts#L111-L116 type VerifyIndex struct { CheckIndexTime Duration `json:"check_index_time,omitempty"` CheckIndexTimeInMillis int64 `json:"check_index_time_in_millis"` diff --git a/typedapi/types/versionproperty.go b/typedapi/types/versionproperty.go index 5cc3879d05..6d79de4a79 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // VersionProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L305-L307 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L314-L316 type VersionProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/vertex.go b/typedapi/types/vertex.go index 2f8eb1df6d..24e536bac4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Vertex type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/graph/_types/Vertex.ts#L23-L28 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/graph/_types/Vertex.ts#L23-L28 type Vertex struct { Depth int64 `json:"depth"` Field string `json:"field"` diff --git a/typedapi/types/vertexdefinition.go b/typedapi/types/vertexdefinition.go index 30ee5589c9..3203b95a04 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // VertexDefinition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/graph/_types/Vertex.ts#L30-L59 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/graph/_types/Vertex.ts#L30-L59 type VertexDefinition struct { // Exclude Prevents the specified terms from being included in the results. Exclude []string `json:"exclude,omitempty"` diff --git a/typedapi/types/vertexinclude.go b/typedapi/types/vertexinclude.go index 5f6eccb346..51cc71c681 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // VertexInclude type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/graph/_types/Vertex.ts#L61-L65 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/graph/_types/Vertex.ts#L61-L65 type VertexInclude struct { Boost *Float64 `json:"boost,omitempty"` Term string `json:"term"` diff --git a/typedapi/types/vocabulary.go b/typedapi/types/vocabulary.go index 4448f66feb..186bd79067 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Vocabulary type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L217-L219 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L248-L250 type Vocabulary struct { Index string `json:"index"` } diff --git a/typedapi/types/voyageaiservicesettings.go b/typedapi/types/voyageaiservicesettings.go new file mode 100644 index 0000000000..4824c3da39 --- /dev/null +++ b/typedapi/types/voyageaiservicesettings.go @@ -0,0 +1,143 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// VoyageAIServiceSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1075-L1106 +type VoyageAIServiceSettings struct { + // Dimensions The number of dimensions for resulting output embeddings. + // This setting maps to `output_dimension` in the VoyageAI documentation. + // Only for the `text_embedding` task type. + Dimensions *int `json:"dimensions,omitempty"` + // EmbeddingType The data type for the embeddings to be returned. + // This setting maps to `output_dtype` in the VoyageAI documentation. + // Permitted values: float, int8, bit. + // `int8` is a synonym of `byte` in the VoyageAI documentation. + // `bit` is a synonym of `binary` in the VoyageAI documentation. + // Only for the `text_embedding` task type. + EmbeddingType *float32 `json:"embedding_type,omitempty"` + // ModelId The name of the model to use for the inference task. + // Refer to the VoyageAI documentation for the list of available text embedding + // and rerank models. + ModelId string `json:"model_id"` + // RateLimit This setting helps to minimize the number of rate limit errors returned from + // VoyageAI. + // The `voyageai` service sets a default number of requests allowed per minute + // depending on the task type. + // For both `text_embedding` and `rerank`, it is set to `2000`. + RateLimit *RateLimitSetting `json:"rate_limit,omitempty"` +} + +func (s *VoyageAIServiceSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "dimensions": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "Dimensions", err) + } + s.Dimensions = &value + case float64: + f := int(v) + s.Dimensions = &f + } + + case "embedding_type": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseFloat(v, 32) + if err != nil { + return fmt.Errorf("%s | %w", "EmbeddingType", err) + } + f := float32(value) + s.EmbeddingType = &f + case float64: + f := float32(v) + s.EmbeddingType = &f + } + + case "model_id": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "ModelId", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.ModelId = o + + case "rate_limit": + if err := dec.Decode(&s.RateLimit); err != nil { + return fmt.Errorf("%s | %w", "RateLimit", err) + } + + } + } + return nil +} + +// NewVoyageAIServiceSettings returns a VoyageAIServiceSettings. +func NewVoyageAIServiceSettings() *VoyageAIServiceSettings { + r := &VoyageAIServiceSettings{} + + return r +} + +// true + +type VoyageAIServiceSettingsVariant interface { + VoyageAIServiceSettingsCaster() *VoyageAIServiceSettings +} + +func (s *VoyageAIServiceSettings) VoyageAIServiceSettingsCaster() *VoyageAIServiceSettings { + return s +} diff --git a/typedapi/types/voyageaitasksettings.go b/typedapi/types/voyageaitasksettings.go new file mode 100644 index 0000000000..a656c0386a --- /dev/null +++ b/typedapi/types/voyageaitasksettings.go @@ -0,0 +1,143 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" +) + +// VoyageAITaskSettings type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1108-L1132 +type VoyageAITaskSettings struct { + // InputType Type of the input text. + // Permitted values: `ingest` (maps to `document` in the VoyageAI + // documentation), `search` (maps to `query` in the VoyageAI documentation). + // Only for the `text_embedding` task type. + InputType *string `json:"input_type,omitempty"` + // ReturnDocuments Whether to return the source documents in the response. + // Only for the `rerank` task type. + ReturnDocuments *bool `json:"return_documents,omitempty"` + // TopK The number of most relevant documents to return. + // If not specified, the reranking results of all documents will be returned. + // Only for the `rerank` task type. + TopK *int `json:"top_k,omitempty"` + // Truncation Whether to truncate the input texts to fit within the context length. + Truncation *bool `json:"truncation,omitempty"` +} + +func (s *VoyageAITaskSettings) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "input_type": + var tmp json.RawMessage + if err := dec.Decode(&tmp); err != nil { + return fmt.Errorf("%s | %w", "InputType", err) + } + o := string(tmp[:]) + o, err = strconv.Unquote(o) + if err != nil { + o = string(tmp[:]) + } + s.InputType = &o + + case "return_documents": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "ReturnDocuments", err) + } + s.ReturnDocuments = &value + case bool: + s.ReturnDocuments = &v + } + + case "top_k": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "TopK", err) + } + s.TopK = &value + case float64: + f := int(v) + s.TopK = &f + } + + case "truncation": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "Truncation", err) + } + s.Truncation = &value + case bool: + s.Truncation = &v + } + + } + } + return nil +} + +// NewVoyageAITaskSettings returns a VoyageAITaskSettings. +func NewVoyageAITaskSettings() *VoyageAITaskSettings { + r := &VoyageAITaskSettings{} + + return r +} + +// true + +type VoyageAITaskSettingsVariant interface { + VoyageAITaskSettingsCaster() *VoyageAITaskSettings +} + +func (s *VoyageAITaskSettings) VoyageAITaskSettingsCaster() *VoyageAITaskSettings { + return s +} diff --git a/typedapi/types/waitforactiveshards.go b/typedapi/types/waitforactiveshards.go index 7b8e679d8e..11b0f5add5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -25,5 +25,5 @@ package types // int // waitforactiveshardoptions.WaitForActiveShardOptions // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/common.ts#L139-L140 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/common.ts#L139-L140 type WaitForActiveShards any diff --git a/typedapi/types/esqlresult.go b/typedapi/types/waitfornodes.go similarity index 71% rename from typedapi/types/esqlresult.go rename to typedapi/types/waitfornodes.go index 84800ef455..6ed737ef2d 100644 --- a/typedapi/types/esqlresult.go +++ b/typedapi/types/waitfornodes.go @@ -16,11 +16,14 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types -// EsqlResult type alias. +// WaitForNodes holds the union for the following types: // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Binary.ts#L24-L24 -type EsqlResult []byte +// string +// int +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/cluster/health/types.ts#L47-L47 +type WaitForNodes any diff --git a/typedapi/types/waitforsnapshotaction.go b/typedapi/types/waitforsnapshotaction.go index 4a47e329f8..677cceece4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WaitForSnapshotAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ilm/_types/Phase.ts#L145-L147 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ilm/_types/Phase.ts#L145-L147 type WaitForSnapshotAction struct { Policy string `json:"policy"` } diff --git a/typedapi/types/warmerstats.go b/typedapi/types/warmerstats.go index 19afd17ff6..2f0d54ef24 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WarmerStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Stats.ts#L410-L415 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Stats.ts#L412-L417 type WarmerStats struct { Current int64 `json:"current"` Total int64 `json:"total"` diff --git a/typedapi/types/watch.go b/typedapi/types/watch.go index b8c7359c15..492e7dc253 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // Watch type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Watch.ts#L37-L47 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Watch.ts#L37-L47 type Watch struct { Actions map[string]WatcherAction `json:"actions"` Condition WatcherCondition `json:"condition"` diff --git a/typedapi/types/watcher.go b/typedapi/types/watcher.go index 5894556162..2a81266abe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Watcher type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L466-L470 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L466-L470 type Watcher struct { Available bool `json:"available"` Count Counter `json:"count"` diff --git a/typedapi/types/watcheraction.go b/typedapi/types/watcheraction.go index 79059d3370..2999d72c89 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actiontype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/actiontype" ) // WatcherAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Action.ts#L35-L54 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Action.ts#L35-L54 type WatcherAction struct { ActionType *actiontype.ActionType `json:"action_type,omitempty"` Condition *WatcherCondition `json:"condition,omitempty"` diff --git a/typedapi/types/watcheractions.go b/typedapi/types/watcheractions.go index 1541c51f9d..eba01407fc 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // WatcherActions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L402-L404 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L402-L404 type WatcherActions struct { Actions map[string]WatcherActionTotals `json:"actions"` } diff --git a/typedapi/types/watcheractiontotals.go b/typedapi/types/watcheractiontotals.go index c47869619b..2a1db4990a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // WatcherActionTotals type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L418-L421 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L418-L421 type WatcherActionTotals struct { Total Duration `json:"total"` TotalTimeInMs int64 `json:"total_time_in_ms"` diff --git a/typedapi/types/watchercondition.go b/typedapi/types/watchercondition.go index fae566dc9f..addd7bd530 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -24,12 +24,12 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/conditionop" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/conditionop" ) // WatcherCondition type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Conditions.ts#L50-L62 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Conditions.ts#L51-L63 type WatcherCondition struct { AdditionalWatcherConditionProperty map[string]json.RawMessage `json:"-"` Always *AlwaysCondition `json:"always,omitempty"` diff --git a/typedapi/types/watcherinput.go b/typedapi/types/watcherinput.go index aded15d613..419700d536 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,7 +27,7 @@ import ( // WatcherInput type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Input.ts#L90-L98 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Input.ts#L90-L98 type WatcherInput struct { AdditionalWatcherInputProperty map[string]json.RawMessage `json:"-"` Chain *ChainInput `json:"chain,omitempty"` diff --git a/typedapi/types/watchernodestats.go b/typedapi/types/watchernodestats.go index 2012660123..f0b9f98bc8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/watcherstate" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/watcherstate" ) // WatcherNodeStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/stats/types.ts#L33-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/stats/types.ts#L33-L61 type WatcherNodeStats struct { // CurrentWatches The current executing watches metric gives insight into the watches that are // currently being executed by Watcher. diff --git a/typedapi/types/watcherstatusactions.go b/typedapi/types/watcherstatusactions.go index 1ca0a117de..c1bb7b37b6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // WatcherStatusActions type alias. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Action.ts#L56-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4b92bc0002..374b29ca37 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // WatcherWatch type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L406-L411 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L406-L411 type WatcherWatch struct { Action map[string]Counter `json:"action,omitempty"` Condition map[string]Counter `json:"condition,omitempty"` diff --git a/typedapi/types/watcherwatchtrigger.go b/typedapi/types/watcherwatchtrigger.go index dd2f1e6e3a..47935daa65 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // WatcherWatchTrigger type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L413-L416 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L413-L416 type WatcherWatchTrigger struct { All_ Counter `json:"_all"` Schedule *WatcherWatchTriggerSchedule `json:"schedule,omitempty"` diff --git a/typedapi/types/watcherwatchtriggerschedule.go b/typedapi/types/watcherwatchtriggerschedule.go index 62d5a00482..5f0b47b271 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WatcherWatchTriggerSchedule type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L472-L475 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L472-L475 type WatcherWatchTriggerSchedule struct { Active int64 `json:"active"` All_ Counter `json:"_all"` diff --git a/typedapi/types/watchrecord.go b/typedapi/types/watchrecord.go index 71d2fa2d45..856fc8dc9b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionstatus" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/executionstatus" ) // WatchRecord type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/execute_watch/types.ts#L27-L39 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/execute_watch/types.ts#L27-L39 type WatchRecord struct { Condition WatcherCondition `json:"condition"` Input WatcherInput `json:"input"` diff --git a/typedapi/types/watchrecordqueuedstats.go b/typedapi/types/watchrecordqueuedstats.go index 3e7e8d9a06..7f6d942527 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // WatchRecordQueuedStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/stats/types.ts#L71-L77 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/stats/types.ts#L71-L77 type WatchRecordQueuedStats struct { // ExecutionTime The time the watch was run. // This is just before the input is being run. diff --git a/typedapi/types/watchrecordstats.go b/typedapi/types/watchrecordstats.go index 80c5dc98bb..5e335c24a2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/executionphase" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/executionphase" ) // WatchRecordStats type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/stats/types.ts#L79-L94 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/stats/types.ts#L79-L94 type WatchRecordStats struct { ExecutedActions []string `json:"executed_actions,omitempty"` // ExecutionPhase The current watch execution phase. diff --git a/typedapi/types/watchstatus.go b/typedapi/types/watchstatus.go index 46bdbeb577..6f3de311c8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WatchStatus type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Watch.ts#L49-L56 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Watch.ts#L49-L56 type WatchStatus struct { Actions WatcherStatusActions `json:"actions"` ExecutionState *string `json:"execution_state,omitempty"` diff --git a/typedapi/types/watsonxservicesettings.go b/typedapi/types/watsonxservicesettings.go index 3d1c1c47bc..7a4c4e2ff7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WatsonxServiceSettings type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/inference/put_watsonx/PutWatsonxRequest.ts#L80-L117 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/inference/_types/CommonTypes.ts#L1143-L1180 type WatsonxServiceSettings struct { // ApiKey A valid API key of your Watsonx account. // You can find your Watsonx API keys or you can create a new one on the API diff --git a/typedapi/types/web.go b/typedapi/types/web.go index 753ce6ea0a..98046380f2 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // Web type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ingest/_types/Database.ts#L61-L61 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ingest/_types/Database.ts#L61-L61 type Web struct { } diff --git a/typedapi/types/webhookaction.go b/typedapi/types/webhookaction.go index e9c6d7c070..b745f5f63a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/connectionscheme" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/httpinputmethod" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/connectionscheme" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/httpinputmethod" ) // WebhookAction type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L293-L293 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L293-L293 type WebhookAction struct { Auth *HttpInputAuthentication `json:"auth,omitempty"` Body *string `json:"body,omitempty"` diff --git a/typedapi/types/webhookresult.go b/typedapi/types/webhookresult.go index 88bf88ef58..e61019ea25 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // WebhookResult type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/_types/Actions.ts#L295-L298 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/_types/Actions.ts#L295-L298 type WebhookResult struct { Request HttpInputRequestResult `json:"request"` Response *HttpInputResponseResult `json:"response,omitempty"` diff --git a/typedapi/types/weightedaverageaggregation.go b/typedapi/types/weightedaverageaggregation.go index 2c0db844b9..0b101971a6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/valuetype" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/valuetype" ) // WeightedAverageAggregation type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L449-L463 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L449-L463 type WeightedAverageAggregation struct { // Format A numeric response formatter. Format *string `json:"format,omitempty"` diff --git a/typedapi/types/weightedaveragevalue.go b/typedapi/types/weightedaveragevalue.go index 32b6d84a69..3a263c2c9a 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WeightedAverageValue type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/metric.ts#L465-L475 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/metric.ts#L465-L475 type WeightedAverageValue struct { // Field The field from which to extract the values or weights. Field *string `json:"field,omitempty"` diff --git a/typedapi/types/weightedavgaggregate.go b/typedapi/types/weightedavgaggregate.go index 7d827d8338..8548078f43 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WeightedAvgAggregate type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/aggregations/Aggregate.ts#L224-L229 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/aggregations/Aggregate.ts#L224-L229 type WeightedAvgAggregate struct { Meta Metadata `json:"meta,omitempty"` // Value The metric value. A missing value generally means that there was no data to diff --git a/typedapi/types/weightedtokensquery.go b/typedapi/types/weightedtokensquery.go index 715478ba66..5bc7361ffb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WeightedTokensQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/WeightedTokensQuery.ts#L25-L33 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/WeightedTokensQuery.ts#L25-L33 type WeightedTokensQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/weights.go b/typedapi/types/weights.go index f3836329f4..7c9f2fe489 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // Weights type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/put_trained_model/types.ts#L108-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/put_trained_model/types.ts#L108-L110 type Weights struct { Weights Float64 `json:"weights"` } diff --git a/typedapi/types/whitespaceanalyzer.go b/typedapi/types/whitespaceanalyzer.go index c649da087a..90f9181707 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -30,7 +30,7 @@ import ( // WhitespaceAnalyzer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/analyzers.ts#L421-L425 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/analyzers.ts#L421-L425 type WhitespaceAnalyzer struct { Type string `json:"type,omitempty"` Version *string `json:"version,omitempty"` diff --git a/typedapi/types/whitespacetokenizer.go b/typedapi/types/whitespacetokenizer.go index cf61a95666..95006283b6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WhitespaceTokenizer type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/tokenizers.ts#L135-L138 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/tokenizers.ts#L135-L138 type WhitespaceTokenizer struct { MaxTokenLength *int `json:"max_token_length,omitempty"` Type string `json:"type,omitempty"` diff --git a/typedapi/types/wildcardproperty.go b/typedapi/types/wildcardproperty.go index b835f52572..d73252087c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -28,13 +28,13 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/dynamicmapping" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/syntheticsourcekeepenum" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/dynamicmapping" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/syntheticsourcekeepenum" ) // WildcardProperty type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/mapping/core.ts#L309-L316 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/mapping/core.ts#L318-L325 type WildcardProperty struct { CopyTo []string `json:"copy_to,omitempty"` DocValues *bool `json:"doc_values,omitempty"` diff --git a/typedapi/types/wildcardquery.go b/typedapi/types/wildcardquery.go index 6f3cc04287..c0aa5230b4 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WildcardQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/term.ts#L305-L325 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/term.ts#L305-L325 type WildcardQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/wktgeobounds.go b/typedapi/types/wktgeobounds.go index dce1508493..f5ccf772b5 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WktGeoBounds type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/Geo.ts#L150-L152 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/Geo.ts#L150-L152 type WktGeoBounds struct { Wkt string `json:"wkt"` } diff --git a/typedapi/types/worddelimitergraphtokenfilter.go b/typedapi/types/worddelimitergraphtokenfilter.go index cc86e601d8..03ffc09cb7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WordDelimiterGraphTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L150-L167 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L150-L167 type WordDelimiterGraphTokenFilter struct { AdjustOffsets *bool `json:"adjust_offsets,omitempty"` CatenateAll *bool `json:"catenate_all,omitempty"` diff --git a/typedapi/types/worddelimitertokenfilter.go b/typedapi/types/worddelimitertokenfilter.go index 1c0fb52e83..e2f9de7c43 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WordDelimiterTokenFilter type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/analysis/token_filters.ts#L133-L148 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/analysis/token_filters.ts#L133-L148 type WordDelimiterTokenFilter struct { CatenateAll *bool `json:"catenate_all,omitempty"` CatenateNumbers *bool `json:"catenate_numbers,omitempty"` diff --git a/typedapi/types/wrapperquery.go b/typedapi/types/wrapperquery.go index b430a93eb4..cf1eb4a5cd 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WrapperQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/_types/query_dsl/abstractions.ts#L508-L517 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/_types/query_dsl/abstractions.ts#L508-L517 type WrapperQuery struct { // Boost Floating point number used to decrease or increase the relevance scores of // the query. diff --git a/typedapi/types/writesummaryinfo.go b/typedapi/types/writesummaryinfo.go index 88b5f7a527..6efcf982e1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // WriteSummaryInfo type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L162-L191 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/snapshot/repository_analyze/SnapshotAnalyzeRepositoryResponse.ts#L162-L191 type WriteSummaryInfo struct { // Count The number of write operations performed in the test. Count int `json:"count"` diff --git a/typedapi/types/xlmrobertatokenizationconfig.go b/typedapi/types/xlmrobertatokenizationconfig.go new file mode 100644 index 0000000000..910cdf323f --- /dev/null +++ b/typedapi/types/xlmrobertatokenizationconfig.go @@ -0,0 +1,152 @@ +// Licensed to Elasticsearch B.V. under one or more contributor +// license agreements. See the NOTICE file distributed with +// this work for additional information regarding copyright +// ownership. Elasticsearch B.V. licenses this file to you under +// the Apache License, Version 2.0 (the "License"); you may +// not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + +// Code generated from the elasticsearch-specification DO NOT EDIT. +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 + +package types + +import ( + "bytes" + "encoding/json" + "errors" + "fmt" + "io" + "strconv" + + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/tokenizationtruncate" +) + +// XlmRobertaTokenizationConfig type. +// +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L200-L200 +type XlmRobertaTokenizationConfig struct { + // DoLowerCase Should the tokenizer lower case the text + DoLowerCase *bool `json:"do_lower_case,omitempty"` + // MaxSequenceLength Maximum input sequence length for the model + MaxSequenceLength *int `json:"max_sequence_length,omitempty"` + // Span Tokenization spanning options. Special value of -1 indicates no spanning + // takes place + Span *int `json:"span,omitempty"` + // Truncate Should tokenization input be automatically truncated before sending to the + // model for inference + Truncate *tokenizationtruncate.TokenizationTruncate `json:"truncate,omitempty"` + // WithSpecialTokens Is tokenization completed with special tokens + WithSpecialTokens *bool `json:"with_special_tokens,omitempty"` +} + +func (s *XlmRobertaTokenizationConfig) UnmarshalJSON(data []byte) error { + + dec := json.NewDecoder(bytes.NewReader(data)) + + for { + t, err := dec.Token() + if err != nil { + if errors.Is(err, io.EOF) { + break + } + return err + } + + switch t { + + case "do_lower_case": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "DoLowerCase", err) + } + s.DoLowerCase = &value + case bool: + s.DoLowerCase = &v + } + + case "max_sequence_length": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "MaxSequenceLength", err) + } + s.MaxSequenceLength = &value + case float64: + f := int(v) + s.MaxSequenceLength = &f + } + + case "span": + + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.Atoi(v) + if err != nil { + return fmt.Errorf("%s | %w", "Span", err) + } + s.Span = &value + case float64: + f := int(v) + s.Span = &f + } + + case "truncate": + if err := dec.Decode(&s.Truncate); err != nil { + return fmt.Errorf("%s | %w", "Truncate", err) + } + + case "with_special_tokens": + var tmp any + dec.Decode(&tmp) + switch v := tmp.(type) { + case string: + value, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("%s | %w", "WithSpecialTokens", err) + } + s.WithSpecialTokens = &value + case bool: + s.WithSpecialTokens = &v + } + + } + } + return nil +} + +// NewXlmRobertaTokenizationConfig returns a XlmRobertaTokenizationConfig. +func NewXlmRobertaTokenizationConfig() *XlmRobertaTokenizationConfig { + r := &XlmRobertaTokenizationConfig{} + + return r +} + +// true + +type XlmRobertaTokenizationConfigVariant interface { + XlmRobertaTokenizationConfigCaster() *XlmRobertaTokenizationConfig +} + +func (s *XlmRobertaTokenizationConfig) XlmRobertaTokenizationConfigCaster() *XlmRobertaTokenizationConfig { + return s +} diff --git a/typedapi/types/xpackdatafeed.go b/typedapi/types/xpackdatafeed.go index 45c8cb8a78..17699d06a0 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // XpackDatafeed type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L74-L76 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L74-L76 type XpackDatafeed struct { Count int64 `json:"count"` } diff --git a/typedapi/types/xpackfeature.go b/typedapi/types/xpackfeature.go index 38c3dfccbf..c7eb6931fe 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // XpackFeature type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/info/types.ts#L84-L89 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/info/types.ts#L84-L89 type XpackFeature struct { Available bool `json:"available"` Description *string `json:"description,omitempty"` diff --git a/typedapi/types/xpackfeatures.go b/typedapi/types/xpackfeatures.go index f0a74cec70..26a662b6eb 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types // XpackFeatures type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/info/types.ts#L42-L82 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/info/types.ts#L42-L82 type XpackFeatures struct { AggregateMetric XpackFeature `json:"aggregate_metric"` Analytics XpackFeature `json:"analytics"` diff --git a/typedapi/types/xpackquery.go b/typedapi/types/xpackquery.go index a18abf804a..4f31fd9a6b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // XpackQuery type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L269-L274 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L269-L274 type XpackQuery struct { Count *int `json:"count,omitempty"` Failed *int `json:"failed,omitempty"` diff --git a/typedapi/types/xpackrealm.go b/typedapi/types/xpackrealm.go index 33dfa1035e..6c32d81626 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // XpackRealm type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L423-L432 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L423-L432 type XpackRealm struct { Available bool `json:"available"` Cache []RealmCache `json:"cache,omitempty"` diff --git a/typedapi/types/xpackrolemapping.go b/typedapi/types/xpackrolemapping.go index 651522676c..08b3d8e775 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // XpackRoleMapping type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L280-L283 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L280-L283 type XpackRoleMapping struct { Enabled int `json:"enabled"` Size int `json:"size"` diff --git a/typedapi/types/xpackruntimefieldtypes.go b/typedapi/types/xpackruntimefieldtypes.go index da3dc435c6..a2f492db55 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // XpackRuntimeFieldTypes type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/types.ts#L285-L287 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/xpack/usage/types.ts#L285-L287 type XpackRuntimeFieldTypes struct { Available bool `json:"available"` Enabled bool `json:"enabled"` diff --git a/typedapi/types/zeroshotclassificationinferenceoptions.go b/typedapi/types/zeroshotclassificationinferenceoptions.go index c756260c0c..230b6486f1 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ZeroShotClassificationInferenceOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L185-L206 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L216-L237 type ZeroShotClassificationInferenceOptions struct { // ClassificationLabels The zero shot classification labels indicating entailment, neutral, and // contradiction diff --git a/typedapi/types/zeroshotclassificationinferenceupdateoptions.go b/typedapi/types/zeroshotclassificationinferenceupdateoptions.go index c1464c5136..b459dcf713 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package types @@ -31,7 +31,7 @@ import ( // ZeroShotClassificationInferenceUpdateOptions type. // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/ml/_types/inference.ts#L362-L371 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/ml/_types/inference.ts#L393-L402 type ZeroShotClassificationInferenceUpdateOptions struct { // Labels The labels to predict. Labels []string `json:"labels"` diff --git a/typedapi/watcher/ackwatch/ack_watch.go b/typedapi/watcher/ackwatch/ack_watch.go index e4e1f722a3..e246feff44 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Acknowledge a watch. // Acknowledging a watch enables you to manually throttle the execution of the @@ -48,7 +48,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -194,7 +194,7 @@ func (r *AckWatch) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/ackwatch/response.go b/typedapi/watcher/ackwatch/response.go index e8694f2efe..1bb0641dbe 100644 --- a/typedapi/watcher/ackwatch/response.go +++ b/typedapi/watcher/ackwatch/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package ackwatch import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package ackwatch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/ack_watch/WatcherAckWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 d86d4d1d50..b1e0d92464 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Activate a watch. // A watch can be either active or inactive. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -142,7 +142,7 @@ func (r *ActivateWatch) HttpRequest(ctx context.Context) (*http.Request, error) req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/activatewatch/response.go b/typedapi/watcher/activatewatch/response.go index 0056383e40..1c5bbcb665 100644 --- a/typedapi/watcher/activatewatch/response.go +++ b/typedapi/watcher/activatewatch/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package activatewatch import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package activatewatch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/activate_watch/WatcherActivateWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 f39e964031..241501daf7 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Deactivate a watch. // A watch can be either active or inactive. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -142,7 +142,7 @@ func (r *DeactivateWatch) HttpRequest(ctx context.Context) (*http.Request, error req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/deactivatewatch/response.go b/typedapi/watcher/deactivatewatch/response.go index d3bd13968f..5603a087e0 100644 --- a/typedapi/watcher/deactivatewatch/response.go +++ b/typedapi/watcher/deactivatewatch/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deactivatewatch import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package deactivatewatch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/deactivate_watch/DeactivateWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 66498013ee..210acaf299 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Delete a watch. // When the watch is removed, the document representing the watch in the @@ -44,7 +44,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -160,7 +160,7 @@ func (r *DeleteWatch) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/deletewatch/response.go b/typedapi/watcher/deletewatch/response.go index a5874b80d4..71b8207b6d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package deletewatch // Response holds the response body struct for the package deletewatch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/delete_watch/DeleteWatchResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 1c868c83c0..ad61096f67 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Run a watch. // This API can be used to force execution of the watch outside of its @@ -57,8 +57,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionexecutionmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/actionexecutionmode" ) const ( @@ -242,12 +242,12 @@ func (r *ExecuteWatch) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/executewatch/request.go b/typedapi/watcher/executewatch/request.go index 9fb61f5629..a59d8822ad 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package executewatch @@ -24,13 +24,13 @@ import ( "encoding/json" "fmt" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/actionexecutionmode" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/actionexecutionmode" ) // Request holds the request body struct for the package executewatch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L105 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/specification/watcher/execute_watch/WatcherExecuteWatchRequest.ts#L28-L105 type Request struct { // ActionModes Determines how to handle the watch actions as part of the watch execution. diff --git a/typedapi/watcher/executewatch/response.go b/typedapi/watcher/executewatch/response.go index a2b4996aad..ef91fa6270 100644 --- a/typedapi/watcher/executewatch/response.go +++ b/typedapi/watcher/executewatch/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package executewatch import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package executewatch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/execute_watch/WatcherExecuteWatchResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a25e9eb3c5..869568dc6b 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get Watcher index settings. // Get settings for the Watcher internal index (`.watches`). @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -131,12 +131,12 @@ func (r *GetSettings) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/getsettings/response.go b/typedapi/watcher/getsettings/response.go index 25c3d8ec00..933055cbda 100644 --- a/typedapi/watcher/getsettings/response.go +++ b/typedapi/watcher/getsettings/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getsettings import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getsettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/get_settings/WatcherGetSettingsResponse.ts#L22-L26 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 80e1df4f91..5b3e7a31f6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get a watch. package getwatch @@ -33,7 +33,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -138,7 +138,7 @@ func (r *GetWatch) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/getwatch/response.go b/typedapi/watcher/getwatch/response.go index efb60997c7..8c60a18328 100644 --- a/typedapi/watcher/getwatch/response.go +++ b/typedapi/watcher/getwatch/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package getwatch import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package getwatch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/get_watch/GetWatchResponse.ts#L24-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 8e3c640f1b..f077334ddf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Create or update a watch. // When a watch is registered, a new document that represents the watch is added @@ -53,7 +53,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -224,12 +224,12 @@ func (r *PutWatch) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/putwatch/request.go b/typedapi/watcher/putwatch/request.go index 15af5b6461..e70cbd2b55 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putwatch @@ -27,12 +27,12 @@ import ( "fmt" "io" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package putwatch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/put_watch/WatcherPutWatchRequest.ts#L31-L110 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 466c50036e..62641f0e6d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package putwatch // Response holds the response body struct for the package putwatch // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/put_watch/WatcherPutWatchResponse.ts#L23-L31 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 ee4294836b..e8073c83a6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Query watches. // Get all registered watches in a paginated manner and optionally filter @@ -38,7 +38,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -182,12 +182,12 @@ func (r *QueryWatches) HttpRequest(ctx context.Context) (*http.Request, error) { if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/querywatches/request.go b/typedapi/watcher/querywatches/request.go index 14b0137b05..0558154d90 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package querywatches @@ -28,12 +28,12 @@ import ( "io" "strconv" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Request holds the request body struct for the package querywatches // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/query_watches/WatcherQueryWatchesRequest.ts#L25-L70 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 e713ad3d26..d0bd69251d 100644 --- a/typedapi/watcher/querywatches/response.go +++ b/typedapi/watcher/querywatches/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package querywatches import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package querywatches // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/query_watches/WatcherQueryWatchesResponse.ts#L23-L34 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 bc038ed849..b68608ca4d 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package start // Response holds the response body struct for the package start // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/start/WatcherStartResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 093b13d3d6..27c913590c 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Start the watch service. // Start the Watcher service if it is not already running. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -126,7 +126,7 @@ func (r *Start) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/stats/response.go b/typedapi/watcher/stats/response.go index 08feee8a3c..c103c9d2de 100644 --- a/typedapi/watcher/stats/response.go +++ b/typedapi/watcher/stats/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stats import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package stats // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/stats/WatcherStatsResponse.ts#L24-L32 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 2738a60619..88cefc9390 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get Watcher statistics. // This API always returns basic metrics. @@ -35,7 +35,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) const ( @@ -147,7 +147,7 @@ func (r *Stats) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/stop/response.go b/typedapi/watcher/stop/response.go index 64d3576f96..6d20dc3232 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package stop // Response holds the response body struct for the package stop // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/stop/WatcherStopResponse.ts#L22-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 3ee94168f5..e515cb5230 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Stop the watch service. // Stop the Watcher service if it is running. @@ -34,7 +34,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -126,7 +126,7 @@ func (r *Stop) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/watcher/updatesettings/request.go b/typedapi/watcher/updatesettings/request.go index 8aa1f62189..ac6fba7c54 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatesettings @@ -27,7 +27,7 @@ import ( // Request holds the request body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/update_settings/WatcherUpdateSettingsRequest.ts#L24-L58 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 12e9cdbb6d..ad5d6e75c6 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package updatesettings // Response holds the response body struct for the package updatesettings // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/watcher/update_settings/WatcherUpdateSettingsResponse.ts#L20-L24 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 4fa32a101f..2dbd56a271 100644 --- a/typedapi/watcher/updatesettings/update_settings.go +++ b/typedapi/watcher/updatesettings/update_settings.go @@ -16,12 +16,18 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Update Watcher index settings. // Update settings for the Watcher internal index (`.watches`). // Only a subset of settings can be modified. -// This includes `index.auto_expand_replicas` and `index.number_of_replicas`. +// This includes `index.auto_expand_replicas`, `index.number_of_replicas`, +// `index.routing.allocation.exclude.*`, +// `index.routing.allocation.include.*` and +// `index.routing.allocation.require.*`. +// Modification of `index.routing.allocation.include._tier_preference` is an +// exception and is not allowed as the +// Watcher shards must always be in the `data_content` tier. package updatesettings import ( @@ -37,7 +43,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -79,7 +85,13 @@ func NewUpdateSettingsFunc(tp elastictransport.Interface) NewUpdateSettings { // Update Watcher index settings. // Update settings for the Watcher internal index (`.watches`). // Only a subset of settings can be modified. -// This includes `index.auto_expand_replicas` and `index.number_of_replicas`. +// This includes `index.auto_expand_replicas`, `index.number_of_replicas`, +// `index.routing.allocation.exclude.*`, +// `index.routing.allocation.include.*` and +// `index.routing.allocation.require.*`. +// Modification of `index.routing.allocation.include._tier_preference` is an +// exception and is not allowed as the +// Watcher shards must always be in the `data_content` tier. // // https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-watcher-update-settings func New(tp elastictransport.Interface) *UpdateSettings { @@ -178,12 +190,12 @@ func (r *UpdateSettings) HttpRequest(ctx context.Context) (*http.Request, error) if req.Header.Get("Content-Type") == "" { if r.raw != nil { - req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Content-Type", "application/vnd.elasticsearch+json;compatible-with=9") } } if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/xpack/info/info.go b/typedapi/xpack/info/info.go index 1299ce11d7..990715e5e8 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get information. // The information provided by the API includes: @@ -39,8 +39,8 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" - "github.com/elastic/go-elasticsearch/v8/typedapi/types/enums/xpackcategory" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types/enums/xpackcategory" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -135,7 +135,7 @@ func (r *Info) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil { diff --git a/typedapi/xpack/info/response.go b/typedapi/xpack/info/response.go index aea1185320..efa03591e1 100644 --- a/typedapi/xpack/info/response.go +++ b/typedapi/xpack/info/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package info import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package info // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/info/XPackInfoResponse.ts#L22-L29 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 a1ba1e4bcf..789a1d3062 100644 --- a/typedapi/xpack/usage/response.go +++ b/typedapi/xpack/usage/response.go @@ -16,17 +16,17 @@ // under the License. // Code generated from the elasticsearch-specification DO NOT EDIT. -// https://github.com/elastic/elasticsearch-specification/tree/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 package usage import ( - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // Response holds the response body struct for the package usage // -// https://github.com/elastic/elasticsearch-specification/blob/ea991724f4dd4f90c496eff547d3cc2e6529f509/specification/xpack/usage/XPackUsageResponse.ts#L42-L77 +// https://github.com/elastic/elasticsearch-specification/blob/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9/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 53f653ecc9..60bb57cdbf 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/ea991724f4dd4f90c496eff547d3cc2e6529f509 +// https://github.com/elastic/elasticsearch-specification/tree/c6ef5fbc736f1dd6256c2babc92e07bf150cadb9 // Get usage information. // Get information about the features that are currently enabled and available @@ -36,7 +36,7 @@ import ( "strings" "github.com/elastic/elastic-transport-go/v8/elastictransport" - "github.com/elastic/go-elasticsearch/v8/typedapi/types" + "github.com/elastic/go-elasticsearch/v9/typedapi/types" ) // ErrBuildPath is returned in case of missing parameters within the build of the request. @@ -130,7 +130,7 @@ func (r *Usage) HttpRequest(ctx context.Context) (*http.Request, error) { req.Header = r.headers.Clone() if req.Header.Get("Accept") == "" { - req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=8") + req.Header.Set("Accept", "application/vnd.elasticsearch+json;compatible-with=9") } if err != nil {