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

vertex-ai: add :UPLOAD support for model resource #12075

Open
wants to merge 14 commits into
base: vertex-ai-model-resource
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
obj["displayName"] = obj["modelName"]
delete(obj, "modelName")
delete(obj, "sourceModel")
return obj, nil
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This update_encoder is necessary due to source_model being included in PATCH. The API Reference doesn't include any mention of source_model for patching existing models (such as for updating the description for a copied model)

Reference: https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.models/patch

Loading