Skip to content

Commit

Permalink
Re-generate client code using latest OpenSearch API specification (20…
Browse files Browse the repository at this point in the history
…24-11-11)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Xtansia authored and github-actions[bot] committed Nov 11, 2024
1 parent 30012ce commit a3d0eb8
Show file tree
Hide file tree
Showing 24 changed files with 17,246 additions and 16,045 deletions.
31,316 changes: 16,006 additions & 15,310 deletions src/ApiGenerator/opensearch-openapi.yaml

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions src/OpenSearch.Client/_Generated/Descriptors.Cat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public CatAliasesDescriptor Name(Names name) =>

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

/// <summary>A short version of the Accept header, e.g. json, yaml.</summary>
Expand Down Expand Up @@ -123,7 +123,7 @@ public partial class CatAllPitSegmentsDescriptor
// values part of the url path
// Request parameters
/// <summary>The unit in which to display byte values.</summary>
public CatAllPitSegmentsDescriptor Bytes(ByteUnit? bytes) => Qs("bytes", bytes);
public CatAllPitSegmentsDescriptor Bytes(_ByteUnit? bytes) => Qs("bytes", bytes);

/// <summary>A short version of the Accept header, e.g. json, yaml.</summary>
public CatAllPitSegmentsDescriptor Format(string format) => Qs("format", format);
Expand Down Expand Up @@ -171,7 +171,7 @@ public CatAllocationDescriptor NodeId(NodeIds nodeId) =>

// Request parameters
/// <summary>The unit used to display byte values.</summary>
public CatAllocationDescriptor Bytes(ByteUnit? bytes) => Qs("bytes", bytes);
public CatAllocationDescriptor Bytes(_ByteUnit? bytes) => Qs("bytes", bytes);

/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
Expand Down Expand Up @@ -332,7 +332,7 @@ public CatFielddataDescriptor Fields<T>(params Expression<Func<T, object>>[] fie

// Request parameters
/// <summary>The unit used to display byte values.</summary>
public CatFielddataDescriptor Bytes(ByteUnit? bytes) => Qs("bytes", bytes);
public CatFielddataDescriptor Bytes(_ByteUnit? bytes) => Qs("bytes", bytes);

/// <summary>A short version of the Accept header, e.g. json, yaml.</summary>
public CatFielddataDescriptor Format(string format) => Qs("format", format);
Expand Down Expand Up @@ -428,15 +428,15 @@ public CatIndicesDescriptor Index<TOther>()

// Request parameters
/// <summary>The unit used to display byte values.</summary>
public CatIndicesDescriptor Bytes(ByteUnit? bytes) => Qs("bytes", bytes);
public CatIndicesDescriptor Bytes(_ByteUnit? bytes) => Qs("bytes", bytes);

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

/// <summary>The type of index that wildcard patterns can match.</summary>
public CatIndicesDescriptor ExpandWildcards(ExpandWildcards? expandwildcards) =>
public CatIndicesDescriptor ExpandWildcards(_ExpandWildcard? expandwildcards) =>
Qs("expand_wildcards", expandwildcards);

/// <summary>A short version of the Accept header, e.g. json, yaml.</summary>
Expand All @@ -446,7 +446,7 @@ public CatIndicesDescriptor ExpandWildcards(ExpandWildcards? expandwildcards) =>
public CatIndicesDescriptor Headers(params string[] headers) => Qs("h", headers);

/// <summary>The health status used to limit returned indices. By default, the response includes indices of any health status.</summary>
public CatIndicesDescriptor Health(HealthStatus? health) => Qs("health", health);
public CatIndicesDescriptor Health(_HealthStatus? health) => Qs("health", health);

/// <summary>Return help information.</summary>
public CatIndicesDescriptor Help(bool? help = true) => Qs("help", help);
Expand Down Expand Up @@ -572,7 +572,7 @@ public partial class CatNodesDescriptor
// values part of the url path
// Request parameters
/// <summary>The unit used to display byte values.</summary>
public CatNodesDescriptor Bytes(ByteUnit? bytes) => Qs("bytes", bytes);
public CatNodesDescriptor Bytes(_ByteUnit? bytes) => Qs("bytes", bytes);

/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
Expand Down Expand Up @@ -671,7 +671,7 @@ public partial class CatPitSegmentsDescriptor
// values part of the url path
// Request parameters
/// <summary>The unit in which to display byte values.</summary>
public CatPitSegmentsDescriptor Bytes(ByteUnit? bytes) => Qs("bytes", bytes);
public CatPitSegmentsDescriptor Bytes(_ByteUnit? bytes) => Qs("bytes", bytes);

/// <summary>A short version of the Accept header, e.g. json, yaml.</summary>
public CatPitSegmentsDescriptor Format(string format) => Qs("format", format);
Expand Down Expand Up @@ -776,7 +776,7 @@ public CatRecoveryDescriptor ActiveOnly(bool? activeonly = true) =>
Qs("active_only", activeonly);

/// <summary>The unit used to display byte values.</summary>
public CatRecoveryDescriptor Bytes(ByteUnit? bytes) => Qs("bytes", bytes);
public CatRecoveryDescriptor Bytes(_ByteUnit? bytes) => Qs("bytes", bytes);

/// <summary>If `true`, the response includes detailed information about shard recoveries.</summary>
public CatRecoveryDescriptor Detailed(bool? detailed = true) => Qs("detailed", detailed);
Expand Down Expand Up @@ -888,7 +888,7 @@ public CatSegmentReplicationDescriptor AllowNoIndices(bool? allownoindices = tru
Qs("allow_no_indices", allownoindices);

/// <summary>The unit in which to display byte values.</summary>
public CatSegmentReplicationDescriptor Bytes(ByteUnit? bytes) => Qs("bytes", bytes);
public CatSegmentReplicationDescriptor Bytes(_ByteUnit? bytes) => Qs("bytes", bytes);

/// <summary>If `true`, the response only includes latest completed segment replication events.</summary>
public CatSegmentReplicationDescriptor CompletedOnly(bool? completedonly = true) =>
Expand All @@ -899,7 +899,7 @@ public CatSegmentReplicationDescriptor Detailed(bool? detailed = true) =>
Qs("detailed", detailed);

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

/// <summary>A short version of the Accept header, e.g. json, yaml.</summary>
Expand Down Expand Up @@ -971,7 +971,7 @@ public CatSegmentsDescriptor Index<TOther>()

// Request parameters
/// <summary>The unit used to display byte values.</summary>
public CatSegmentsDescriptor Bytes(ByteUnit? bytes) => Qs("bytes", bytes);
public CatSegmentsDescriptor Bytes(_ByteUnit? bytes) => Qs("bytes", bytes);

/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
Expand Down Expand Up @@ -1035,7 +1035,7 @@ public CatShardsDescriptor Index<TOther>()

// Request parameters
/// <summary>The unit used to display byte values.</summary>
public CatShardsDescriptor Bytes(ByteUnit? bytes) => Qs("bytes", bytes);
public CatShardsDescriptor Bytes(_ByteUnit? bytes) => Qs("bytes", bytes);

/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
Expand Down
8 changes: 4 additions & 4 deletions src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public ClusterHealthDescriptor ClusterManagerTimeout(Time clustermanagertimeout)
Qs("cluster_manager_timeout", clustermanagertimeout);

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

/// <summary>Can be one of cluster, indices or shards. Controls the details level of the health information returned.</summary>
Expand All @@ -333,7 +333,7 @@ public ClusterHealthDescriptor WaitForActiveShards(string waitforactiveshards) =
Qs("wait_for_active_shards", waitforactiveshards);

/// <summary>Can be one of immediate, urgent, high, normal, low, languid. Wait until all currently queued events with the given priority are processed.</summary>
public ClusterHealthDescriptor WaitForEvents(WaitForEvents? waitforevents) =>
public ClusterHealthDescriptor WaitForEvents(_WaitForEvents? waitforevents) =>
Qs("wait_for_events", waitforevents);

/// <summary>The request waits until the specified number N of nodes is available. It also accepts &gt;=N, &lt;=N, &gt;N and &lt;N. Alternatively, it is possible to use ge(N), le(N), gt(N) and lt(N) notation.</summary>
Expand All @@ -351,7 +351,7 @@ public ClusterHealthDescriptor WaitForNoRelocatingShards(
) => Qs("wait_for_no_relocating_shards", waitfornorelocatingshards);

/// <summary>One of green, yellow or red. Will wait (until the timeout provided) until the status of the cluster changes to the one provided or better, i.e. green &gt; yellow &gt; red. By default, will not wait for any status.</summary>
public ClusterHealthDescriptor WaitForStatus(HealthStatus? waitforstatus) =>
public ClusterHealthDescriptor WaitForStatus(_HealthStatus? waitforstatus) =>
Qs("wait_for_status", waitforstatus);
}

Expand Down Expand Up @@ -600,7 +600,7 @@ public ClusterStateDescriptor ClusterManagerTimeout(Time clustermanagertimeout)
Qs("cluster_manager_timeout", clustermanagertimeout);

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

/// <summary>Return settings in flat format.</summary>
Expand Down
Loading

0 comments on commit a3d0eb8

Please sign in to comment.