cloud icon indicating copy to clipboard operation
cloud copied to clipboard

Use discovery for ML API client instead of static file

Open cymarechal-devoteam opened this issue 3 years ago • 0 comments

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:

cymarechal-devoteam avatar Jan 11 '22 10:01 cymarechal-devoteam