Skip to content

Commit

Permalink
Generate untagged variants (#8249) (#8251)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Bernd <[email protected]>
  • Loading branch information
github-actions[bot] and flobernd authored Jul 1, 2024
1 parent 2015660 commit a51e869
Show file tree
Hide file tree
Showing 92 changed files with 9,221 additions and 1,307 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,13 @@ internal static class ApiUrlLookup
internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" });
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 QueryRulesDeleteRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
internal static ApiUrls QueryRulesDeleteRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
internal static ApiUrls QueryRulesGetRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
internal static ApiUrls QueryRulesGetRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
internal static ApiUrls QueryRulesListRulesets = new ApiUrls(new[] { "_query_rules" });
internal static ApiUrls QueryRulesPutRule = new ApiUrls(new[] { "_query_rules/{ruleset_id}/_rule/{rule_id}" });
internal static ApiUrls QueryRulesPutRuleset = new ApiUrls(new[] { "_query_rules/{ruleset_id}" });
internal static ApiUrls SnapshotCleanupRepository = new ApiUrls(new[] { "_snapshot/{repository}/_cleanup" });
internal static ApiUrls SnapshotClone = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}" });
internal static ApiUrls SnapshotCreate = new ApiUrls(new[] { "_snapshot/{repository}/{snapshot}" });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public sealed partial class DeleteIndexTemplateRequestParameters : RequestParame
}

/// <summary>
/// <para>The provided <index-template> may contain multiple template names separated by a comma. If multiple template<br/>names are specified then there is no wildcard support and the provided names should match completely with<br/>existing templates.</para>
/// <para>Delete an index template.<br/>The provided <index-template> may contain multiple template names separated by a comma. If multiple template<br/>names are specified then there is no wildcard support and the provided names should match completely with<br/>existing templates.</para>
/// </summary>
public sealed partial class DeleteIndexTemplateRequest : PlainRequest<DeleteIndexTemplateRequestParameters>
{
Expand Down Expand Up @@ -73,7 +73,7 @@ public DeleteIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Names
}

/// <summary>
/// <para>The provided <index-template> may contain multiple template names separated by a comma. If multiple template<br/>names are specified then there is no wildcard support and the provided names should match completely with<br/>existing templates.</para>
/// <para>Delete an index template.<br/>The provided <index-template> may contain multiple template names separated by a comma. If multiple template<br/>names are specified then there is no wildcard support and the provided names should match completely with<br/>existing templates.</para>
/// </summary>
public sealed partial class DeleteIndexTemplateRequestDescriptor : RequestDescriptor<DeleteIndexTemplateRequestDescriptor, DeleteIndexTemplateRequestParameters>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public sealed partial class GetIndexTemplateRequestParameters : RequestParameter
}

/// <summary>
/// <para>Returns information about one or more index templates.</para>
/// <para>Get index templates.<br/>Returns information about one or more index templates.</para>
/// </summary>
public sealed partial class GetIndexTemplateRequest : PlainRequest<GetIndexTemplateRequestParameters>
{
Expand Down Expand Up @@ -99,7 +99,7 @@ public GetIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name? na
}

/// <summary>
/// <para>Returns information about one or more index templates.</para>
/// <para>Get index templates.<br/>Returns information about one or more index templates.</para>
/// </summary>
public sealed partial class GetIndexTemplateRequestDescriptor : RequestDescriptor<GetIndexTemplateRequestDescriptor, GetIndexTemplateRequestParameters>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public sealed partial class PutIndexTemplateRequestParameters : RequestParameter
}

/// <summary>
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// </summary>
public sealed partial class PutIndexTemplateRequest : PlainRequest<PutIndexTemplateRequestParameters>
{
Expand Down Expand Up @@ -144,7 +144,7 @@ public PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name nam
}

/// <summary>
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// </summary>
public sealed partial class PutIndexTemplateRequestDescriptor<TDocument> : RequestDescriptor<PutIndexTemplateRequestDescriptor<TDocument>, PutIndexTemplateRequestParameters>
{
Expand Down Expand Up @@ -401,7 +401,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
}

/// <summary>
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// </summary>
public sealed partial class PutIndexTemplateRequestDescriptor : RequestDescriptor<PutIndexTemplateRequestDescriptor, PutIndexTemplateRequestParameters>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public sealed partial class PutTemplateRequestParameters : RequestParameters
}

/// <summary>
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// </summary>
public sealed partial class PutTemplateRequest : PlainRequest<PutTemplateRequestParameters>
{
Expand Down Expand Up @@ -116,7 +116,7 @@ public PutTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) :
}

/// <summary>
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// </summary>
public sealed partial class PutTemplateRequestDescriptor<TDocument> : RequestDescriptor<PutTemplateRequestDescriptor<TDocument>, PutTemplateRequestParameters>
{
Expand Down Expand Up @@ -310,7 +310,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
}

/// <summary>
/// <para>Creates or updates an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// <para>Create or update an index template.<br/>Index templates define settings, mappings, and aliases that can be applied automatically to new indices.</para>
/// </summary>
public sealed partial class PutTemplateRequestDescriptor : RequestDescriptor<PutTemplateRequestDescriptor, PutTemplateRequestParameters>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public sealed partial class SimulateIndexTemplateRequestParameters : RequestPara
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("master_timeout"); set => Q("master_timeout", value); }
}

/// <summary>
/// <para>Simulate an index.<br/>Returns the index configuration that would be applied to the specified index from an existing index template.</para>
/// </summary>
public sealed partial class SimulateIndexTemplateRequest : PlainRequest<SimulateIndexTemplateRequestParameters>
{
public SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name))
Expand Down Expand Up @@ -69,6 +72,9 @@ public SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Nam
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("master_timeout"); set => Q("master_timeout", value); }
}

/// <summary>
/// <para>Simulate an index.<br/>Returns the index configuration that would be applied to the specified index from an existing index template.</para>
/// </summary>
public sealed partial class SimulateIndexTemplateRequestDescriptor : RequestDescriptor<SimulateIndexTemplateRequestDescriptor, SimulateIndexTemplateRequestParameters>
{
internal SimulateIndexTemplateRequestDescriptor(Action<SimulateIndexTemplateRequestDescriptor> configure) => configure.Invoke(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public sealed partial class SimulateTemplateRequestParameters : RequestParameter
}

/// <summary>
/// <para>Returns the index configuration that would be applied by a particular index template.</para>
/// <para>Simulate an index template.<br/>Returns the index configuration that would be applied by a particular index template.</para>
/// </summary>
public sealed partial class SimulateTemplateRequest : PlainRequest<SimulateTemplateRequestParameters>
{
Expand Down Expand Up @@ -148,7 +148,7 @@ public SimulateTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name? na
}

/// <summary>
/// <para>Returns the index configuration that would be applied by a particular index template.</para>
/// <para>Simulate an index template.<br/>Returns the index configuration that would be applied by a particular index template.</para>
/// </summary>
public sealed partial class SimulateTemplateRequestDescriptor<TDocument> : RequestDescriptor<SimulateTemplateRequestDescriptor<TDocument>, SimulateTemplateRequestParameters>
{
Expand Down Expand Up @@ -409,7 +409,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o
}

/// <summary>
/// <para>Returns the index configuration that would be applied by a particular index template.</para>
/// <para>Simulate an index template.<br/>Returns the index configuration that would be applied by a particular index template.</para>
/// </summary>
public sealed partial class SimulateTemplateRequestDescriptor : RequestDescriptor<SimulateTemplateRequestDescriptor, SimulateTemplateRequestParameters>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Requests;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using Elastic.Transport;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;

public sealed partial class DeleteRuleRequestParameters : RequestParameters
{
}

/// <summary>
/// <para>Deletes a query rule within a query ruleset.</para>
/// </summary>
public sealed partial class DeleteRuleRequest : PlainRequest<DeleteRuleRequestParameters>
{
public DeleteRuleRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId))
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRule;

protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;

internal override bool SupportsBody => false;

internal override string OperationName => "query_rules.delete_rule";
}

/// <summary>
/// <para>Deletes a query rule within a query ruleset.</para>
/// </summary>
public sealed partial class DeleteRuleRequestDescriptor : RequestDescriptor<DeleteRuleRequestDescriptor, DeleteRuleRequestParameters>
{
internal DeleteRuleRequestDescriptor(Action<DeleteRuleRequestDescriptor> configure) => configure.Invoke(this);

public DeleteRuleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId, Elastic.Clients.Elasticsearch.Serverless.Id ruleId) : base(r => r.Required("ruleset_id", rulesetId).Required("rule_id", ruleId))
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRule;

protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;

internal override bool SupportsBody => false;

internal override string OperationName => "query_rules.delete_rule";

public DeleteRuleRequestDescriptor RuleId(Elastic.Clients.Elasticsearch.Serverless.Id ruleId)
{
RouteValues.Required("rule_id", ruleId);
return Self;
}

public DeleteRuleRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId)
{
RouteValues.Required("ruleset_id", rulesetId);
return Self;
}

protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

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;

namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;

public sealed partial class DeleteRuleResponse : ElasticsearchResponse
{
/// <summary>
/// <para>For a successful response, this value is always true. On failure, an exception is returned instead.</para>
/// </summary>
[JsonInclude, JsonPropertyName("acknowledged")]
public bool Acknowledged { get; init; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using Elastic.Clients.Elasticsearch.Serverless.Fluent;
using Elastic.Clients.Elasticsearch.Serverless.Requests;
using Elastic.Clients.Elasticsearch.Serverless.Serialization;
using Elastic.Transport;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text.Json;
using System.Text.Json.Serialization;

namespace Elastic.Clients.Elasticsearch.Serverless.QueryRules;

public sealed partial class DeleteRulesetRequestParameters : RequestParameters
{
}

/// <summary>
/// <para>Deletes a query ruleset.</para>
/// </summary>
public sealed partial class DeleteRulesetRequest : PlainRequest<DeleteRulesetRequestParameters>
{
public DeleteRulesetRequest(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId))
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRuleset;

protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;

internal override bool SupportsBody => false;

internal override string OperationName => "query_rules.delete_ruleset";
}

/// <summary>
/// <para>Deletes a query ruleset.</para>
/// </summary>
public sealed partial class DeleteRulesetRequestDescriptor : RequestDescriptor<DeleteRulesetRequestDescriptor, DeleteRulesetRequestParameters>
{
internal DeleteRulesetRequestDescriptor(Action<DeleteRulesetRequestDescriptor> configure) => configure.Invoke(this);

public DeleteRulesetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId) : base(r => r.Required("ruleset_id", rulesetId))
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.QueryRulesDeleteRuleset;

protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE;

internal override bool SupportsBody => false;

internal override string OperationName => "query_rules.delete_ruleset";

public DeleteRulesetRequestDescriptor RulesetId(Elastic.Clients.Elasticsearch.Serverless.Id rulesetId)
{
RouteValues.Required("ruleset_id", rulesetId);
return Self;
}

protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
{
}
}
Loading

0 comments on commit a51e869

Please sign in to comment.