mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
fix clean up (#2520)
* improve to make it more aligned with the template * fix:fix clean up section
This commit is contained in:
@@ -787,12 +787,12 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"if CLEAN_UP_ASSETS.value:\n",
|
||||
"if CLEAN_UP_ASSETS:\n",
|
||||
" for asset_name in asset_names:\n",
|
||||
" warehouse_client.delete_asset(visionai_v1.DeleteAssetRequest(name=asset_name))\n",
|
||||
" _logger.info(\"Deleted asset %s\", asset_name)\n",
|
||||
"\n",
|
||||
"if CLEAN_UP_INDEX.value:\n",
|
||||
"if CLEAN_UP_INDEX:\n",
|
||||
" undeploy_operation = warehouse_client.undeploy_index(\n",
|
||||
" visionai_v1.UndeployIndexRequest(index_endpoint=index_endpoint_name)\n",
|
||||
" )\n",
|
||||
@@ -810,7 +810,7 @@
|
||||
" )\n",
|
||||
" _logger.info(\"Deleted index endpoint %s\", index_endpoint_name)\n",
|
||||
"\n",
|
||||
"if CLEAN_UP_CORPUS.value:\n",
|
||||
"if CLEAN_UP_CORPUS:\n",
|
||||
" warehouse_client.delete_corpus(visionai_v1.DeleteCorpusRequest(name=corpus_name))\n",
|
||||
" _logger.info(\"Deleted corpus %s\", corpus_name)"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user