/* 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.Threading; using System.Threading.Tasks; using OpenSearch.Net.Specification.CatApi; // ReSharper disable once CheckNamespace // ReSharper disable RedundantTypeArgumentsOfMethod namespace OpenSearch.Client.Specification.CatApi { /// /// Cat APIs. /// Not intended to be instantiated directly. Use the property /// on . /// /// public class CatNamespace : NamespacedClientProxy { internal CatNamespace(OpenSearchClient client): base(client) { } /// /// GET request to the cat.aliases API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-aliases/ /// public CatResponse Aliases(Func selector = null) => Aliases(selector.InvokeOrDefault(new CatAliasesDescriptor())); /// /// GET request to the cat.aliases API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-aliases/ /// public Task> AliasesAsync(Func selector = null, CancellationToken ct = default) => AliasesAsync(selector.InvokeOrDefault(new CatAliasesDescriptor()), ct); /// /// GET request to the cat.aliases API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-aliases/ /// public CatResponse Aliases(ICatAliasesRequest request) => DoCat(request); /// /// GET request to the cat.aliases API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-aliases/ /// public Task> AliasesAsync(ICatAliasesRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.allocation API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-allocation/ /// public CatResponse Allocation(Func selector = null) => Allocation(selector.InvokeOrDefault(new CatAllocationDescriptor())); /// /// GET request to the cat.allocation API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-allocation/ /// public Task> AllocationAsync(Func selector = null, CancellationToken ct = default) => AllocationAsync(selector.InvokeOrDefault(new CatAllocationDescriptor()), ct); /// /// GET request to the cat.allocation API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-allocation/ /// public CatResponse Allocation(ICatAllocationRequest request) => DoCat(request); /// /// GET request to the cat.allocation API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-allocation/ /// public Task> AllocationAsync(ICatAllocationRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.count API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-count/ /// public CatResponse Count(Func selector = null) => Count(selector.InvokeOrDefault(new CatCountDescriptor())); /// /// GET request to the cat.count API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-count/ /// public Task> CountAsync(Func selector = null, CancellationToken ct = default) => CountAsync(selector.InvokeOrDefault(new CatCountDescriptor()), ct); /// /// GET request to the cat.count API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-count/ /// public CatResponse Count(ICatCountRequest request) => DoCat(request); /// /// GET request to the cat.count API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-count/ /// public Task> CountAsync(ICatCountRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.fielddata API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-field-data/ /// public CatResponse Fielddata(Func selector = null) => Fielddata(selector.InvokeOrDefault(new CatFielddataDescriptor())); /// /// GET request to the cat.fielddata API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-field-data/ /// public Task> FielddataAsync(Func selector = null, CancellationToken ct = default) => FielddataAsync(selector.InvokeOrDefault(new CatFielddataDescriptor()), ct); /// /// GET request to the cat.fielddata API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-field-data/ /// public CatResponse Fielddata(ICatFielddataRequest request) => DoCat(request); /// /// GET request to the cat.fielddata API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-field-data/ /// public Task> FielddataAsync(ICatFielddataRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.health API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-health/ /// public CatResponse Health(Func selector = null) => Health(selector.InvokeOrDefault(new CatHealthDescriptor())); /// /// GET request to the cat.health API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-health/ /// public Task> HealthAsync(Func selector = null, CancellationToken ct = default) => HealthAsync(selector.InvokeOrDefault(new CatHealthDescriptor()), ct); /// /// GET request to the cat.health API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-health/ /// public CatResponse Health(ICatHealthRequest request) => DoCat(request); /// /// GET request to the cat.health API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-health/ /// public Task> HealthAsync(ICatHealthRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.help API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/index/ /// public CatResponse Help(Func selector = null) => Help(selector.InvokeOrDefault(new CatHelpDescriptor())); /// /// GET request to the cat.help API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/index/ /// public Task> HelpAsync(Func selector = null, CancellationToken ct = default) => HelpAsync(selector.InvokeOrDefault(new CatHelpDescriptor()), ct); /// /// GET request to the cat.help API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/index/ /// public CatResponse Help(ICatHelpRequest request) => DoCat(request); /// /// GET request to the cat.help API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/index/ /// public Task> HelpAsync(ICatHelpRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.indices API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-indices/ /// public CatResponse Indices(Func selector = null) => Indices(selector.InvokeOrDefault(new CatIndicesDescriptor())); /// /// GET request to the cat.indices API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-indices/ /// public Task> IndicesAsync(Func selector = null, CancellationToken ct = default) => IndicesAsync(selector.InvokeOrDefault(new CatIndicesDescriptor()), ct); /// /// GET request to the cat.indices API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-indices/ /// public CatResponse Indices(ICatIndicesRequest request) => DoCat(request); /// /// GET request to the cat.indices API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-indices/ /// public Task> IndicesAsync(ICatIndicesRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.master API, read more about this API online: /// /// https://opensearch.org/docs/1.2/opensearch/rest-api/cat/cat-master/ /// Deprecated as of OpenSearch 2.0, use instead /// public CatResponse Master(Func selector = null) => Master(selector.InvokeOrDefault(new CatMasterDescriptor())); /// /// GET request to the cat.master API, read more about this API online: /// /// https://opensearch.org/docs/1.2/opensearch/rest-api/cat/cat-master/ /// Deprecated as of OpenSearch 2.0, use instead /// public Task> MasterAsync(Func selector = null, CancellationToken ct = default) => MasterAsync(selector.InvokeOrDefault(new CatMasterDescriptor()), ct); /// /// GET request to the cat.master API, read more about this API online: /// /// https://opensearch.org/docs/1.2/opensearch/rest-api/cat/cat-master/ /// Deprecated as of OpenSearch 2.0, use instead /// public CatResponse Master(ICatMasterRequest request) => DoCat(request); /// /// GET request to the cat.master API, read more about this API online: /// /// https://opensearch.org/docs/1.2/opensearch/rest-api/cat/cat-master/ /// Deprecated as of OpenSearch 2.0, use instead /// public Task> MasterAsync(ICatMasterRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.cluster_manager API, read more about this API online: /// /// https://opensearch.org/docs/2.0/opensearch/rest-api/cat/cat-cluster_manager/ /// Introduced in OpenSearch 2.0 instead of /// public CatResponse ClusterManager(Func selector = null) => ClusterManager(selector.InvokeOrDefault(new CatClusterManagerDescriptor())); /// /// GET request to the cat.cluster_manager API, read more about this API online: /// /// https://opensearch.org/docs/2.0/opensearch/rest-api/cat/cat-cluster_manager/ /// Introduced in OpenSearch 2.0 instead of /// public Task> ClusterManagerAsync(Func selector = null, CancellationToken ct = default) => ClusterManagerAsync(selector.InvokeOrDefault(new CatClusterManagerDescriptor()), ct); /// /// GET request to the cat.cluster_manager API, read more about this API online: /// /// https://opensearch.org/docs/2.0/opensearch/rest-api/cat/cat-cluster_manager/ /// Introduced in OpenSearch 2.0 instead of /// public CatResponse ClusterManager(ICatClusterManagerRequest request) => DoCat(request); /// /// GET request to the cat.cluster_manager API, read more about this API online: /// /// https://opensearch.org/docs/2.0/opensearch/rest-api/cat/cat-cluster_manager/ /// Introduced in OpenSearch 2.0 instead of /// public Task> ClusterManagerAsync(ICatClusterManagerRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.nodeattrs API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodeattrs/ /// public CatResponse NodeAttributes(Func selector = null) => NodeAttributes(selector.InvokeOrDefault(new CatNodeAttributesDescriptor())); /// /// GET request to the cat.nodeattrs API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodeattrs/ /// public Task> NodeAttributesAsync(Func selector = null, CancellationToken ct = default) => NodeAttributesAsync(selector.InvokeOrDefault(new CatNodeAttributesDescriptor()), ct); /// /// GET request to the cat.nodeattrs API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodeattrs/ /// public CatResponse NodeAttributes(ICatNodeAttributesRequest request) => DoCat(request); /// /// GET request to the cat.nodeattrs API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodeattrs/ /// public Task> NodeAttributesAsync(ICatNodeAttributesRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.nodes API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ /// public CatResponse Nodes(Func selector = null) => Nodes(selector.InvokeOrDefault(new CatNodesDescriptor())); /// /// GET request to the cat.nodes API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ /// public Task> NodesAsync(Func selector = null, CancellationToken ct = default) => NodesAsync(selector.InvokeOrDefault(new CatNodesDescriptor()), ct); /// /// GET request to the cat.nodes API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ /// public CatResponse Nodes(ICatNodesRequest request) => DoCat(request); /// /// GET request to the cat.nodes API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ /// public Task> NodesAsync(ICatNodesRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.pending_tasks API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-pending-tasks/ /// public CatResponse PendingTasks(Func selector = null) => PendingTasks(selector.InvokeOrDefault(new CatPendingTasksDescriptor())); /// /// GET request to the cat.pending_tasks API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-pending-tasks/ /// public Task> PendingTasksAsync(Func selector = null, CancellationToken ct = default) => PendingTasksAsync(selector.InvokeOrDefault(new CatPendingTasksDescriptor()), ct); /// /// GET request to the cat.pending_tasks API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-pending-tasks/ /// public CatResponse PendingTasks(ICatPendingTasksRequest request) => DoCat(request); /// /// GET request to the cat.pending_tasks API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-pending-tasks/ /// public Task> PendingTasksAsync(ICatPendingTasksRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.plugins API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-plugins/ /// public CatResponse Plugins(Func selector = null) => Plugins(selector.InvokeOrDefault(new CatPluginsDescriptor())); /// /// GET request to the cat.plugins API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-plugins/ /// public Task> PluginsAsync(Func selector = null, CancellationToken ct = default) => PluginsAsync(selector.InvokeOrDefault(new CatPluginsDescriptor()), ct); /// /// GET request to the cat.plugins API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-plugins/ /// public CatResponse Plugins(ICatPluginsRequest request) => DoCat(request); /// /// GET request to the cat.plugins API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-plugins/ /// public Task> PluginsAsync(ICatPluginsRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.recovery API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-recovery/ /// public CatResponse Recovery(Func selector = null) => Recovery(selector.InvokeOrDefault(new CatRecoveryDescriptor())); /// /// GET request to the cat.recovery API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-recovery/ /// public Task> RecoveryAsync(Func selector = null, CancellationToken ct = default) => RecoveryAsync(selector.InvokeOrDefault(new CatRecoveryDescriptor()), ct); /// /// GET request to the cat.recovery API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-recovery/ /// public CatResponse Recovery(ICatRecoveryRequest request) => DoCat(request); /// /// GET request to the cat.recovery API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-recovery/ /// public Task> RecoveryAsync(ICatRecoveryRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.repositories API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-repositories/ /// public CatResponse Repositories(Func selector = null) => Repositories(selector.InvokeOrDefault(new CatRepositoriesDescriptor())); /// /// GET request to the cat.repositories API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-repositories/ /// public Task> RepositoriesAsync(Func selector = null, CancellationToken ct = default) => RepositoriesAsync(selector.InvokeOrDefault(new CatRepositoriesDescriptor()), ct); /// /// GET request to the cat.repositories API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-repositories/ /// public CatResponse Repositories(ICatRepositoriesRequest request) => DoCat(request); /// /// GET request to the cat.repositories API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-repositories/ /// public Task> RepositoriesAsync(ICatRepositoriesRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.segments API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-segments/ /// public CatResponse Segments(Func selector = null) => Segments(selector.InvokeOrDefault(new CatSegmentsDescriptor())); /// /// GET request to the cat.segments API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-segments/ /// public Task> SegmentsAsync(Func selector = null, CancellationToken ct = default) => SegmentsAsync(selector.InvokeOrDefault(new CatSegmentsDescriptor()), ct); /// /// GET request to the cat.segments API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-segments/ /// public CatResponse Segments(ICatSegmentsRequest request) => DoCat(request); /// /// GET request to the cat.segments API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-segments/ /// public Task> SegmentsAsync(ICatSegmentsRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.shards API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-shards/ /// public CatResponse Shards(Func selector = null) => Shards(selector.InvokeOrDefault(new CatShardsDescriptor())); /// /// GET request to the cat.shards API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-shards/ /// public Task> ShardsAsync(Func selector = null, CancellationToken ct = default) => ShardsAsync(selector.InvokeOrDefault(new CatShardsDescriptor()), ct); /// /// GET request to the cat.shards API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-shards/ /// public CatResponse Shards(ICatShardsRequest request) => DoCat(request); /// /// GET request to the cat.shards API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-shards/ /// public Task> ShardsAsync(ICatShardsRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.snapshots API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-snapshots/ /// public CatResponse Snapshots(Func selector = null) => Snapshots(selector.InvokeOrDefault(new CatSnapshotsDescriptor())); /// /// GET request to the cat.snapshots API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-snapshots/ /// public Task> SnapshotsAsync(Func selector = null, CancellationToken ct = default) => SnapshotsAsync(selector.InvokeOrDefault(new CatSnapshotsDescriptor()), ct); /// /// GET request to the cat.snapshots API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-snapshots/ /// public CatResponse Snapshots(ICatSnapshotsRequest request) => DoCat(request); /// /// GET request to the cat.snapshots API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-snapshots/ /// public Task> SnapshotsAsync(ICatSnapshotsRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.tasks API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-tasks/ /// public CatResponse Tasks(Func selector = null) => Tasks(selector.InvokeOrDefault(new CatTasksDescriptor())); /// /// GET request to the cat.tasks API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-tasks/ /// public Task> TasksAsync(Func selector = null, CancellationToken ct = default) => TasksAsync(selector.InvokeOrDefault(new CatTasksDescriptor()), ct); /// /// GET request to the cat.tasks API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-tasks/ /// public CatResponse Tasks(ICatTasksRequest request) => DoCat(request); /// /// GET request to the cat.tasks API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-tasks/ /// public Task> TasksAsync(ICatTasksRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.templates API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-templates/ /// public CatResponse Templates(Func selector = null) => Templates(selector.InvokeOrDefault(new CatTemplatesDescriptor())); /// /// GET request to the cat.templates API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-templates/ /// public Task> TemplatesAsync(Func selector = null, CancellationToken ct = default) => TemplatesAsync(selector.InvokeOrDefault(new CatTemplatesDescriptor()), ct); /// /// GET request to the cat.templates API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-templates/ /// public CatResponse Templates(ICatTemplatesRequest request) => DoCat(request); /// /// GET request to the cat.templates API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-templates/ /// public Task> TemplatesAsync(ICatTemplatesRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); /// /// GET request to the cat.thread_pool API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-thread-pool/ /// public CatResponse ThreadPool(Func selector = null) => ThreadPool(selector.InvokeOrDefault(new CatThreadPoolDescriptor())); /// /// GET request to the cat.thread_pool API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-thread-pool/ /// public Task> ThreadPoolAsync(Func selector = null, CancellationToken ct = default) => ThreadPoolAsync(selector.InvokeOrDefault(new CatThreadPoolDescriptor()), ct); /// /// GET request to the cat.thread_pool API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-thread-pool/ /// public CatResponse ThreadPool(ICatThreadPoolRequest request) => DoCat(request); /// /// GET request to the cat.thread_pool API, read more about this API online: /// /// https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-thread-pool/ /// public Task> ThreadPoolAsync(ICatThreadPoolRequest request, CancellationToken ct = default) => DoCatAsync(request, ct); } }