Skip to content

Commit 4468c7b

Browse files
[codegen] master synchronization (#5827)
Co-authored-by: Mpdreamz <Mpdreamz@users.noreply.github.com>
1 parent 9566b99 commit 4468c7b

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

src/ApiGenerator/RestSpecification/Core/indices.freeze.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
"type":"string",
2222
"description":"The name of the index to freeze"
2323
}
24+
},
25+
"deprecated":{
26+
"version":"7.14.0",
27+
"description":"Frozen indices are deprecated because they provide no benefit given improvements in heap memory utilization. They will be removed in a future release."
2428
}
2529
}
2630
]

src/ApiGenerator/RestSpecification/Core/indices.unfreeze.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
"type":"string",
2222
"description":"The name of the index to unfreeze"
2323
}
24+
},
25+
"deprecated":{
26+
"version":"7.14.0",
27+
"description":"Frozen indices are deprecated because they provide no benefit given improvements in heap memory utilization. They will be removed in a future release."
2428
}
2529
}
2630
]

src/Elasticsearch.Net/ElasticLowLevelClient.Indices.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,13 @@ public Task<TResponse> ForceMergeAsync<TResponse>(string index, ForceMergeReques
344344
///<summary>POST on /{index}/_freeze <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/freeze-index-api.html</para></summary>
345345
///<param name = "index">The name of the index to freeze</param>
346346
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
347+
[Obsolete("Deprecated in version 7.14.0: Frozen indices are deprecated because they provide no benefit given improvements in heap memory utilization. They will be removed in a future release.")]
347348
public TResponse Freeze<TResponse>(string index, FreezeIndexRequestParameters requestParameters = null)
348349
where TResponse : class, ITransportResponse, new() => DoRequest<TResponse>(POST, Url($"{index:index}/_freeze"), null, RequestParams(requestParameters));
349350
///<summary>POST on /{index}/_freeze <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/freeze-index-api.html</para></summary>
350351
///<param name = "index">The name of the index to freeze</param>
351352
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
353+
[Obsolete("Deprecated in version 7.14.0: Frozen indices are deprecated because they provide no benefit given improvements in heap memory utilization. They will be removed in a future release.")]
352354
[MapsApi("indices.freeze", "index")]
353355
public Task<TResponse> FreezeAsync<TResponse>(string index, FreezeIndexRequestParameters requestParameters = null, CancellationToken ctx = default)
354356
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(POST, Url($"{index:index}/_freeze"), ctx, null, RequestParams(requestParameters));
@@ -912,11 +914,13 @@ public Task<TResponse> StatsAsync<TResponse>(string index, string metric, Indice
912914
///<summary>POST on /{index}/_unfreeze <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/unfreeze-index-api.html</para></summary>
913915
///<param name = "index">The name of the index to unfreeze</param>
914916
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
917+
[Obsolete("Deprecated in version 7.14.0: Frozen indices are deprecated because they provide no benefit given improvements in heap memory utilization. They will be removed in a future release.")]
915918
public TResponse Unfreeze<TResponse>(string index, UnfreezeIndexRequestParameters requestParameters = null)
916919
where TResponse : class, ITransportResponse, new() => DoRequest<TResponse>(POST, Url($"{index:index}/_unfreeze"), null, RequestParams(requestParameters));
917920
///<summary>POST on /{index}/_unfreeze <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/unfreeze-index-api.html</para></summary>
918921
///<param name = "index">The name of the index to unfreeze</param>
919922
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
923+
[Obsolete("Deprecated in version 7.14.0: Frozen indices are deprecated because they provide no benefit given improvements in heap memory utilization. They will be removed in a future release.")]
920924
[MapsApi("indices.unfreeze", "index")]
921925
public Task<TResponse> UnfreezeAsync<TResponse>(string index, UnfreezeIndexRequestParameters requestParameters = null, CancellationToken ctx = default)
922926
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(POST, Url($"{index:index}/_unfreeze"), ctx, null, RequestParams(requestParameters));

src/Elasticsearch.Net/ElasticLowLevelClient.Snapshot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public Task<TResponse> GetRepositoryAsync<TResponse>(string repository, GetRepos
165165
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
166166
public TResponse AnalyzeRepository<TResponse>(string repository, AnalyzeRepositoryRequestParameters requestParameters = null)
167167
where TResponse : class, ITransportResponse, new() => DoRequest<TResponse>(POST, Url($"_snapshot/{repository:repository}/_analyze"), null, RequestParams(requestParameters));
168-
///<summary>POST on /_snapshot/{ITransportResponse}/_analyze <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</para></summary>
168+
///<summary>POST on /_snapshot/{repository}/_analyze <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</para></summary>
169169
///<param name = "repository">A repository name</param>
170170
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
171171
[MapsApi("snapshot.repository_analyze", "repository")]

src/Nest/_Generated/ApiUrlsLookup.generated.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ internal static class ApiUrlsLookups
2525
internal static ApiUrls AsyncSearchGet = new ApiUrls(new[]{"_async_search/{id}"});
2626
internal static ApiUrls AsyncSearchStatus = new ApiUrls(new[]{"_async_search/status/{id}"});
2727
internal static ApiUrls AsyncSearchSubmit = new ApiUrls(new[]{"_async_search", "{index}/_async_search"});
28-
internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[]{"_bulk", "{index}/_bulk", "{index}/{type}/_bulk"});
28+
internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[]{"_bulk", "{index}/_bulk"});
2929
internal static ApiUrls CatAliases = new ApiUrls(new[]{"_cat/aliases", "_cat/aliases/{name}"});
3030
internal static ApiUrls CatAllocation = new ApiUrls(new[]{"_cat/allocation", "_cat/allocation/{node_id}"});
3131
internal static ApiUrls CatCount = new ApiUrls(new[]{"_cat/count", "_cat/count/{index}"});
@@ -64,7 +64,7 @@ internal static class ApiUrlsLookups
6464
internal static ApiUrls CrossClusterReplicationResumeFollowIndex = new ApiUrls(new[]{"{index}/_ccr/resume_follow"});
6565
internal static ApiUrls CrossClusterReplicationStats = new ApiUrls(new[]{"_ccr/stats"});
6666
internal static ApiUrls CrossClusterReplicationUnfollowIndex = new ApiUrls(new[]{"{index}/_ccr/unfollow"});
67-
internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[]{"_search/scroll"});
67+
internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[]{"_search/scroll", "_search/scroll/{scroll_id}"});
6868
internal static ApiUrls NoNamespaceClosePointInTime = new ApiUrls(new[]{"_pit"});
6969
internal static ApiUrls ClusterAllocationExplain = new ApiUrls(new[]{"_cluster/allocation/explain"});
7070
internal static ApiUrls ClusterDeleteVotingConfigExclusions = new ApiUrls(new[]{"_cluster/voting_config_exclusions"});
@@ -244,7 +244,7 @@ internal static class ApiUrlsLookups
244244
internal static ApiUrls RollupStartJob = new ApiUrls(new[]{"_rollup/job/{id}/_start"});
245245
internal static ApiUrls RollupStopJob = new ApiUrls(new[]{"_rollup/job/{id}/_stop"});
246246
internal static ApiUrls NoNamespaceExecutePainlessScript = new ApiUrls(new[]{"_scripts/painless/_execute"});
247-
internal static ApiUrls NoNamespaceScroll = new ApiUrls(new[]{"_search/scroll"});
247+
internal static ApiUrls NoNamespaceScroll = new ApiUrls(new[]{"_search/scroll", "_search/scroll/{scroll_id}"});
248248
internal static ApiUrls NoNamespaceSearch = new ApiUrls(new[]{"_search", "{index}/_search"});
249249
internal static ApiUrls NoNamespaceSearchShards = new ApiUrls(new[]{"_search_shards", "{index}/_search_shards"});
250250
internal static ApiUrls NoNamespaceSearchTemplate = new ApiUrls(new[]{"_search/template", "{index}/_search/template"});

0 commit comments

Comments
 (0)