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("timeout");
@@ -376,7 +376,7 @@ public Time Timeout
public partial interface IClusterPutSettingsRequest
: IRequest { }
- ///Request for PutSettings https://opensearch.org/docs/latest/api-reference/cluster-settings/
+ /// Request for PutSettings https://opensearch.org/docs/latest/api-reference/cluster-settings/
public partial class ClusterPutSettingsRequest
: PlainRequestBase,
IClusterPutSettingsRequest
@@ -387,22 +387,22 @@ public partial class ClusterPutSettingsRequest
// 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 Time ClusterManagerTimeout
{
get => Q("cluster_manager_timeout");
set => Q("cluster_manager_timeout", value);
}
- ///Return settings in flat format.
+ /// Return settings in flat format.
public bool? FlatSettings
{
get => Q("flat_settings");
set => Q("flat_settings", value);
}
- ///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."
)]
@@ -412,7 +412,7 @@ public Time MasterTimeout
set => Q("master_timeout", value);
}
- ///Operation timeout.
+ /// Operation timeout.
public Time Timeout
{
get => Q("timeout");
@@ -423,7 +423,7 @@ public Time Timeout
[InterfaceDataContract]
public partial interface IRemoteInfoRequest : IRequest { }
- ///Request for RemoteInfo https://opensearch.org/docs/latest/api-reference/remote-info/
+ /// Request for RemoteInfo https://opensearch.org/docs/latest/api-reference/remote-info/
public partial class RemoteInfoRequest
: PlainRequestBase,
IRemoteInfoRequest
@@ -438,7 +438,7 @@ public partial class RemoteInfoRequest
[InterfaceDataContract]
public partial interface IClusterRerouteRequest : IRequest { }
- ///Request for Reroute https://opensearch.org/docs/latest
+ /// Request for Reroute https://opensearch.org/docs/latest
public partial class ClusterRerouteRequest
: PlainRequestBase,
IClusterRerouteRequest
@@ -449,29 +449,29 @@ public partial class ClusterRerouteRequest
// 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 Time ClusterManagerTimeout
{
get => Q("cluster_manager_timeout");
set => Q("cluster_manager_timeout", value);
}
- ///Simulate the operation only and return the resulting state.
+ /// 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.
+ /// Return an explanation of why the commands can or cannot be executed.
public bool? Explain
{
get => Q("explain");
set => Q("explain", value);
}
- ///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."
)]
@@ -481,21 +481,21 @@ public Time MasterTimeout
set => Q("master_timeout", value);
}
- ///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 string[] Metric
{
get => Q("metric");
set => Q("metric", value);
}
- ///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 bool? RetryFailed
{
get => Q("retry_failed");
set => Q("retry_failed", value);
}
- ///Operation timeout.
+ /// Operation timeout.
public Time Timeout
{
get => Q("timeout");
@@ -513,7 +513,7 @@ public partial interface IClusterStateRequest : IRequestRequest for State https://opensearch.org/docs/latest
+ /// Request for State https://opensearch.org/docs/latest
public partial class ClusterStateRequest
: PlainRequestBase,
IClusterStateRequest
@@ -521,18 +521,18 @@ public partial class ClusterStateRequest
protected IClusterStateRequest Self => this;
internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterState;
- ////_cluster/state
+ /// /_cluster/state
public ClusterStateRequest()
: base() { }
- ////_cluster/state/{metric}
- /// Optional, accepts null
+ /// /_cluster/state/{metric}
+ /// Optional, accepts null
public ClusterStateRequest(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 ClusterStateRequest(Metrics metric, Indices index)
: base(r => r.Optional("metric", metric).Optional("index", index)) { }
@@ -544,53 +544,53 @@ public ClusterStateRequest(Metrics metric, Indices index)
Metrics IClusterStateRequest.Metric => Self.RouteValues.Get("metric");
// 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).
- ///
+ ///
public bool? AllowNoIndices
{
get => Q("allow_no_indices");
set => Q("allow_no_indices", value);
}
- ///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 Time ClusterManagerTimeout
{
get => Q("cluster_manager_timeout");
set => Q("cluster_manager_timeout", value);
}
- ///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 ExpandWildcards? ExpandWildcards
{
get => Q("expand_wildcards");
set => Q("expand_wildcards", value);
}
- ///Return settings in flat format.
+ /// Return settings in flat format.
public bool? FlatSettings
{
get => Q("flat_settings");
set => Q("flat_settings", value);
}
- ///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 bool? IgnoreUnavailable
{
get => Q("ignore_unavailable");
set => Q("ignore_unavailable", value);
}
- ///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 bool? Local
{
get => Q("local");
set => Q("local", value);
}
- ///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."
)]
@@ -600,14 +600,14 @@ public Time MasterTimeout
set => Q("master_timeout", value);
}
- ///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 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.
+ /// The maximum time to wait for wait_for_metadata_version before timing out.
public Time WaitForTimeout
{
get => Q("wait_for_timeout");
@@ -622,7 +622,7 @@ public partial interface IClusterStatsRequest : IRequestRequest for Stats https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
+ /// Request for Stats https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
public partial class ClusterStatsRequest
: PlainRequestBase,
IClusterStatsRequest
@@ -630,12 +630,12 @@ public partial class ClusterStatsRequest
protected IClusterStatsRequest Self => this;
internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterStats;
- ////_cluster/stats
+ /// /_cluster/stats
public ClusterStatsRequest()
: base() { }
- ////_cluster/stats/nodes/{node_id}
- /// Optional, accepts null
+ /// /_cluster/stats/nodes/{node_id}
+ /// Optional, accepts null
public ClusterStatsRequest(NodeIds nodeId)
: base(r => r.Optional("node_id", nodeId)) { }
@@ -644,14 +644,14 @@ public ClusterStatsRequest(NodeIds nodeId)
NodeIds IClusterStatsRequest.NodeId => Self.RouteValues.Get("node_id");
// Request parameters
- ///Return settings in flat format.
+ /// Return settings in flat format.
public bool? FlatSettings
{
get => Q("flat_settings");
set => Q("flat_settings", value);
}
- ///Operation timeout.
+ /// Operation timeout.
public Time Timeout
{
get => Q("timeout");
diff --git a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Cluster.cs b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Cluster.cs
index c7981f54c4..e2222ca08a 100644
--- a/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Cluster.cs
+++ b/src/OpenSearch.Net/_Generated/Api/RequestParameters/RequestParameters.Cluster.cs
@@ -107,6 +107,14 @@ public TimeSpan Timeout
}
}
+ /// Request options for DeleteDecommissionAwareness https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-decommissioning-and-recommissioning-a-zone
+ public partial class DeleteDecommissionAwarenessRequestParameters
+ : RequestParameters
+ {
+ public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE;
+ public override bool SupportsBody => false;
+ }
+
/// Request options for DeleteVotingConfigExclusions https://opensearch.org/docs/latest
public partial class DeleteVotingConfigExclusionsRequestParameters
: RequestParameters
@@ -122,6 +130,14 @@ public bool? WaitForRemoval
}
}
+ /// Request options for DeleteWeightedRouting https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-deleting-weights
+ public partial class DeleteWeightedRoutingRequestParameters
+ : RequestParameters
+ {
+ public override HttpMethod DefaultHttpMethod => HttpMethod.DELETE;
+ public override bool SupportsBody => false;
+ }
+
/// Request options for ExistsComponentTemplate https://opensearch.org/docs/latest
public partial class ExistsComponentTemplateRequestParameters
: RequestParameters
@@ -188,6 +204,14 @@ public TimeSpan MasterTimeout
}
}
+ /// Request options for GetDecommissionAwareness https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-getting-zone-decommission-status
+ public partial class GetDecommissionAwarenessRequestParameters
+ : RequestParameters
+ {
+ public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
+ public override bool SupportsBody => false;
+ }
+
/// Request options for GetSettings https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/
public partial class ClusterGetSettingsRequestParameters
: RequestParameters
@@ -235,6 +259,14 @@ public TimeSpan Timeout
}
}
+ /// Request options for GetWeightedRouting https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-getting-weights-for-all-zones
+ public partial class GetWeightedRoutingRequestParameters
+ : RequestParameters
+ {
+ public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
+ public override bool SupportsBody => false;
+ }
+
/// Request options for Health https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-health/
public partial class ClusterHealthRequestParameters
: RequestParameters
@@ -371,31 +403,31 @@ public TimeSpan MasterTimeout
}
}
- ///Request options for PostVotingConfigExclusions https://opensearch.org/docs/latest
+ /// Request options for PostVotingConfigExclusions https://opensearch.org/docs/latest
public partial class PostVotingConfigExclusionsRequestParameters
: RequestParameters
{
public override HttpMethod DefaultHttpMethod => HttpMethod.POST;
public override bool SupportsBody => false;
- ///
+ ///
/// 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 TimeSpan Timeout
{
get => Q("timeout");
@@ -403,29 +435,29 @@ public TimeSpan Timeout
}
}
- ///Request options for PutComponentTemplate
+ /// Request options for PutComponentTemplate
public partial class PutComponentTemplateRequestParameters
: RequestParameters
{
public override HttpMethod DefaultHttpMethod => HttpMethod.PUT;
public override bool SupportsBody => true;
- ///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 TimeSpan ClusterManagerTimeout
{
get => Q("cluster_manager_timeout");
set => Q("cluster_manager_timeout", value);
}
- ///Whether the index template should only be added if new or can also replace an existing one.
+ /// 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);
}
- ///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."
)]
@@ -435,7 +467,7 @@ public TimeSpan MasterTimeout
set => Q("master_timeout", value);
}
- ///Operation timeout.
+ /// Operation timeout.
public TimeSpan Timeout
{
get => Q("timeout");
@@ -443,29 +475,37 @@ public TimeSpan Timeout
}
}
- ///Request options for PutSettings https://opensearch.org/docs/latest/api-reference/cluster-settings/
+ /// Request options for PutDecommissionAwareness https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-decommissioning-and-recommissioning-a-zone
+ public partial class PutDecommissionAwarenessRequestParameters
+ : RequestParameters
+ {
+ public override HttpMethod DefaultHttpMethod => HttpMethod.PUT;
+ public override bool SupportsBody => false;
+ }
+
+ /// Request options for PutSettings https://opensearch.org/docs/latest/api-reference/cluster-settings/
public partial class ClusterPutSettingsRequestParameters
: RequestParameters
{
public override HttpMethod DefaultHttpMethod => HttpMethod.PUT;
public override bool SupportsBody => true;
- ///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 TimeSpan ClusterManagerTimeout
{
get => Q("cluster_manager_timeout");
set => Q("cluster_manager_timeout", value);
}
- ///Return settings in flat format.
+ /// Return settings in flat format.
public bool? FlatSettings
{
get => Q("flat_settings");
set => Q("flat_settings", value);
}
- ///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."
)]
@@ -475,7 +515,7 @@ public TimeSpan MasterTimeout
set => Q("master_timeout", value);
}
- ///Operation timeout.
+ /// Operation timeout.
public TimeSpan Timeout
{
get => Q("timeout");
@@ -483,7 +523,15 @@ public TimeSpan Timeout
}
}
- ///Request options for RemoteInfo https://opensearch.org/docs/latest/api-reference/remote-info/
+ /// Request options for PutWeightedRouting https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-weighted-round-robin-search
+ public partial class PutWeightedRoutingRequestParameters
+ : RequestParameters
+ {
+ public override HttpMethod DefaultHttpMethod => HttpMethod.PUT;
+ public override bool SupportsBody => false;
+ }
+
+ /// Request options for RemoteInfo https://opensearch.org/docs/latest/api-reference/remote-info/
public partial class RemoteInfoRequestParameters
: RequestParameters
{
@@ -491,36 +539,36 @@ public partial class RemoteInfoRequestParameters
public override bool SupportsBody => false;
}
- ///Request options for Reroute https://opensearch.org/docs/latest
+ /// Request options for Reroute https://opensearch.org/docs/latest
public partial class ClusterRerouteRequestParameters
: RequestParameters
{
public override HttpMethod DefaultHttpMethod => HttpMethod.POST;
public override bool SupportsBody => true;
- ///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 TimeSpan ClusterManagerTimeout
{
get => Q("cluster_manager_timeout");
set => Q("cluster_manager_timeout", value);
}
- ///Simulate the operation only and return the resulting state.
+ /// 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.
+ /// Return an explanation of why the commands can or cannot be executed.
public bool? Explain
{
get => Q("explain");
set => Q("explain", value);
}
- ///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."
)]
@@ -530,21 +578,21 @@ public TimeSpan MasterTimeout
set => Q("master_timeout", value);
}
- ///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 string[] Metric
{
get => Q("metric");
set => Q("metric", value);
}
- ///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 bool? RetryFailed
{
get => Q("retry_failed");
set => Q("retry_failed", value);
}
- ///Operation timeout.
+ /// Operation timeout.
public TimeSpan Timeout
{
get => Q("timeout");
@@ -552,60 +600,60 @@ public TimeSpan Timeout
}
}
- ///Request options for State https://opensearch.org/docs/latest
+ /// Request options for State https://opensearch.org/docs/latest
public partial 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);
}
- ///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 TimeSpan ClusterManagerTimeout
{
get => Q("cluster_manager_timeout");
set => Q("cluster_manager_timeout", value);
}
- ///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 ExpandWildcards? ExpandWildcards
{
get => Q("expand_wildcards");
set => Q("expand_wildcards", value);
}
- ///Return settings in flat format.
+ /// Return settings in flat format.
public bool? FlatSettings
{
get => Q("flat_settings");
set => Q("flat_settings", value);
}
- ///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 bool? IgnoreUnavailable
{
get => Q("ignore_unavailable");
set => Q("ignore_unavailable", value);
}
- ///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 bool? Local
{
get => Q("local");
set => Q("local", value);
}
- ///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."
)]
@@ -615,14 +663,14 @@ public TimeSpan MasterTimeout
set => Q("master_timeout", value);
}
- ///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 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.
+ /// The maximum time to wait for wait_for_metadata_version before timing out.
public TimeSpan WaitForTimeout
{
get => Q("wait_for_timeout");
@@ -630,21 +678,21 @@ public TimeSpan WaitForTimeout
}
}
- ///Request options for Stats https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
+ /// Request options for Stats https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
public partial class ClusterStatsRequestParameters
: RequestParameters
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
- ///Return settings in flat format.
+ /// Return settings in flat format.
public bool? FlatSettings
{
get => Q("flat_settings");
set => Q("flat_settings", value);
}
- ///Operation timeout.
+ /// Operation timeout.
public TimeSpan Timeout
{
get => Q("timeout");
diff --git a/src/OpenSearch.Net/_Generated/OpenSearchLowLevelClient.Cluster.cs b/src/OpenSearch.Net/_Generated/OpenSearchLowLevelClient.Cluster.cs
index 912923422a..58d5950e0f 100644
--- a/src/OpenSearch.Net/_Generated/OpenSearchLowLevelClient.Cluster.cs
+++ b/src/OpenSearch.Net/_Generated/OpenSearchLowLevelClient.Cluster.cs
@@ -135,6 +135,35 @@ public Task DeleteComponentTemplateAsync(
RequestParams(requestParameters)
);
+ /// DELETE on /_cluster/decommission/awareness/ https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-decommissioning-and-recommissioning-a-zone
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ public TResponse DeleteDecommissionAwareness(
+ DeleteDecommissionAwarenessRequestParameters requestParameters = null
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequest(
+ DELETE,
+ "_cluster/decommission/awareness/",
+ null,
+ RequestParams(requestParameters)
+ );
+
+ /// DELETE on /_cluster/decommission/awareness/ https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-decommissioning-and-recommissioning-a-zone
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ [MapsApi("cluster.delete_decommission_awareness", "")]
+ public Task DeleteDecommissionAwarenessAsync(
+ DeleteDecommissionAwarenessRequestParameters requestParameters = null,
+ CancellationToken ctx = default
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequestAsync(
+ DELETE,
+ "_cluster/decommission/awareness/",
+ ctx,
+ null,
+ RequestParams(requestParameters)
+ );
+
/// DELETE on /_cluster/voting_config_exclusions https://opensearch.org/docs/latest
/// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse DeleteVotingConfigExclusions(
@@ -164,6 +193,35 @@ public Task DeleteVotingConfigExclusionsAsync(
RequestParams(requestParameters)
);
+ /// DELETE on /_cluster/routing/awareness/weights https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-deleting-weights
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ public TResponse DeleteWeightedRouting(
+ DeleteWeightedRoutingRequestParameters requestParameters = null
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequest(
+ DELETE,
+ "_cluster/routing/awareness/weights",
+ null,
+ RequestParams(requestParameters)
+ );
+
+ /// DELETE on /_cluster/routing/awareness/weights https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-deleting-weights
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ [MapsApi("cluster.delete_weighted_routing", "")]
+ public Task DeleteWeightedRoutingAsync(
+ DeleteWeightedRoutingRequestParameters requestParameters = null,
+ CancellationToken ctx = default
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequestAsync(
+ DELETE,
+ "_cluster/routing/awareness/weights",
+ ctx,
+ null,
+ RequestParams(requestParameters)
+ );
+
/// HEAD on /_component_template/{name} https://opensearch.org/docs/latest
/// The name of the template.
/// Request specific configuration such as querystring parameters & request specific connection settings.
@@ -259,6 +317,43 @@ public Task GetComponentTemplateAsync(
RequestParams(requestParameters)
);
+ /// GET on /_cluster/decommission/awareness/{awareness_attribute_name}/_status https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-getting-zone-decommission-status
+ /// Awareness attribute name.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ public TResponse GetDecommissionAwareness(
+ string awarenessAttributeName,
+ GetDecommissionAwarenessRequestParameters requestParameters = null
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequest(
+ GET,
+ Url(
+ $"_cluster/decommission/awareness/{awarenessAttributeName:awarenessAttributeName}/_status"
+ ),
+ null,
+ RequestParams(requestParameters)
+ );
+
+ /// GET on /_cluster/decommission/awareness/{awareness_attribute_name}/_status https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-getting-zone-decommission-status
+ /// Awareness attribute name.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ [MapsApi("cluster.get_decommission_awareness", "awareness_attribute_name")]
+ public Task GetDecommissionAwarenessAsync(
+ string awarenessAttributeName,
+ GetDecommissionAwarenessRequestParameters requestParameters = null,
+ CancellationToken ctx = default
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequestAsync(
+ GET,
+ Url(
+ $"_cluster/decommission/awareness/{awarenessAttributeName:awarenessAttributeName}/_status"
+ ),
+ ctx,
+ null,
+ RequestParams(requestParameters)
+ );
+
/// GET on /_cluster/settings https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/
/// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse GetSettings(
@@ -283,6 +378,39 @@ public Task GetSettingsAsync(
RequestParams(requestParameters)
);
+ /// GET on /_cluster/routing/awareness/{attribute}/weights https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-getting-weights-for-all-zones
+ /// Awareness attribute name.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ public TResponse GetWeightedRouting(
+ string attribute,
+ GetWeightedRoutingRequestParameters requestParameters = null
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequest(
+ GET,
+ Url($"_cluster/routing/awareness/{attribute:attribute}/weights"),
+ null,
+ RequestParams(requestParameters)
+ );
+
+ /// GET on /_cluster/routing/awareness/{attribute}/weights https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-getting-weights-for-all-zones
+ /// Awareness attribute name.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ [MapsApi("cluster.get_weighted_routing", "attribute")]
+ public Task GetWeightedRoutingAsync(
+ string attribute,
+ GetWeightedRoutingRequestParameters requestParameters = null,
+ CancellationToken ctx = default
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequestAsync(
+ GET,
+ Url($"_cluster/routing/awareness/{attribute:attribute}/weights"),
+ ctx,
+ null,
+ RequestParams(requestParameters)
+ );
+
/// GET on /_cluster/health https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-health/
/// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse Health(ClusterHealthRequestParameters requestParameters = null)
@@ -367,8 +495,8 @@ public Task PendingTasksAsync(
RequestParams(requestParameters)
);
- ///POST on /_cluster/voting_config_exclusions https://opensearch.org/docs/latest
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// POST on /_cluster/voting_config_exclusions https://opensearch.org/docs/latest
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse PostVotingConfigExclusions(
PostVotingConfigExclusionsRequestParameters requestParameters = null
)
@@ -380,8 +508,8 @@ public TResponse PostVotingConfigExclusions(
RequestParams(requestParameters)
);
- ///POST on /_cluster/voting_config_exclusions https://opensearch.org/docs/latest
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// POST on /_cluster/voting_config_exclusions https://opensearch.org/docs/latest
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
[MapsApi("cluster.post_voting_config_exclusions", "")]
public Task PostVotingConfigExclusionsAsync(
PostVotingConfigExclusionsRequestParameters requestParameters = null,
@@ -396,10 +524,10 @@ public Task PostVotingConfigExclusionsAsync(
RequestParams(requestParameters)
);
- ///PUT on /_component_template/{name}
- /// The name of the template.
- /// The template definition
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// PUT on /_component_template/{name}
+ /// The name of the template.
+ /// The template definition
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse PutComponentTemplate(
string name,
PostData body,
@@ -413,10 +541,10 @@ public TResponse PutComponentTemplate(
RequestParams(requestParameters)
);
- ///PUT on /_component_template/{name}
- /// The name of the template.
- /// The template definition
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// PUT on /_component_template/{name}
+ /// The name of the template.
+ /// The template definition
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
[MapsApi("cluster.put_component_template", "name, body")]
public Task PutComponentTemplateAsync(
string name,
@@ -433,9 +561,53 @@ public Task PutComponentTemplateAsync(
RequestParams(requestParameters)
);
- ///PUT on /_cluster/settings https://opensearch.org/docs/latest/api-reference/cluster-settings/
- /// The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart).
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// PUT on /_cluster/decommission/awareness/{awareness_attribute_name}/{awareness_attribute_value} https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-decommissioning-and-recommissioning-a-zone
+ /// Awareness attribute name.
+ /// Awareness attribute value.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ public TResponse PutDecommissionAwareness(
+ string awarenessAttributeName,
+ string awarenessAttributeValue,
+ PutDecommissionAwarenessRequestParameters requestParameters = null
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequest(
+ PUT,
+ Url(
+ $"_cluster/decommission/awareness/{awarenessAttributeName:awarenessAttributeName}/{awarenessAttributeValue:awarenessAttributeValue}"
+ ),
+ null,
+ RequestParams(requestParameters)
+ );
+
+ /// PUT on /_cluster/decommission/awareness/{awareness_attribute_name}/{awareness_attribute_value} https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-decommission/#example-decommissioning-and-recommissioning-a-zone
+ /// Awareness attribute name.
+ /// Awareness attribute value.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ [MapsApi(
+ "cluster.put_decommission_awareness",
+ "awareness_attribute_name, awareness_attribute_value"
+ )]
+ public Task PutDecommissionAwarenessAsync(
+ string awarenessAttributeName,
+ string awarenessAttributeValue,
+ PutDecommissionAwarenessRequestParameters requestParameters = null,
+ CancellationToken ctx = default
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequestAsync(
+ PUT,
+ Url(
+ $"_cluster/decommission/awareness/{awarenessAttributeName:awarenessAttributeName}/{awarenessAttributeValue:awarenessAttributeValue}"
+ ),
+ ctx,
+ null,
+ RequestParams(requestParameters)
+ );
+
+ /// PUT on /_cluster/settings https://opensearch.org/docs/latest/api-reference/cluster-settings/
+ /// The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart).
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse PutSettings(
PostData body,
ClusterPutSettingsRequestParameters requestParameters = null
@@ -443,9 +615,9 @@ public TResponse PutSettings(
where TResponse : class, IOpenSearchResponse, new() =>
DoRequest(PUT, "_cluster/settings", body, RequestParams(requestParameters));
- ///PUT on /_cluster/settings https://opensearch.org/docs/latest/api-reference/cluster-settings/
- /// The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart).
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// PUT on /_cluster/settings https://opensearch.org/docs/latest/api-reference/cluster-settings/
+ /// The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart).
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
[MapsApi("cluster.put_settings", "body")]
public Task PutSettingsAsync(
PostData body,
@@ -461,14 +633,47 @@ public Task PutSettingsAsync(
RequestParams(requestParameters)
);
- ///GET on /_remote/info https://opensearch.org/docs/latest/api-reference/remote-info/
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// PUT on /_cluster/routing/awareness/{attribute}/weights https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-weighted-round-robin-search
+ /// Awareness attribute name.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ public TResponse PutWeightedRouting(
+ string attribute,
+ PutWeightedRoutingRequestParameters requestParameters = null
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequest(
+ PUT,
+ Url($"_cluster/routing/awareness/{attribute:attribute}/weights"),
+ null,
+ RequestParams(requestParameters)
+ );
+
+ /// PUT on /_cluster/routing/awareness/{attribute}/weights https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-awareness/#example-weighted-round-robin-search
+ /// Awareness attribute name.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
+ [MapsApi("cluster.put_weighted_routing", "attribute")]
+ public Task PutWeightedRoutingAsync(
+ string attribute,
+ PutWeightedRoutingRequestParameters requestParameters = null,
+ CancellationToken ctx = default
+ )
+ where TResponse : class, IOpenSearchResponse, new() =>
+ DoRequestAsync(
+ PUT,
+ Url($"_cluster/routing/awareness/{attribute:attribute}/weights"),
+ ctx,
+ null,
+ RequestParams(requestParameters)
+ );
+
+ /// GET on /_remote/info https://opensearch.org/docs/latest/api-reference/remote-info/
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse RemoteInfo(RemoteInfoRequestParameters requestParameters = null)
where TResponse : class, IOpenSearchResponse, new() =>
DoRequest(GET, "_remote/info", null, RequestParams(requestParameters));
- ///GET on /_remote/info https://opensearch.org/docs/latest/api-reference/remote-info/
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// GET on /_remote/info https://opensearch.org/docs/latest/api-reference/remote-info/
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
[MapsApi("cluster.remote_info", "")]
public Task RemoteInfoAsync(
RemoteInfoRequestParameters requestParameters = null,
@@ -483,9 +688,9 @@ public Task RemoteInfoAsync(
RequestParams(requestParameters)
);
- ///POST on /_cluster/reroute https://opensearch.org/docs/latest
- /// The definition of `commands` to perform (`move`, `cancel`, `allocate`)
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// POST on /_cluster/reroute https://opensearch.org/docs/latest
+ /// The definition of `commands` to perform (`move`, `cancel`, `allocate`)
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse Reroute(
PostData body,
ClusterRerouteRequestParameters requestParameters = null
@@ -493,9 +698,9 @@ public TResponse Reroute(
where TResponse : class, IOpenSearchResponse, new() =>
DoRequest(POST, "_cluster/reroute", body, RequestParams(requestParameters));
- ///POST on /_cluster/reroute https://opensearch.org/docs/latest
- /// The definition of `commands` to perform (`move`, `cancel`, `allocate`)
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// POST on /_cluster/reroute https://opensearch.org/docs/latest
+ /// The definition of `commands` to perform (`move`, `cancel`, `allocate`)
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
[MapsApi("cluster.reroute", "body")]
public Task RerouteAsync(
PostData body,
@@ -511,14 +716,14 @@ public Task RerouteAsync(
RequestParams(requestParameters)
);
- ///GET on /_cluster/state https://opensearch.org/docs/latest
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// GET on /_cluster/state https://opensearch.org/docs/latest
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse State(ClusterStateRequestParameters requestParameters = null)
where TResponse : class, IOpenSearchResponse, new() =>
DoRequest(GET, "_cluster/state", null, RequestParams(requestParameters));
- ///GET on /_cluster/state https://opensearch.org/docs/latest
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// GET on /_cluster/state https://opensearch.org/docs/latest
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
[MapsApi("cluster.state", "")]
public Task StateAsync(
ClusterStateRequestParameters requestParameters = null,
@@ -533,9 +738,9 @@ public Task StateAsync(
RequestParams(requestParameters)
);
- ///GET on /_cluster/state/{metric} https://opensearch.org/docs/latest
- /// Limit the information returned to the specified metrics.
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// GET on /_cluster/state/{metric} https://opensearch.org/docs/latest
+ /// Limit the information returned to the specified metrics.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse State(
string metric,
ClusterStateRequestParameters requestParameters = null
@@ -548,9 +753,9 @@ public TResponse State(
RequestParams(requestParameters)
);
- ///GET on /_cluster/state/{metric} https://opensearch.org/docs/latest
- /// Limit the information returned to the specified metrics.
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// GET on /_cluster/state/{metric} https://opensearch.org/docs/latest
+ /// Limit the information returned to the specified metrics.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
[MapsApi("cluster.state", "metric")]
public Task StateAsync(
string metric,
@@ -566,10 +771,10 @@ public Task StateAsync(
RequestParams(requestParameters)
);
- ///GET on /_cluster/state/{metric}/{index} https://opensearch.org/docs/latest
- /// Limit the information returned to the specified metrics.
- /// Comma-separated list of indices; use the special string `_all` or Indices.All to perform the operation on all indices.
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// GET on /_cluster/state/{metric}/{index} https://opensearch.org/docs/latest
+ /// Limit the information returned to the specified metrics.
+ /// Comma-separated list of indices; use the special string `_all` or Indices.All to perform the operation on all indices.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse State(
string metric,
string index,
@@ -583,10 +788,10 @@ public TResponse State(
RequestParams(requestParameters)
);
- ///GET on /_cluster/state/{metric}/{index} https://opensearch.org/docs/latest
- /// Limit the information returned to the specified metrics.
- /// Comma-separated list of indices; use the special string `_all` or Indices.All to perform the operation on all indices.
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// GET on /_cluster/state/{metric}/{index} https://opensearch.org/docs/latest
+ /// Limit the information returned to the specified metrics.
+ /// Comma-separated list of indices; use the special string `_all` or Indices.All to perform the operation on all indices.
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
[MapsApi("cluster.state", "metric, index")]
public Task StateAsync(
string metric,
@@ -603,14 +808,14 @@ public Task StateAsync(
RequestParams(requestParameters)
);
- ///GET on /_cluster/stats https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// GET on /_cluster/stats https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse Stats(ClusterStatsRequestParameters requestParameters = null)
where TResponse : class, IOpenSearchResponse, new() =>
DoRequest(GET, "_cluster/stats", null, RequestParams(requestParameters));
- ///GET on /_cluster/stats https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
- /// Request specific configuration such as querystring parameters & request specific connection settings.
+ /// GET on /_cluster/stats https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
+ /// Request specific configuration such as querystring parameters & request specific connection settings.
[MapsApi("cluster.stats", "")]
public Task StatsAsync(
ClusterStatsRequestParameters requestParameters = null,
@@ -625,9 +830,9 @@ public Task StatsAsync(
RequestParams(requestParameters)
);
- ///GET on /_cluster/stats/nodes/{node_id} https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
- /// 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.
+ /// GET on /_cluster/stats/nodes/{node_id} https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
+ /// 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,
ClusterStatsRequestParameters requestParameters = null
@@ -640,9 +845,9 @@ public TResponse Stats(
RequestParams(requestParameters)
);
- ///GET on /_cluster/stats/nodes/{node_id} https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
- /// 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.
+ /// GET on /_cluster/stats/nodes/{node_id} https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-stats/
+ /// 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("cluster.stats", "node_id")]
public Task StatsAsync(
string nodeId,