Skip to content

Commit

Permalink
Re-generate
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Oct 16, 2023
1 parent b0eac40 commit 5642a9f
Show file tree
Hide file tree
Showing 35 changed files with 1,152 additions and 1,152 deletions.
2 changes: 1 addition & 1 deletion src/OpenSearch.Client/_Generated/ApiUrlsLookup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ internal static partial class ApiUrlsLookups
new[]
{
"_nodes",
"_nodes/{node_id}",
"_nodes/{metric}",
"_nodes/{node_id}",
"_nodes/{node_id}/{metric}"
}
);
Expand Down
78 changes: 39 additions & 39 deletions src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
// ReSharper disable RedundantNameQualifier
namespace OpenSearch.Client.Specification.ClusterApi
{
///<summary>Descriptor for AllocationExplain <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-allocation/</para></summary>
/// <summary>Descriptor for AllocationExplain <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-allocation/</para></summary>
public partial class ClusterAllocationExplainDescriptor
: RequestDescriptorBase<
ClusterAllocationExplainDescriptor,
Expand All @@ -71,17 +71,17 @@ public partial class ClusterAllocationExplainDescriptor

// values part of the url path
// Request parameters
///<summary>Return information about disk usage and shard sizes.</summary>
/// <summary>Return information about disk usage and shard sizes.</summary>
public ClusterAllocationExplainDescriptor IncludeDiskInfo(bool? includediskinfo = true) =>
Qs("include_disk_info", includediskinfo);

///<summary>Return 'YES' decisions in explanation.</summary>
/// <summary>Return 'YES' decisions in explanation.</summary>
public ClusterAllocationExplainDescriptor IncludeYesDecisions(
bool? includeyesdecisions = true
) => Qs("include_yes_decisions", includeyesdecisions);
}

///<summary>Descriptor for DeleteVotingConfigExclusions <para>https://opensearch.org/docs/latest</para></summary>
/// <summary>Descriptor for DeleteVotingConfigExclusions <para>https://opensearch.org/docs/latest</para></summary>
public partial class DeleteVotingConfigExclusionsDescriptor
: RequestDescriptorBase<
DeleteVotingConfigExclusionsDescriptor,
Expand All @@ -94,12 +94,12 @@ public partial class DeleteVotingConfigExclusionsDescriptor

// values part of the url path
// Request parameters
///<summary>Specifies whether to wait for all excluded nodes to be removed from the cluster before clearing the voting configuration exclusions list.</summary>
/// <summary>Specifies whether to wait for all excluded nodes to be removed from the cluster before clearing the voting configuration exclusions list.</summary>
public DeleteVotingConfigExclusionsDescriptor WaitForRemoval(bool? waitforremoval = true) =>
Qs("wait_for_removal", waitforremoval);
}

///<summary>Descriptor for GetSettings <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/</para></summary>
/// <summary>Descriptor for GetSettings <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/</para></summary>
public partial class ClusterGetSettingsDescriptor
: RequestDescriptorBase<
ClusterGetSettingsDescriptor,
Expand All @@ -112,31 +112,31 @@ public partial class ClusterGetSettingsDescriptor

// values part of the url path
// Request parameters
///<summary>Operation timeout for connection to cluster-manager node.</summary>
///<remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
public ClusterGetSettingsDescriptor ClusterManagerTimeout(Time clustermanagertimeout) =>
Qs("cluster_manager_timeout", clustermanagertimeout);

///<summary>Return settings in flat format.</summary>
/// <summary>Return settings in flat format.</summary>
public ClusterGetSettingsDescriptor FlatSettings(bool? flatsettings = true) =>
Qs("flat_settings", flatsettings);

///<summary>Whether to return all default clusters setting.</summary>
/// <summary>Whether to return all default clusters setting.</summary>
public ClusterGetSettingsDescriptor IncludeDefaults(bool? includedefaults = true) =>
Qs("include_defaults", includedefaults);

///<summary>Operation timeout for connection to master node.</summary>
/// <summary>Operation timeout for connection to master node.</summary>
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
public ClusterGetSettingsDescriptor MasterTimeout(Time mastertimeout) =>
Qs("master_timeout", mastertimeout);

///<summary>Operation timeout.</summary>
/// <summary>Operation timeout.</summary>
public ClusterGetSettingsDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
}

///<summary>Descriptor for Health <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-health/</para></summary>
/// <summary>Descriptor for Health <para>https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-health/</para></summary>
public partial class ClusterHealthDescriptor
: RequestDescriptorBase<
ClusterHealthDescriptor,
Expand All @@ -147,94 +147,94 @@ public partial class ClusterHealthDescriptor
{
internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterHealth;

///<summary>/_cluster/health</summary>
/// <summary>/_cluster/health</summary>
public ClusterHealthDescriptor()
: base() { }

///<summary>/_cluster/health/{index}</summary>
///<param name="index">Optional, accepts null</param>
/// <summary>/_cluster/health/{index}</summary>
/// <param name="index">Optional, accepts null</param>
public ClusterHealthDescriptor(Indices index)
: base(r => r.Optional("index", index)) { }

// values part of the url path
Indices IClusterHealthRequest.Index => Self.RouteValues.Get<Indices>("index");

///<summary>Limit the information returned to specific indicies.</summary>
/// <summary>Limit the information returned to specific indicies.</summary>
public ClusterHealthDescriptor Index(Indices index) =>
Assign(index, (a, v) => a.RouteValues.Optional("index", v));

///<summary>a shortcut into calling Index(typeof(TOther))</summary>
/// <summary>a shortcut into calling Index(typeof(TOther))</summary>
public ClusterHealthDescriptor Index<TOther>()
where TOther : class =>
Assign(typeof(TOther), (a, v) => a.RouteValues.Optional("index", (Indices)v));

///<summary>A shortcut into calling Index(Indices.All)</summary>
/// <summary>A shortcut into calling Index(Indices.All)</summary>
public ClusterHealthDescriptor AllIndices() => Index(Indices.All);

// Request parameters
///<summary>The awareness attribute for which the health is required.</summary>
/// <summary>The awareness attribute for which the health is required.</summary>
public ClusterHealthDescriptor AwarenessAttribute(string awarenessattribute) =>
Qs("awareness_attribute", awarenessattribute);

///<summary>Specify the level of detail for returned information.</summary>
/// <summary>Specify the level of detail for returned information.</summary>
public ClusterHealthDescriptor ClusterHealthLevel(ClusterHealthLevel? clusterhealthlevel) =>
Qs("level", clusterhealthlevel);

///<summary>Operation timeout for connection to cluster-manager node.</summary>
///<remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
public ClusterHealthDescriptor ClusterManagerTimeout(Time clustermanagertimeout) =>
Qs("cluster_manager_timeout", clustermanagertimeout);

///<summary>Checks whether local node is commissioned or not. If set to true on a local call it will throw exception if node is decommissioned.</summary>
/// <summary>Checks whether local node is commissioned or not. If set to true on a local call it will throw exception if node is decommissioned.</summary>
public ClusterHealthDescriptor EnsureNodeCommissioned(
bool? ensurenodecommissioned = true
) => Qs("ensure_node_commissioned", ensurenodecommissioned);

///<summary>Whether to expand wildcard expression to concrete indices that are open, closed or both.</summary>
/// <summary>Whether to expand wildcard expression to concrete indices that are open, closed or both.</summary>
public ClusterHealthDescriptor ExpandWildcards(ExpandWildcards? expandwildcards) =>
Qs("expand_wildcards", expandwildcards);

///<summary>Return local information, do not retrieve the state from cluster-manager node.</summary>
/// <summary>Return local information, do not retrieve the state from cluster-manager node.</summary>
public ClusterHealthDescriptor Local(bool? local = true) => Qs("local", local);

///<summary>Operation timeout for connection to master node.</summary>
/// <summary>Operation timeout for connection to master node.</summary>
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
public ClusterHealthDescriptor MasterTimeout(Time mastertimeout) =>
Qs("master_timeout", mastertimeout);

///<summary>Operation timeout.</summary>
/// <summary>Operation timeout.</summary>
public ClusterHealthDescriptor Timeout(Time timeout) => Qs("timeout", timeout);

///<summary>Wait until the specified number of shards is active.</summary>
/// <summary>Wait until the specified number of shards is active.</summary>
public ClusterHealthDescriptor WaitForActiveShards(string waitforactiveshards) =>
Qs("wait_for_active_shards", waitforactiveshards);

///<summary>Wait until all currently queued events with the given priority are processed.</summary>
/// <summary>Wait until all currently queued events with the given priority are processed.</summary>
public ClusterHealthDescriptor WaitForEvents(WaitForEvents? waitforevents) =>
Qs("wait_for_events", waitforevents);

///<summary>Wait until the specified number of nodes is available.</summary>
/// <summary>Wait until the specified number of nodes is available.</summary>
public ClusterHealthDescriptor WaitForNodes(string waitfornodes) =>
Qs("wait_for_nodes", waitfornodes);

///<summary>Whether to wait until there are no initializing shards in the cluster.</summary>
/// <summary>Whether to wait until there are no initializing shards in the cluster.</summary>
public ClusterHealthDescriptor WaitForNoInitializingShards(
bool? waitfornoinitializingshards = true
) => Qs("wait_for_no_initializing_shards", waitfornoinitializingshards);

///<summary>Whether to wait until there are no relocating shards in the cluster.</summary>
/// <summary>Whether to wait until there are no relocating shards in the cluster.</summary>
public ClusterHealthDescriptor WaitForNoRelocatingShards(
bool? waitfornorelocatingshards = true
) => Qs("wait_for_no_relocating_shards", waitfornorelocatingshards);

///<summary>Wait until cluster is in a specific state.</summary>
/// <summary>Wait until cluster is in a specific state.</summary>
public ClusterHealthDescriptor WaitForStatus(WaitForStatus? waitforstatus) =>
Qs("wait_for_status", waitforstatus);
}

///<summary>Descriptor for PendingTasks <para>https://opensearch.org/docs/latest</para></summary>
/// <summary>Descriptor for PendingTasks <para>https://opensearch.org/docs/latest</para></summary>
public partial class ClusterPendingTasksDescriptor
: RequestDescriptorBase<
ClusterPendingTasksDescriptor,
Expand All @@ -247,15 +247,15 @@ public partial class ClusterPendingTasksDescriptor

// values part of the url path
// Request parameters
///<summary>Operation timeout for connection to cluster-manager node.</summary>
///<remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
public ClusterPendingTasksDescriptor ClusterManagerTimeout(Time clustermanagertimeout) =>
Qs("cluster_manager_timeout", clustermanagertimeout);

///<summary>Return local information, do not retrieve the state from cluster-manager node.</summary>
/// <summary>Return local information, do not retrieve the state from cluster-manager node.</summary>
public ClusterPendingTasksDescriptor Local(bool? local = true) => Qs("local", local);

///<summary>Operation timeout for connection to master node.</summary>
/// <summary>Operation timeout for connection to master node.</summary>
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
Expand Down
Loading

0 comments on commit 5642a9f

Please sign in to comment.