11
2- === deply a model
2+ >>> export MODEL_NAME=original-name-[UNIQUE_NAME]
3+
4+ >>> export MODEL_DESCRIPTION=original-description-[UNIQUE_NAME]
5+
6+ === create a model
37>>> [CLI] bundle plan
48create models.my_model
59
@@ -11,11 +15,10 @@ Deploying resources...
1115Updating deployment state...
1216Deployment complete!
1317
14- === GET Model
15- >>> [CLI] model-registry get-model my-model-[UNIQUE_NAME]
18+ >>> [CLI] model-registry get-model original-name-[UNIQUE_NAME]
1619{
17- "name": "my-model -[UNIQUE_NAME]",
18- "description": "original description",
20+ "name": "original-name -[UNIQUE_NAME]",
21+ "description": "original- description-[UNIQUE_NAME] ",
1922 "tags": [
2023 {
2124 "key": "key1",
@@ -24,7 +27,9 @@ Deployment complete!
2427 ]
2528}
2629
27- === add a new tag, this should be a no-op
30+ >>> export MODEL_DESCRIPTION=new-description-[UNIQUE_NAME]
31+
32+ === update the description, this should update the description remotely as well
2833>>> [CLI] bundle plan
2934update models.my_model
3035
@@ -36,11 +41,36 @@ Deploying resources...
3641Updating deployment state...
3742Deployment complete!
3843
39- === GET Model
40- >>> [CLI] model-registry get-model my-model-[UNIQUE_NAME]
44+ >>> [CLI] model-registry get-model original-name-[UNIQUE_NAME]
45+ {
46+ "name": "original-name-[UNIQUE_NAME]",
47+ "description": "new-description-[UNIQUE_NAME]",
48+ "tags": [
49+ {
50+ "key": "key1",
51+ "value": "value1"
52+ }
53+ ]
54+ }
55+
56+ >>> export MODEL_NAME=new-name-[UNIQUE_NAME]
57+
58+ === update the name, this should recreate the model with the new name
59+ >>> [CLI] bundle plan
60+ recreate models.my_model
61+
62+ Plan: 1 to add, 0 to change, 1 to delete, 0 unchanged
63+
64+ >>> [CLI] bundle deploy
65+ Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-models-basic-[UNIQUE_NAME]/default/files...
66+ Deploying resources...
67+ Updating deployment state...
68+ Deployment complete!
69+
70+ >>> [CLI] model-registry get-model new-name-[UNIQUE_NAME]
4171{
42- "name": "my-model -[UNIQUE_NAME]",
43- "description": "original description",
72+ "name": "new-name -[UNIQUE_NAME]",
73+ "description": "new- description-[UNIQUE_NAME] ",
4474 "tags": [
4575 {
4676 "key": "key1",
@@ -49,7 +79,7 @@ Deployment complete!
4979 ]
5080}
5181
52- === update the description , this should update the description
82+ === add a new tag , this should be a no-op
5383>>> [CLI] bundle plan
5484update models.my_model
5585
@@ -61,11 +91,10 @@ Deploying resources...
6191Updating deployment state...
6292Deployment complete!
6393
64- === GET Model
65- >>> [CLI] model-registry get-model my-model-[UNIQUE_NAME]
94+ >>> [CLI] model-registry get-model new-name-[UNIQUE_NAME]
6695{
67- "name": "my-model -[UNIQUE_NAME]",
68- "description": "new description",
96+ "name": "new-name -[UNIQUE_NAME]",
97+ "description": "new- description-[UNIQUE_NAME] ",
6998 "tags": [
7099 {
71100 "key": "key1",
0 commit comments