/* 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.ClusterApi { ///Request options for AllocationExplain https://opensearch.org/docs/latest/opensearch/rest-api/cluster-allocation/ public class ClusterAllocationExplainRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; public override bool SupportsBody => true; ///Return information about disk usage and shard sizes (default: false) public bool? IncludeDiskInfo { get => Q("include_disk_info"); set => Q("include_disk_info", value); } ///Return 'YES' decisions in explanation (default: false) public bool? IncludeYesDecisions { get => Q("include_yes_decisions"); set => Q("include_yes_decisions", value); } } ///Request options for DeleteComponentTemplate https://opensearch.org/docs/latest/opensearch/index-templates/ public class DeleteComponentTemplateRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; public override bool SupportsBody => false; ///Specify 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); } ///Specify 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); } ///Explicit operation timeout public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } } ///Request options for DeleteVotingConfigExclusions public class DeleteVotingConfigExclusionsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE; public override bool SupportsBody => false; ///Specifies whether to wait for all excluded nodes to be removed from the cluster before clearing the voting configuration exclusions list. public bool? WaitForRemoval { get => Q("wait_for_removal"); set => Q("wait_for_removal", value); } } ///Request options for ExistsComponentTemplate https://opensearch.org/docs/latest/opensearch/index-templates/ public class ExistsComponentTemplateRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.HEAD; public override bool SupportsBody => false; ///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); } } ///Request options for GetComponentTemplate https://opensearch.org/docs/latest/opensearch/index-templates/ public class GetComponentTemplateRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///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); } } ///Request options for GetSettings https://opensearch.org/docs/latest/opensearch/rest-api/cluster-settings/ public class ClusterGetSettingsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///Return settings in flat format (default: false) public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } ///Whether to return all default clusters setting. public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", 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); } ///Explicit operation timeout public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } } ///Request options for Health https://opensearch.org/docs/latest/opensearch/rest-api/cluster-health/ public class ClusterHealthRequestParameters : 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); } ///Specify the level of detail for returned information public Level? Level { get => Q("level"); set => Q("level", 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); } ///Explicit operation timeout public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } ///Wait until the specified number of shards is active public string WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } ///Wait until all currently queued events with the given priority are processed public WaitForEvents? WaitForEvents { get => Q("wait_for_events"); set => Q("wait_for_events", value); } ///Whether to wait until there are no initializing shards in the cluster public bool? WaitForNoInitializingShards { get => Q("wait_for_no_initializing_shards"); set => Q("wait_for_no_initializing_shards", value); } ///Whether to wait until there are no relocating shards in the cluster public bool? WaitForNoRelocatingShards { get => Q("wait_for_no_relocating_shards"); set => Q("wait_for_no_relocating_shards", value); } ///Wait until the specified number of nodes is available public string WaitForNodes { get => Q("wait_for_nodes"); set => Q("wait_for_nodes", value); } ///Wait until cluster is in a specific state public WaitForStatus? WaitForStatus { get => Q("wait_for_status"); set => Q("wait_for_status", value); } } ///Request options for PendingTasks https://opensearch.org/docs/latest/opensearch/rest-api/cat/cat-pending-tasks/ public class ClusterPendingTasksRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///Return local information, do not retrieve the state from cluster_manager node (default: false) public bool? Local { get => Q("local"); set => Q("local", value); } ///Specify 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); } ///Specify 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); } } ///Request options for PostVotingConfigExclusions public class PostVotingConfigExclusionsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; public override bool SupportsBody => false; /// /// A comma-separated list of the persistent ids of the nodes to exclude from the voting configuration. If specified, you may not also specify /// ?node_names. /// public string NodeIds { get => Q("node_ids"); set => Q("node_ids", value); } /// /// A comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify /// ?node_ids. /// public string NodeNames { get => Q("node_names"); set => Q("node_names", value); } ///Explicit operation timeout public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } } ///Request options for PutComponentTemplate https://opensearch.org/docs/latest/opensearch/index-templates/ public class PutComponentTemplateRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; public override bool SupportsBody => true; ///Whether the index template should only be added if new or can also replace an existing one public bool? Create { get => Q("create"); set => Q("create", value); } ///Specify 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); } ///Specify 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); } ///Explicit operation timeout public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } } ///Request options for PutSettings https://opensearch.org/docs/latest/opensearch/rest-api/cluster-settings/ public class ClusterPutSettingsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.PUT; public override bool SupportsBody => true; ///Return settings in flat format (default: false) public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", 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); } ///Explicit operation timeout public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } } ///Request options for RemoteInfo https://opensearch.org/docs/latest/opensearch/rest-api/remote-info/ public class RemoteInfoRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; } ///Request options for Reroute public class ClusterRerouteRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.POST; public override bool SupportsBody => true; ///Simulate the operation only and return the resulting state public bool? DryRun { get => Q("dry_run"); set => Q("dry_run", value); } ///Return an explanation of why the commands can or cannot be executed public bool? Explain { get => Q("explain"); set => Q("explain", 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); } ///Limit the information returned to the specified metrics. Defaults to all but metadata public string[] Metric { get => Q("metric"); set => Q("metric", value); } ///Retries allocation of shards that are blocked due to too many subsequent allocation failures public bool? RetryFailed { get => Q("retry_failed"); set => Q("retry_failed", value); } ///Explicit operation timeout public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } } ///Request options for State public class ClusterStateRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; /// /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have /// been specified) /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", 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); } ///Return settings in flat format (default: false) public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", 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); } ///Specify 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); } ///Specify 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); } ///Wait for the metadata version to be equal or greater than the specified metadata version public long? WaitForMetadataVersion { get => Q("wait_for_metadata_version"); set => Q("wait_for_metadata_version", value); } ///The maximum time to wait for wait_for_metadata_version before timing out public TimeSpan WaitForTimeout { get => Q("wait_for_timeout"); set => Q("wait_for_timeout", value); } } ///Request options for Stats public class ClusterStatsRequestParameters : RequestParameters { public override HttpMethod DefaultHttpMethod => HttpMethod.GET; public override bool SupportsBody => false; ///Return settings in flat format (default: false) public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } ///Explicit operation timeout public TimeSpan Timeout { get => Q("timeout"); set => Q("timeout", value); } } }