elastic / elasticsearch-serverless-python

Official Python client for Elasticsearch Serverless
Apache License 2.0
9 stars 4 forks source link

Remove APIs that do not exist on serverless #31

Closed pquentin closed 6 months ago

pquentin commented 6 months ago

The current code generator is only additive, which meant it never removed APIs that were marked as not available on serverless.

pquentin commented 6 months ago

The errors are not related to this pull request. Well, except from:

>       await async_client.cluster.health(wait_for_status="yellow")
E       AttributeError: 'ClusterClient' object has no attribute 'health'

but I would still like to fix it later.

pquentin commented 6 months ago

The codegen changes I'd made include logic for properly filtering endpoints for serverless. Is that not being run in all the correct places?

It's not specific to serverless. If we removed a namespace in stack, we would see the same issue. We can discuss more in the codegen PR.