Skip to content

Commit

Permalink
Regenerate client using the latest specification (#8319)
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd authored Aug 28, 2024
1 parent 01f8364 commit 634f9f4
Show file tree
Hide file tree
Showing 97 changed files with 6,017 additions and 1,185 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ internal static class ApiUrlLookup
internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "_validate/query", "{index}/_validate/query" });
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 IngestPutPipeline = new ApiUrls(new[] { "_ingest/pipeline/{id}" });
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
// 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 GetGeoipDatabaseRequestParameters : 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>
/// Returns information about one or more geoip database configurations.
/// </para>
/// </summary>
public sealed partial class GetGeoipDatabaseRequest : PlainRequest<GetGeoipDatabaseRequestParameters>
{
public GetGeoipDatabaseRequest()
{
}

public GetGeoipDatabaseRequest(Elastic.Clients.Elasticsearch.Serverless.Ids? id) : base(r => r.Optional("id", id))
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetGeoipDatabase;

protected override HttpMethod StaticHttpMethod => HttpMethod.GET;

internal override bool SupportsBody => false;

internal override string OperationName => "ingest.get_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>
/// Returns information about one or more geoip database configurations.
/// </para>
/// </summary>
public sealed partial class GetGeoipDatabaseRequestDescriptor<TDocument> : RequestDescriptor<GetGeoipDatabaseRequestDescriptor<TDocument>, GetGeoipDatabaseRequestParameters>
{
internal GetGeoipDatabaseRequestDescriptor(Action<GetGeoipDatabaseRequestDescriptor<TDocument>> configure) => configure.Invoke(this);

public GetGeoipDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? id) : base(r => r.Optional("id", id))
{
}

public GetGeoipDatabaseRequestDescriptor()
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetGeoipDatabase;

protected override HttpMethod StaticHttpMethod => HttpMethod.GET;

internal override bool SupportsBody => false;

internal override string OperationName => "ingest.get_geoip_database";

public GetGeoipDatabaseRequestDescriptor<TDocument> MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout);

public GetGeoipDatabaseRequestDescriptor<TDocument> Id(Elastic.Clients.Elasticsearch.Serverless.Ids? id)
{
RouteValues.Optional("id", id);
return Self;
}

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

/// <summary>
/// <para>
/// Returns information about one or more geoip database configurations.
/// </para>
/// </summary>
public sealed partial class GetGeoipDatabaseRequestDescriptor : RequestDescriptor<GetGeoipDatabaseRequestDescriptor, GetGeoipDatabaseRequestParameters>
{
internal GetGeoipDatabaseRequestDescriptor(Action<GetGeoipDatabaseRequestDescriptor> configure) => configure.Invoke(this);

public GetGeoipDatabaseRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Ids? id) : base(r => r.Optional("id", id))
{
}

public GetGeoipDatabaseRequestDescriptor()
{
}

internal override ApiUrls ApiUrls => ApiUrlLookup.IngestGetGeoipDatabase;

protected override HttpMethod StaticHttpMethod => HttpMethod.GET;

internal override bool SupportsBody => false;

internal override string OperationName => "ingest.get_geoip_database";

public GetGeoipDatabaseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout);

public GetGeoipDatabaseRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Ids? id)
{
RouteValues.Optional("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,33 @@
// 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 GetGeoipDatabaseResponse : ElasticsearchResponse
{
[JsonInclude, JsonPropertyName("databases")]
public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Serverless.Ingest.DatabaseConfigurationMetadata> Databases { get; init; }
}
Loading

0 comments on commit 634f9f4

Please sign in to comment.