Skip to content

Commit

Permalink
fix: adapt to framework IMO
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentLvr committed Jun 14, 2024
1 parent d66cbc5 commit 3de7ed1
Showing 1 changed file with 39 additions and 38 deletions.
77 changes: 39 additions & 38 deletions Naas API/Naas_API_Asset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,24 @@
"id": "543b22e8",
"metadata": {},
"source": [
"**Description:** This notebook demonstrates how to Naas API Asset to share objects from Naas API Storage. *An \"Asset\" is a shearable link of an object (or file) in your storage."
"**Description:** This notebook demonstrates how to use Naas API Asset to share objects from Naas API Storage. An \"Asset\" is a shearable link of an object (or file) in your storage.\n",
"\n",
"You will learn the following commands:\n",
"* [Create](#create)\n",
"* [Get](#get)\n",
"* [Get Asset Object](#getassetobject)\n",
"* [Update Asset](#updateasset)\n",
"* [Delete Asset](#deleteasset)\n",
"\n",
"*Required: A storage with at least one object inside. Please see \"Naas API - Storage\" for more information.*"
]
},
{
"cell_type": "markdown",
"id": "1e864e22-fb83-4856-ae29-91a35c21921b",
"id": "f8fdf193",
"metadata": {},
"source": [
"_Required : A storage with at least one object inside. see \"Storage Notebook\" for more information._"
"## Input"
]
},
{
Expand All @@ -85,12 +94,12 @@
}
},
"source": [
"## Import library"
"### Import libraries"
]
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"id": "7a52f150-e7e4-4415-9013-7dbdaf887892",
"metadata": {
"execution": {
Expand All @@ -104,43 +113,19 @@
},
"outputs": [],
"source": [
"import naas_python"
"try:\n",
" import naas_python\n",
"except:\n",
" !pip install naas-python --user\n",
" import naas_python"
]
},
{
"cell_type": "markdown",
"id": "780bd325-280f-4e68-8ca4-4f7eb00c7ed4",
"id": "7a680de5",
"metadata": {},
"source": [
"### Command list"
]
},
{
"cell_type": "markdown",
"id": "f18b5055-49a6-4cee-8793-ba2f5d002815",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-03T16:21:57.186360Z",
"iopub.status.busy": "2024-06-03T16:21:57.186133Z",
"iopub.status.idle": "2024-06-03T16:21:57.195495Z",
"shell.execute_reply": "2024-06-03T16:21:57.194575Z",
"shell.execute_reply.started": "2024-06-03T16:21:57.186336Z"
}
},
"source": [
"* [Create](#create)\n",
"* [Get](#get)\n",
"* [Get Asset Object](#getassetobject)\n",
"* [Update Asset](#updateasset)\n",
"* [Delete Asset](#deleteasset)"
]
},
{
"cell_type": "markdown",
"id": "55296efb-41bc-4922-b668-98e93cd09c8e",
"metadata": {},
"source": [
"---"
"## Model"
]
},
{
Expand All @@ -156,7 +141,7 @@
}
},
"source": [
"<a id='create'><h2>Create</h2></a>"
"### Create Naas Asset"
]
},
{
Expand Down Expand Up @@ -935,6 +920,22 @@
"--asset-id \"0c35c28b-1904-414f-a40d-5611af2511fb\"\n",
"```"
]
},
{
"cell_type": "markdown",
"id": "b664e150",
"metadata": {},
"source": [
"## Output"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "9d311fed",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -953,7 +954,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.6"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 3de7ed1

Please sign in to comment.