Skip to content

Commit 8ed85df

Browse files
committed
Regenerate APIs using fixed generator
1 parent 0a3d8fd commit 8ed85df

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

src/Nest/Requests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@
2323
using System.Runtime.Serialization;
2424
using Elasticsearch.Net;
2525
using Elasticsearch.Net.Utf8Json;
26+
using Elasticsearch.Net.Specification.AsyncSearchApi;
27+
using Elasticsearch.Net.Specification.AutoscalingApi;
2628
using Elasticsearch.Net.Specification.CatApi;
2729
using Elasticsearch.Net.Specification.ClusterApi;
2830
using Elasticsearch.Net.Specification.CrossClusterReplicationApi;
2931
using Elasticsearch.Net.Specification.EnrichApi;
32+
using Elasticsearch.Net.Specification.EqlApi;
3033
using Elasticsearch.Net.Specification.GraphApi;
3134
using Elasticsearch.Net.Specification.IndexLifecycleManagementApi;
3235
using Elasticsearch.Net.Specification.IndicesApi;
@@ -41,6 +44,7 @@
4144
using Elasticsearch.Net.Specification.SnapshotLifecycleManagementApi;
4245
using Elasticsearch.Net.Specification.SqlApi;
4346
using Elasticsearch.Net.Specification.TasksApi;
47+
using Elasticsearch.Net.Specification.TransformApi;
4448
using Elasticsearch.Net.Specification.WatcherApi;
4549
using Elasticsearch.Net.Specification.XPackApi;
4650

src/Nest/_Generated/ApiUrlsLookup.generated.cs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ namespace Nest
1818
{
1919
internal static class ApiUrlsLookups
2020
{
21+
internal static ApiUrls AsyncSearchDelete = new ApiUrls(new[]{"_async_search/{id}"});
22+
internal static ApiUrls AsyncSearchGet = new ApiUrls(new[]{"_async_search/{id}"});
23+
internal static ApiUrls AsyncSearchSubmit = new ApiUrls(new[]{"_async_search", "{index}/_async_search"});
24+
internal static ApiUrls AutoscalingGetDecision = new ApiUrls(new[]{"_autoscaling/decision"});
2125
internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[]{"_bulk", "{index}/_bulk"});
2226
internal static ApiUrls CatAliases = new ApiUrls(new[]{"_cat/aliases", "_cat/aliases/{name}"});
2327
internal static ApiUrls CatAllocation = new ApiUrls(new[]{"_cat/allocation", "_cat/allocation/{node_id}"});
@@ -27,6 +31,10 @@ internal static class ApiUrlsLookups
2731
internal static ApiUrls CatHelp = new ApiUrls(new[]{"_cat"});
2832
internal static ApiUrls CatIndices = new ApiUrls(new[]{"_cat/indices", "_cat/indices/{index}"});
2933
internal static ApiUrls CatMaster = new ApiUrls(new[]{"_cat/master"});
34+
internal static ApiUrls CatMlDataFrameAnalytics = new ApiUrls(new[]{"_cat/ml/data_frame/analytics", "_cat/ml/data_frame/analytics/{id}"});
35+
internal static ApiUrls CatMlDatafeeds = new ApiUrls(new[]{"_cat/ml/datafeeds", "_cat/ml/datafeeds/{datafeed_id}"});
36+
internal static ApiUrls CatMlJobs = new ApiUrls(new[]{"_cat/ml/anomaly_detectors", "_cat/ml/anomaly_detectors/{job_id}"});
37+
internal static ApiUrls CatMlTrainedModels = new ApiUrls(new[]{"_cat/ml/trained_models", "_cat/ml/trained_models/{model_id}"});
3038
internal static ApiUrls CatNodeAttributes = new ApiUrls(new[]{"_cat/nodeattrs"});
3139
internal static ApiUrls CatNodes = new ApiUrls(new[]{"_cat/nodes"});
3240
internal static ApiUrls CatPendingTasks = new ApiUrls(new[]{"_cat/pending_tasks"});
@@ -39,6 +47,7 @@ internal static class ApiUrlsLookups
3947
internal static ApiUrls CatTasks = new ApiUrls(new[]{"_cat/tasks"});
4048
internal static ApiUrls CatTemplates = new ApiUrls(new[]{"_cat/templates", "_cat/templates/{name}"});
4149
internal static ApiUrls CatThreadPool = new ApiUrls(new[]{"_cat/thread_pool", "_cat/thread_pool/{thread_pool_patterns}"});
50+
internal static ApiUrls CatTransform = new ApiUrls(new[]{"_cat/transforms", "_cat/transforms/{transform_id}"});
4251
internal static ApiUrls CrossClusterReplicationDeleteAutoFollowPattern = new ApiUrls(new[]{"_ccr/auto_follow/{name}"});
4352
internal static ApiUrls CrossClusterReplicationCreateFollowIndex = new ApiUrls(new[]{"{index}/_ccr/follow"});
4453
internal static ApiUrls CrossClusterReplicationFollowInfo = new ApiUrls(new[]{"{index}/_ccr/info"});
@@ -54,9 +63,12 @@ internal static class ApiUrlsLookups
5463
internal static ApiUrls CrossClusterReplicationUnfollowIndex = new ApiUrls(new[]{"{index}/_ccr/unfollow"});
5564
internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[]{"_search/scroll"});
5665
internal static ApiUrls ClusterAllocationExplain = new ApiUrls(new[]{"_cluster/allocation/explain"});
66+
internal static ApiUrls ClusterDeleteComponentTemplate = new ApiUrls(new[]{"_component_template/{name}"});
67+
internal static ApiUrls ClusterGetComponentTemplate = new ApiUrls(new[]{"_component_template", "_component_template/{name}"});
5768
internal static ApiUrls ClusterGetSettings = new ApiUrls(new[]{"_cluster/settings"});
5869
internal static ApiUrls ClusterHealth = new ApiUrls(new[]{"_cluster/health", "_cluster/health/{index}"});
5970
internal static ApiUrls ClusterPendingTasks = new ApiUrls(new[]{"_cluster/pending_tasks"});
71+
internal static ApiUrls ClusterPutComponentTemplate = new ApiUrls(new[]{"_component_template/{name}"});
6072
internal static ApiUrls ClusterPutSettings = new ApiUrls(new[]{"_cluster/settings"});
6173
internal static ApiUrls ClusterRemoteInfo = new ApiUrls(new[]{"_remote/info"});
6274
internal static ApiUrls ClusterReroute = new ApiUrls(new[]{"_cluster/reroute"});
@@ -73,12 +85,15 @@ internal static class ApiUrlsLookups
7385
internal static ApiUrls EnrichGetPolicy = new ApiUrls(new[]{"_enrich/policy/{name}", "_enrich/policy/"});
7486
internal static ApiUrls EnrichPutPolicy = new ApiUrls(new[]{"_enrich/policy/{name}"});
7587
internal static ApiUrls EnrichStats = new ApiUrls(new[]{"_enrich/_stats"});
88+
internal static ApiUrls EqlSearch = new ApiUrls(new[]{"{index}/_eql/search"});
7689
internal static ApiUrls NoNamespaceDocumentExists = new ApiUrls(new[]{"{index}/_doc/{id}"});
7790
internal static ApiUrls NoNamespaceSourceExists = new ApiUrls(new[]{"{index}/_source/{id}"});
7891
internal static ApiUrls NoNamespaceExplain = new ApiUrls(new[]{"{index}/_explain/{id}"});
7992
internal static ApiUrls NoNamespaceFieldCapabilities = new ApiUrls(new[]{"_field_caps", "{index}/_field_caps"});
8093
internal static ApiUrls NoNamespaceGet = new ApiUrls(new[]{"{index}/_doc/{id}"});
8194
internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[]{"_scripts/{id}"});
95+
internal static ApiUrls NoNamespaceGetScriptContext = new ApiUrls(new[]{"_script_context"});
96+
internal static ApiUrls NoNamespaceGetScriptLanguages = new ApiUrls(new[]{"_script_language"});
8297
internal static ApiUrls NoNamespaceSource = new ApiUrls(new[]{"{index}/_source/{id}"});
8398
internal static ApiUrls GraphExplore = new ApiUrls(new[]{"{index}/_graph/explore"});
8499
internal static ApiUrls IndexLifecycleManagementDeleteLifecycle = new ApiUrls(new[]{"_ilm/policy/{policy_id}"});
@@ -97,8 +112,10 @@ internal static class ApiUrlsLookups
97112
internal static ApiUrls IndicesClone = new ApiUrls(new[]{"{index}/_clone/{target}"});
98113
internal static ApiUrls IndicesClose = new ApiUrls(new[]{"{index}/_close"});
99114
internal static ApiUrls IndicesCreate = new ApiUrls(new[]{"{index}"});
115+
internal static ApiUrls IndicesCreateDataStream = new ApiUrls(new[]{"_data_stream/{name}"});
100116
internal static ApiUrls IndicesDelete = new ApiUrls(new[]{"{index}"});
101117
internal static ApiUrls IndicesDeleteAlias = new ApiUrls(new[]{"{index}/_alias/{name}"});
118+
internal static ApiUrls IndicesDeleteDataStream = new ApiUrls(new[]{"_data_stream/{name}"});
102119
internal static ApiUrls IndicesDeleteTemplate = new ApiUrls(new[]{"_template/{name}"});
103120
internal static ApiUrls IndicesExists = new ApiUrls(new[]{"{index}"});
104121
internal static ApiUrls IndicesAliasExists = new ApiUrls(new[]{"_alias/{name}", "{index}/_alias/{name}"});
@@ -110,6 +127,7 @@ internal static class ApiUrlsLookups
110127
internal static ApiUrls IndicesFreeze = new ApiUrls(new[]{"{index}/_freeze"});
111128
internal static ApiUrls IndicesGet = new ApiUrls(new[]{"{index}"});
112129
internal static ApiUrls IndicesGetAlias = new ApiUrls(new[]{"_alias", "_alias/{name}", "{index}/_alias/{name}", "{index}/_alias"});
130+
internal static ApiUrls IndicesGetDataStreams = new ApiUrls(new[]{"_data_streams", "_data_streams/{name}"});
113131
internal static ApiUrls IndicesGetFieldMapping = new ApiUrls(new[]{"_mapping/field/{fields}", "{index}/_mapping/field/{fields}"});
114132
internal static ApiUrls IndicesGetMapping = new ApiUrls(new[]{"_mapping", "{index}/_mapping"});
115133
internal static ApiUrls IndicesGetSettings = new ApiUrls(new[]{"_settings", "{index}/_settings", "{index}/_settings/{name}", "_settings/{name}"});
@@ -121,6 +139,7 @@ internal static class ApiUrlsLookups
121139
internal static ApiUrls IndicesPutTemplate = new ApiUrls(new[]{"_template/{name}"});
122140
internal static ApiUrls IndicesRecoveryStatus = new ApiUrls(new[]{"_recovery", "{index}/_recovery"});
123141
internal static ApiUrls IndicesRefresh = new ApiUrls(new[]{"_refresh", "{index}/_refresh"});
142+
internal static ApiUrls IndicesReloadSearchAnalyzers = new ApiUrls(new[]{"{index}/_reload_search_analyzers"});
124143
internal static ApiUrls IndicesRollover = new ApiUrls(new[]{"{alias}/_rollover", "{alias}/_rollover/{new_index}"});
125144
internal static ApiUrls IndicesSegments = new ApiUrls(new[]{"_segments", "{index}/_segments"});
126145
internal static ApiUrls IndicesShardStores = new ApiUrls(new[]{"_shard_stores", "{index}/_shard_stores"});
@@ -149,18 +168,26 @@ internal static class ApiUrlsLookups
149168
internal static ApiUrls MachineLearningDeleteCalendar = new ApiUrls(new[]{"_ml/calendars/{calendar_id}"});
150169
internal static ApiUrls MachineLearningDeleteCalendarEvent = new ApiUrls(new[]{"_ml/calendars/{calendar_id}/events/{event_id}"});
151170
internal static ApiUrls MachineLearningDeleteCalendarJob = new ApiUrls(new[]{"_ml/calendars/{calendar_id}/jobs/{job_id}"});
171+
internal static ApiUrls MachineLearningDeleteDataFrameAnalytics = new ApiUrls(new[]{"_ml/data_frame/analytics/{id}"});
152172
internal static ApiUrls MachineLearningDeleteDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}"});
153173
internal static ApiUrls MachineLearningDeleteExpiredData = new ApiUrls(new[]{"_ml/_delete_expired_data"});
154174
internal static ApiUrls MachineLearningDeleteFilter = new ApiUrls(new[]{"_ml/filters/{filter_id}"});
155175
internal static ApiUrls MachineLearningDeleteForecast = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}"});
156176
internal static ApiUrls MachineLearningDeleteJob = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}"});
157177
internal static ApiUrls MachineLearningDeleteModelSnapshot = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}"});
178+
internal static ApiUrls MachineLearningDeleteTrainedModel = new ApiUrls(new[]{"_ml/inference/{model_id}"});
179+
internal static ApiUrls MachineLearningEstimateModelMemory = new ApiUrls(new[]{"_ml/anomaly_detectors/_estimate_model_memory"});
180+
internal static ApiUrls MachineLearningEvaluateDataFrame = new ApiUrls(new[]{"_ml/data_frame/_evaluate"});
181+
internal static ApiUrls MachineLearningExplainDataFrameAnalytics = new ApiUrls(new[]{"_ml/data_frame/analytics/_explain", "_ml/data_frame/analytics/{id}/_explain"});
182+
internal static ApiUrls MachineLearningFindFileStructure = new ApiUrls(new[]{"_ml/find_file_structure"});
158183
internal static ApiUrls MachineLearningFlushJob = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/_flush"});
159184
internal static ApiUrls MachineLearningForecastJob = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/_forecast"});
160185
internal static ApiUrls MachineLearningGetBuckets = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/results/buckets/{timestamp}", "_ml/anomaly_detectors/{job_id}/results/buckets"});
161186
internal static ApiUrls MachineLearningGetCalendarEvents = new ApiUrls(new[]{"_ml/calendars/{calendar_id}/events"});
162187
internal static ApiUrls MachineLearningGetCalendars = new ApiUrls(new[]{"_ml/calendars", "_ml/calendars/{calendar_id}"});
163188
internal static ApiUrls MachineLearningGetCategories = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/results/categories/{category_id}", "_ml/anomaly_detectors/{job_id}/results/categories/"});
189+
internal static ApiUrls MachineLearningGetDataFrameAnalytics = new ApiUrls(new[]{"_ml/data_frame/analytics/{id}", "_ml/data_frame/analytics"});
190+
internal static ApiUrls MachineLearningGetDataFrameAnalyticsStats = new ApiUrls(new[]{"_ml/data_frame/analytics/_stats", "_ml/data_frame/analytics/{id}/_stats"});
164191
internal static ApiUrls MachineLearningGetDatafeedStats = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}/_stats", "_ml/datafeeds/_stats"});
165192
internal static ApiUrls MachineLearningGetDatafeeds = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}", "_ml/datafeeds"});
166193
internal static ApiUrls MachineLearningGetFilters = new ApiUrls(new[]{"_ml/filters", "_ml/filters/{filter_id}"});
@@ -170,18 +197,25 @@ internal static class ApiUrlsLookups
170197
internal static ApiUrls MachineLearningGetModelSnapshots = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}", "_ml/anomaly_detectors/{job_id}/model_snapshots"});
171198
internal static ApiUrls MachineLearningGetOverallBuckets = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/results/overall_buckets"});
172199
internal static ApiUrls MachineLearningGetAnomalyRecords = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/results/records"});
200+
internal static ApiUrls MachineLearningGetTrainedModels = new ApiUrls(new[]{"_ml/inference/{model_id}", "_ml/inference"});
201+
internal static ApiUrls MachineLearningGetTrainedModelsStats = new ApiUrls(new[]{"_ml/inference/{model_id}/_stats", "_ml/inference/_stats"});
173202
internal static ApiUrls MachineLearningInfo = new ApiUrls(new[]{"_ml/info"});
174203
internal static ApiUrls MachineLearningOpenJob = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/_open"});
175204
internal static ApiUrls MachineLearningPostCalendarEvents = new ApiUrls(new[]{"_ml/calendars/{calendar_id}/events"});
176205
internal static ApiUrls MachineLearningPostJobData = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/_data"});
177206
internal static ApiUrls MachineLearningPreviewDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}/_preview"});
178207
internal static ApiUrls MachineLearningPutCalendar = new ApiUrls(new[]{"_ml/calendars/{calendar_id}"});
179208
internal static ApiUrls MachineLearningPutCalendarJob = new ApiUrls(new[]{"_ml/calendars/{calendar_id}/jobs/{job_id}"});
209+
internal static ApiUrls MachineLearningPutDataFrameAnalytics = new ApiUrls(new[]{"_ml/data_frame/analytics/{id}"});
180210
internal static ApiUrls MachineLearningPutDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}"});
181211
internal static ApiUrls MachineLearningPutFilter = new ApiUrls(new[]{"_ml/filters/{filter_id}"});
182212
internal static ApiUrls MachineLearningPutJob = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}"});
213+
internal static ApiUrls MachineLearningPutTrainedModel = new ApiUrls(new[]{"_ml/inference/{model_id}"});
183214
internal static ApiUrls MachineLearningRevertModelSnapshot = new ApiUrls(new[]{"_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert"});
215+
internal static ApiUrls MachineLearningSetUpgradeMode = new ApiUrls(new[]{"_ml/set_upgrade_mode"});
216+
internal static ApiUrls MachineLearningStartDataFrameAnalytics = new ApiUrls(new[]{"_ml/data_frame/analytics/{id}/_start"});
184217
internal static ApiUrls MachineLearningStartDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}/_start"});
218+
internal static ApiUrls MachineLearningStopDataFrameAnalytics = new ApiUrls(new[]{"_ml/data_frame/analytics/{id}/_stop"});
185219
internal static ApiUrls MachineLearningStopDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}/_stop"});
186220
internal static ApiUrls MachineLearningUpdateDatafeed = new ApiUrls(new[]{"_ml/datafeeds/{datafeed_id}/_update"});
187221
internal static ApiUrls MachineLearningUpdateFilter = new ApiUrls(new[]{"_ml/filters/{filter_id}/_update"});
@@ -199,6 +233,7 @@ internal static class ApiUrlsLookups
199233
internal static ApiUrls NodesUsage = new ApiUrls(new[]{"_nodes/usage", "_nodes/{node_id}/usage", "_nodes/usage/{metric}", "_nodes/{node_id}/usage/{metric}"});
200234
internal static ApiUrls NoNamespacePing = new ApiUrls(new[]{""});
201235
internal static ApiUrls NoNamespacePutScript = new ApiUrls(new[]{"_scripts/{id}", "_scripts/{id}/{context}"});
236+
internal static ApiUrls NoNamespaceRankEval = new ApiUrls(new[]{"_rank_eval", "{index}/_rank_eval"});
202237
internal static ApiUrls NoNamespaceReindexOnServer = new ApiUrls(new[]{"_reindex"});
203238
internal static ApiUrls NoNamespaceReindexRethrottle = new ApiUrls(new[]{"_reindex/{task_id}/_rethrottle"});
204239
internal static ApiUrls NoNamespaceRenderSearchTemplate = new ApiUrls(new[]{"_render/template", "_render/template/{id}"});
@@ -227,6 +262,7 @@ internal static class ApiUrlsLookups
227262
internal static ApiUrls SecurityDisableUser = new ApiUrls(new[]{"_security/user/{username}/_disable"});
228263
internal static ApiUrls SecurityEnableUser = new ApiUrls(new[]{"_security/user/{username}/_enable"});
229264
internal static ApiUrls SecurityGetApiKey = new ApiUrls(new[]{"_security/api_key"});
265+
internal static ApiUrls SecurityGetBuiltinPrivileges = new ApiUrls(new[]{"_security/privilege/_builtin"});
230266
internal static ApiUrls SecurityGetPrivileges = new ApiUrls(new[]{"_security/privilege", "_security/privilege/{application}", "_security/privilege/{application}/{name}"});
231267
internal static ApiUrls SecurityGetRole = new ApiUrls(new[]{"_security/role/{name}", "_security/role"});
232268
internal static ApiUrls SecurityGetRoleMapping = new ApiUrls(new[]{"_security/role_mapping/{name}", "_security/role_mapping"});
@@ -267,6 +303,14 @@ internal static class ApiUrlsLookups
267303
internal static ApiUrls TasksGetTask = new ApiUrls(new[]{"_tasks/{task_id}"});
268304
internal static ApiUrls TasksList = new ApiUrls(new[]{"_tasks"});
269305
internal static ApiUrls NoNamespaceTermVectors = new ApiUrls(new[]{"{index}/_termvectors/{id}", "{index}/_termvectors"});
306+
internal static ApiUrls TransformDelete = new ApiUrls(new[]{"_transform/{transform_id}"});
307+
internal static ApiUrls TransformGet = new ApiUrls(new[]{"_transform/{transform_id}", "_transform"});
308+
internal static ApiUrls TransformGetStats = new ApiUrls(new[]{"_transform/{transform_id}/_stats"});
309+
internal static ApiUrls TransformPreview = new ApiUrls(new[]{"_transform/_preview"});
310+
internal static ApiUrls TransformPut = new ApiUrls(new[]{"_transform/{transform_id}"});
311+
internal static ApiUrls TransformStart = new ApiUrls(new[]{"_transform/{transform_id}/_start"});
312+
internal static ApiUrls TransformStop = new ApiUrls(new[]{"_transform/{transform_id}/_stop"});
313+
internal static ApiUrls TransformUpdate = new ApiUrls(new[]{"_transform/{transform_id}/_update"});
270314
internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[]{"{index}/_update/{id}"});
271315
internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[]{"{index}/_update_by_query"});
272316
internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[]{"_update_by_query/{task_id}/_rethrottle"});

0 commit comments

Comments
 (0)