Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Cloud contract too #525

Closed
dg-nvm opened this issue Oct 28, 2022 · 5 comments · Fixed by #528
Closed

Support Cloud contract too #525

dg-nvm opened this issue Oct 28, 2022 · 5 comments · Fixed by #528
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dg-nvm
Copy link

dg-nvm commented Oct 28, 2022

Proposal:

Add cloud.json contract client so we can use all APIs

Current behavior:

Bucket Schemas api is not available

Desired behavior:

I can from influxdb_client import InfluxDBClientCloud as InfluxDBClient to activate all needed apis.

Alternatives considered:

pip install requests

Use case:

We are working in Vonage over feature that involves Explicit Bucket Schemas. We want to automate their management and we are using python influxdb client. Currently only oss.json contract is parsed and added so we have to use plain requests to maintain this and it's cumbersome.

@bednar
Copy link
Contributor

bednar commented Oct 31, 2022

Hi @dg-nvm,

thanks for using our client.

We don't want to add whole Cloud contract to the client, but the Bucket schemas API can be add separately. Is there any other API you need from Cloud contract?

Regards

@bednar bednar added the enhancement New feature or request label Oct 31, 2022
@bednar
Copy link
Contributor

bednar commented Nov 2, 2022

We have to clearly promote in docs which APIs are only supported by InfluxDB Cloud. For more info see #527 (comment)

@dg-nvm
Copy link
Author

dg-nvm commented Nov 2, 2022

@bednar for this moment I don't recognize other APIs, to be fair I did know that there is a diff between versions (like the inability to get a health check from the cloud version) but I didn't know that SDKs are also different.

@bednar bednar self-assigned this Nov 3, 2022
@bednar bednar added this to the 1.35.0 milestone Nov 10, 2022
@bednar
Copy link
Contributor

bednar commented Nov 10, 2022

Hi @dg-nvm,

I have prepared a fixed version within #528. If you would like to use this fixed version before regular release, please install client via:

pip install git+https://github.com/influxdata/influxdb-client-python.git@master

The following example shows how to use Explicit schema API: https://github.com/influxdata/influxdb-client-python/blob/master/examples/bucket_schemas.py

Regards

@dg-nvm
Copy link
Author

dg-nvm commented Nov 10, 2022

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants