Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport serverless] Regenerate client for 8.13 #8073

Merged
merged 1 commit into from
Apr 3, 2024
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
46 changes: 46 additions & 0 deletions docfx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"metadata": [
{
"src": [
{
"src": "./src/Elastic.Clients.Elasticsearch",
"files": [
"**/*.csproj"
]
}
],
"dest": "api"
}
],
"build": {
"content": [
{
"files": [
"**/*.{md,yml}"
],
"exclude": [
"_site/**"
]
}
],
"resource": [
{
"files": [
"images/**"
]
}
],
"output": "_site",
"template": [
"default",
"modern"
],
"globalMetadata": {
"_appName": "Elasticsearch.NET",
"_appTitle": "Elasticsearch.NET",
"_enableSearch": true,
"_disableContribution": true,
"pdf": false
}
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverle
{
}

internal AsyncSearchStatusRequestDescriptor()
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus;

protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
Expand Down Expand Up @@ -96,10 +92,6 @@ public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverle
{
}

internal AsyncSearchStatusRequestDescriptor()
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus;

protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,34 @@ public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse
/// </summary>
[JsonInclude, JsonPropertyName("completion_status")]
public int? CompletionStatus { get; init; }

/// <summary>
/// <para>Indicates when the async search completed. Only present<br/>when the search has completed.</para>
/// </summary>
[JsonInclude, JsonPropertyName("completion_time")]
public DateTimeOffset? CompletionTime { get; init; }
[JsonInclude, JsonPropertyName("completion_time_in_millis")]
public long? CompletionTimeInMillis { get; init; }

/// <summary>
/// <para>Indicates when the async search will expire.</para>
/// </summary>
[JsonInclude, JsonPropertyName("expiration_time")]
public DateTimeOffset? ExpirationTime { get; init; }
[JsonInclude, JsonPropertyName("expiration_time_in_millis")]
public long ExpirationTimeInMillis { get; init; }
[JsonInclude, JsonPropertyName("id")]
public string? Id { get; init; }

/// <summary>
/// <para>When the query is no longer running, this property indicates whether the search failed or was successfully completed on all shards.<br/>While the query is running, `is_partial` is always set to `true`.</para>
/// </summary>
[JsonInclude, JsonPropertyName("is_partial")]
public bool IsPartial { get; init; }

/// <summary>
/// <para>Indicates whether the search is still running or has completed.<br/>NOTE: 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 `is_running` is `false`.</para>
/// </summary>
[JsonInclude, JsonPropertyName("is_running")]
public bool IsRunning { get; init; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ public DeleteAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverle
{
}

internal DeleteAsyncSearchRequestDescriptor()
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchDelete;

protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
Expand Down Expand Up @@ -96,10 +92,6 @@ public DeleteAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverle
{
}

internal DeleteAsyncSearchRequestDescriptor()
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchDelete;

protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using Elastic.Transport.Products.Elasticsearch;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ public GetAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.
{
}

internal GetAsyncSearchRequestDescriptor()
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchGet;

protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
Expand Down Expand Up @@ -132,10 +128,6 @@ public GetAsyncSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.
{
}

internal GetAsyncSearchRequestDescriptor()
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchGet;

protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,33 @@ namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch;

public sealed partial class GetAsyncSearchResponse<TDocument> : ElasticsearchResponse
{
/// <summary>
/// <para>Indicates when the async search completed. Only present<br/>when the search has completed.</para>
/// </summary>
[JsonInclude, JsonPropertyName("completion_time")]
public DateTimeOffset? CompletionTime { get; init; }
[JsonInclude, JsonPropertyName("completion_time_in_millis")]
public long? CompletionTimeInMillis { get; init; }

/// <summary>
/// <para>Indicates when the async search will expire.</para>
/// </summary>
[JsonInclude, JsonPropertyName("expiration_time")]
public DateTimeOffset? ExpirationTime { get; init; }
[JsonInclude, JsonPropertyName("expiration_time_in_millis")]
public long ExpirationTimeInMillis { get; init; }
[JsonInclude, JsonPropertyName("id")]
public string? Id { get; init; }

/// <summary>
/// <para>When the query is no longer running, this property indicates whether the search failed or was successfully completed on all shards.<br/>While the query is running, `is_partial` is always set to `true`.</para>
/// </summary>
[JsonInclude, JsonPropertyName("is_partial")]
public bool IsPartial { get; init; }

/// <summary>
/// <para>Indicates whether the search is still running or has completed.<br/>NOTE: 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 `is_running` is `false`.</para>
/// </summary>
[JsonInclude, JsonPropertyName("is_running")]
public bool IsRunning { get; init; }
[JsonInclude, JsonPropertyName("response")]
Expand Down
Loading
Loading