diff --git a/src/ApiGenerator/Configuration/CodeConfiguration.cs b/src/ApiGenerator/Configuration/CodeConfiguration.cs index bef14167d5..d23e4799f9 100644 --- a/src/ApiGenerator/Configuration/CodeConfiguration.cs +++ b/src/ApiGenerator/Configuration/CodeConfiguration.cs @@ -42,22 +42,7 @@ public static class CodeConfiguration new("{create,delete}_pit"), new("{delete,get}_all_pits"), - new("cluster.allocation_explain"), - new("cluster.delete_component_template"), - new("cluster.delete_voting_config_exclusions"), - new("cluster.exists_component_template"), - new("cluster.get_component_template"), - new("cluster.get_settings"), - new("cluster.health"), - new("cluster.pending_tasks"), - new("cluster.post_voting_config_exclusions"), - new("cluster.put_component_template"), - new("cluster.put_settings"), - new("cluster.remote_info"), - new("cluster.reroute"), - new("cluster.state"), - new("cluster.stats"), - + new("cluster.*"), new("dangling_indices.*"), new("ingest.*"), new("nodes.*"), diff --git a/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs b/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs index 12c2abba6c..d0478e2655 100644 --- a/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs +++ b/src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs @@ -258,7 +258,7 @@ public ClusterPendingTasksDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout); } - ///Descriptor for PostVotingConfigExclusions https://opensearch.org/docs/latest + /// Descriptor for PostVotingConfigExclusions https://opensearch.org/docs/latest public partial class PostVotingConfigExclusionsDescriptor : RequestDescriptorBase< PostVotingConfigExclusionsDescriptor, @@ -271,19 +271,19 @@ public partial class PostVotingConfigExclusionsDescriptor // values part of the url path // Request parameters - ///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. + /// 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 PostVotingConfigExclusionsDescriptor NodeIds(string nodeids) => Qs("node_ids", nodeids); - ///Comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify ?node_ids. + /// 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 PostVotingConfigExclusionsDescriptor NodeNames(string nodenames) => Qs("node_names", nodenames); - ///Operation timeout. + /// Operation timeout. public PostVotingConfigExclusionsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); } - ///Descriptor for PutSettings https://opensearch.org/docs/latest/api-reference/cluster-settings/ + /// Descriptor for PutSettings https://opensearch.org/docs/latest/api-reference/cluster-settings/ public partial class ClusterPutSettingsDescriptor : RequestDescriptorBase< ClusterPutSettingsDescriptor, @@ -296,27 +296,27 @@ public partial class ClusterPutSettingsDescriptor // values part of the url path // Request parameters - ///Operation timeout for connection to cluster-manager node. - ///Supported by OpenSearch servers of version 2.0.0 or greater. + /// Operation timeout for connection to cluster-manager node. + /// Supported by OpenSearch servers of version 2.0.0 or greater. public ClusterPutSettingsDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); - ///Return settings in flat format. + /// Return settings in flat format. public ClusterPutSettingsDescriptor FlatSettings(bool? flatsettings = true) => Qs("flat_settings", flatsettings); - ///Operation timeout for connection to master node. + /// Operation timeout for connection to master node. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] public ClusterPutSettingsDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout); - ///Operation timeout. + /// Operation timeout. public ClusterPutSettingsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); } - ///Descriptor for RemoteInfo https://opensearch.org/docs/latest/api-reference/remote-info/ + /// Descriptor for RemoteInfo https://opensearch.org/docs/latest/api-reference/remote-info/ public partial class RemoteInfoDescriptor : RequestDescriptorBase< RemoteInfoDescriptor, @@ -330,7 +330,7 @@ public partial class RemoteInfoDescriptor // Request parameters } - ///Descriptor for Reroute https://opensearch.org/docs/latest + /// Descriptor for Reroute https://opensearch.org/docs/latest public partial class ClusterRerouteDescriptor : RequestDescriptorBase< ClusterRerouteDescriptor, @@ -343,36 +343,36 @@ public partial class ClusterRerouteDescriptor // values part of the url path // Request parameters - ///Operation timeout for connection to cluster-manager node. - ///Supported by OpenSearch servers of version 2.0.0 or greater. + /// Operation timeout for connection to cluster-manager node. + /// Supported by OpenSearch servers of version 2.0.0 or greater. public ClusterRerouteDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); - ///Simulate the operation only and return the resulting state. + /// Simulate the operation only and return the resulting state. public ClusterRerouteDescriptor DryRun(bool? dryrun = true) => Qs("dry_run", dryrun); - ///Return an explanation of why the commands can or cannot be executed. + /// Return an explanation of why the commands can or cannot be executed. public ClusterRerouteDescriptor Explain(bool? explain = true) => Qs("explain", explain); - ///Operation timeout for connection to master node. + /// Operation timeout for connection to master node. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] public ClusterRerouteDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout); - ///Limit the information returned to the specified metrics. Defaults to all but metadata. + /// Limit the information returned to the specified metrics. Defaults to all but metadata. public ClusterRerouteDescriptor Metric(params string[] metric) => Qs("metric", metric); - ///Retries allocation of shards that are blocked due to too many subsequent allocation failures. + /// Retries allocation of shards that are blocked due to too many subsequent allocation failures. public ClusterRerouteDescriptor RetryFailed(bool? retryfailed = true) => Qs("retry_failed", retryfailed); - ///Operation timeout. + /// Operation timeout. public ClusterRerouteDescriptor Timeout(Time timeout) => Qs("timeout", timeout); } - ///Descriptor for State https://opensearch.org/docs/latest + /// Descriptor for State https://opensearch.org/docs/latest public partial class ClusterStateDescriptor : RequestDescriptorBase< ClusterStateDescriptor, @@ -383,18 +383,18 @@ public partial class ClusterStateDescriptor { internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterState; - ////_cluster/state + /// /_cluster/state public ClusterStateDescriptor() : base() { } - ////_cluster/state/{metric} - ///Optional, accepts null + /// /_cluster/state/{metric} + /// Optional, accepts null public ClusterStateDescriptor(Metrics metric) : base(r => r.Optional("metric", metric)) { } - ////_cluster/state/{metric}/{index} - ///Optional, accepts null - ///Optional, accepts null + /// /_cluster/state/{metric}/{index} + /// Optional, accepts null + /// Optional, accepts null public ClusterStateDescriptor(Metrics metric, Indices index) : base(r => r.Optional("metric", metric).Optional("index", index)) { } @@ -402,64 +402,64 @@ public ClusterStateDescriptor(Metrics metric, Indices index) Indices IClusterStateRequest.Index => Self.RouteValues.Get("index"); Metrics IClusterStateRequest.Metric => Self.RouteValues.Get("metric"); - ///Comma-separated list of indices; use the special string `_all` or Indices.All to perform the operation on all indices. + /// Comma-separated list of indices; use the special string `_all` or Indices.All to perform the operation on all indices. public ClusterStateDescriptor Index(Indices index) => Assign(index, (a, v) => a.RouteValues.Optional("index", v)); - ///a shortcut into calling Index(typeof(TOther)) + /// a shortcut into calling Index(typeof(TOther)) public ClusterStateDescriptor Index() where TOther : class => Assign(typeof(TOther), (a, v) => a.RouteValues.Optional("index", (Indices)v)); - ///A shortcut into calling Index(Indices.All) + /// A shortcut into calling Index(Indices.All) public ClusterStateDescriptor AllIndices() => Index(Indices.All); - ///Limit the information returned to the specified metrics. + /// Limit the information returned to the specified metrics. public ClusterStateDescriptor Metric(Metrics metric) => Assign(metric, (a, v) => a.RouteValues.Optional("metric", v)); // Request parameters - ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified). + /// 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 ClusterStateDescriptor AllowNoIndices(bool? allownoindices = true) => Qs("allow_no_indices", allownoindices); - ///Operation timeout for connection to cluster-manager node. - ///Supported by OpenSearch servers of version 2.0.0 or greater. + /// Operation timeout for connection to cluster-manager node. + /// Supported by OpenSearch servers of version 2.0.0 or greater. public ClusterStateDescriptor ClusterManagerTimeout(Time clustermanagertimeout) => Qs("cluster_manager_timeout", clustermanagertimeout); - ///Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Whether to expand wildcard expression to concrete indices that are open, closed or both. public ClusterStateDescriptor ExpandWildcards(ExpandWildcards? expandwildcards) => Qs("expand_wildcards", expandwildcards); - ///Return settings in flat format. + /// Return settings in flat format. public ClusterStateDescriptor FlatSettings(bool? flatsettings = true) => Qs("flat_settings", flatsettings); - ///Whether specified concrete indices should be ignored when unavailable (missing or closed). + /// Whether specified concrete indices should be ignored when unavailable (missing or closed). public ClusterStateDescriptor IgnoreUnavailable(bool? ignoreunavailable = true) => Qs("ignore_unavailable", ignoreunavailable); - ///Return local information, do not retrieve the state from cluster-manager node. + /// Return local information, do not retrieve the state from cluster-manager node. public ClusterStateDescriptor Local(bool? local = true) => Qs("local", local); - ///Operation timeout for connection to master node. + /// Operation timeout for connection to master node. [Obsolete( "Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead." )] public ClusterStateDescriptor MasterTimeout(Time mastertimeout) => Qs("master_timeout", mastertimeout); - ///Wait for the metadata version to be equal or greater than the specified metadata version. + /// Wait for the metadata version to be equal or greater than the specified metadata version. public ClusterStateDescriptor WaitForMetadataVersion(long? waitformetadataversion) => Qs("wait_for_metadata_version", waitformetadataversion); - ///The maximum time to wait for wait_for_metadata_version before timing out. + /// The maximum time to wait for wait_for_metadata_version before timing out. public ClusterStateDescriptor WaitForTimeout(Time waitfortimeout) => Qs("wait_for_timeout", waitfortimeout); } - ///Descriptor for Stats https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/ + /// Descriptor for Stats https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/ public partial class ClusterStatsDescriptor : RequestDescriptorBase< ClusterStatsDescriptor, @@ -470,28 +470,28 @@ public partial class ClusterStatsDescriptor { internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterStats; - ////_cluster/stats + /// /_cluster/stats public ClusterStatsDescriptor() : base() { } - ////_cluster/stats/nodes/{node_id} - ///Optional, accepts null + /// /_cluster/stats/nodes/{node_id} + /// Optional, accepts null public ClusterStatsDescriptor(NodeIds nodeId) : base(r => r.Optional("node_id", nodeId)) { } // values part of the url path NodeIds IClusterStatsRequest.NodeId => Self.RouteValues.Get("node_id"); - ///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. + /// 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 ClusterStatsDescriptor NodeId(NodeIds nodeId) => Assign(nodeId, (a, v) => a.RouteValues.Optional("node_id", v)); // Request parameters - ///Return settings in flat format. + /// Return settings in flat format. public ClusterStatsDescriptor FlatSettings(bool? flatsettings = true) => Qs("flat_settings", flatsettings); - ///Operation timeout. + /// Operation timeout. public ClusterStatsDescriptor Timeout(Time timeout) => Qs("timeout", timeout); } } diff --git a/src/OpenSearch.Client/_Generated/Requests.Cluster.cs b/src/OpenSearch.Client/_Generated/Requests.Cluster.cs index 0b29c3664d..a5dd7ad7ae 100644 --- a/src/OpenSearch.Client/_Generated/Requests.Cluster.cs +++ b/src/OpenSearch.Client/_Generated/Requests.Cluster.cs @@ -336,7 +336,7 @@ public Time MasterTimeout public partial interface IPostVotingConfigExclusionsRequest : IRequest { } - ///Request for PostVotingConfigExclusions https://opensearch.org/docs/latest + /// Request for PostVotingConfigExclusions https://opensearch.org/docs/latest public partial class PostVotingConfigExclusionsRequest : PlainRequestBase, IPostVotingConfigExclusionsRequest @@ -347,24 +347,24 @@ public partial class PostVotingConfigExclusionsRequest // values part of the url path // Request parameters - /// + /// /// 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); } - ///Comma-separated list of the names of the nodes to exclude from the voting configuration. If specified, you may not also specify ?node_ids. + /// 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); } - ///Operation timeout. + /// Operation timeout. public Time Timeout { get => Q