Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-generate cat API namespace (part 1) #505

Merged
merged 13 commits into from
Jan 9, 2024
13 changes: 13 additions & 0 deletions src/ApiGenerator/Configuration/CodeConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ public static class CodeConfiguration
{
new("{create,delete}_pit"),
new("{delete,get}_all_pits"),

new("cat.aliases"),
new("cat.allocation"),
new("cat.cluster_manager"),
new("cat.count"),
new("cat.fielddata"),
new("cat.health"),
new("cat.help"),
new("cat.indices"),
new("cat.master"),
new("cat.nodeattrs"),
new("cat.nodes"),
new("cat.pending_tasks"),

new("cluster.*"),
new("dangling_indices.*"),
Expand Down
4 changes: 2 additions & 2 deletions src/ApiGenerator/OpenSearch.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@
}
},
"x-operation-group": "cat.cluster_manager",
"x-version-added": "1.0"
"x-version-added": "2.0"
}
},
"/_cat/count": {
Expand Down Expand Up @@ -2239,7 +2239,7 @@
"x-deprecation-message": "To promote inclusive language, please use '/_cat/cluster_manager' instead.",
"x-operation-group": "cat.master",
"x-version-added": "1.0",
"x-version-deprecated": "1.0"
"x-version-deprecated": "2.0"
}
},
"/_cat/nodeattrs": {
Expand Down
14 changes: 0 additions & 14 deletions src/OpenSearch.Client/ApiUrlsLookup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,6 @@ namespace OpenSearch.Client
internal static partial class ApiUrlsLookups
{
internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[]{"_bulk", "{index}/_bulk"});
internal static ApiUrls CatAliases = new ApiUrls(new[]{"_cat/aliases", "_cat/aliases/{name}"});
internal static ApiUrls CatAllocation = new ApiUrls(new[]{"_cat/allocation", "_cat/allocation/{node_id}"});
internal static ApiUrls CatCount = new ApiUrls(new[]{"_cat/count", "_cat/count/{index}"});
///<remarks>Introduced in OpenSearch 2.0 instead of <see cref="CatMaster"/></remarks>
internal static ApiUrls CatClusterManager = new ApiUrls(new[]{"_cat/cluster_manager"});
internal static ApiUrls CatFielddata = new ApiUrls(new[]{"_cat/fielddata", "_cat/fielddata/{fields}"});
internal static ApiUrls CatHealth = new ApiUrls(new[]{"_cat/health"});
internal static ApiUrls CatHelp = new ApiUrls(new[]{"_cat"});
internal static ApiUrls CatIndices = new ApiUrls(new[]{"_cat/indices", "_cat/indices/{index}"});
///<remarks>Deprecated as of OpenSearch 2.0, use <see cref="CatClusterManager"/> instead</remarks>
internal static ApiUrls CatMaster = new ApiUrls(new[]{"_cat/master"});
internal static ApiUrls CatNodeAttributes = new ApiUrls(new[]{"_cat/nodeattrs"});
internal static ApiUrls CatNodes = new ApiUrls(new[]{"_cat/nodes"});
internal static ApiUrls CatPendingTasks = new ApiUrls(new[]{"_cat/pending_tasks"});
internal static ApiUrls CatPlugins = new ApiUrls(new[]{"_cat/plugins"});
internal static ApiUrls CatRecovery = new ApiUrls(new[]{"_cat/recovery", "_cat/recovery/{index}"});
internal static ApiUrls CatRepositories = new ApiUrls(new[]{"_cat/repositories"});
Expand Down
364 changes: 0 additions & 364 deletions src/OpenSearch.Client/Descriptors.Cat.cs

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions src/OpenSearch.Client/IOpenSearchClient.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ namespace OpenSearch.Client
///</summary>
public partial interface IOpenSearchClient
{
///<summary>Cat APIs</summary>
CatNamespace Cat
{
get;
}

/// <summary>
/// <c>POST</c> request to the <c>bulk</c> API, read more about this API online:
/// <para></para>
Expand Down
302 changes: 1 addition & 301 deletions src/OpenSearch.Client/OpenSearchClient.Cat.cs

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions src/OpenSearch.Client/OpenSearchClient.NoNamespace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ namespace OpenSearch.Client
///</summary>
public partial class OpenSearchClient : IOpenSearchClient
{
///<summary>Cat APIs</summary>
public CatNamespace Cat
{
get;
private set;
}

partial void SetupNamespaces() => Cat = new CatNamespace(this);

/// <summary>
/// <c>POST</c> request to the <c>bulk</c> API, read more about this API online:
/// <para></para>
Expand Down
Loading
Loading