Skip to content

Commit ca15415

Browse files
Remove ExistsResponseBase (#6895) (#6901)
Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
1 parent 72ee75b commit ca15415

File tree

7 files changed

+12
-18
lines changed

7 files changed

+12
-18
lines changed

src/Elastic.Clients.Elasticsearch/Core/Response/ExistsResponseBase.cs

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsResponse.g.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#nullable restore
2525
namespace Elastic.Clients.Elasticsearch;
26-
public sealed partial class ExistsResponse : ExistsResponseBase
26+
public sealed partial class ExistsResponse : ElasticsearchResponseBase
2727
{
28+
public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 };
2829
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceResponse.g.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#nullable restore
2525
namespace Elastic.Clients.Elasticsearch;
26-
public sealed partial class ExistsSourceResponse : ExistsResponseBase
26+
public sealed partial class ExistsSourceResponse : ElasticsearchResponseBase
2727
{
28+
public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 };
2829
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasResponse.g.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#nullable restore
2525
namespace Elastic.Clients.Elasticsearch.IndexManagement;
26-
public sealed partial class ExistsAliasResponse : ExistsResponseBase
26+
public sealed partial class ExistsAliasResponse : ElasticsearchResponseBase
2727
{
28+
public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 };
2829
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsIndexTemplateResponse.g.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#nullable restore
2525
namespace Elastic.Clients.Elasticsearch.IndexManagement;
26-
public sealed partial class ExistsIndexTemplateResponse : ExistsResponseBase
26+
public sealed partial class ExistsIndexTemplateResponse : ElasticsearchResponseBase
2727
{
28+
public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 };
2829
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsResponse.g.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#nullable restore
2525
namespace Elastic.Clients.Elasticsearch.IndexManagement;
26-
public sealed partial class ExistsResponse : ExistsResponseBase
26+
public sealed partial class ExistsResponse : ElasticsearchResponseBase
2727
{
28+
public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 };
2829
}

src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsTemplateResponse.g.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#nullable restore
2525
namespace Elastic.Clients.Elasticsearch.IndexManagement;
26-
public sealed partial class ExistsTemplateResponse : ExistsResponseBase
26+
public sealed partial class ExistsTemplateResponse : ElasticsearchResponseBase
2727
{
28+
public bool Exists => ApiCall is { Success: true, HttpStatusCode: 200 };
2829
}

0 commit comments

Comments
 (0)