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-08-19)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Xtansia authored and github-actions[bot] committed Aug 19, 2024
1 parent c8790b7 commit a1577f7
Show file tree
Hide file tree
Showing 28 changed files with 3,838 additions and 1,449 deletions.
4,126 changes: 3,257 additions & 869 deletions src/ApiGenerator/opensearch-openapi.yaml

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions src/OpenSearch.Client/_Generated/Descriptors.Cat.cs

Large diffs are not rendered by default.

59 changes: 30 additions & 29 deletions src/OpenSearch.Client/_Generated/Descriptors.Cluster.cs

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions src/OpenSearch.Client/_Generated/Descriptors.DanglingIndices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,18 @@ public DeleteDanglingIndexDescriptor AcceptDataLoss(bool? acceptdataloss = true)

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

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

/// <summary>Explicit operation timeout.</summary>
public DeleteDanglingIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
public DeleteDanglingIndexDescriptor Timeout(string timeout) => Qs("timeout", timeout);
}

/// <summary>Descriptor for ImportDanglingIndex <para>https://opensearch.org/docs/latest/api-reference/index-apis/dangling-index/</para></summary>
Expand Down Expand Up @@ -135,18 +135,18 @@ public ImportDanglingIndexDescriptor AcceptDataLoss(bool? acceptdataloss = true)

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

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

/// <summary>Explicit operation timeout.</summary>
public ImportDanglingIndexDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
public ImportDanglingIndexDescriptor Timeout(string timeout) => Qs("timeout", timeout);
}

/// <summary>Descriptor for List <para>https://opensearch.org/docs/latest/api-reference/index-apis/dangling-index/</para></summary>
Expand Down
18 changes: 9 additions & 9 deletions src/OpenSearch.Client/_Generated/Descriptors.Indices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,18 @@ protected DeleteComposableIndexTemplateDescriptor()
/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
public DeleteComposableIndexTemplateDescriptor ClusterManagerTimeout(
Time clustermanagertimeout
string clustermanagertimeout
) => Qs("cluster_manager_timeout", clustermanagertimeout);

/// <summary>Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.</summary>
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
public DeleteComposableIndexTemplateDescriptor MasterTimeout(Time mastertimeout) =>
public DeleteComposableIndexTemplateDescriptor MasterTimeout(string mastertimeout) =>
Qs("master_timeout", mastertimeout);

/// <summary>Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.</summary>
public DeleteComposableIndexTemplateDescriptor Timeout(Time timeout) =>
public DeleteComposableIndexTemplateDescriptor Timeout(string timeout) =>
Qs("timeout", timeout);
}

Expand Down Expand Up @@ -128,7 +128,7 @@ protected ComposableIndexTemplateExistsDescriptor()
/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
public ComposableIndexTemplateExistsDescriptor ClusterManagerTimeout(
Time clustermanagertimeout
string clustermanagertimeout
) => Qs("cluster_manager_timeout", clustermanagertimeout);

/// <summary>Return settings in flat format.</summary>
Expand All @@ -143,7 +143,7 @@ public ComposableIndexTemplateExistsDescriptor Local(bool? local = true) =>
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
public ComposableIndexTemplateExistsDescriptor MasterTimeout(Time mastertimeout) =>
public ComposableIndexTemplateExistsDescriptor MasterTimeout(string mastertimeout) =>
Qs("master_timeout", mastertimeout);
}

Expand Down Expand Up @@ -178,7 +178,7 @@ public GetComposableIndexTemplateDescriptor Name(Name name) =>
/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
public GetComposableIndexTemplateDescriptor ClusterManagerTimeout(
Time clustermanagertimeout
string clustermanagertimeout
) => Qs("cluster_manager_timeout", clustermanagertimeout);

/// <summary>If true, returns settings in flat format.</summary>
Expand All @@ -192,7 +192,7 @@ public GetComposableIndexTemplateDescriptor FlatSettings(bool? flatsettings = tr
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
public GetComposableIndexTemplateDescriptor MasterTimeout(Time mastertimeout) =>
public GetComposableIndexTemplateDescriptor MasterTimeout(string mastertimeout) =>
Qs("master_timeout", mastertimeout);
}

Expand Down Expand Up @@ -227,7 +227,7 @@ protected PutComposableIndexTemplateDescriptor()
/// <summary>Operation timeout for connection to cluster-manager node.</summary>
/// <remarks>Supported by OpenSearch servers of version 2.0.0 or greater.</remarks>
public PutComposableIndexTemplateDescriptor ClusterManagerTimeout(
Time clustermanagertimeout
string clustermanagertimeout
) => Qs("cluster_manager_timeout", clustermanagertimeout);

/// <summary>If `true`, this request cannot replace or update existing index templates.</summary>
Expand All @@ -238,7 +238,7 @@ public PutComposableIndexTemplateDescriptor Create(bool? create = true) =>
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
public PutComposableIndexTemplateDescriptor MasterTimeout(Time mastertimeout) =>
public PutComposableIndexTemplateDescriptor MasterTimeout(string mastertimeout) =>
Qs("master_timeout", mastertimeout);
}

Expand Down
16 changes: 8 additions & 8 deletions src/OpenSearch.Client/_Generated/Descriptors.Ingest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@ protected DeletePipelineDescriptor()
// 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>
public DeletePipelineDescriptor ClusterManagerTimeout(Time clustermanagertimeout) =>
public DeletePipelineDescriptor ClusterManagerTimeout(string clustermanagertimeout) =>
Qs("cluster_manager_timeout", clustermanagertimeout);

/// <summary>Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.</summary>
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
public DeletePipelineDescriptor MasterTimeout(Time mastertimeout) =>
public DeletePipelineDescriptor MasterTimeout(string mastertimeout) =>
Qs("master_timeout", mastertimeout);

/// <summary>Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.</summary>
public DeletePipelineDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
public DeletePipelineDescriptor Timeout(string timeout) => Qs("timeout", timeout);
}

/// <summary>Descriptor for GetPipeline <para>https://opensearch.org/docs/latest/api-reference/ingest-apis/get-ingest/</para></summary>
Expand Down Expand Up @@ -128,14 +128,14 @@ public GetPipelineDescriptor Id(Id id) =>
// 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>
public GetPipelineDescriptor ClusterManagerTimeout(Time clustermanagertimeout) =>
public GetPipelineDescriptor ClusterManagerTimeout(string clustermanagertimeout) =>
Qs("cluster_manager_timeout", clustermanagertimeout);

/// <summary>Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.</summary>
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
public GetPipelineDescriptor MasterTimeout(Time mastertimeout) =>
public GetPipelineDescriptor MasterTimeout(string mastertimeout) =>
Qs("master_timeout", mastertimeout);
}

Expand Down Expand Up @@ -180,18 +180,18 @@ protected PutPipelineDescriptor()
// 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>
public PutPipelineDescriptor ClusterManagerTimeout(Time clustermanagertimeout) =>
public PutPipelineDescriptor ClusterManagerTimeout(string clustermanagertimeout) =>
Qs("cluster_manager_timeout", clustermanagertimeout);

/// <summary>Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.</summary>
[Obsolete(
"Deprecated as of: 2.0.0, reason: To promote inclusive language, use 'cluster_manager_timeout' instead."
)]
public PutPipelineDescriptor MasterTimeout(Time mastertimeout) =>
public PutPipelineDescriptor MasterTimeout(string mastertimeout) =>
Qs("master_timeout", mastertimeout);

/// <summary>Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.</summary>
public PutPipelineDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
public PutPipelineDescriptor Timeout(string timeout) => Qs("timeout", timeout);
}

/// <summary>Descriptor for SimulatePipeline <para>https://opensearch.org/docs/latest/api-reference/ingest-apis/simulate-ingest/</para></summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public CreatePitDescriptor ExpandWildcards(ExpandWildcards? expandwildcards) =>
Qs("expand_wildcards", expandwildcards);

/// <summary>Specify the keep alive for point in time.</summary>
public CreatePitDescriptor KeepAlive(Time keepalive) => Qs("keep_alive", keepalive);
public CreatePitDescriptor KeepAlive(string keepalive) => Qs("keep_alive", keepalive);

/// <summary>Specify the node or shard the operation should be performed on.</summary>
public CreatePitDescriptor Preference(string preference) => Qs("preference", preference);
Expand Down
12 changes: 6 additions & 6 deletions src/OpenSearch.Client/_Generated/Descriptors.Nodes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public NodesHotThreadsDescriptor IgnoreIdleThreads(bool? ignoreidlethreads = tru
Qs("ignore_idle_threads", ignoreidlethreads);

/// <summary>The interval for the second sampling of threads.</summary>
public NodesHotThreadsDescriptor Interval(Time interval) => Qs("interval", interval);
public NodesHotThreadsDescriptor Interval(string interval) => Qs("interval", interval);

/// <summary>Number of samples of thread stacktrace.</summary>
public NodesHotThreadsDescriptor Snapshots(long? snapshots) => Qs("snapshots", snapshots);
Expand All @@ -99,7 +99,7 @@ public NodesHotThreadsDescriptor IgnoreIdleThreads(bool? ignoreidlethreads = tru
public NodesHotThreadsDescriptor Threads(long? threads) => Qs("threads", threads);

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

/// <summary>The type to sample.</summary>
public NodesHotThreadsDescriptor Type(NodesSampleType? type) => Qs("type", type);
Expand Down Expand Up @@ -150,7 +150,7 @@ public NodesInfoDescriptor FlatSettings(bool? flatsettings = true) =>
Qs("flat_settings", flatsettings);

/// <summary>Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.</summary>
public NodesInfoDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
public NodesInfoDescriptor Timeout(string timeout) => Qs("timeout", timeout);
}

/// <summary>Descriptor for ReloadSecureSettings <para>https://opensearch.org/docs/latest/api-reference/nodes-apis/nodes-reload-secure/</para></summary>
Expand Down Expand Up @@ -182,7 +182,7 @@ public ReloadSecureSettingsDescriptor NodeId(NodeIds nodeId) =>

// Request parameters
/// <summary>Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.</summary>
public ReloadSecureSettingsDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
public ReloadSecureSettingsDescriptor Timeout(string timeout) => Qs("timeout", timeout);
}

/// <summary>Descriptor for Stats <para>https://opensearch.org/docs/latest/api-reference/nodes-apis/nodes-usage/</para></summary>
Expand Down Expand Up @@ -286,7 +286,7 @@ public NodesStatsDescriptor IncludeSegmentFileSizes(bool? includesegmentfilesize
public NodesStatsDescriptor Level(Level? level) => Qs("level", level);

/// <summary>Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.</summary>
public NodesStatsDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
public NodesStatsDescriptor Timeout(string timeout) => Qs("timeout", timeout);

/// <summary>A comma-separated list of document types for the indexing index metric.</summary>
public NodesStatsDescriptor Types(params string[] types) => Qs("types", types);
Expand Down Expand Up @@ -337,6 +337,6 @@ public NodesUsageDescriptor NodeId(NodeIds nodeId) =>

// Request parameters
/// <summary>Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.</summary>
public NodesUsageDescriptor Timeout(Time timeout) => Qs("timeout", timeout);
public NodesUsageDescriptor Timeout(string timeout) => Qs("timeout", timeout);
}
}
Loading

0 comments on commit a1577f7

Please sign in to comment.