Skip to content

Commit

Permalink
generateReadme: Refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 28, 2024
1 parent abc4239 commit 009eb6a
Show file tree
Hide file tree
Showing 10 changed files with 396 additions and 198 deletions.
48 changes: 24 additions & 24 deletions .github/push_templates_to_algolia.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"id": "aa0e3e6f-1260-4452-8abf-7c084e26c8a4",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-26T14:45:50.165871Z",
"iopub.status.busy": "2024-06-26T14:45:50.165675Z",
"iopub.status.idle": "2024-06-26T14:45:50.239561Z",
"shell.execute_reply": "2024-06-26T14:45:50.238851Z"
"iopub.execute_input": "2024-06-28T10:51:16.028264Z",
"iopub.status.busy": "2024-06-28T10:51:16.027798Z",
"iopub.status.idle": "2024-06-28T10:51:16.101633Z",
"shell.execute_reply": "2024-06-28T10:51:16.101047Z"
},
"papermill": {},
"tags": []
Expand Down Expand Up @@ -95,10 +95,10 @@
"id": "cfa97168-63eb-4e8c-89c3-0a5d26f47740",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-26T14:45:50.242534Z",
"iopub.status.busy": "2024-06-26T14:45:50.242325Z",
"iopub.status.idle": "2024-06-26T14:45:50.245721Z",
"shell.execute_reply": "2024-06-26T14:45:50.245142Z"
"iopub.execute_input": "2024-06-28T10:51:16.104388Z",
"iopub.status.busy": "2024-06-28T10:51:16.103905Z",
"iopub.status.idle": "2024-06-28T10:51:16.107613Z",
"shell.execute_reply": "2024-06-28T10:51:16.106983Z"
},
"papermill": {},
"tags": []
Expand Down Expand Up @@ -141,10 +141,10 @@
"id": "7a9c86c2-931d-4113-abbc-31b3f517b6c4",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-26T14:45:50.248101Z",
"iopub.status.busy": "2024-06-26T14:45:50.247908Z",
"iopub.status.idle": "2024-06-26T14:45:50.331306Z",
"shell.execute_reply": "2024-06-26T14:45:50.330628Z"
"iopub.execute_input": "2024-06-28T10:51:16.110187Z",
"iopub.status.busy": "2024-06-28T10:51:16.109826Z",
"iopub.status.idle": "2024-06-28T10:51:16.193603Z",
"shell.execute_reply": "2024-06-28T10:51:16.192898Z"
},
"tags": []
},
Expand Down Expand Up @@ -178,10 +178,10 @@
"id": "c50e96b2-4403-413c-a99a-9243be0c0a04",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-26T14:45:50.333898Z",
"iopub.status.busy": "2024-06-26T14:45:50.333689Z",
"iopub.status.idle": "2024-06-26T14:45:51.736980Z",
"shell.execute_reply": "2024-06-26T14:45:51.736359Z"
"iopub.execute_input": "2024-06-28T10:51:16.196436Z",
"iopub.status.busy": "2024-06-28T10:51:16.196050Z",
"iopub.status.idle": "2024-06-28T10:51:16.943602Z",
"shell.execute_reply": "2024-06-28T10:51:16.942899Z"
},
"tags": []
},
Expand Down Expand Up @@ -230,10 +230,10 @@
"id": "da661ba3-fd15-4abc-bd4f-d13ae77b82b0",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-26T14:45:51.739500Z",
"iopub.status.busy": "2024-06-26T14:45:51.739301Z",
"iopub.status.idle": "2024-06-26T14:45:54.631355Z",
"shell.execute_reply": "2024-06-26T14:45:54.630613Z"
"iopub.execute_input": "2024-06-28T10:51:16.946523Z",
"iopub.status.busy": "2024-06-28T10:51:16.946103Z",
"iopub.status.idle": "2024-06-28T10:51:17.730430Z",
"shell.execute_reply": "2024-06-28T10:51:17.729775Z"
},
"tags": []
},
Expand All @@ -260,10 +260,10 @@
"id": "f1482a8f-4ce5-4e04-93c8-ddd883375d67",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-26T14:45:54.634057Z",
"iopub.status.busy": "2024-06-26T14:45:54.633849Z",
"iopub.status.idle": "2024-06-26T14:45:54.747378Z",
"shell.execute_reply": "2024-06-26T14:45:54.746686Z"
"iopub.execute_input": "2024-06-28T10:51:17.733341Z",
"iopub.status.busy": "2024-06-28T10:51:17.732878Z",
"iopub.status.idle": "2024-06-28T10:51:17.841601Z",
"shell.execute_reply": "2024-06-28T10:51:17.840960Z"
},
"tags": []
},
Expand Down
107 changes: 86 additions & 21 deletions Naas API/Naas_API_Create_Asset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,24 @@
{
"cell_type": "markdown",
"id": "28d10a4c-3c77-4088-9b67-db6e5f1ee7f0",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"<img width=\"8%\" alt=\"Naas API.png\" src=\"https://raw.githubusercontent.com/jupyter-naas/awesome-notebooks/master/.github/assets/logos/Naas%20API.png\" style=\"border-radius: 15%\">"
]
},
{
"cell_type": "markdown",
"id": "90cdfd58-d74b-4ec9-aea8-72fe64903f81",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"# Naas API - Create Asset"
"# Naas API - Create Asset\n",
"<a href=\"https://bit.ly/3JyWIk6\">Give Feedback</a> | <a href=\"https://github.com/jupyter-naas/awesome-notebooks/issues/new?assignees=&labels=bug&template=bug_report.md&title=Naas+API+-+Create+Asset:+Error+short+description\">Bug report</a>"
]
},
{
Expand All @@ -26,7 +33,9 @@
"iopub.status.idle": "2024-06-03T14:17:19.420684Z",
"shell.execute_reply": "2024-06-03T14:17:19.419788Z",
"shell.execute_reply.started": "2024-06-03T14:17:19.410779Z"
}
},
"papermill": {},
"tags": []
},
"source": [
"**Tags:** #naas #api #asset #create"
Expand All @@ -42,7 +51,9 @@
"iopub.status.idle": "2024-06-03T14:17:27.705749Z",
"shell.execute_reply": "2024-06-03T14:17:27.704763Z",
"shell.execute_reply.started": "2024-06-03T14:17:27.697200Z"
}
},
"papermill": {},
"tags": []
},
"source": [
"**Author:** [Loic Laville](https://www.linkedin.com/in/loic-laville/)"
Expand All @@ -51,15 +62,21 @@
{
"cell_type": "markdown",
"id": "69456534",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"**Last update:** 2024-06-28 (Created: 2024-06-05)"
]
},
{
"cell_type": "markdown",
"id": "543b22e8",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"**Description:** This notebook demonstrates how to use create an Asset using Naas API from a share object in Naas API Storage. An \"Asset\" is a shearable link of an object (or file) in your storage.\n",
"\n",
Expand All @@ -69,7 +86,10 @@
{
"cell_type": "markdown",
"id": "f8fdf193",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"## Input"
]
Expand All @@ -84,7 +104,9 @@
"iopub.status.idle": "2024-06-03T14:23:07.500018Z",
"shell.execute_reply": "2024-06-03T14:23:07.497930Z",
"shell.execute_reply.started": "2024-06-03T14:23:07.494728Z"
}
},
"papermill": {},
"tags": []
},
"source": [
"### Import libraries"
Expand All @@ -95,6 +117,7 @@
"execution_count": null,
"id": "7a52f150-e7e4-4415-9013-7dbdaf887892",
"metadata": {
"papermill": {},
"tags": []
},
"outputs": [],
Expand All @@ -116,7 +139,9 @@
"iopub.status.idle": "2024-06-03T14:26:27.972888Z",
"shell.execute_reply": "2024-06-03T14:26:27.972264Z",
"shell.execute_reply.started": "2024-06-03T14:26:27.969871Z"
}
},
"papermill": {},
"tags": []
},
"source": [
"### Setup variables"
Expand All @@ -125,7 +150,10 @@
{
"cell_type": "markdown",
"id": "a0c5268d-a14d-42c5-bf93-722f6302cc0a",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"Required:\n",
"- `workspace_id`: User Workspace ID\n",
Expand All @@ -143,6 +171,7 @@
"execution_count": null,
"id": "c1519102-4298-46e4-a30c-f7a4fd8e9981",
"metadata": {
"papermill": {},
"tags": []
},
"outputs": [],
Expand All @@ -161,15 +190,21 @@
{
"cell_type": "markdown",
"id": "7a680de5",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"## Model"
]
},
{
"cell_type": "markdown",
"id": "efd00c7b-2b1f-47c4-b8e8-605c2003e321",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"### Create asset"
]
Expand All @@ -179,6 +214,7 @@
"execution_count": null,
"id": "97463fa6-6044-4e69-b4ea-59fc0b243dbd",
"metadata": {
"papermill": {},
"tags": []
},
"outputs": [],
Expand All @@ -201,15 +237,21 @@
{
"cell_type": "markdown",
"id": "fbd724f6-7437-4809-8e99-5261ebf2d506",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"## Output"
]
},
{
"cell_type": "markdown",
"id": "74e034ef-5d00-4cfa-bb07-d79e92fb8b77",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"### Display Result\n",
"```json\n",
Expand Down Expand Up @@ -238,6 +280,7 @@
"execution_count": null,
"id": "3c6276b2-8a43-4b79-8a6f-d2f44aeb5b99",
"metadata": {
"papermill": {},
"tags": []
},
"outputs": [],
Expand All @@ -249,7 +292,10 @@
{
"cell_type": "markdown",
"id": "48ebf144",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"```\n",
"'0c35c28b-1904-414f-a40d-5611af2511fb'\n",
Expand All @@ -266,7 +312,9 @@
"iopub.status.idle": "2024-06-03T15:57:16.342484Z",
"shell.execute_reply": "2024-06-03T15:57:16.341807Z",
"shell.execute_reply.started": "2024-06-03T15:57:16.339744Z"
}
},
"papermill": {},
"tags": []
},
"source": [
"### CLI command"
Expand All @@ -282,7 +330,9 @@
"iopub.status.idle": "2024-06-03T15:58:10.626998Z",
"shell.execute_reply": "2024-06-03T15:58:10.626067Z",
"shell.execute_reply.started": "2024-06-03T15:58:10.611178Z"
}
},
"papermill": {},
"tags": []
},
"source": [
"```sh\n",
Expand All @@ -302,6 +352,7 @@
"cell_type": "markdown",
"id": "0eff6321-cec4-43e3-b66d-3f0d0e4bbc45",
"metadata": {
"papermill": {},
"tags": []
},
"source": [
Expand All @@ -318,7 +369,9 @@
"iopub.status.idle": "2024-06-03T16:11:26.001623Z",
"shell.execute_reply": "2024-06-03T16:11:25.999844Z",
"shell.execute_reply.started": "2024-06-03T16:11:25.982628Z"
}
},
"papermill": {},
"tags": []
},
"source": [
"You can have only one asset by file, otherwise you will get the error :"
Expand All @@ -334,7 +387,9 @@
"iopub.status.idle": "2024-06-03T16:11:49.629254Z",
"shell.execute_reply": "2024-06-03T16:11:49.628239Z",
"shell.execute_reply.started": "2024-06-03T16:11:49.611567Z"
}
},
"papermill": {},
"tags": []
},
"source": [
"`[AssetConflictError]: Asset:'img.jpg' - id:'0c35c28b-1904-414f-a40d-5611af2511fb' - version:'lqUJfScvcBWUc3RhZuGmB_OkCY0ZmwhI' already exists`"
Expand All @@ -358,8 +413,18 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.6"
},
"naas": {
"notebook_id": "75b7ece4dfc3afd7b66fbecc88e671e95f0b78a9bfd530732dd1a375314da91d",
"notebook_path": "Naas API/Naas_API_Create_Asset.ipynb"
},
"papermill": {
"default_parameters": {},
"environment_variables": {},
"parameters": {},
"version": "2.6.0"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
}
Loading

0 comments on commit 009eb6a

Please sign in to comment.