Skip to content

Commit

Permalink
Regenerate client using the latest specification
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Aug 30, 2024
1 parent 634f9f4 commit 6b7d546
Show file tree
Hide file tree
Showing 34 changed files with 4,560 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ internal static class ApiUrlLookup
internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" });
internal static ApiUrls IndexManagementUpdateAliases = new ApiUrls(new[] { "_aliases" });
internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "_validate/query", "{index}/_validate/query" });
internal static ApiUrls IngestDeleteGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" });
internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "_ingest/geoip/stats" });
internal static ApiUrls IngestGetGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database", "_ingest/geoip/database/{id}" });
internal static ApiUrls IngestGetPipeline = new ApiUrls(new[] { "_ingest/pipeline", "_ingest/pipeline/{id}" });
internal static ApiUrls IngestProcessorGrok = new ApiUrls(new[] { "_ingest/processor/grok" });
internal static ApiUrls IngestPutGeoipDatabase = new ApiUrls(new[] { "_ingest/geoip/database/{id}" });
internal static ApiUrls IngestPutPipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
internal static ApiUrls IngestSimulate = new ApiUrls(new[] { "_ingest/pipeline/_simulate", "_ingest/pipeline/{id}/_simulate" });
internal static ApiUrls LicenseManagementGet = new ApiUrls(new[] { "_license" });
Expand Down
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)
{
}
}
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; }
}
Loading

0 comments on commit 6b7d546

Please sign in to comment.