Skip to content

Commit 3f554c3

Browse files
committed
Regenerate code
1 parent d66186e commit 3f554c3

File tree

961 files changed

+212308
-302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

961 files changed

+212308
-302
lines changed
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information.
4+
//
5+
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
6+
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
7+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
8+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
9+
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
10+
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
11+
// ------------------------------------------------
12+
//
13+
// This file is automatically generated.
14+
// Please do not edit these files manually.
15+
//
16+
// ------------------------------------------------
17+
18+
#nullable restore
19+
20+
namespace Elastic.Clients.Elasticsearch.Serverless.Requests;
21+
22+
internal static class ApiUrlLookup
23+
{
24+
internal static ApiUrls AsyncSearchStatus = new ApiUrls(new[] { "_async_search/status/{id}" });
25+
internal static ApiUrls AsyncSearchDelete = new ApiUrls(new[] { "_async_search/{id}" });
26+
internal static ApiUrls AsyncSearchGet = new ApiUrls(new[] { "_async_search/{id}" });
27+
internal static ApiUrls AsyncSearchSubmit = new ApiUrls(new[] { "_async_search", "{index}/_async_search" });
28+
internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[] { "_bulk", "{index}/_bulk" });
29+
internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[] { "_search/scroll" });
30+
internal static ApiUrls NoNamespaceClosePointInTime = new ApiUrls(new[] { "_pit" });
31+
internal static ApiUrls ClusterAllocationExplain = new ApiUrls(new[] { "_cluster/allocation/explain" });
32+
internal static ApiUrls ClusterStats = new ApiUrls(new[] { "_cluster/stats", "_cluster/stats/nodes/{node_id}" });
33+
internal static ApiUrls ClusterGetSettings = new ApiUrls(new[] { "_cluster/settings" });
34+
internal static ApiUrls ClusterHealth = new ApiUrls(new[] { "_cluster/health", "_cluster/health/{index}" });
35+
internal static ApiUrls ClusterPendingTasks = new ApiUrls(new[] { "_cluster/pending_tasks" });
36+
internal static ApiUrls NoNamespaceCount = new ApiUrls(new[] { "_count", "{index}/_count" });
37+
internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[] { "{index}/_create/{id}" });
38+
internal static ApiUrls NoNamespaceDeleteByQuery = new ApiUrls(new[] { "{index}/_delete_by_query" });
39+
internal static ApiUrls NoNamespaceDelete = new ApiUrls(new[] { "{index}/_doc/{id}" });
40+
internal static ApiUrls NoNamespaceDeleteScript = new ApiUrls(new[] { "_scripts/{id}" });
41+
internal static ApiUrls EnrichDeletePolicy = new ApiUrls(new[] { "_enrich/policy/{name}" });
42+
internal static ApiUrls EnrichStats = new ApiUrls(new[] { "_enrich/_stats" });
43+
internal static ApiUrls EnrichExecutePolicy = new ApiUrls(new[] { "_enrich/policy/{name}/_execute" });
44+
internal static ApiUrls EnrichGetPolicy = new ApiUrls(new[] { "_enrich/policy/{name}", "_enrich/policy" });
45+
internal static ApiUrls EnrichPutPolicy = new ApiUrls(new[] { "_enrich/policy/{name}" });
46+
internal static ApiUrls NoNamespaceExists = new ApiUrls(new[] { "{index}/_doc/{id}" });
47+
internal static ApiUrls NoNamespaceExistsSource = new ApiUrls(new[] { "{index}/_source/{id}" });
48+
internal static ApiUrls NoNamespaceFieldCaps = new ApiUrls(new[] { "_field_caps", "{index}/_field_caps" });
49+
internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "{index}/_doc/{id}" });
50+
internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[] { "_scripts/{id}" });
51+
internal static ApiUrls NoNamespaceGetSource = new ApiUrls(new[] { "{index}/_source/{id}" });
52+
internal static ApiUrls GraphExplore = new ApiUrls(new[] { "{index}/_graph/explore" });
53+
internal static ApiUrls IndexManagementClose = new ApiUrls(new[] { "{index}/_close" });
54+
internal static ApiUrls IndexManagementCreateDataStream = new ApiUrls(new[] { "_data_stream/{name}" });
55+
internal static ApiUrls IndexManagementCreate = new ApiUrls(new[] { "{index}" });
56+
internal static ApiUrls IndexManagementDeleteAlias = new ApiUrls(new[] { "{index}/_alias/{name}" });
57+
internal static ApiUrls IndexManagementDeleteDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
58+
internal static ApiUrls IndexManagementDeleteDataStream = new ApiUrls(new[] { "_data_stream/{name}" });
59+
internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "{index}" });
60+
internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
61+
internal static ApiUrls IndexManagementDeleteTemplate = new ApiUrls(new[] { "_template/{name}" });
62+
internal static ApiUrls IndexManagementExistsAlias = new ApiUrls(new[] { "_alias/{name}", "{index}/_alias/{name}" });
63+
internal static ApiUrls IndexManagementExistsIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
64+
internal static ApiUrls IndexManagementExists = new ApiUrls(new[] { "{index}" });
65+
internal static ApiUrls IndexManagementExistsTemplate = new ApiUrls(new[] { "_template/{name}" });
66+
internal static ApiUrls IndexManagementExplainDataLifecycle = new ApiUrls(new[] { "{index}/_lifecycle/explain" });
67+
internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "_alias", "_alias/{name}", "{index}/_alias/{name}", "{index}/_alias" });
68+
internal static ApiUrls IndexManagementGetDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
69+
internal static ApiUrls IndexManagementGetDataStream = new ApiUrls(new[] { "_data_stream", "_data_stream/{name}" });
70+
internal static ApiUrls IndexManagementGet = new ApiUrls(new[] { "{index}" });
71+
internal static ApiUrls IndexManagementGetIndexTemplate = new ApiUrls(new[] { "_index_template", "_index_template/{name}" });
72+
internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "_mapping", "{index}/_mapping" });
73+
internal static ApiUrls IndexManagementGetTemplate = new ApiUrls(new[] { "_template", "_template/{name}" });
74+
internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" });
75+
internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "_data_stream/_migrate/{name}" });
76+
internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "{index}/_open" });
77+
internal static ApiUrls IndexManagementPutAlias = new ApiUrls(new[] { "{index}/_alias/{name}" });
78+
internal static ApiUrls IndexManagementPutDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
79+
internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
80+
internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "{index}/_mapping" });
81+
internal static ApiUrls IndexManagementPutTemplate = new ApiUrls(new[] { "_template/{name}" });
82+
internal static ApiUrls IndexManagementRollover = new ApiUrls(new[] { "{alias}/_rollover", "{alias}/_rollover/{new_index}" });
83+
internal static ApiUrls IndexManagementSimulateIndexTemplate = new ApiUrls(new[] { "_index_template/_simulate_index/{name}" });
84+
internal static ApiUrls IndexManagementSimulateTemplate = new ApiUrls(new[] { "_index_template/_simulate", "_index_template/_simulate/{name}" });
85+
internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "_aliases" });
86+
internal static ApiUrls NoNamespaceIndex = new ApiUrls(new[] { "{index}/_doc/{id}", "{index}/_doc" });
87+
internal static ApiUrls NoNamespaceInfo = new ApiUrls(new[] { "" });
88+
internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
89+
internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" });
90+
internal static ApiUrls IngestGetPipeline = new ApiUrls(new[] { "_ingest/pipeline", "_ingest/pipeline/{id}" });
91+
internal static ApiUrls IngestProcessorGrok = new ApiUrls(new[] { "_ingest/processor/grok" });
92+
internal static ApiUrls IngestPutPipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
93+
internal static ApiUrls IngestSimulate = new ApiUrls(new[] { "_ingest/pipeline/_simulate", "_ingest/pipeline/{id}/_simulate" });
94+
internal static ApiUrls NoNamespaceMget = new ApiUrls(new[] { "_mget", "{index}/_mget" });
95+
internal static ApiUrls NoNamespaceMsearch = new ApiUrls(new[] { "_msearch", "{index}/_msearch" });
96+
internal static ApiUrls NoNamespaceMsearchTemplate = new ApiUrls(new[] { "_msearch/template", "{index}/_msearch/template" });
97+
internal static ApiUrls NoNamespaceMtermvectors = new ApiUrls(new[] { "_mtermvectors", "{index}/_mtermvectors" });
98+
internal static ApiUrls NoNamespaceOpenPointInTime = new ApiUrls(new[] { "{index}/_pit" });
99+
internal static ApiUrls NoNamespacePing = new ApiUrls(new[] { "" });
100+
internal static ApiUrls NoNamespacePutScript = new ApiUrls(new[] { "_scripts/{id}", "_scripts/{id}/{context}" });
101+
internal static ApiUrls NoNamespaceRankEval = new ApiUrls(new[] { "_rank_eval", "{index}/_rank_eval" });
102+
internal static ApiUrls NoNamespaceRenderSearchTemplate = new ApiUrls(new[] { "_render/template", "_render/template/{id}" });
103+
internal static ApiUrls NoNamespaceScroll = new ApiUrls(new[] { "_search/scroll" });
104+
internal static ApiUrls NoNamespaceSearch = new ApiUrls(new[] { "_search", "{index}/_search" });
105+
internal static ApiUrls NoNamespaceSearchTemplate = new ApiUrls(new[] { "_search/template", "{index}/_search/template" });
106+
internal static ApiUrls NoNamespaceTermsEnum = new ApiUrls(new[] { "{index}/_terms_enum" });
107+
internal static ApiUrls NoNamespaceTermvectors = new ApiUrls(new[] { "{index}/_termvectors/{id}", "{index}/_termvectors" });
108+
internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "{index}/_update_by_query" });
109+
internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" });
110+
}
Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information.
4+
//
5+
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
6+
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
7+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
8+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
9+
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
10+
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
11+
// ------------------------------------------------
12+
//
13+
// This file is automatically generated.
14+
// Please do not edit these files manually.
15+
//
16+
// ------------------------------------------------
17+
18+
#nullable restore
19+
20+
using Elastic.Clients.Elasticsearch.Serverless.Fluent;
21+
using Elastic.Clients.Elasticsearch.Serverless.Requests;
22+
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
23+
using Elastic.Transport;
24+
using System;
25+
using System.Collections.Generic;
26+
using System.Linq.Expressions;
27+
using System.Text.Json;
28+
using System.Text.Json.Serialization;
29+
30+
namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch;
31+
32+
public sealed class AsyncSearchStatusRequestParameters : RequestParameters
33+
{
34+
}
35+
36+
/// <summary>
37+
/// <para>Retreives the status of a previously submitted async search request given its identifier, without retrieving search results.<br/>If the Elasticsearch security features are enabled, use of this API is restricted to the `monitoring_user` role.</para>
38+
/// </summary>
39+
public sealed partial class AsyncSearchStatusRequest : PlainRequest<AsyncSearchStatusRequestParameters>
40+
{
41+
public AsyncSearchStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
42+
{
43+
}
44+
45+
internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus;
46+
47+
protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
48+
49+
internal override bool SupportsBody => false;
50+
51+
internal override string OperationName => "async_search.status";
52+
}
53+
54+
/// <summary>
55+
/// <para>Retreives the status of a previously submitted async search request given its identifier, without retrieving search results.<br/>If the Elasticsearch security features are enabled, use of this API is restricted to the `monitoring_user` role.</para>
56+
/// </summary>
57+
public sealed partial class AsyncSearchStatusRequestDescriptor<TDocument> : RequestDescriptor<AsyncSearchStatusRequestDescriptor<TDocument>, AsyncSearchStatusRequestParameters>
58+
{
59+
internal AsyncSearchStatusRequestDescriptor(Action<AsyncSearchStatusRequestDescriptor<TDocument>> configure) => configure.Invoke(this);
60+
61+
public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
62+
{
63+
}
64+
65+
internal AsyncSearchStatusRequestDescriptor()
66+
{
67+
}
68+
69+
internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus;
70+
71+
protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
72+
73+
internal override bool SupportsBody => false;
74+
75+
internal override string OperationName => "async_search.status";
76+
77+
public AsyncSearchStatusRequestDescriptor<TDocument> Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
78+
{
79+
RouteValues.Required("id", id);
80+
return Self;
81+
}
82+
83+
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
84+
{
85+
}
86+
}
87+
88+
/// <summary>
89+
/// <para>Retreives the status of a previously submitted async search request given its identifier, without retrieving search results.<br/>If the Elasticsearch security features are enabled, use of this API is restricted to the `monitoring_user` role.</para>
90+
/// </summary>
91+
public sealed partial class AsyncSearchStatusRequestDescriptor : RequestDescriptor<AsyncSearchStatusRequestDescriptor, AsyncSearchStatusRequestParameters>
92+
{
93+
internal AsyncSearchStatusRequestDescriptor(Action<AsyncSearchStatusRequestDescriptor> configure) => configure.Invoke(this);
94+
95+
public AsyncSearchStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id))
96+
{
97+
}
98+
99+
internal AsyncSearchStatusRequestDescriptor()
100+
{
101+
}
102+
103+
internal override ApiUrls ApiUrls => ApiUrlLookup.AsyncSearchStatus;
104+
105+
protected override HttpMethod StaticHttpMethod => HttpMethod.GET;
106+
107+
internal override bool SupportsBody => false;
108+
109+
internal override string OperationName => "async_search.status";
110+
111+
public AsyncSearchStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id)
112+
{
113+
RouteValues.Required("id", id);
114+
return Self;
115+
}
116+
117+
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
118+
{
119+
}
120+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information.
4+
//
5+
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
6+
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
7+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
8+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
9+
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
10+
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
11+
// ------------------------------------------------
12+
//
13+
// This file is automatically generated.
14+
// Please do not edit these files manually.
15+
//
16+
// ------------------------------------------------
17+
18+
#nullable restore
19+
20+
using Elastic.Clients.Elasticsearch.Serverless.Fluent;
21+
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
22+
using Elastic.Transport.Products.Elasticsearch;
23+
using System;
24+
using System.Collections.Generic;
25+
using System.Text.Json.Serialization;
26+
27+
namespace Elastic.Clients.Elasticsearch.Serverless.AsyncSearch;
28+
29+
public sealed partial class AsyncSearchStatusResponse : ElasticsearchResponse
30+
{
31+
/// <summary>
32+
/// <para>Metadata about clusters involved in the cross-cluster search.<br/>Not shown for local-only searches.</para>
33+
/// </summary>
34+
[JsonInclude, JsonPropertyName("_clusters")]
35+
public Elastic.Clients.Elasticsearch.Serverless.ClusterStatistics? Clusters { get; init; }
36+
37+
/// <summary>
38+
/// <para>If the async search completed, this field shows the status code of the search.<br/>For example, 200 indicates that the async search was successfully completed.<br/>503 indicates that the async search was completed with an error.</para>
39+
/// </summary>
40+
[JsonInclude, JsonPropertyName("completion_status")]
41+
public int? CompletionStatus { get; init; }
42+
[JsonInclude, JsonPropertyName("completion_time")]
43+
public DateTimeOffset? CompletionTime { get; init; }
44+
[JsonInclude, JsonPropertyName("completion_time_in_millis")]
45+
public long? CompletionTimeInMillis { get; init; }
46+
[JsonInclude, JsonPropertyName("expiration_time")]
47+
public DateTimeOffset? ExpirationTime { get; init; }
48+
[JsonInclude, JsonPropertyName("expiration_time_in_millis")]
49+
public long ExpirationTimeInMillis { get; init; }
50+
[JsonInclude, JsonPropertyName("id")]
51+
public string? Id { get; init; }
52+
[JsonInclude, JsonPropertyName("is_partial")]
53+
public bool IsPartial { get; init; }
54+
[JsonInclude, JsonPropertyName("is_running")]
55+
public bool IsRunning { get; init; }
56+
57+
/// <summary>
58+
/// <para>Indicates how many shards have run the query so far.</para>
59+
/// </summary>
60+
[JsonInclude, JsonPropertyName("_shards")]
61+
public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; }
62+
[JsonInclude, JsonPropertyName("start_time")]
63+
public DateTimeOffset? StartTime { get; init; }
64+
[JsonInclude, JsonPropertyName("start_time_in_millis")]
65+
public long StartTimeInMillis { get; init; }
66+
}

0 commit comments

Comments
 (0)