Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ public sealed partial class AsyncSearchStatusRequest : Elastic.Clients.Elasticse
public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
{
}
#if NET7_0_OR_GREATER

public AsyncSearchStatusRequest()
{
}
#endif

[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
internal AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
{
Expand All @@ -86,11 +86,7 @@ internal AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serialization.Js
/// A unique identifier for the async search.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }
public required Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }

/// <summary>
/// <para>
Expand Down Expand Up @@ -183,6 +179,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearchStatusRequestDescrip
return this;
}

[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
#if NET10_0_OR_GREATER
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
#endif
)]
public Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearchStatusRequestDescriptor FilterPath(params string[]? value)
{
Instance.FilterPath = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,7 @@ internal AsyncSearchStatusResponse(Elastic.Clients.Elasticsearch.Serialization.J
/// </para>
/// </summary>
public System.DateTimeOffset? ExpirationTime { get; set; }
public
#if NET7_0_OR_GREATER
required
#endif
System.DateTimeOffset ExpirationTimeInMillis { get; set; }
public required System.DateTimeOffset ExpirationTimeInMillis { get; set; }
public string? Id { get; set; }

/// <summary>
Expand All @@ -83,11 +79,7 @@ internal AsyncSearchStatusResponse(Elastic.Clients.Elasticsearch.Serialization.J
/// While the query is running, <c>is_partial</c> is always set to <c>true</c>.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
bool IsPartial { get; set; }
public required bool IsPartial { get; set; }

/// <summary>
/// <para>
Expand All @@ -98,26 +90,14 @@ internal AsyncSearchStatusResponse(Elastic.Clients.Elasticsearch.Serialization.J
/// If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though <c>is_running</c> is <c>false</c>.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
bool IsRunning { get; set; }
public required bool IsRunning { get; set; }

/// <summary>
/// <para>
/// The number of shards that have run the query so far.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; }
public required Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; set; }
public System.DateTimeOffset? StartTime { get; set; }
public
#if NET7_0_OR_GREATER
required
#endif
System.DateTimeOffset StartTimeInMillis { get; set; }
public required System.DateTimeOffset StartTimeInMillis { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ public sealed partial class DeleteAsyncSearchRequest : Elastic.Clients.Elasticse
public DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
{
}
#if NET7_0_OR_GREATER

public DeleteAsyncSearchRequest()
{
}
#endif

[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
internal DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
{
Expand All @@ -68,11 +68,7 @@ internal DeleteAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.Js
/// A unique identifier for the async search.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }
public required Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }
}

/// <summary>
Expand Down Expand Up @@ -134,6 +130,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.DeleteAsyncSearchRequestDescrip
return this;
}

[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
#if NET10_0_OR_GREATER
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
#endif
)]
public Elastic.Clients.Elasticsearch.AsyncSearch.DeleteAsyncSearchRequestDescriptor FilterPath(params string[]? value)
{
Instance.FilterPath = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,5 @@ internal DeleteAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.J
/// For a successful response, this value is always true. On failure, an exception is returned instead.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
bool Acknowledged { get; set; }
public required bool Acknowledged { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ public partial class GetAsyncSearchRequest : Elastic.Clients.Elasticsearch.Reque
public GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Required("id", id))
{
}
#if NET7_0_OR_GREATER

public GetAsyncSearchRequest()
{
}
#endif

[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
internal GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
{
Expand All @@ -93,11 +93,7 @@ internal GetAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC
/// A unique identifier for the async search.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }
public required Elastic.Clients.Elasticsearch.Id Id { get => P<Elastic.Clients.Elasticsearch.Id>("id"); set => PR("id", value); }

/// <summary>
/// <para>
Expand Down Expand Up @@ -224,6 +220,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.GetAsyncSearchRequestDescriptor
return this;
}

[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
#if NET10_0_OR_GREATER
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
#endif
)]
public Elastic.Clients.Elasticsearch.AsyncSearch.GetAsyncSearchRequestDescriptor FilterPath(params string[]? value)
{
Instance.FilterPath = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ internal GetAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.Json
/// </para>
/// </summary>
public System.DateTimeOffset? ExpirationTime { get; set; }
public
#if NET7_0_OR_GREATER
required
#endif
System.DateTimeOffset ExpirationTimeInMillis { get; set; }
public required System.DateTimeOffset ExpirationTimeInMillis { get; set; }
public string? Id { get; set; }

/// <summary>
Expand All @@ -66,11 +62,7 @@ internal GetAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.Json
/// While the query is running, <c>is_partial</c> is always set to <c>true</c>.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
bool IsPartial { get; set; }
public required bool IsPartial { get; set; }

/// <summary>
/// <para>
Expand All @@ -81,20 +73,8 @@ internal GetAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.Json
/// If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though <c>is_running</c> is <c>false</c>.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
bool IsRunning { get; set; }
public
#if NET7_0_OR_GREATER
required
#endif
Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearch<TDocument> Response { get; set; }
public required bool IsRunning { get; set; }
public required Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearch<TDocument> Response { get; set; }
public System.DateTimeOffset? StartTime { get; set; }
public
#if NET7_0_OR_GREATER
required
#endif
System.DateTimeOffset StartTimeInMillis { get; set; }
public required System.DateTimeOffset StartTimeInMillis { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -255,16 +255,11 @@ public partial class SubmitAsyncSearchRequest : Elastic.Clients.Elasticsearch.Re
public SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices))
{
}
#if NET7_0_OR_GREATER
public SubmitAsyncSearchRequest()
{
}
#endif
#if !NET7_0_OR_GREATER

public SubmitAsyncSearchRequest()
{
}
#endif

[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
internal SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
{
Expand Down Expand Up @@ -2026,6 +2021,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip
return this;
}

[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
#if NET10_0_OR_GREATER
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
#endif
)]
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor FilterPath(params string[]? value)
{
Instance.FilterPath = value;
Expand Down Expand Up @@ -3238,6 +3238,11 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip
return this;
}

[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
#if NET10_0_OR_GREATER
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
#endif
)]
public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor<TDocument> FilterPath(params string[]? value)
{
Instance.FilterPath = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,7 @@ internal SubmitAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.J
/// </para>
/// </summary>
public System.DateTimeOffset? ExpirationTime { get; set; }
public
#if NET7_0_OR_GREATER
required
#endif
System.DateTimeOffset ExpirationTimeInMillis { get; set; }
public required System.DateTimeOffset ExpirationTimeInMillis { get; set; }
public string? Id { get; set; }

/// <summary>
Expand All @@ -66,11 +62,7 @@ internal SubmitAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.J
/// While the query is running, <c>is_partial</c> is always set to <c>true</c>.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
bool IsPartial { get; set; }
public required bool IsPartial { get; set; }

/// <summary>
/// <para>
Expand All @@ -81,20 +73,8 @@ internal SubmitAsyncSearchResponse(Elastic.Clients.Elasticsearch.Serialization.J
/// If the search failed after some shards returned their results or the node that is coordinating the async search dies, results may be partial even though <c>is_running</c> is <c>false</c>.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
bool IsRunning { get; set; }
public
#if NET7_0_OR_GREATER
required
#endif
Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearch<TDocument> Response { get; set; }
public required bool IsRunning { get; set; }
public required Elastic.Clients.Elasticsearch.AsyncSearch.AsyncSearch<TDocument> Response { get; set; }
public System.DateTimeOffset? StartTime { get; set; }
public
#if NET7_0_OR_GREATER
required
#endif
System.DateTimeOffset StartTimeInMillis { get; set; }
public required System.DateTimeOffset StartTimeInMillis { get; set; }
}
19 changes: 12 additions & 7 deletions src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,16 +329,11 @@ public partial class BulkRequest : Elastic.Clients.Elasticsearch.Requests.PlainR
public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r.Optional("index", index))
{
}
#if NET7_0_OR_GREATER
public BulkRequest()
{
}
#endif
#if !NET7_0_OR_GREATER

public BulkRequest()
{
}
#endif

[System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
internal BulkRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel)
{
Expand Down Expand Up @@ -907,6 +902,11 @@ public Elastic.Clients.Elasticsearch.BulkRequestDescriptor ErrorTrace(bool? valu
return this;
}

[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
#if NET10_0_OR_GREATER
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
#endif
)]
public Elastic.Clients.Elasticsearch.BulkRequestDescriptor FilterPath(params string[]? value)
{
Instance.FilterPath = value;
Expand Down Expand Up @@ -1381,6 +1381,11 @@ public Elastic.Clients.Elasticsearch.BulkRequestDescriptor<TDocument> ErrorTrace
return this;
}

[System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}"
#if NET10_0_OR_GREATER
, Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request."
#endif
)]
public Elastic.Clients.Elasticsearch.BulkRequestDescriptor<TDocument> FilterPath(params string[]? value)
{
Instance.FilterPath = value;
Expand Down
Loading
Loading