/* 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.Linq; using System.Text; using System.Linq.Expressions; // ReSharper disable once CheckNamespace namespace OpenSearch.Net.Specification.CatApi { ///Request options for Aliases https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-aliases/ public class CatAliasesRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Allocation https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-allocation/ public class CatAllocationRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///The unit in which to display byte values public Bytes? Bytes { get => Q("bytes"); set => Q("bytes", value); } ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Count https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-count/ public class CatCountRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Fielddata https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-field-data/ public class CatFielddataRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///The unit in which to display byte values public Bytes? Bytes { get => Q("bytes"); set => Q("bytes", value); } ///A comma-separated list of fields to return in the output public string[] Fields { get => Q("fields"); set => Q("fields", value); } ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Health https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-health/ public class CatHealthRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Set to false to disable timestamping public bool? IncludeTimestamp { get => Q("ts"); set => Q("ts", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Help https://opensearch.org/docs/latest/opensearch/rest-api/cat/index/ public class CatHelpRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } } ///Request options for Indices https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-indices/ public class CatIndicesRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///The unit in which to display byte values public Bytes? Bytes { get => Q("bytes"); set => Q("bytes", value); } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. public ExpandWildcards? ExpandWildcards { get => Q("expand_wildcards"); set => Q("expand_wildcards", value); } ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///A health status ("green", "yellow", or "red" to filter only indices matching the specified health status public Health? Health { get => Q("health"); set => Q("health", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///If set to true segment stats will include stats for segments that are not currently loaded into memory public bool? IncludeUnloadedSegments { get => Q("include_unloaded_segments"); set => Q("include_unloaded_segments", value); } ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Set to true to return stats only for primary shards public bool? Pri { get => Q("pri"); set => Q("pri", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Master https://opensearch.org/docs/1.2/opensearch/rest-api/cat/cat-master/ ///Deprecated as of OpenSearch 2.0, use instead public class CatMasterRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for ClusterManager https://opensearch.org/docs/2.0/opensearch/rest-api/cat/cat-cluster_manager/ ///Introduced in OpenSearch 2.0 instead of public class CatClusterManagerRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Explicit operation timeout for connection to cluster_manager node public TimeSpan ClusterManagerTimeout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for NodeAttributes https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodeattrs/ public class CatNodeAttributesRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Nodes https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-nodes/ public class CatNodesRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///The unit in which to display byte values public Bytes? Bytes { get => Q("bytes"); set => Q("bytes", value); } ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Return the full node ID instead of the shortened version (default: false) public bool? FullId { get => Q("full_id"); set => Q("full_id", value); } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for PendingTasks https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-pending-tasks/ public class CatPendingTasksRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Plugins https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-plugins/ public class CatPluginsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Include bootstrap plugins in the response public bool? IncludeBootstrap { get => Q("include_bootstrap"); set => Q("include_bootstrap", value); } ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Recovery https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-recovery/ public class CatRecoveryRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///If `true`, the response only includes ongoing shard recoveries public bool? ActiveOnly { get => Q("active_only"); set => Q("active_only", value); } ///The unit in which to display byte values public Bytes? Bytes { get => Q("bytes"); set => Q("bytes", value); } ///If `true`, the response includes detailed information about shard recoveries public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Comma-separated list or wildcard expression of index names to limit the returned information public string[] IndexQueryString { get => Q("index"); set => Q("index", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Repositories https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-repositories/ public class CatRepositoriesRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Return local information, do not retrieve the state from cluster_manager node public bool? Local { get => Q("local"); set => Q("local", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Segments https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-segments/ public class CatSegmentsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///The unit in which to display byte values public Bytes? Bytes { get => Q("bytes"); set => Q("bytes", value); } ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Shards https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-shards/ public class CatShardsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///The unit in which to display byte values public Bytes? Bytes { get => Q("bytes"); set => Q("bytes", value); } ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Snapshots https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-snapshots/ public class CatSnapshotsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Set to true to ignore unavailable snapshots public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Tasks https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-tasks/ public class CatTasksRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///A comma-separated list of actions that should be returned. Leave empty to return all. public string[] Actions { get => Q("actions"); set => Q("actions", value); } ///Return detailed task information (default: false) public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } /// /// 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 /// public string[] Nodes { get => Q("nodes"); set => Q("nodes", value); } ///Return tasks with specified parent task id (node_id:task_number). Set to -1 to return all. public string ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for Templates https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-templates/ public class CatTemplatesRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } ///Request options for ThreadPool https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-thread-pool/ public class CatThreadPoolRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///a short version of the Accept header, e.g. json, yaml public string Format { get => Q("format"); set { Q("format", value); SetAcceptHeader(value); } } ///Comma-separated list of column names to display public string[] Headers { get => Q("h"); set => Q("h", value); } ///Return help information public bool? Help { get => Q("help"); set => Q("help", value); } ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Explicit operation timeout for connection to master node ///Deprecated as of OpenSearch 2.0, use instead public TimeSpan MasterTimeSpanout { get => Q("master_timeout"); set => Q("master_timeout", value); } ///Explicit operation timeout for connection to cluster_manager node ///Introduced in OpenSearch 2.0 instead of public TimeSpan ClusterManagerTimeSpanout { get => Q("cluster_manager_timeout"); set => Q("cluster_manager_timeout", value); } ///Comma-separated list of column names or column aliases to sort by public string[] SortByColumns { get => Q("s"); set => Q("s", value); } ///Verbose mode. Display column headers public bool? Verbose { get => Q("v"); set => Q("v", value); } } }