-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Florian Bernd <[email protected]>
- Loading branch information
1 parent
2015660
commit a51e869
Showing
92 changed files
with
9,221 additions
and
1,307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
...Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleRequest.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...lastic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRuleResponse.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} |
82 changes: 82 additions & 0 deletions
82
...stic.Clients.Elasticsearch.Serverless/_Generated/Api/QueryRules/DeleteRulesetRequest.g.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
{ | ||
} | ||
} |
Oops, something went wrong.