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 namespace pt.2 #519

Merged
merged 9 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/ApiGenerator/Configuration/CodeConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static class CodeConfiguration
{
new("{create,delete}_pit"),
new("{delete,get}_all_pits"),

new("cat.aliases"),
new("cat.allocation"),
new("cat.cluster_manager"),
Expand All @@ -54,6 +54,15 @@ public static class CodeConfiguration
new("cat.nodeattrs"),
new("cat.nodes"),
new("cat.pending_tasks"),
new("cat.plugins"),
new("cat.recovery"),
new("cat.repositories"),
new("cat.segments"),
new("cat.shards"),
new("cat.snapshots"),
new("cat.tasks"),
new("cat.templates"),
new("cat.thread_pool"),

new("cluster.*"),
new("dangling_indices.*"),
Expand Down
61 changes: 51 additions & 10 deletions src/ApiGenerator/OpenSearch.openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -10494,7 +10494,8 @@
"thread_pool",
"transport",
"discovery",
"indexing_pressure"
"indexing_pressure",
"search_pipeline"
],
"x-data-type": "array"
},
Expand Down Expand Up @@ -10634,7 +10635,8 @@
"thread_pool",
"transport",
"discovery",
"indexing_pressure"
"indexing_pressure",
"search_pipeline"
],
"x-data-type": "array"
},
Expand Down Expand Up @@ -11282,7 +11284,8 @@
"thread_pool",
"transport",
"discovery",
"indexing_pressure"
"indexing_pressure",
"search_pipeline"
],
"x-data-type": "array"
},
Expand Down Expand Up @@ -11434,7 +11437,8 @@
"thread_pool",
"transport",
"discovery",
"indexing_pressure"
"indexing_pressure",
"search_pipeline"
],
"x-data-type": "array"
},
Expand Down Expand Up @@ -14875,6 +14879,15 @@
"default": false,
"description": "Indicates whether hits.total should be rendered as an integer or an object in the rest search response."
}
},
{
"name": "search_pipeline",
"in": "query",
"description": "Customizable sequence of processing stages applied to search queries.",
"schema": {
"type": "string",
"description": "Customizable sequence of processing stages applied to search queries."
}
}
],
"responses": {
Expand Down Expand Up @@ -15359,6 +15372,15 @@
"default": false,
"description": "Indicates whether hits.total should be rendered as an integer or an object in the rest search response."
}
},
{
"name": "search_pipeline",
"in": "query",
"description": "Customizable sequence of processing stages applied to search queries.",
"schema": {
"type": "string",
"description": "Customizable sequence of processing stages applied to search queries."
}
}
],
"responses": {
Expand Down Expand Up @@ -22364,7 +22386,7 @@
{
"name": "op_type",
"in": "query",
"description": "Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create`for requests without an explicit document ID.",
"description": "Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create` for requests without an explicit document ID.",
"schema": {
"$ref": "#/components/schemas/OpType"
}
Expand Down Expand Up @@ -22961,7 +22983,7 @@
{
"name": "op_type",
"in": "query",
"description": "Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create`for requests without an explicit document ID.",
"description": "Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create` for requests without an explicit document ID.",
"schema": {
"$ref": "#/components/schemas/OpType"
}
Expand Down Expand Up @@ -23109,7 +23131,7 @@
{
"name": "op_type",
"in": "query",
"description": "Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create`for requests without an explicit document ID.",
"description": "Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create` for requests without an explicit document ID.",
"schema": {
"$ref": "#/components/schemas/OpType"
}
Expand Down Expand Up @@ -26092,6 +26114,15 @@
"default": false,
"description": "Indicates whether hits.total should be rendered as an integer or an object in the rest search response."
}
},
{
"name": "search_pipeline",
"in": "query",
"description": "Customizable sequence of processing stages applied to search queries.",
"schema": {
"type": "string",
"description": "Customizable sequence of processing stages applied to search queries."
}
}
],
"responses": {
Expand Down Expand Up @@ -26595,6 +26626,15 @@
"default": false,
"description": "Indicates whether hits.total should be rendered as an integer or an object in the rest search response."
}
},
{
"name": "search_pipeline",
"in": "query",
"description": "Customizable sequence of processing stages applied to search queries.",
"schema": {
"type": "string",
"description": "Customizable sequence of processing stages applied to search queries."
}
}
],
"responses": {
Expand Down Expand Up @@ -26671,8 +26711,9 @@
"description": "Specify the keep alive for point in time.",
"schema": {
"type": "string",
"pattern": "^([0-9]+)(?:d|h|m|s|ms|micros|nanos)$",
"description": "Specify the keep alive for point in time.",
"x-data-type": "time"
"x-data-type": "time"
}
},
{
Expand Down Expand Up @@ -30720,7 +30761,7 @@
"pit_id": {
"type": "string"
},
"_shard": {
"_shards": {
"$ref": "#/components/schemas/ShardStatistics"
},
"creation_time": {
Expand Down Expand Up @@ -31513,7 +31554,7 @@
},
"OpType": {
"type": "string",
"description": "Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create`for requests without an explicit document ID.",
"description": "Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create` for requests without an explicit document ID.",
"enum": [
"index",
"create"
Expand Down
9 changes: 0 additions & 9 deletions src/OpenSearch.Client/ApiUrlsLookup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ namespace OpenSearch.Client
internal static partial class ApiUrlsLookups
{
internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[]{"_bulk", "{index}/_bulk"});
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"});
internal static ApiUrls CatSegments = new ApiUrls(new[]{"_cat/segments", "_cat/segments/{index}"});
internal static ApiUrls CatShards = new ApiUrls(new[]{"_cat/shards", "_cat/shards/{index}"});
internal static ApiUrls CatSnapshots = new ApiUrls(new[]{"_cat/snapshots", "_cat/snapshots/{repository}"});
internal static ApiUrls CatTasks = new ApiUrls(new[]{"_cat/tasks"});
internal static ApiUrls CatTemplates = new ApiUrls(new[]{"_cat/templates", "_cat/templates/{name}"});
internal static ApiUrls CatThreadPool = new ApiUrls(new[]{"_cat/thread_pool", "_cat/thread_pool/{thread_pool_patterns}"});
internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[]{"_search/scroll"});
internal static ApiUrls NoNamespaceCount = new ApiUrls(new[]{"_count", "{index}/_count"});
internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[]{"{index}/_create/{id}"});
Expand Down
Loading
Loading