@@ -2240,10 +2240,16 @@ def create_custom_metadata_artifact(
2240
2240
Parameters
2241
2241
----------
2242
2242
metadata_key_name: str
2243
- The name of the model metadatum in the metadata.
2243
+ The name of the model custom metadata key
2244
+
2245
+ artifact_path_or_content: str
2246
+ The model custom metadata artifact path to be upload. It can also be the actual content of the custom metadata
2247
+
2248
+ path_type: str
2249
+ Can be either of utils.MetadataArtifactPathType.LOCAL , utils.MetadataArtifactPathType.OSS , utils.MetadataArtifactPathType.CONTENT
2250
+ Specifies what type of path is to be provided for metadata artifact.
2251
+ Can be either local , oss or the actual content itself
2244
2252
2245
- artifact_path: str
2246
- The model custom metadata artifact local file path to be upload.
2247
2253
Returns
2248
2254
-------
2249
2255
Dict
@@ -2278,10 +2284,16 @@ def create_defined_metadata_artifact(
2278
2284
Parameters
2279
2285
----------
2280
2286
metadata_key_name: str
2281
- The name of the model metadatum in the metadata.
2287
+ The name of the model defined metadata key
2288
+
2289
+ artifact_path_or_content: str
2290
+ The model defined metadata artifact path to be upload. It can also be the actual content of the defined metadata
2291
+
2292
+ path_type: str
2293
+ Can be either of utils.MetadataArtifactPathType.LOCAL , utils.MetadataArtifactPathType.OSS , utils.MetadataArtifactPathType.CONTENT
2294
+ Specifies what type of path is to be provided for metadata artifact.
2295
+ Can be either local , oss or the actual content itself
2282
2296
2283
- artifact_path: str
2284
- The model defined metadata artifact local file path to be upload.
2285
2297
Returns
2286
2298
-------
2287
2299
The model defined metadata artifact creation info.
@@ -2315,10 +2327,16 @@ def update_custom_metadata_artifact(
2315
2327
Parameters
2316
2328
----------
2317
2329
metadata_key_name: str
2318
- The name of the model metadatum in the metadata.
2330
+ The name of the model custom metadata key
2331
+
2332
+ artifact_path_or_content: str
2333
+ The model custom metadata artifact path. It can also be the actual content of the custom metadata
2334
+
2335
+ path_type: str
2336
+ Can be either of utils.MetadataArtifactPathType.LOCAL , utils.MetadataArtifactPathType.OSS , utils.MetadataArtifactPathType.CONTENT
2337
+ Specifies what type of path is to be provided for metadata artifact.
2338
+ Can be either local , oss or the actual content itself
2319
2339
2320
- artifact_path: str
2321
- The model custom metadata artifact local file path to be upload.
2322
2340
Returns
2323
2341
-------
2324
2342
Dict
@@ -2353,10 +2371,16 @@ def update_defined_metadata_artifact(
2353
2371
Parameters
2354
2372
----------
2355
2373
metadata_key_name: str
2356
- The name of the model metadatum in the metadata.
2374
+ The name of the model defined metadata key
2375
+
2376
+ artifact_path_or_content: str
2377
+ The model defined metadata artifact path. It can also be the actual content of the defined metadata
2378
+
2379
+ path_type: str
2380
+ Can be either of utils.MetadataArtifactPathType.LOCAL , utils.MetadataArtifactPathType.OSS , utils.MetadataArtifactPathType.CONTENT
2381
+ Specifies what type of path is to be provided for metadata artifact.
2382
+ Can be either local , oss or the actual content itself
2357
2383
2358
- artifact_path: str
2359
- The model defined metadata artifact local file path to be upload.
2360
2384
Returns
2361
2385
-------
2362
2386
Dict
@@ -2388,9 +2412,11 @@ def get_custom_metadata_artifact(
2388
2412
Parameters
2389
2413
----------
2390
2414
metadata_key_name: str
2391
- The name of the model metadatum in the metadata.
2415
+ The name of the custom metadata key of the model
2416
+
2392
2417
target_dir: str
2393
- The local file path where downloaded model custom metadata artifact saved.
2418
+ The local file path where downloaded model custom metadata artifact will be saved.
2419
+
2394
2420
override: bool
2395
2421
A boolean flag that controls downloaded metadata artifact file overwriting
2396
2422
- If True, overwrites the file if it already exists.
@@ -2422,8 +2448,10 @@ def get_defined_metadata_artifact(
2422
2448
----------
2423
2449
metadata_key_name: str
2424
2450
The name of the model metadatum in the metadata.
2451
+
2425
2452
target_dir: str
2426
- The local file path where downloaded model defined metadata artifact saved.
2453
+ The local file path where downloaded model defined metadata artifact will be saved.
2454
+
2427
2455
override: bool
2428
2456
A boolean flag that controls downloaded metadata artifact file overwriting
2429
2457
- If True, overwrites the file if it already exists.
0 commit comments