-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
BBBmau
wants to merge
14
commits into
vertex-ai-model-resource
Choose a base branch
from
vertex-ai-model-UPLOAD
base: vertex-ai-model-resource
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
8904529
support :COPY method
BBBmau 56505c3
refine models copy
BBBmau 7443668
update tmpl to go.tmpl
BBBmau f16163d
basic UPLOAD test works
BBBmau fa16d1b
Merge branch 'vertex-ai-model-resource' into vertex-ai-model-UPLOAD
BBBmau 2fd47f0
remove commented portion since this was only in-place for subPRs
BBBmau 65315b4
address PR changes
BBBmau 5cbf3b9
address PR changes 2
BBBmau 46696d8
address PR changes 3
BBBmau df82514
address PR changes 4
BBBmau 6eedf63
passing upload test without description
BBBmau 9f04d1c
add description and future fields support for UPLOAD method
BBBmau f20f07e
fix up some tests for both copy and upload to pass with modelName
BBBmau 8d7d880
add update_encoder
BBBmau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
mmv1/templates/terraform/update_encoder/vertex_ai_model.go.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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