diff --git a/src/Elastic.Clients.Elasticsearch/Core/Response/ExistsResponseBase.cs b/src/Elastic.Clients.Elasticsearch/Core/Response/ExistsResponseBase.cs deleted file mode 100644 index b4cf0b07d5a..00000000000 --- a/src/Elastic.Clients.Elasticsearch/Core/Response/ExistsResponseBase.cs +++ /dev/null @@ -1,12 +0,0 @@ -// 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. - -using Elastic.Transport.Products.Elasticsearch; - -namespace Elastic.Clients.Elasticsearch; - -public abstract class ExistsResponseBase : ElasticsearchResponseBase -{ - public bool Exists => ApiCall is {Success: true, HttpStatusCode: 200}; -} diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsResponse.g.cs index 4a225c513af..2a372281f7e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsResponse.g.cs @@ -23,6 +23,7 @@ #nullable restore namespace Elastic.Clients.Elasticsearch; -public sealed partial class ExistsResponse : ExistsResponseBase +public sealed partial class ExistsResponse : ElasticsearchResponseBase { + public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceResponse.g.cs index 519141924f0..bc7063736d6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceResponse.g.cs @@ -23,6 +23,7 @@ #nullable restore namespace Elastic.Clients.Elasticsearch; -public sealed partial class ExistsSourceResponse : ExistsResponseBase +public sealed partial class ExistsSourceResponse : ElasticsearchResponseBase { + public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasResponse.g.cs index f2990e99835..fdc71cbda05 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasResponse.g.cs @@ -23,6 +23,7 @@ #nullable restore namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class ExistsAliasResponse : ExistsResponseBase +public sealed partial class ExistsAliasResponse : ElasticsearchResponseBase { + public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateResponse.g.cs index ef5d221eb94..5749cc82306 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateResponse.g.cs @@ -23,6 +23,7 @@ #nullable restore namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class ExistsIndexTemplateResponse : ExistsResponseBase +public sealed partial class ExistsIndexTemplateResponse : ElasticsearchResponseBase { + public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsResponse.g.cs index 2dc67577d24..a3f73cc0bd3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsResponse.g.cs @@ -23,6 +23,7 @@ #nullable restore namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class ExistsResponse : ExistsResponseBase +public sealed partial class ExistsResponse : ElasticsearchResponseBase { + public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 }; } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateResponse.g.cs index e42c78a682a..ad01e79bbad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateResponse.g.cs @@ -23,6 +23,7 @@ #nullable restore namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class ExistsTemplateResponse : ExistsResponseBase +public sealed partial class ExistsTemplateResponse : ElasticsearchResponseBase { + public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 }; } \ No newline at end of file