/* SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. * * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ // ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ // ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ // ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ // ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ // ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ // ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ // ----------------------------------------------- // // This file is automatically generated // Please do not edit these files manually // Run the following in the root of the repos: // // *NIX : ./build.sh codegen // Windows : build.bat codegen // // ----------------------------------------------- // ReSharper disable RedundantUsingDirective using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; using OpenSearch.Net; using static OpenSearch.Net.HttpMethod; // ReSharper disable InterpolatedStringExpressionIsNotIFormattable // ReSharper disable once CheckNamespace // ReSharper disable InterpolatedStringExpressionIsNotIFormattable // ReSharper disable RedundantExtendsListEntry namespace OpenSearch.Net.Specification.NodesApi { /// /// Nodes APIs. /// Not intended to be instantiated directly. Use the property /// on . /// /// public partial class LowLevelNodesNamespace : NamespacedClientProxy { internal LowLevelNodesNamespace(OpenSearchLowLevelClient client): base(client) { } ///GET on /_nodes/hot_threads ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse HotThreadsForAll(NodesHotThreadsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, "_nodes/hot_threads", null, RequestParams(requestParameters)); ///GET on /_nodes/hot_threads ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.hot_threads", "")] public Task HotThreadsForAllAsync(NodesHotThreadsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, "_nodes/hot_threads", ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/hot_threads ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse HotThreads(string nodeId, NodesHotThreadsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/{nodeId:nodeId}/hot_threads"), null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/hot_threads ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.hot_threads", "node_id")] public Task HotThreadsAsync(string nodeId, NodesHotThreadsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/{nodeId:nodeId}/hot_threads"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse InfoForAll(NodesInfoRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, "_nodes", null, RequestParams(requestParameters)); ///GET on /_nodes https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.info", "")] public Task InfoForAllAsync(NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, "_nodes", ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id} https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Info(string nodeId, NodesInfoRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/{nodeId:nodeId}"), null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id} https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.info", "node_id")] public Task InfoAsync(string nodeId, NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/{nodeId:nodeId}"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/{metric} https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ ///A comma-separated list of metrics you wish returned. Leave empty to return all. ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse InfoForAll(string metric, NodesInfoRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/{metric:metric}"), null, RequestParams(requestParameters)); ///GET on /_nodes/{metric} https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ ///A comma-separated list of metrics you wish returned. Leave empty to return all. ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.info", "metric")] public Task InfoForAllAsync(string metric, NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/{metric:metric}"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/{metric} https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///A comma-separated list of metrics you wish returned. Leave empty to return all. ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Info(string nodeId, string metric, NodesInfoRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/{nodeId:nodeId}/{metric:metric}"), null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/{metric} https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///A comma-separated list of metrics you wish returned. Leave empty to return all. ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.info", "node_id, metric")] public Task InfoAsync(string nodeId, string metric, NodesInfoRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/{nodeId:nodeId}/{metric:metric}"), ctx, null, RequestParams(requestParameters)); ///POST on /_nodes/reload_secure_settings ///An object containing the password for the opensearch keystore ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse ReloadSecureSettingsForAll(PostData body, ReloadSecureSettingsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(POST, "_nodes/reload_secure_settings", body, RequestParams(requestParameters)); ///POST on /_nodes/reload_secure_settings ///An object containing the password for the opensearch keystore ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.reload_secure_settings", "body")] public Task ReloadSecureSettingsForAllAsync(PostData body, ReloadSecureSettingsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(POST, "_nodes/reload_secure_settings", ctx, body, RequestParams(requestParameters)); ///POST on /_nodes/{node_id}/reload_secure_settings ///A comma-separated list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes. ///An object containing the password for the opensearch keystore ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse ReloadSecureSettings(string nodeId, PostData body, ReloadSecureSettingsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(POST, Url($"_nodes/{nodeId:nodeId}/reload_secure_settings"), body, RequestParams(requestParameters)); ///POST on /_nodes/{node_id}/reload_secure_settings ///A comma-separated list of node IDs to span the reload/reinit call. Should stay empty because reloading usually involves all cluster nodes. ///An object containing the password for the opensearch keystore ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.reload_secure_settings", "node_id, body")] public Task ReloadSecureSettingsAsync(string nodeId, PostData body, ReloadSecureSettingsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(POST, Url($"_nodes/{nodeId:nodeId}/reload_secure_settings"), ctx, body, RequestParams(requestParameters)); ///GET on /_nodes/stats https://opensearch.org/docs/latest/opensearch/stats-api/ ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse StatsForAll(NodesStatsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, "_nodes/stats", null, RequestParams(requestParameters)); ///GET on /_nodes/stats https://opensearch.org/docs/latest/opensearch/stats-api/ ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.stats", "")] public Task StatsForAllAsync(NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, "_nodes/stats", ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/stats https://opensearch.org/docs/latest/opensearch/stats-api/ ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Stats(string nodeId, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/{nodeId:nodeId}/stats"), null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/stats https://opensearch.org/docs/latest/opensearch/stats-api/ ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.stats", "node_id")] public Task StatsAsync(string nodeId, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/{nodeId:nodeId}/stats"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/stats/{metric} https://opensearch.org/docs/latest/opensearch/stats-api/ ///Limit the information returned to the specified metrics ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse StatsForAll(string metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/stats/{metric:metric}"), null, RequestParams(requestParameters)); ///GET on /_nodes/stats/{metric} https://opensearch.org/docs/latest/opensearch/stats-api/ ///Limit the information returned to the specified metrics ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.stats", "metric")] public Task StatsForAllAsync(string metric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/stats/{metric:metric}"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/stats/{metric} https://opensearch.org/docs/latest/opensearch/stats-api/ ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Limit the information returned to the specified metrics ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Stats(string nodeId, string metric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/{nodeId:nodeId}/stats/{metric:metric}"), null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/stats/{metric} https://opensearch.org/docs/latest/opensearch/stats-api/ ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Limit the information returned to the specified metrics ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.stats", "node_id, metric")] public Task StatsAsync(string nodeId, string metric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/{nodeId:nodeId}/stats/{metric:metric}"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/stats/{metric}/{index_metric} https://opensearch.org/docs/latest/opensearch/stats-api/ ///Limit the information returned to the specified metrics ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse StatsForAll(string metric, string indexMetric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/stats/{metric:metric}/{indexMetric:indexMetric}"), null, RequestParams(requestParameters)); ///GET on /_nodes/stats/{metric}/{index_metric} https://opensearch.org/docs/latest/opensearch/stats-api/ ///Limit the information returned to the specified metrics ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.stats", "metric, index_metric")] public Task StatsForAllAsync(string metric, string indexMetric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/stats/{metric:metric}/{indexMetric:indexMetric}"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/stats/{metric}/{index_metric} https://opensearch.org/docs/latest/opensearch/stats-api/ ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Limit the information returned to the specified metrics ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Stats(string nodeId, string metric, string indexMetric, NodesStatsRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/{nodeId:nodeId}/stats/{metric:metric}/{indexMetric:indexMetric}"), null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/stats/{metric}/{index_metric} https://opensearch.org/docs/latest/opensearch/stats-api/ ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Limit the information returned to the specified metrics ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.stats", "node_id, metric, index_metric")] public Task StatsAsync(string nodeId, string metric, string indexMetric, NodesStatsRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/{nodeId:nodeId}/stats/{metric:metric}/{indexMetric:indexMetric}"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/usage ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse UsageForAll(NodesUsageRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, "_nodes/usage", null, RequestParams(requestParameters)); ///GET on /_nodes/usage ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.usage", "")] public Task UsageForAllAsync(NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, "_nodes/usage", ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/usage ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Usage(string nodeId, NodesUsageRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/{nodeId:nodeId}/usage"), null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/usage ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.usage", "node_id")] public Task UsageAsync(string nodeId, NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/{nodeId:nodeId}/usage"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/usage/{metric} ///Limit the information returned to the specified metrics ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse UsageForAll(string metric, NodesUsageRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/usage/{metric:metric}"), null, RequestParams(requestParameters)); ///GET on /_nodes/usage/{metric} ///Limit the information returned to the specified metrics ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.usage", "metric")] public Task UsageForAllAsync(string metric, NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/usage/{metric:metric}"), ctx, null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/usage/{metric} ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Limit the information returned to the specified metrics ///Request specific configuration such as querystring parameters & request specific connection settings. public TResponse Usage(string nodeId, string metric, NodesUsageRequestParameters requestParameters = null) where TResponse : class, IOpenSearchResponse, new() => DoRequest(GET, Url($"_nodes/{nodeId:nodeId}/usage/{metric:metric}"), null, RequestParams(requestParameters)); ///GET on /_nodes/{node_id}/usage/{metric} ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Limit the information returned to the specified metrics ///Request specific configuration such as querystring parameters & request specific connection settings. [MapsApi("nodes.usage", "node_id, metric")] public Task UsageAsync(string nodeId, string metric, NodesUsageRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IOpenSearchResponse, new() => DoRequestAsync(GET, Url($"_nodes/{nodeId:nodeId}/usage/{metric:metric}"), ctx, null, RequestParams(requestParameters)); } }