-
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.
Regenerate client using the latest specification (#8324)
- Loading branch information
Showing
34 changed files
with
4,560 additions
and
38 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
155 changes: 155 additions & 0 deletions
155
...ic.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseRequest.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,155 @@ | ||
// 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.Ingest; | ||
|
||
public sealed partial class DeleteGeoipDatabaseRequestParameters : RequestParameters | ||
{ | ||
/// <summary> | ||
/// <para> | ||
/// Period to wait for a connection to the master node. | ||
/// If no response is received before the timeout expires, the request fails and returns an error. | ||
/// </para> | ||
/// </summary> | ||
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("master_timeout"); set => Q("master_timeout", value); } | ||
|
||
/// <summary> | ||
/// <para> | ||
/// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. | ||
/// </para> | ||
/// </summary> | ||
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("timeout"); set => Q("timeout", value); } | ||
} | ||
|
||
/// <summary> | ||
/// <para> | ||
/// Deletes a geoip database configuration. | ||
/// </para> | ||
/// </summary> | ||
public sealed partial class DeleteGeoipDatabaseRequest : PlainRequest<DeleteGeoipDatabaseRequestParameters> | ||
{ | ||
public DeleteGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Serverless.Ids id) : base(r => r.Required("id", id)) | ||
{ | ||
} | ||
|
||
internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteGeoipDatabase; | ||
|
||
protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; | ||
|
||
internal override bool SupportsBody => false; | ||
|
||
internal override string OperationName => "ingest.delete_geoip_database"; | ||
|
||
/// <summary> | ||
/// <para> | ||
/// Period to wait for a connection to the master node. | ||
/// If no response is received before the timeout expires, the request fails and returns an error. | ||
/// </para> | ||
/// </summary> | ||
[JsonIgnore] | ||
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("master_timeout"); set => Q("master_timeout", value); } | ||
|
||
/// <summary> | ||
/// <para> | ||
/// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. | ||
/// </para> | ||
/// </summary> | ||
[JsonIgnore] | ||
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q<Elastic.Clients.Elasticsearch.Serverless.Duration?>("timeout"); set => Q("timeout", value); } | ||
} | ||
|
||
/// <summary> | ||
/// <para> | ||
/// Deletes a geoip database configuration. | ||
/// </para> | ||
/// </summary> | ||
public sealed partial class DeleteGeoipDatabaseRequestDescriptor<TDocument> : RequestDescriptor<DeleteGeoipDatabaseRequestDescriptor<TDocument>, DeleteGeoipDatabaseRequestParameters> | ||
{ | ||
internal DeleteGeoipDatabaseRequestDescriptor(Action<DeleteGeoipDatabaseRequestDescriptor<TDocument>> configure) => configure.Invoke(this); | ||
|
||
public DeleteGeoipDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids id) : base(r => r.Required("id", id)) | ||
{ | ||
} | ||
|
||
internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteGeoipDatabase; | ||
|
||
protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; | ||
|
||
internal override bool SupportsBody => false; | ||
|
||
internal override string OperationName => "ingest.delete_geoip_database"; | ||
|
||
public DeleteGeoipDatabaseRequestDescriptor<TDocument> MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); | ||
public DeleteGeoipDatabaseRequestDescriptor<TDocument> Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); | ||
|
||
public DeleteGeoipDatabaseRequestDescriptor<TDocument> Id(Elastic.Clients.Elasticsearch.Serverless.Ids id) | ||
{ | ||
RouteValues.Required("id", id); | ||
return Self; | ||
} | ||
|
||
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) | ||
{ | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// <para> | ||
/// Deletes a geoip database configuration. | ||
/// </para> | ||
/// </summary> | ||
public sealed partial class DeleteGeoipDatabaseRequestDescriptor : RequestDescriptor<DeleteGeoipDatabaseRequestDescriptor, DeleteGeoipDatabaseRequestParameters> | ||
{ | ||
internal DeleteGeoipDatabaseRequestDescriptor(Action<DeleteGeoipDatabaseRequestDescriptor> configure) => configure.Invoke(this); | ||
|
||
public DeleteGeoipDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids id) : base(r => r.Required("id", id)) | ||
{ | ||
} | ||
|
||
internal override ApiUrls ApiUrls => ApiUrlLookup.IngestDeleteGeoipDatabase; | ||
|
||
protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; | ||
|
||
internal override bool SupportsBody => false; | ||
|
||
internal override string OperationName => "ingest.delete_geoip_database"; | ||
|
||
public DeleteGeoipDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); | ||
public DeleteGeoipDatabaseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); | ||
|
||
public DeleteGeoipDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Ids id) | ||
{ | ||
RouteValues.Required("id", id); | ||
return Self; | ||
} | ||
|
||
protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) | ||
{ | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...c.Clients.Elasticsearch.Serverless/_Generated/Api/Ingest/DeleteGeoipDatabaseResponse.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,38 @@ | ||
// 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.Ingest; | ||
|
||
public sealed partial class DeleteGeoipDatabaseResponse : 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; } | ||
} |
Oops, something went wrong.