Skip to content

Commit ab7f719

Browse files
committed
Update client for 9.0
1 parent 8ae0c68 commit ab7f719

File tree

2,786 files changed

+478685
-340507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,786 files changed

+478685
-340507
lines changed

Diff for: .buildkite/DockerFile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG DOTNET_VERSION=8.0.400
1+
ARG DOTNET_VERSION=9.0.100
22
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} AS elasticsearch-net-build
33

44
ENV NUGET_SCRATCH="/tmp/NuGetScratch"

Diff for: .buildkite/pipeline.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ steps:
55
env:
66
TEST_SUITE: "{{ matrix.suite }}"
77
STACK_VERSION: master-SNAPSHOT
8-
DOTNET_VERSION: 8.0.400
8+
DOTNET_VERSION: 9.0.100
99
matrix:
1010
setup:
1111
suite:

Diff for: .buildkite/run-repository.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ param(
1414
$NODE_NAME,
1515

1616
[string]
17-
$DOTNET_VERSION = "8.0.400"
17+
$DOTNET_VERSION = "9.0.100"
1818
)
1919

2020
$ESC = [char]27

Diff for: .buildkite/run-repository.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ script_path=$(dirname $(realpath -s $0))
99
source $script_path/functions/imports.sh
1010
set -euo pipefail
1111

12-
DOTNET_VERSION=${DOTNET_VERSION-8.0.400}
12+
DOTNET_VERSION=${DOTNET_VERSION-9.0.100}
1313
ELASTICSEARCH_URL=${ELASTICSEARCH_URL-"$elasticsearch_url"}
1414
elasticsearch_container=${elasticsearch_container-}
1515

Diff for: .buildkite/run-tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ param (
88
$TEST_SUITE = "free",
99

1010
[string]
11-
$DOTNET_VERSION = "8.0.400"
11+
$DOTNET_VERSION = "9.0.100"
1212
)
1313

1414
$ESC = [char]27

Diff for: .ci/DockerFile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG DOTNET_VERSION=8.0.400
1+
ARG DOTNET_VERSION=9.0.100
22
FROM mcr.microsoft.com/dotnet/sdk:${DOTNET_VERSION} AS elasticsearch-net-build
33

44
ENV NUGET_SCRATCH="/tmp/NuGetScratch"

Diff for: .ci/make.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ OUTPUT_DIR="$repo/${output_folder}"
4242
REPO_BINDING="${OUTPUT_DIR}:/sln/${output_folder}"
4343
mkdir -p "$OUTPUT_DIR"
4444

45-
DOTNET_VERSION=${DOTNET_VERSION-8.0.400}
45+
DOTNET_VERSION=${DOTNET_VERSION-9.0.100}
4646

4747
echo -e "\033[34;1mINFO:\033[0m PRODUCT ${product}\033[0m"
4848
echo -e "\033[34;1mINFO:\033[0m VERSION ${STACK_VERSION}\033[0m"

Diff for: .ci/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $ STACK_VERSION=8.0.0-SNAPSHOT ./.ci/run-tests
3030
|-------------------------|-------------|-------------|
3131
| `STACK_VERSION` | `N/A` | The elasticsearch version to target
3232
| `TEST_SUITE` | `basic` | `free` or `platinum` sets which test suite to run and which container to run against. |
33-
| `DOTNET_VERSION` | `8.0.400` | The .NET sdk version used to grab the proper container |
33+
| `DOTNET_VERSION` | `9.0.100` | The .NET sdk version used to grab the proper container |
3434

3535
If you want to manually spin up elasticsearch for these tests and call the runner afterwards you can use
3636

Diff for: .ci/run-repository.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ param(
1414
$NODE_NAME,
1515

1616
[string]
17-
$DOTNET_VERSION = "8.0.400"
17+
$DOTNET_VERSION = "9.0.100"
1818
)
1919

2020
$ESC = [char]27

Diff for: .ci/run-repository.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ script_path=$(dirname $(realpath -s $0))
99
source $script_path/functions/imports.sh
1010
set -euo pipefail
1111

12-
DOTNET_VERSION=${DOTNET_VERSION-8.0.400}
12+
DOTNET_VERSION=${DOTNET_VERSION-9.0.100}
1313
ELASTICSEARCH_URL=${ELASTICSEARCH_URL-"$elasticsearch_url"}
1414
elasticsearch_container=${elasticsearch_container-}
1515

Diff for: .ci/run-tests.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ param (
88
$TEST_SUITE = "free",
99

1010
[string]
11-
$DOTNET_VERSION = "8.0.400"
11+
$DOTNET_VERSION = "9.0.100"
1212
)
1313

1414
$ESC = [char]27

Diff for: .ci/test-matrix.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ TEST_SUITE:
88
- platinum
99

1010
DOTNET_VERSION:
11-
- 8.0.400
11+
- 9.0.100
1212

1313
exclude: ~

Diff for: Directory.Build.props

+4
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,8 @@
5050
<ItemGroup>
5151
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1" PrivateAssets="All"/>
5252
</ItemGroup>
53+
54+
<PropertyGroup>
55+
<WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
56+
</PropertyGroup>
5357
</Project>

Diff for: build/scripts/Versioning.fs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module Versioning =
1717
// Since that file is now generated by the dotnet tooling and GitVersion and similar tooling all still have
1818
// active issues related to dotnet core, we now just burn this info in global.json
1919

20-
let parse (v:string) = SemVer.parse(v)
20+
let parse (v: string) = SemVer.parse(if String.IsNullOrEmpty(v) then "1.0.0" else v)
2121

2222
//Versions in form of e.g 6.1.0 is inferred as datetime so we bake the json shape into the provider like this
2323
type SdkVersion = { version:string; rollForward:string; allowPrerelease:bool }

Diff for: build/scripts/scripts.fsproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<OutputType>Exe</OutputType>
55
<!-- Type Providers are restored using net461, fine for netcoreapp2.2 so we kill the warning -->
66
<NoWarn>$(NoWarn);NU1701</NoWarn>

Diff for: global.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
{
22
"sdk": {
3-
"version": "8.0.400",
3+
"version": "9.0.100",
44
"rollForward": "latestFeature",
55
"allowPrerelease": false
6-
},
7-
"version": "8.8.0-alpha.1",
8-
"doc_current": "main",
9-
"doc_branch": "main"
6+
}
107
}

Diff for: src/Elastic.Clients.Elasticsearch/Api/IndexManagement/GetTemplateResponse.cs

-14
This file was deleted.

Diff for: src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj

+5
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@
1616
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
1717
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1818
<Nullable>annotations</Nullable>
19+
<PolySharpIncludeRuntimeSupportedAttributes>true</PolySharpIncludeRuntimeSupportedAttributes>
1920
</PropertyGroup>
2021
<ItemGroup>
2122
<PackageReference Include="Elastic.Transport" Version="0.5.9" />
23+
<PackageReference Include="PolySharp" Version="1.15.0">
24+
<PrivateAssets>all</PrivateAssets>
25+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
26+
</PackageReference>
2227
</ItemGroup>
2328
<ItemGroup>
2429
<InternalsVisibleTo Include="Tests" Key="$(ExposedPublicKey)" />

Diff for: src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs

+12-22
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
#nullable restore
1919

20+
using System;
21+
using System.Linq;
22+
using Elastic.Clients.Elasticsearch.Serialization;
23+
2024
namespace Elastic.Clients.Elasticsearch.Requests;
2125

2226
internal static class ApiUrlLookup
@@ -63,6 +67,7 @@ internal static class ApiUrlLookup
6367
internal static ApiUrls EsqlAsyncQuery = new ApiUrls(new[] { "_query/async" });
6468
internal static ApiUrls EsqlAsyncQueryDelete = new ApiUrls(new[] { "_query/async/{id}" });
6569
internal static ApiUrls EsqlAsyncQueryGet = new ApiUrls(new[] { "_query/async/{id}" });
70+
internal static ApiUrls EsqlAsyncQueryStop = new ApiUrls(new[] { "_query/async/{id}/stop" });
6671
internal static ApiUrls EsqlQuery = new ApiUrls(new[] { "_query" });
6772
internal static ApiUrls FeaturesGetFeatures = new ApiUrls(new[] { "_features" });
6873
internal static ApiUrls FeaturesResetFeatures = new ApiUrls(new[] { "_features/_reset" });
@@ -78,14 +83,16 @@ internal static class ApiUrlLookup
7883
internal static ApiUrls IndexLifecycleManagementStart = new ApiUrls(new[] { "_ilm/start" });
7984
internal static ApiUrls IndexLifecycleManagementStop = new ApiUrls(new[] { "_ilm/stop" });
8085
internal static ApiUrls IndexManagementAnalyze = new ApiUrls(new[] { "_analyze", "{index}/_analyze" });
86+
internal static ApiUrls IndexManagementCancelMigrateReindex = new ApiUrls(new[] { "_migration/reindex/{index}/_cancel" });
8187
internal static ApiUrls IndexManagementClearCache = new ApiUrls(new[] { "_cache/clear", "{index}/_cache/clear" });
8288
internal static ApiUrls IndexManagementClone = new ApiUrls(new[] { "{index}/_clone/{target}" });
8389
internal static ApiUrls IndexManagementClose = new ApiUrls(new[] { "{index}/_close" });
8490
internal static ApiUrls IndexManagementCreate = new ApiUrls(new[] { "{index}" });
8591
internal static ApiUrls IndexManagementCreateDataStream = new ApiUrls(new[] { "_data_stream/{name}" });
92+
internal static ApiUrls IndexManagementCreateFrom = new ApiUrls(new[] { "_create_from/{source}/{dest}" });
8693
internal static ApiUrls IndexManagementDataStreamsStats = new ApiUrls(new[] { "_data_stream/_stats", "_data_stream/{name}/_stats" });
8794
internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "{index}" });
88-
internal static ApiUrls IndexManagementDeleteAlias = new ApiUrls(new[] { "{index}/_alias/{name}", "{index}/_aliases/{name}" });
95+
internal static ApiUrls IndexManagementDeleteAlias = new ApiUrls(new[] { "{index}/_alias/{name}" });
8996
internal static ApiUrls IndexManagementDeleteDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
9097
internal static ApiUrls IndexManagementDeleteDataStream = new ApiUrls(new[] { "_data_stream/{name}" });
9198
internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
@@ -108,13 +115,15 @@ internal static class ApiUrlLookup
108115
internal static ApiUrls IndexManagementGetFieldMapping = new ApiUrls(new[] { "_mapping/field/{fields}", "{index}/_mapping/field/{fields}" });
109116
internal static ApiUrls IndexManagementGetIndexTemplate = new ApiUrls(new[] { "_index_template", "_index_template/{name}" });
110117
internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "_mapping", "{index}/_mapping" });
118+
internal static ApiUrls IndexManagementGetMigrateReindexStatus = new ApiUrls(new[] { "_migration/reindex/{index}/_status" });
111119
internal static ApiUrls IndexManagementGetSettings = new ApiUrls(new[] { "_settings", "{index}/_settings", "{index}/_settings/{name}", "_settings/{name}" });
112120
internal static ApiUrls IndexManagementGetTemplate = new ApiUrls(new[] { "_template", "_template/{name}" });
121+
internal static ApiUrls IndexManagementMigrateReindex = new ApiUrls(new[] { "_migration/reindex" });
113122
internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "_data_stream/_migrate/{name}" });
114123
internal static ApiUrls IndexManagementModifyDataStream = new ApiUrls(new[] { "_data_stream/_modify" });
115124
internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "{index}/_open" });
116125
internal static ApiUrls IndexManagementPromoteDataStream = new ApiUrls(new[] { "_data_stream/_promote/{name}" });
117-
internal static ApiUrls IndexManagementPutAlias = new ApiUrls(new[] { "{index}/_alias/{name}", "{index}/_aliases/{name}" });
126+
internal static ApiUrls IndexManagementPutAlias = new ApiUrls(new[] { "{index}/_alias/{name}" });
118127
internal static ApiUrls IndexManagementPutDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
119128
internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
120129
internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "{index}/_mapping" });
@@ -123,7 +132,7 @@ internal static class ApiUrlLookup
123132
internal static ApiUrls IndexManagementRecovery = new ApiUrls(new[] { "_recovery", "{index}/_recovery" });
124133
internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "_refresh", "{index}/_refresh" });
125134
internal static ApiUrls IndexManagementReloadSearchAnalyzers = new ApiUrls(new[] { "{index}/_reload_search_analyzers" });
126-
internal static ApiUrls IndexManagementResolveCluster = new ApiUrls(new[] { "_resolve/cluster/{name}" });
135+
internal static ApiUrls IndexManagementResolveCluster = new ApiUrls(new[] { "_resolve/cluster", "_resolve/cluster/{name}" });
127136
internal static ApiUrls IndexManagementResolveIndex = new ApiUrls(new[] { "_resolve/index/{name}" });
128137
internal static ApiUrls IndexManagementRollover = new ApiUrls(new[] { "{alias}/_rollover", "{alias}/_rollover/{new_index}" });
129138
internal static ApiUrls IndexManagementSegments = new ApiUrls(new[] { "_segments", "{index}/_segments" });
@@ -135,12 +144,6 @@ internal static class ApiUrlLookup
135144
internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" });
136145
internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "_aliases" });
137146
internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "_validate/query", "{index}/_validate/query" });
138-
internal static ApiUrls InferenceDelete = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
139-
internal static ApiUrls InferenceGet = new ApiUrls(new[] { "_inference", "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
140-
internal static ApiUrls InferenceInference = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
141-
internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
142-
internal static ApiUrls InferenceStreamInference = new ApiUrls(new[] { "_inference/{inference_id}/_stream", "_inference/{task_type}/{inference_id}/_stream" });
143-
internal static ApiUrls InferenceUpdate = new ApiUrls(new[] { "_inference/{inference_id}/_update", "_inference/{task_type}/{inference_id}/_update" });
144147
internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" });
145148
internal static ApiUrls IngestDeleteIpLocationDatabase = new ApiUrls(new[] { "_ingest/ip_location/database/{id}" });
146149
internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
@@ -177,7 +180,6 @@ internal static class ApiUrlLookup
177180
internal static ApiUrls MachineLearningEstimateModelMemory = new ApiUrls(new[] { "_ml/anomaly_detectors/_estimate_model_memory" });
178181
internal static ApiUrls MachineLearningEvaluateDataFrame = new ApiUrls(new[] { "_ml/data_frame/_evaluate" });
179182
internal static ApiUrls MachineLearningExplainDataFrameAnalytics = new ApiUrls(new[] { "_ml/data_frame/analytics/_explain", "_ml/data_frame/analytics/{id}/_explain" });
180-
internal static ApiUrls MachineLearningFlushJob = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_flush" });
181183
internal static ApiUrls MachineLearningForecast = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/_forecast" });
182184
internal static ApiUrls MachineLearningGetBuckets = new ApiUrls(new[] { "_ml/anomaly_detectors/{job_id}/results/buckets/{timestamp}", "_ml/anomaly_detectors/{job_id}/results/buckets" });
183185
internal static ApiUrls MachineLearningGetCalendarEvents = new ApiUrls(new[] { "_ml/calendars/{calendar_id}/events" });
@@ -289,26 +291,14 @@ internal static class ApiUrlLookup
289291
internal static ApiUrls QueryRulesPutRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
290292
internal static ApiUrls QueryRulesPutRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
291293
internal static ApiUrls QueryRulesTest = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_test" });
292-
internal static ApiUrls RollupDeleteJob = new ApiUrls(new[] { "_rollup/job/{id}" });
293-
internal static ApiUrls RollupGetJobs = new ApiUrls(new[] { "_rollup/job/{id}", "_rollup/job" });
294-
internal static ApiUrls RollupGetRollupCaps = new ApiUrls(new[] { "_rollup/data/{id}", "_rollup/data" });
295-
internal static ApiUrls RollupGetRollupIndexCaps = new ApiUrls(new[] { "{index}/_rollup/data" });
296-
internal static ApiUrls RollupPutJob = new ApiUrls(new[] { "_rollup/job/{id}" });
297-
internal static ApiUrls RollupRollupSearch = new ApiUrls(new[] { "{index}/_rollup_search" });
298-
internal static ApiUrls RollupStartJob = new ApiUrls(new[] { "_rollup/job/{id}/_start" });
299-
internal static ApiUrls RollupStopJob = new ApiUrls(new[] { "_rollup/job/{id}/_stop" });
300294
internal static ApiUrls SearchableSnapshotsCacheStats = new ApiUrls(new[] { "_searchable_snapshots/cache/stats", "_searchable_snapshots/{node_id}/cache/stats" });
301295
internal static ApiUrls SearchableSnapshotsClearCache = new ApiUrls(new[] { "_searchable_snapshots/cache/clear", "{index}/_searchable_snapshots/cache/clear" });
302296
internal static ApiUrls SearchableSnapshotsMount = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_mount" });
303297
internal static ApiUrls SearchableSnapshotsStats = new ApiUrls(new[] { "_searchable_snapshots/stats", "{index}/_searchable_snapshots/stats" });
304298
internal static ApiUrls SearchApplicationDelete = new ApiUrls(new[] { "_application/search_application/{name}" });
305-
internal static ApiUrls SearchApplicationDeleteBehavioralAnalytics = new ApiUrls(new[] { "_application/analytics/{name}" });
306299
internal static ApiUrls SearchApplicationGet = new ApiUrls(new[] { "_application/search_application/{name}" });
307-
internal static ApiUrls SearchApplicationGetBehavioralAnalytics = new ApiUrls(new[] { "_application/analytics", "_application/analytics/{name}" });
308300
internal static ApiUrls SearchApplicationList = new ApiUrls(new[] { "_application/search_application" });
309-
internal static ApiUrls SearchApplicationPostBehavioralAnalyticsEvent = new ApiUrls(new[] { "_application/analytics/{collection_name}/event/{event_type}" });
310301
internal static ApiUrls SearchApplicationPut = new ApiUrls(new[] { "_application/search_application/{name}" });
311-
internal static ApiUrls SearchApplicationPutBehavioralAnalytics = new ApiUrls(new[] { "_application/analytics/{name}" });
312302
internal static ApiUrls SearchApplicationRenderQuery = new ApiUrls(new[] { "_application/search_application/{name}/_render_query" });
313303
internal static ApiUrls SearchApplicationSearch = new ApiUrls(new[] { "_application/search_application/{name}/_search" });
314304
internal static ApiUrls SecurityActivateUserProfile = new ApiUrls(new[] { "_security/profile/_activate" });

0 commit comments

Comments
 (0)