@@ -115,6 +115,8 @@ class DataScienceModel(Builder):
115
115
Model version set ID
116
116
version_label: str
117
117
Model version label
118
+ version_id: str
119
+ Model version id
118
120
model_file_description: dict
119
121
Contains object path details for models created by reference.
120
122
@@ -169,6 +171,8 @@ class DataScienceModel(Builder):
169
171
Sets the model version set ID.
170
172
with_version_label(self, version_label: str):
171
173
Sets the model version label.
174
+ with_version_id(self, version_id: str):
175
+ Sets the model version id.
172
176
with_model_file_description: dict
173
177
Sets path details for models created by reference. Input can be either a dict, string or json file and
174
178
the schema is dictated by model_file_description_schema.json
@@ -209,6 +213,7 @@ class DataScienceModel(Builder):
209
213
CONST_MODEL_VERSION_SET_ID = "modelVersionSetId"
210
214
CONST_MODEL_VERSION_SET_NAME = "modelVersionSetName"
211
215
CONST_MODEL_VERSION_LABEL = "versionLabel"
216
+ CONST_MODEL_VERSION_ID = "versionId"
212
217
CONST_TIME_CREATED = "timeCreated"
213
218
CONST_LIFECYCLE_STATE = "lifecycleState"
214
219
CONST_MODEL_FILE_DESCRIPTION = "modelDescription"
@@ -230,6 +235,7 @@ class DataScienceModel(Builder):
230
235
CONST_MODEL_VERSION_SET_ID : "model_version_set_id" ,
231
236
CONST_MODEL_VERSION_SET_NAME : "model_version_set_name" ,
232
237
CONST_MODEL_VERSION_LABEL : "version_label" ,
238
+ CONST_MODEL_VERSION_ID : "version_id" ,
233
239
CONST_TIME_CREATED : "time_created" ,
234
240
CONST_LIFECYCLE_STATE : "lifecycle_state" ,
235
241
CONST_MODEL_FILE_DESCRIPTION : "model_file_description" ,
@@ -612,6 +618,20 @@ def with_version_label(self, version_label: str):
612
618
"""
613
619
return self .set_spec (self .CONST_MODEL_VERSION_LABEL , version_label )
614
620
621
+ @property
622
+ def version_id (self ) -> str :
623
+ return self .get_spec (self .CONST_MODEL_VERSION_ID )
624
+
625
+ def with_version_id (self , version_id : str ):
626
+ """Sets the model version id.
627
+
628
+ Parameters
629
+ ----------
630
+ version_id: str
631
+ The model version id.
632
+ """
633
+ return self .set_spec (self .CONST_MODEL_VERSION_ID , version_id )
634
+
615
635
@property
616
636
def model_file_description (self ) -> dict :
617
637
return self .get_spec (self .CONST_MODEL_FILE_DESCRIPTION )
0 commit comments