Skip to content

Use discovery for ML API client instead of static file#381

Open
cymarechal-devoteam wants to merge 3 commits intotensorflow:masterfrom
cymarechal-devoteam:master
Open

Use discovery for ML API client instead of static file#381
cymarechal-devoteam wants to merge 3 commits intotensorflow:masterfrom
cymarechal-devoteam:master

Conversation

@cymarechal-devoteam
Copy link

@cymarechal-devoteam cymarechal-devoteam commented Jan 11, 2022

Using CloudTuner previously led to erroneous URLs in API calls, e.g.

https://us-central1-ml.googleapis.com/v1/projects/my-project/locations/europe-west4/studies?studyId=MyStudyID&alt=json

This was due to the static discovery file in src/python/tensorflow_cloud/tuner/api/ml_public_google_rest_v1.json which statically points to https://us-central1-ml.googleapis.com.

This modification aims to remove the static dependency to us-central1 and instead use the dynamic version of Discovery.

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant