Skip to content

Commit

Permalink
Regenerate client for 8.11
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Nov 10, 2023
1 parent be7cf87 commit 7507edb
Show file tree
Hide file tree
Showing 219 changed files with 14,494 additions and 2,300 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,21 @@ internal static class ApiUrlLookup
internal static ApiUrls NoNamespaceCount = new ApiUrls(new[] { "_count", "{index}/_count" });
internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[] { "{index}/_create/{id}" });
internal static ApiUrls NoNamespaceDeleteByQuery = new ApiUrls(new[] { "{index}/_delete_by_query" });
internal static ApiUrls NoNamespaceDeleteByQueryRethrottle = new ApiUrls(new[] { "_delete_by_query/{task_id}/_rethrottle" });
internal static ApiUrls NoNamespaceDelete = new ApiUrls(new[] { "{index}/_doc/{id}" });
internal static ApiUrls NoNamespaceDeleteScript = new ApiUrls(new[] { "_scripts/{id}" });
internal static ApiUrls EnrichDeletePolicy = new ApiUrls(new[] { "_enrich/policy/{name}" });
internal static ApiUrls EnrichStats = new ApiUrls(new[] { "_enrich/_stats" });
internal static ApiUrls EnrichExecutePolicy = new ApiUrls(new[] { "_enrich/policy/{name}/_execute" });
internal static ApiUrls EnrichGetPolicy = new ApiUrls(new[] { "_enrich/policy/{name}", "_enrich/policy" });
internal static ApiUrls EnrichPutPolicy = new ApiUrls(new[] { "_enrich/policy/{name}" });
internal static ApiUrls EqlDelete = new ApiUrls(new[] { "_eql/search/{id}" });
internal static ApiUrls EqlGet = new ApiUrls(new[] { "_eql/search/{id}" });
internal static ApiUrls EqlSearch = new ApiUrls(new[] { "{index}/_eql/search" });
internal static ApiUrls EqlGetStatus = new ApiUrls(new[] { "_eql/search/status/{id}" });
internal static ApiUrls NoNamespaceExists = new ApiUrls(new[] { "{index}/_doc/{id}" });
internal static ApiUrls NoNamespaceExistsSource = new ApiUrls(new[] { "{index}/_source/{id}" });
internal static ApiUrls NoNamespaceExplain = new ApiUrls(new[] { "{index}/_explain/{id}" });
internal static ApiUrls NoNamespaceFieldCaps = new ApiUrls(new[] { "_field_caps", "{index}/_field_caps" });
internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "{index}/_doc/{id}" });
internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[] { "_scripts/{id}" });
Expand All @@ -58,19 +64,18 @@ internal static class ApiUrlLookup
internal static ApiUrls IndexManagementDeleteDataStream = new ApiUrls(new[] { "_data_stream/{name}" });
internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "{index}" });
internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
internal static ApiUrls IndexManagementDeleteTemplate = new ApiUrls(new[] { "_template/{name}" });
internal static ApiUrls IndexManagementExistsAlias = new ApiUrls(new[] { "_alias/{name}", "{index}/_alias/{name}" });
internal static ApiUrls IndexManagementExistsIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
internal static ApiUrls IndexManagementExists = new ApiUrls(new[] { "{index}" });
internal static ApiUrls IndexManagementExistsTemplate = new ApiUrls(new[] { "_template/{name}" });
internal static ApiUrls IndexManagementExplainDataLifecycle = new ApiUrls(new[] { "{index}/_lifecycle/explain" });
internal static ApiUrls IndexManagementFlush = new ApiUrls(new[] { "_flush", "{index}/_flush" });
internal static ApiUrls IndexManagementForcemerge = new ApiUrls(new[] { "_forcemerge", "{index}/_forcemerge" });
internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "_alias", "_alias/{name}", "{index}/_alias/{name}", "{index}/_alias" });
internal static ApiUrls IndexManagementGetDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
internal static ApiUrls IndexManagementGetDataStream = new ApiUrls(new[] { "_data_stream", "_data_stream/{name}" });
internal static ApiUrls IndexManagementGet = new ApiUrls(new[] { "{index}" });
internal static ApiUrls IndexManagementGetIndexTemplate = new ApiUrls(new[] { "_index_template", "_index_template/{name}" });
internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "_mapping", "{index}/_mapping" });
internal static ApiUrls IndexManagementGetTemplate = new ApiUrls(new[] { "_template", "_template/{name}" });
internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" });
internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "_data_stream/_migrate/{name}" });
internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "{index}/_open" });
Expand All @@ -79,6 +84,7 @@ internal static class ApiUrlLookup
internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "{index}/_mapping" });
internal static ApiUrls IndexManagementPutTemplate = new ApiUrls(new[] { "_template/{name}" });
internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "_refresh", "{index}/_refresh" });
internal static ApiUrls IndexManagementRollover = new ApiUrls(new[] { "{alias}/_rollover", "{alias}/_rollover/{new_index}" });
internal static ApiUrls IndexManagementSimulateIndexTemplate = new ApiUrls(new[] { "_index_template/_simulate_index/{name}" });
internal static ApiUrls IndexManagementSimulateTemplate = new ApiUrls(new[] { "_index_template/_simulate", "_index_template/_simulate/{name}" });
Expand All @@ -99,12 +105,23 @@ internal static class ApiUrlLookup
internal static ApiUrls NoNamespacePing = new ApiUrls(new[] { "" });
internal static ApiUrls NoNamespacePutScript = new ApiUrls(new[] { "_scripts/{id}", "_scripts/{id}/{context}" });
internal static ApiUrls NoNamespaceRankEval = new ApiUrls(new[] { "_rank_eval", "{index}/_rank_eval" });
internal static ApiUrls NoNamespaceReindex = new ApiUrls(new[] { "_reindex" });
internal static ApiUrls NoNamespaceReindexRethrottle = new ApiUrls(new[] { "_reindex/{task_id}/_rethrottle" });
internal static ApiUrls NoNamespaceRenderSearchTemplate = new ApiUrls(new[] { "_render/template", "_render/template/{id}" });
internal static ApiUrls NoNamespaceScroll = new ApiUrls(new[] { "_search/scroll" });
internal static ApiUrls NoNamespaceSearch = new ApiUrls(new[] { "_search", "{index}/_search" });
internal static ApiUrls NoNamespaceSearchTemplate = new ApiUrls(new[] { "_search/template", "{index}/_search/template" });
internal static ApiUrls SqlClearCursor = new ApiUrls(new[] { "_sql/close" });
internal static ApiUrls SqlDeleteAsync = new ApiUrls(new[] { "_sql/async/delete/{id}" });
internal static ApiUrls SqlGetAsync = new ApiUrls(new[] { "_sql/async/{id}" });
internal static ApiUrls SqlGetAsyncStatus = new ApiUrls(new[] { "_sql/async/status/{id}" });
internal static ApiUrls SqlQuery = new ApiUrls(new[] { "_sql" });
internal static ApiUrls TasksCancel = new ApiUrls(new[] { "_tasks/_cancel", "_tasks/{task_id}/_cancel" });
internal static ApiUrls TasksGet = new ApiUrls(new[] { "_tasks/{task_id}" });
internal static ApiUrls TasksList = new ApiUrls(new[] { "_tasks" });
internal static ApiUrls NoNamespaceTermsEnum = new ApiUrls(new[] { "{index}/_terms_enum" });
internal static ApiUrls NoNamespaceTermvectors = new ApiUrls(new[] { "{index}/_termvectors/{id}", "{index}/_termvectors" });
internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "{index}/_update_by_query" });
internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[] { "_update_by_query/{task_id}/_rethrottle" });
internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" });
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,53 +32,53 @@ namespace Elastic.Clients.Elasticsearch.Serverless;
public sealed class BulkRequestParameters : RequestParameters
{
/// <summary>
/// <para>The pipeline id to preprocess incoming documents with</para>
/// <para>ID of the pipeline to use to preprocess incoming documents.<br/>If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.<br/>If a final pipeline is configured it will always run, regardless of the value of this parameter.</para>
/// </summary>
public string? Pipeline { get => Q<string?>("pipeline"); set => Q("pipeline", value); }

/// <summary>
/// <para>If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.</para>
/// <para>If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes.<br/>Valid values: `true`, `false`, `wait_for`.</para>
/// </summary>
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q<Elastic.Clients.Elasticsearch.Serverless.Refresh?>("refresh"); set => Q("refresh", value); }

/// <summary>
/// <para>Specific routing value</para>
/// <para>Custom value used to route operations to a specific shard.</para>
/// </summary>
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q<Elastic.Clients.Elasticsearch.Serverless.Routing?>("routing"); set => Q("routing", value); }

/// <summary>
/// <para>True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request</para>
/// <para>`true` or `false` to return the `_source` field or not, or a list of fields to return.</para>
/// </summary>
public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q<Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam?>("_source"); set => Q("_source", value); }

/// <summary>
/// <para>Default list of fields to exclude from the returned _source field, can be overridden on each sub-request</para>
/// <para>A comma-separated list of source fields to exclude from the response.</para>
/// </summary>
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q<Elastic.Clients.Elasticsearch.Serverless.Fields?>("_source_excludes"); set => Q("_source_excludes", value); }

/// <summary>
/// <para>Default list of fields to extract and return from the _source field, can be overridden on each sub-request</para>
/// <para>A comma-separated list of source fields to include in the response.</para>
/// </summary>
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q<Elastic.Clients.Elasticsearch.Serverless.Fields?>("_source_includes"); set => Q("_source_includes", value); }

/// <summary>
/// <para>Explicit operation timeout</para>
/// <para>Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.</para>
/// </summary>
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("timeout"); set => Q("timeout", value); }

/// <summary>
/// <para>Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)</para>
/// <para>The number of shard copies that must be active before proceeding with the operation.<br/>Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).</para>
/// </summary>
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q<Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards?>("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }

/// <summary>
/// <para>Sets require_alias for all incoming documents. Defaults to unset (false)</para>
/// <para>If `true`, the request’s actions must target an index alias.</para>
/// </summary>
public bool? RequireAlias { get => Q<bool?>("require_alias"); set => Q("require_alias", value); }
}

/// <summary>
/// <para>Allows to perform multiple index/update/delete operations in a single request.</para>
/// <para>Performs multiple indexing or delete operations in a single API call.<br/>This reduces overhead and can greatly increase indexing speed.</para>
/// </summary>
public sealed partial class BulkRequest : PlainRequest<BulkRequestParameters>
{
Expand All @@ -99,62 +99,62 @@ public BulkRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) :
internal override string OperationName => "bulk";

/// <summary>
/// <para>The pipeline id to preprocess incoming documents with</para>
/// <para>ID of the pipeline to use to preprocess incoming documents.<br/>If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.<br/>If a final pipeline is configured it will always run, regardless of the value of this parameter.</para>
/// </summary>
[JsonIgnore]
public string? Pipeline { get => Q<string?>("pipeline"); set => Q("pipeline", value); }

/// <summary>
/// <para>If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes.</para>
/// <para>If `true`, Elasticsearch refreshes the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` do nothing with refreshes.<br/>Valid values: `true`, `false`, `wait_for`.</para>
/// </summary>
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q<Elastic.Clients.Elasticsearch.Serverless.Refresh?>("refresh"); set => Q("refresh", value); }

/// <summary>
/// <para>Specific routing value</para>
/// <para>Custom value used to route operations to a specific shard.</para>
/// </summary>
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q<Elastic.Clients.Elasticsearch.Serverless.Routing?>("routing"); set => Q("routing", value); }

/// <summary>
/// <para>True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request</para>
/// <para>`true` or `false` to return the `_source` field or not, or a list of fields to return.</para>
/// </summary>
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q<Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam?>("_source"); set => Q("_source", value); }

/// <summary>
/// <para>Default list of fields to exclude from the returned _source field, can be overridden on each sub-request</para>
/// <para>A comma-separated list of source fields to exclude from the response.</para>
/// </summary>
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q<Elastic.Clients.Elasticsearch.Serverless.Fields?>("_source_excludes"); set => Q("_source_excludes", value); }

/// <summary>
/// <para>Default list of fields to extract and return from the _source field, can be overridden on each sub-request</para>
/// <para>A comma-separated list of source fields to include in the response.</para>
/// </summary>
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q<Elastic.Clients.Elasticsearch.Serverless.Fields?>("_source_includes"); set => Q("_source_includes", value); }

/// <summary>
/// <para>Explicit operation timeout</para>
/// <para>Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards.</para>
/// </summary>
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("timeout"); set => Q("timeout", value); }

/// <summary>
/// <para>Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)</para>
/// <para>The number of shard copies that must be active before proceeding with the operation.<br/>Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).</para>
/// </summary>
[JsonIgnore]
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q<Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards?>("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }

/// <summary>
/// <para>Sets require_alias for all incoming documents. Defaults to unset (false)</para>
/// <para>If `true`, the request’s actions must target an index alias.</para>
/// </summary>
[JsonIgnore]
public bool? RequireAlias { get => Q<bool?>("require_alias"); set => Q("require_alias", value); }
}

/// <summary>
/// <para>Allows to perform multiple index/update/delete operations in a single request.</para>
/// <para>Performs multiple indexing or delete operations in a single API call.<br/>This reduces overhead and can greatly increase indexing speed.</para>
/// </summary>
public sealed partial class BulkRequestDescriptor<TDocument> : RequestDescriptor<BulkRequestDescriptor<TDocument>, BulkRequestParameters>
{
Expand Down Expand Up @@ -194,7 +194,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
}

/// <summary>
/// <para>Allows to perform multiple index/update/delete operations in a single request.</para>
/// <para>Performs multiple indexing or delete operations in a single API call.<br/>This reduces overhead and can greatly increase indexing speed.</para>
/// </summary>
public sealed partial class BulkRequestDescriptor : RequestDescriptor<BulkRequestDescriptor, BulkRequestParameters>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public sealed class ClearScrollRequestParameters : RequestParameters
}

/// <summary>
/// <para>Explicitly clears the search context for a scroll.</para>
/// <para>Clears the search context and results for a scrolling search.</para>
/// </summary>
public sealed partial class ClearScrollRequest : PlainRequest<ClearScrollRequestParameters>
{
Expand All @@ -46,12 +46,15 @@ public sealed partial class ClearScrollRequest : PlainRequest<ClearScrollRequest

internal override string OperationName => "clear_scroll";

/// <summary>
/// <para>Scroll IDs to clear.<br/>To clear all scroll IDs, use `_all`.</para>
/// </summary>
[JsonInclude, JsonPropertyName("scroll_id")]
public Elastic.Clients.Elasticsearch.Serverless.ScrollIds? ScrollId { get; set; }
}

/// <summary>
/// <para>Explicitly clears the search context for a scroll.</para>
/// <para>Clears the search context and results for a scrolling search.</para>
/// </summary>
public sealed partial class ClearScrollRequestDescriptor : RequestDescriptor<ClearScrollRequestDescriptor, ClearScrollRequestParameters>
{
Expand All @@ -71,6 +74,9 @@ public ClearScrollRequestDescriptor()

private Elastic.Clients.Elasticsearch.Serverless.ScrollIds? ScrollIdValue { get; set; }

/// <summary>
/// <para>Scroll IDs to clear.<br/>To clear all scroll IDs, use `_all`.</para>
/// </summary>
public ClearScrollRequestDescriptor ScrollId(Elastic.Clients.Elasticsearch.Serverless.ScrollIds? scrollId)
{
ScrollIdValue = scrollId;
Expand Down
Loading

0 comments on commit 7507edb

Please sign in to comment.