diff --git a/Naas API/Naas_API_Asset.ipynb b/Naas API/Naas_API_Asset.ipynb index 8e105e3a6b..59ec4ed177 100644 --- a/Naas API/Naas_API_Asset.ipynb +++ b/Naas API/Naas_API_Asset.ipynb @@ -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" ] }, { @@ -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": { @@ -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" ] }, { @@ -156,7 +141,7 @@ } }, "source": [ - "

Create

" + "### Create Naas Asset" ] }, { @@ -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": { @@ -953,7 +954,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.9.6" + "version": "3.11.5" } }, "nbformat": 4,