? value)
@@ -256,7 +253,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor Ex
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
@@ -407,7 +403,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptoropen,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -421,7 +416,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptoropen,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs
index d03dab1bc7..d86c0fb20c 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs
@@ -41,7 +41,6 @@ public sealed partial class ResolveClusterRequestParameters : Elastic.Transport.
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
/// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index
/// options to the _resolve/cluster API endpoint that takes no index expression.
///
@@ -264,7 +263,6 @@ internal ResolveClusterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
/// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index
/// options to the _resolve/cluster API endpoint that takes no index expression.
///
@@ -459,7 +457,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ResolveClusterRequestDescri
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
/// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index
/// options to the _resolve/cluster API endpoint that takes no index expression.
///
@@ -475,7 +472,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ResolveClusterRequestDescri
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
/// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index
/// options to the _resolve/cluster API endpoint that takes no index expression.
///
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs
index 57fb430153..99aaa95d34 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs
@@ -39,7 +39,6 @@ public sealed partial class ResolveIndexRequestParameters : Elastic.Transport.Re
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -140,7 +139,6 @@ internal ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -214,7 +212,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescript
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -228,7 +225,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescript
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs
index 0fdf45bdba..91c89de8a8 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs
@@ -38,7 +38,6 @@ public sealed partial class SegmentsRequestParameters : Elastic.Transport.Reques
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -139,7 +138,6 @@ internal SegmentsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -212,7 +210,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor A
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -226,7 +223,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor E
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
@@ -362,7 +358,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptoropen,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -376,7 +371,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptoropen,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs
index 53eb30fbda..942ffe6492 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs
@@ -75,7 +75,6 @@ public sealed partial class ValidateQueryRequestParameters : Elastic.Transport.R
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -250,7 +249,6 @@ internal ValidateQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -414,7 +412,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -428,7 +425,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
@@ -697,7 +693,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -711,7 +706,6 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs
index 52d994fbc0..d26a3cb090 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs
@@ -36,35 +36,8 @@ public sealed partial class PutJobRequestParameters : Elastic.Transport.RequestP
///
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
- ///
- ///
- ///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -312,35 +285,8 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct
///
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
- ///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- ///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -522,35 +468,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor All
///
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
- ///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- ///
///
public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
{
@@ -561,35 +480,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor Exp
///
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
- ///
- ///
- ///
///
public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
{
@@ -1043,35 +935,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
- ///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- ///
///
public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
{
@@ -1082,35 +947,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
- ///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- ///
///
public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
{
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs
index 5e97d3bc24..86df8e3726 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs
@@ -36,35 +36,8 @@ public sealed partial class UpdateDatafeedRequestParameters : Elastic.Transport.
///
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
- ///
- ///
- ///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -291,35 +264,8 @@ internal UpdateDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC
///
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
- ///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- ///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -511,35 +457,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescri
///
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
- ///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- ///
///
public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
{
@@ -550,35 +469,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescri
///
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
- ///
- ///
- ///
///
public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
{
@@ -1151,35 +1043,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescri
///
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
- ///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- ///
///
public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
{
@@ -1190,35 +1055,8 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescri
///
///
/// Type of index that wildcard patterns can match. If the request can target data streams, this argument determines
- /// whether wildcard expressions match hidden data streams. Supports comma-separated values. Valid values are:
- ///
- ///
- /// -
- ///
- /// all: Match any data stream or index, including hidden ones.
- ///
- ///
- /// -
- ///
- /// closed: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.
- ///
- ///
- /// -
- ///
- /// hidden: Match hidden data streams and hidden indices. Must be combined with open, closed, or both.
- ///
- ///
- /// -
- ///
- /// none: Wildcard patterns are not accepted.
- ///
- ///
- /// -
- ///
- /// open: Match open, non-hidden indices. Also matches any non-hidden data stream.
+ /// whether wildcard expressions match hidden data streams. Supports comma-separated values.
///
- ///
- ///
///
public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
{
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs
index 6b1d503ad5..956acbfaa9 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs
@@ -38,7 +38,7 @@ public sealed partial class OpenPointInTimeRequestParameters : Elastic.Transport
///
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
- /// It supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none.
+ /// It supports comma-separated values, such as open,hidden.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -221,7 +221,7 @@ internal OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serialization.Json
///
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
- /// It supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none.
+ /// It supports comma-separated values, such as open,hidden.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -374,7 +374,7 @@ public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor AllowParti
///
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
- /// It supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none.
+ /// It supports comma-separated values, such as open,hidden.
///
///
public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -387,7 +387,7 @@ public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor ExpandWild
///
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
- /// It supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none.
+ /// It supports comma-separated values, such as open,hidden.
///
///
public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
@@ -639,7 +639,7 @@ public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor
///
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
- /// It supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none.
+ /// It supports comma-separated values, such as open,hidden.
///
///
public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -652,7 +652,7 @@ public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor
///
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
- /// It supports comma-separated values, such as open,hidden. Valid values are: all, open, closed, hidden, none.
+ /// It supports comma-separated values, such as open,hidden.
///
///
public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs
index 6227c9ba8f..7848464aba 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs
@@ -39,7 +39,6 @@ public sealed partial class SearchShardsRequestParameters : Elastic.Transport.Re
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -178,7 +177,6 @@ internal SearchShardsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -289,7 +287,6 @@ public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor AllowNoIndice
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -303,7 +300,6 @@ public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor ExpandWildcar
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
@@ -493,7 +489,6 @@ public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor Al
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -507,7 +502,6 @@ public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor Ex
/// Type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs
index 2de889d5df..0c31ee626f 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs
@@ -46,7 +46,6 @@ public sealed partial class SearchTemplateRequestParameters : Elastic.Transport.
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -251,7 +250,6 @@ internal SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -427,7 +425,6 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor CcsMinimize
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -441,7 +438,6 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor ExpandWildc
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
@@ -761,7 +757,6 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -775,7 +770,6 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// Supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs
index 798a4877fd..bffd16d6e4 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/GetSnapshotRequest.g.cs
@@ -123,6 +123,14 @@ public sealed partial class GetSnapshotRequestParameters : Elastic.Transport.Req
///
public Elastic.Clients.Elasticsearch.Snapshot.SnapshotSort? Sort { get => Q("sort"); set => Q("sort", value); }
+ ///
+ ///
+ /// Only return snapshots with a state found in the given comma-separated list of snapshot states.
+ /// The default is all snapshot states.
+ ///
+ ///
+ public System.Collections.Generic.ICollection? State { get => Q?>("state"); set => Q("state", value); }
+
///
///
/// If true, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.
@@ -333,6 +341,14 @@ internal GetSnapshotRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons
///
public Elastic.Clients.Elasticsearch.Snapshot.SnapshotSort? Sort { get => Q("sort"); set => Q("sort", value); }
+ ///
+ ///
+ /// Only return snapshots with a state found in the given comma-separated list of snapshot states.
+ /// The default is all snapshot states.
+ ///
+ ///
+ public System.Collections.Generic.ICollection? State { get => Q?>("state"); set => Q("state", value); }
+
///
///
/// If true, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.
@@ -560,6 +576,30 @@ public Elastic.Clients.Elasticsearch.Snapshot.GetSnapshotRequestDescriptor Sort(
return this;
}
+ ///
+ ///
+ /// Only return snapshots with a state found in the given comma-separated list of snapshot states.
+ /// The default is all snapshot states.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Snapshot.GetSnapshotRequestDescriptor State(System.Collections.Generic.ICollection? value)
+ {
+ Instance.State = value;
+ return this;
+ }
+
+ ///
+ ///
+ /// Only return snapshots with a state found in the given comma-separated list of snapshot states.
+ /// The default is all snapshot states.
+ ///
+ ///
+ public Elastic.Clients.Elasticsearch.Snapshot.GetSnapshotRequestDescriptor State(params Elastic.Clients.Elasticsearch.Snapshot.SnapshotState[] values)
+ {
+ Instance.State = [.. values];
+ return this;
+ }
+
///
///
/// If true, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs
index 4e46a5a714..0abddbeb00 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs
@@ -71,7 +71,6 @@ public sealed partial class UpdateByQueryRequestParameters : Elastic.Transport.R
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// It supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -579,7 +578,6 @@ internal UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// It supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public System.Collections.Generic.ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); }
@@ -1065,7 +1063,6 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor Df(string? v
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// It supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -1079,7 +1076,6 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor ExpandWildca
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// It supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
@@ -1829,7 +1825,6 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor D
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// It supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor ExpandWildcards(System.Collections.Generic.ICollection? value)
@@ -1843,7 +1838,6 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor E
/// The type of index that wildcard patterns can match.
/// If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
/// It supports comma-separated values, such as open,hidden.
- /// Valid values are: all, open, closed, hidden, none.
///
///
public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor ExpandWildcards(params Elastic.Clients.Elasticsearch.ExpandWildcard[] values)
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Snapshot.g.cs
index 5c3e74013c..e463e87bfd 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Snapshot.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Snapshot.g.cs
@@ -150,6 +150,105 @@ public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer,
}
}
+internal sealed partial class SnapshotStateConverter : System.Text.Json.Serialization.JsonConverter
+{
+ private static readonly System.Text.Json.JsonEncodedText MemberFailed = System.Text.Json.JsonEncodedText.Encode("FAILED");
+ private static readonly System.Text.Json.JsonEncodedText MemberInProgress = System.Text.Json.JsonEncodedText.Encode("IN_PROGRESS");
+ private static readonly System.Text.Json.JsonEncodedText MemberIncompatible = System.Text.Json.JsonEncodedText.Encode("INCOMPATIBLE");
+ private static readonly System.Text.Json.JsonEncodedText MemberPartial = System.Text.Json.JsonEncodedText.Encode("PARTIAL");
+ private static readonly System.Text.Json.JsonEncodedText MemberSuccess = System.Text.Json.JsonEncodedText.Encode("SUCCESS");
+
+ public override Elastic.Clients.Elasticsearch.Snapshot.SnapshotState Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ if (reader.ValueTextEquals(MemberFailed))
+ {
+ return Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Failed;
+ }
+
+ if (reader.ValueTextEquals(MemberInProgress))
+ {
+ return Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.InProgress;
+ }
+
+ if (reader.ValueTextEquals(MemberIncompatible))
+ {
+ return Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Incompatible;
+ }
+
+ if (reader.ValueTextEquals(MemberPartial))
+ {
+ return Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Partial;
+ }
+
+ if (reader.ValueTextEquals(MemberSuccess))
+ {
+ return Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Success;
+ }
+
+ var value = reader.GetString()!;
+ if (string.Equals(value, MemberFailed.Value, System.StringComparison.OrdinalIgnoreCase))
+ {
+ return Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Failed;
+ }
+
+ if (string.Equals(value, MemberInProgress.Value, System.StringComparison.OrdinalIgnoreCase))
+ {
+ return Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.InProgress;
+ }
+
+ if (string.Equals(value, MemberIncompatible.Value, System.StringComparison.OrdinalIgnoreCase))
+ {
+ return Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Incompatible;
+ }
+
+ if (string.Equals(value, MemberPartial.Value, System.StringComparison.OrdinalIgnoreCase))
+ {
+ return Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Partial;
+ }
+
+ if (string.Equals(value, MemberSuccess.Value, System.StringComparison.OrdinalIgnoreCase))
+ {
+ return Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Success;
+ }
+
+ throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Snapshot.SnapshotState)}'.");
+ }
+
+ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Snapshot.SnapshotState value, System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (value)
+ {
+ case Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Failed:
+ writer.WriteStringValue(MemberFailed);
+ break;
+ case Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.InProgress:
+ writer.WriteStringValue(MemberInProgress);
+ break;
+ case Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Incompatible:
+ writer.WriteStringValue(MemberIncompatible);
+ break;
+ case Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Partial:
+ writer.WriteStringValue(MemberPartial);
+ break;
+ case Elastic.Clients.Elasticsearch.Snapshot.SnapshotState.Success:
+ writer.WriteStringValue(MemberSuccess);
+ break;
+ default:
+ throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Snapshot.SnapshotState)}'.");
+ }
+ }
+
+ public override Elastic.Clients.Elasticsearch.Snapshot.SnapshotState ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)
+ {
+ return Read(ref reader, typeToConvert, options);
+ }
+
+ public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Snapshot.SnapshotState value, System.Text.Json.JsonSerializerOptions options)
+ {
+ Write(writer, value, options);
+ }
+}
+
internal sealed partial class ShardsStatsStageConverter : System.Text.Json.Serialization.JsonConverter
{
private static readonly System.Text.Json.JsonEncodedText MemberDone = System.Text.Json.JsonEncodedText.Encode("DONE");
@@ -268,6 +367,46 @@ public enum SnapshotSort
StartTime
}
+[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Snapshot.SnapshotStateConverter))]
+public enum SnapshotState
+{
+ ///
+ ///
+ /// The snapshot failed.
+ ///
+ ///
+ [System.Runtime.Serialization.EnumMember(Value = "FAILED")]
+ Failed,
+ ///
+ ///
+ /// The snapshot process has started.
+ ///
+ ///
+ [System.Runtime.Serialization.EnumMember(Value = "IN_PROGRESS")]
+ InProgress,
+ ///
+ ///
+ /// The snapshot is incompatible with the current version of the cluster.
+ ///
+ ///
+ [System.Runtime.Serialization.EnumMember(Value = "INCOMPATIBLE")]
+ Incompatible,
+ ///
+ ///
+ /// The snapshot was partially successful.
+ ///
+ ///
+ [System.Runtime.Serialization.EnumMember(Value = "PARTIAL")]
+ Partial,
+ ///
+ ///
+ /// The snapshot process completed successfully.
+ ///
+ ///
+ [System.Runtime.Serialization.EnumMember(Value = "SUCCESS")]
+ Success
+}
+
[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Snapshot.ShardsStatsStageConverter))]
public enum ShardsStatsStage
{
| |